mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 11:24:21 +03:00
23 lines
1.0 KiB
Markdown
23 lines
1.0 KiB
Markdown
# `btc-provider` tests
|
|
|
|
## Set Credentials, Ping Servers, Check Addresses and TXs
|
|
```
|
|
:btc-provider|command [%set-credentials api-url='http://localhost:50002']
|
|
:btc-provider|action ['blockfee' %ping ~]
|
|
|
|
:btc-provider|action ['addr0' %address-info [%bech32 'bc1qm7cegwfd0pvv9ypvz5nhstage00xkxevtrpshc']]
|
|
:btc-provider|action ['addr1' %address-info [%bech32 'bc1qlwd7mw33uea5m8r2lsnsrkc7gp2qynrxsfxpfm']]
|
|
:btc-provider|action ['addr2' %address-info [%bech32 'bc1qglkc9zfcn04vcc88nn0ljtxcpu5uxfznc3829k']]
|
|
:: first is an address w balance
|
|
:: second has no balance but is used
|
|
:: third is unused
|
|
|
|
:btc-provider|action ['reqid' %raw-tx [%32 0x33f.693f.df99.5a5e.a7fe.5c95.1ab6.858c.7e6a.5fff.c585.7992.2cd4.fc31.9c61.4c5b]]
|
|
:btc-provider|action ['reqid' %raw-tx [%32 0x2131.b660.7f25.0d31.d8da.9818.d2d9.2560.c7d6.7fe7.8ca4.0d02.6408.c090.6868.71e6]]
|
|
:: first is a 382 byte tx
|
|
:: second is a 27.660 byte tx
|
|
|
|
:btc-provider|action ['reqid' %tx-info [%32 0x9ece.9c56.9ab3.27db.ada5.a51e.2653.7b3f.7e99.5579.c18a.af4f.8620.304b.ce53.16f1]]
|
|
:: 4 inputs, one output
|
|
```
|