mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
47 lines
1021 B
Plaintext
47 lines
1021 B
Plaintext
/- *btc
|
|
|%
|
|
+$ host-info [api-url=@t connected=? clients=(set ship)]
|
|
+$ req-id @t
|
|
+$ command
|
|
$% [%set-credentials api-url=@t]
|
|
[%whitelist-clients clients=(set ship)]
|
|
==
|
|
+$ action [=req-id body=action-body]
|
|
+$ action-body
|
|
$% [%address-info =address]
|
|
[%ping ~]
|
|
==
|
|
+$ result [=req-id body=result-body]
|
|
+$ result-body
|
|
$% [%address-info utxos=(set utxo) used=? blockcount=@ud]
|
|
==
|
|
+$ error
|
|
$% [%not-connected status=@ud]
|
|
[%bad-request status=@ud]
|
|
[%no-auth status=@ud]
|
|
[%http-error status=@ud]
|
|
[%rpc-error ~]
|
|
==
|
|
+$ update (each result error)
|
|
+$ status
|
|
$% [%connected blockcount=@ud fee=@ud]
|
|
[%disconnected ~]
|
|
==
|
|
::
|
|
++ rpc
|
|
|%
|
|
+$ action
|
|
$% [%get-address-info =address]
|
|
[%get-block-count ~]
|
|
[%get-block-and-fee ~]
|
|
==
|
|
::
|
|
+$ response
|
|
$% [%get-address-info utxos=(set utxo) used=? blockcount=@ud]
|
|
[%get-block-count blockcount=@ud]
|
|
[%get-block-and-fee blockcount=@ud fee=sats]
|
|
==
|
|
--
|
|
--
|
|
::
|