shrub/lib/electrum-rpc-json.hoon
2021-05-26 18:30:11 -07:00

22 lines
507 B
Plaintext

/- *btc-bridge
/+ lib=btc-node-json
:: dummy core until needed
|%
++ blank 42
:: TODO: generate GET URLS here, or even the whole http request!!
:: ++ electrum-rpc
:: |%
:: ++ request-to-rpc
:: =, enjs:format
:: |= req=request:electrum:rpc
:: ^- request:rpc:jstd
:: ?- -.req
:: %get-address-balance
:: :* id='0'
:: method='blockchain.scripthash.get_balance'
:: params=[%list ~[[%s address.req]]]
:: ==
:: ==
:: --
--