2020-10-12 11:26:43 +03:00
|
|
|
/- *btc, bnh=btc-node-hook
|
|
|
|
|
2020-10-01 16:51:37 +03:00
|
|
|
|%
|
|
|
|
+$ credentials [rpc-url=@t rpc-user=@t rpc-password=@t]
|
2020-10-05 14:57:50 +03:00
|
|
|
+$ status
|
2020-10-05 16:01:34 +03:00
|
|
|
$% [%host connected=? clients=(set ship)]
|
|
|
|
[%client connected=? host=(unit ship)]
|
2020-10-05 14:57:50 +03:00
|
|
|
==
|
2020-10-01 16:51:37 +03:00
|
|
|
+$ action
|
2020-10-05 15:21:23 +03:00
|
|
|
$% [%check-status ~]
|
2020-10-09 15:34:36 +03:00
|
|
|
[%get-block-count ~]
|
2020-10-01 16:51:37 +03:00
|
|
|
[%balance =address]
|
|
|
|
[%transactions =address]
|
2020-10-05 15:21:23 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
+$ command
|
2020-10-09 15:34:36 +03:00
|
|
|
$% [%become-host =credentials]
|
2020-10-05 15:21:23 +03:00
|
|
|
[%connect-as-client host=ship]
|
2020-10-05 16:01:34 +03:00
|
|
|
[%allow-clients users=(set ship)]
|
2020-10-01 16:51:37 +03:00
|
|
|
==
|
2020-10-12 11:26:43 +03:00
|
|
|
+$ rpc-action
|
|
|
|
$% [%erpc action:electrum:rpc]
|
|
|
|
[%brpc action:bitcoin-core:rpc]
|
|
|
|
==
|
|
|
|
++ rpc
|
|
|
|
|%
|
|
|
|
++ electrum
|
|
|
|
|%
|
|
|
|
+$ action
|
|
|
|
$% [%timluc ~]
|
|
|
|
==
|
|
|
|
--
|
|
|
|
++ bitcoin-core
|
|
|
|
|%
|
|
|
|
+$ action btc-node-hook-action:bnh
|
|
|
|
--
|
|
|
|
--
|
2020-10-01 16:51:37 +03:00
|
|
|
--
|