2020-10-22 11:02:18 +03:00
|
|
|
/- *btc, brpc=btc-node-hook, erpc=electrum-rpc
|
2020-10-01 16:51:37 +03:00
|
|
|
|%
|
2020-10-13 12:25:37 +03:00
|
|
|
+$ btc-credentials [rpc-url=@t rpc-user=@t rpc-password=@t]
|
|
|
|
+$ electrum-credentials [rpc-url=@t]
|
|
|
|
+$ credentials [bc=btc-credentials ec=electrum-credentials]
|
2020-10-22 10:36:25 +03:00
|
|
|
+$ host-info [creds=credentials connected=? clients=(set ship)]
|
2020-11-09 15:43:30 +03:00
|
|
|
+$ req-id @t
|
|
|
|
+$ action [=req-id body=action-body]
|
2020-11-09 15:29:30 +03:00
|
|
|
+$ action-body
|
2020-11-09 12:53:30 +03:00
|
|
|
$% [%address-info =address]
|
2020-11-07 14:56:11 +03:00
|
|
|
[%ping ~]
|
2020-10-19 15:21:54 +03:00
|
|
|
==
|
2020-11-09 15:43:30 +03:00
|
|
|
+$ result [=req-id body=result-body]
|
2020-11-09 15:29:30 +03:00
|
|
|
+$ result-body
|
2020-11-09 12:53:30 +03:00
|
|
|
$% [%address-info a=address utxos=(set utxo) used=?]
|
2020-10-23 20:35:04 +03:00
|
|
|
==
|
|
|
|
+$ error
|
2020-11-07 12:14:34 +03:00
|
|
|
$% [%not-connected status=@ud]
|
|
|
|
[%bad-request status=@ud]
|
2020-11-07 18:51:31 +03:00
|
|
|
[%no-auth status=@ud]
|
2020-11-07 12:14:34 +03:00
|
|
|
[%http-error status=@ud]
|
|
|
|
[%rpc-error ~]
|
2020-10-19 15:21:54 +03:00
|
|
|
==
|
2020-11-09 15:29:30 +03:00
|
|
|
+$ update (each result error)
|
2020-10-05 15:21:23 +03:00
|
|
|
::
|
|
|
|
+$ command
|
2020-10-19 15:21:54 +03:00
|
|
|
$% [%set-credentials creds=credentials]
|
|
|
|
[%whitelist-clients clients=(set ship)]
|
2020-10-01 16:51:37 +03:00
|
|
|
==
|
2020-10-12 11:26:43 +03:00
|
|
|
++ rpc
|
|
|
|
|%
|
2020-10-20 17:13:52 +03:00
|
|
|
+$ action
|
|
|
|
$% [%erpc request:electrum]
|
|
|
|
[%brpc request:bitcoin-core]
|
|
|
|
==
|
|
|
|
+$ response
|
|
|
|
$% [%erpc response:electrum]
|
|
|
|
[%brpc response:bitcoin-core]
|
|
|
|
==
|
2020-10-12 11:26:43 +03:00
|
|
|
++ electrum
|
|
|
|
|%
|
2020-10-22 11:02:18 +03:00
|
|
|
+$ request request:erpc
|
|
|
|
+$ response response:erpc
|
2020-10-12 11:26:43 +03:00
|
|
|
--
|
|
|
|
++ bitcoin-core
|
|
|
|
|%
|
2020-10-22 11:02:18 +03:00
|
|
|
+$ request btc-node-hook-action:brpc
|
|
|
|
+$ response btc-node-hook-response:brpc
|
2020-10-12 11:26:43 +03:00
|
|
|
--
|
|
|
|
--
|
2020-10-01 16:51:37 +03:00
|
|
|
--
|