urbit/sur/btc-bridge.hoon
2021-05-26 18:30:11 -07:00

20 lines
411 B
Plaintext

/- *btc
|%
+$ credentials [rpc-url=@t rpc-user=@t rpc-password=@t]
+$ status
$% [%host connected=? clients=(set ship)]
[%client connected=? host=(unit ship)]
==
+$ action
$% [%check-status ~]
[%balance =address]
[%transactions =address]
==
::
+$ command
$% [%connect-as-host =credentials]
[%connect-as-client host=ship]
[%allow-clients users=(set ship)]
==
--