|% +$ 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 -- --