shrub/sur/btc-provider.hoon

79 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-02-18 15:13:06 +03:00
/- *bitcoin, *resource
2020-10-01 16:51:37 +03:00
|%
2021-01-26 14:27:32 +03:00
+$ host-info
$: api-url=@t
connected=?
2021-01-28 14:03:53 +03:00
=network
2021-01-26 14:27:32 +03:00
block=@ud
clients=(set ship)
==
+$ whitelist
$: public=?
kids=?
users=(set ship)
groups=(set resource)
==
::
+$ whitelist-target
$% [%public ~]
[%kids ~]
[%users users=(set ship)]
[%groups groups=(set resource)]
==
2020-11-13 13:14:35 +03:00
+$ command
2021-01-28 17:43:24 +03:00
$% [%set-credentials api-url=@t =network]
[%add-whitelist wt=whitelist-target]
[%remove-whitelist wt=whitelist-target]
2020-11-13 13:14:35 +03:00
==
2020-12-23 14:21:48 +03:00
+$ action
2020-11-09 12:53:30 +03:00
$% [%address-info =address]
2021-01-26 21:36:21 +03:00
[%tx-info txid=hexb]
[%raw-tx txid=hexb]
[%broadcast-tx rawtx=hexb]
2020-11-07 14:56:11 +03:00
[%ping ~]
==
2021-02-15 11:23:56 +03:00
::
2020-12-23 14:21:48 +03:00
+$ result
2020-12-23 15:58:23 +03:00
$% [%address-info =address utxos=(set utxo) used=? block=@ud]
2020-12-07 23:31:09 +03:00
[%tx-info =info:tx]
2021-01-26 21:36:21 +03:00
[%raw-tx txid=hexb rawtx=hexb]
[%broadcast-tx txid=hexb broadcast=? included=?]
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
[%rpc-error ~]
==
2020-11-09 15:29:30 +03:00
+$ update (each result error)
2020-11-16 20:06:45 +03:00
+$ status
2021-02-15 11:23:56 +03:00
$% [%connected =network block=@ud fee=(unit sats)]
[%new-block =network block=@ud fee=(unit sats) blockhash=hexb blockfilter=hexb]
2020-11-16 20:06:45 +03:00
[%disconnected ~]
==
2020-12-21 12:50:33 +03:00
::
2020-12-13 13:04:47 +03:00
++ rpc-types
2020-10-12 11:26:43 +03:00
|%
2020-10-20 17:13:52 +03:00
+$ action
2020-12-23 15:58:23 +03:00
$% [%get-address-info =address]
2021-01-26 21:36:21 +03:00
[%get-tx-vals txid=hexb]
[%get-raw-tx txid=hexb]
[%broadcast-tx rawtx=hexb]
2021-02-15 11:23:56 +03:00
[%get-block-count ~]
2021-01-26 14:27:32 +03:00
[%get-block-info ~]
2020-10-20 17:13:52 +03:00
==
2020-12-06 20:53:02 +03:00
::
2020-12-13 13:04:47 +03:00
+$ result
2020-12-23 15:58:23 +03:00
$% [%get-address-info =address utxos=(set utxo) used=? block=@ud]
2020-12-07 23:31:09 +03:00
[%get-tx-vals =info:tx]
2021-01-26 21:36:21 +03:00
[%get-raw-tx txid=hexb rawtx=hexb]
[%create-raw-tx rawtx=hexb]
[%broadcast-tx txid=hexb broadcast=? included=?]
2020-12-01 15:23:11 +03:00
[%get-block-count block=@ud]
[%get-block-info block=@ud fee=(unit sats) blockhash=hexb blockfilter=hexb]
2020-11-24 22:30:41 +03:00
2020-10-20 17:13:52 +03:00
==
2020-10-12 11:26:43 +03:00
--
2020-10-01 16:51:37 +03:00
--
::