mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
52 lines
1.0 KiB
Plaintext
52 lines
1.0 KiB
Plaintext
|%
|
|
+$ network ?(%main %testnet)
|
|
+$ xpub @ta
|
|
+$ legacy-address $%([%legacy @uc])
|
|
+$ bech32-address $%([%bech32 cord])
|
|
+$ address ?(legacy-address bech32-address)
|
|
+$ bipt $?(%bip44 %bip49 %bip84)
|
|
+$ sats @ud
|
|
+$ hash256 [wid=%32 dat=@ux]
|
|
+$ hash160 [wid=%20 dat=@ux]
|
|
+$ hash ?(hash256 hash160)
|
|
+$ buffer (list @ux)
|
|
+$ utxo [pos=@ tx-hash=hash256 height=@ value=sats]
|
|
++ address-info
|
|
$: =address
|
|
confirmed-value=sats
|
|
unconfirmed-value=sats
|
|
utxos=(set utxo)
|
|
==
|
|
++ tx
|
|
|%
|
|
+$ unsigned
|
|
$: version=@
|
|
locktime=@
|
|
inputs=(list input)
|
|
outputs=(list output)
|
|
==
|
|
+$ input
|
|
$: tx-hash=hash256
|
|
tx-index=@
|
|
witness-ver=@
|
|
sequence=byts
|
|
script-pubkey=byts
|
|
redeem-script=(unit byts)
|
|
pubkey=(unit byts)
|
|
value=sats
|
|
==
|
|
+$ output
|
|
$: =address
|
|
value=sats
|
|
|
|
==
|
|
--
|
|
++ ops
|
|
|%
|
|
++ op-dup 118
|
|
++ op-equalverify 136
|
|
++ op-hash160 169
|
|
++ op-checksig 172
|
|
--
|
|
--
|