ported RPC actions

This commit is contained in:
timlucmiptev 2020-10-12 11:26:43 +03:00 committed by ixv
parent 5276680cba
commit 8ef372f1c0
3 changed files with 34 additions and 2 deletions

View File

@ -46,7 +46,8 @@
?+ mark (on-poke:def mark vase)
%btc-bridge-command
(handle-command:hc !<(command vase))
%btc-bridge-action
%btc-bridge-rpc-action
~& > !<(rpc-action vase)
`state
==
[cards this]

View File

@ -0,0 +1,13 @@
:: Sends a raw RPC action to the BTC Bridge
::
:: Commands:
::
::
::
/- *btc-bridge
::
:- %say
|= $: [now=@da eny=@uvJ =beak]
[[ract=rpc-action ~] ~]
==
[%btc-bridge-rpc-action ract]

View File

@ -1,4 +1,5 @@
/- *btc
/- *btc, bnh=btc-node-hook
|%
+$ credentials [rpc-url=@t rpc-user=@t rpc-password=@t]
+$ status
@ -17,4 +18,21 @@
[%connect-as-client host=ship]
[%allow-clients users=(set ship)]
==
+$ rpc-action
$% [%erpc action:electrum:rpc]
[%brpc action:bitcoin-core:rpc]
==
++ rpc
|%
++ electrum
|%
+$ action
$% [%timluc ~]
==
--
++ bitcoin-core
|%
+$ action btc-node-hook-action:bnh
--
--
--