mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 02:41:35 +03:00
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
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]
|
|
[%tx-info =txid]
|
|
[%raw-tx =txid]
|
|
[%broadcast-tx =rawtx]
|
|
[%ping ~]
|
|
==
|
|
+$ result [=req-id body=result-body]
|
|
+$ result-body
|
|
$% [%address-info utxos=(set utxo) used=? block=@ud]
|
|
[%tx-info =info:tx]
|
|
[%raw-tx =txid =rawtx]
|
|
[%broadcast-tx =txid broadcast=? included=?]
|
|
==
|
|
+$ error
|
|
$% [%not-connected status=@ud]
|
|
[%bad-request status=@ud]
|
|
[%no-auth status=@ud]
|
|
[%rpc-error ~]
|
|
==
|
|
+$ update (each result error)
|
|
+$ status
|
|
$% [%connected block=@ud fee=@ud]
|
|
[%disconnected ~]
|
|
==
|
|
::
|
|
++ rpc-types
|
|
|%
|
|
+$ action
|
|
$% [%get-address-info =address]
|
|
[%get-tx-vals =txid]
|
|
[%get-raw-tx =txid]
|
|
[%broadcast-tx =rawtx]
|
|
[%get-block-count ~]
|
|
[%get-block-and-fee ~]
|
|
==
|
|
::
|
|
+$ result
|
|
$% [%get-address-info utxos=(set utxo) used=? block=@ud]
|
|
[%get-tx-vals =info:tx]
|
|
[%get-raw-tx =txid =rawtx]
|
|
[%create-raw-tx =rawtx]
|
|
[%broadcast-tx =txid broadcast=? included=?]
|
|
[%get-block-count block=@ud]
|
|
[%get-block-and-fee block=@ud fee=sats]
|
|
|
|
==
|
|
--
|
|
--
|
|
::
|