shrub/sur/btc-provider.hoon

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-11-12 18:20:54 +03:00
/- *btc
2020-10-01 16:51:37 +03:00
|%
2020-11-12 18:20:54 +03:00
+$ host-info [api-url=@t connected=? clients=(set ship)]
2020-11-09 15:43:30 +03:00
+$ req-id @t
2020-11-13 13:14:35 +03:00
+$ command
$% [%set-credentials api-url=@t]
[%whitelist-clients clients=(set ship)]
==
2020-11-09 15:43:30 +03:00
+$ 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-20 14:58:27 +03:00
[%raw-tx =txid]
2020-11-07 14:56:11 +03:00
[%ping ~]
==
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-13 13:14:35 +03:00
$% [%address-info utxos=(set utxo) used=? blockcount=@ud]
2020-11-20 16:22:24 +03:00
[%raw-tx =txid =rawtx]
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-11-09 15:29:30 +03:00
+$ update (each result error)
2020-11-16 20:06:45 +03:00
+$ status
$% [%connected blockcount=@ud fee=@ud]
[%disconnected ~]
==
2020-10-05 15:21:23 +03:00
::
2020-10-12 11:26:43 +03:00
++ rpc
|%
2020-10-20 17:13:52 +03:00
+$ action
2020-11-13 13:14:35 +03:00
$% [%get-address-info =address]
2020-11-20 14:58:27 +03:00
[%get-raw-tx =txid]
2020-11-12 18:20:54 +03:00
[%get-block-count ~]
2020-11-16 19:30:50 +03:00
[%get-block-and-fee ~]
2020-10-20 17:13:52 +03:00
==
2020-11-12 18:20:54 +03:00
::
2020-10-20 17:13:52 +03:00
+$ response
2020-11-13 13:14:35 +03:00
$% [%get-address-info utxos=(set utxo) used=? blockcount=@ud]
2020-11-20 16:22:24 +03:00
[%get-raw-tx =txid =rawtx]
2020-11-12 18:20:54 +03:00
[%get-block-count blockcount=@ud]
2020-11-16 19:30:50 +03:00
[%get-block-and-fee blockcount=@ud fee=sats]
2020-10-20 17:13:52 +03:00
==
2020-10-12 11:26:43 +03:00
--
2020-10-01 16:51:37 +03:00
--
::