2020-10-05 14:57:50 +03:00
|
|
|
|%
|
|
|
|
+$ network ?(%main %testnet)
|
2020-10-31 12:41:00 +03:00
|
|
|
+$ xpub cord
|
2020-10-13 14:31:08 +03:00
|
|
|
+$ legacy-address $%([%legacy @uc])
|
|
|
|
+$ bech32-address $%([%bech32 cord])
|
|
|
|
+$ address ?(legacy-address bech32-address)
|
2020-10-29 15:10:54 +03:00
|
|
|
+$ bipt $?(%bip44 %bip49 %bip84)
|
2020-10-30 14:45:38 +03:00
|
|
|
+$ sats @ud
|
2020-10-20 11:28:19 +03:00
|
|
|
+$ hash256 [wid=%32 dat=@ux]
|
|
|
|
+$ hash160 [wid=%20 dat=@ux]
|
|
|
|
+$ hash ?(hash256 hash160)
|
2020-10-16 14:02:55 +03:00
|
|
|
+$ buffer (list @ux)
|
2020-11-09 12:53:30 +03:00
|
|
|
+$ utxo [pos=@ tx-hash=hash256 height=@ value=sats]
|
2020-10-20 11:28:19 +03:00
|
|
|
++ address-info
|
|
|
|
$: =address
|
2020-10-20 12:05:37 +03:00
|
|
|
confirmed-value=sats
|
|
|
|
unconfirmed-value=sats
|
|
|
|
utxos=(set utxo)
|
2020-10-20 11:28:19 +03:00
|
|
|
==
|
2020-10-16 10:33:10 +03:00
|
|
|
++ tx
|
|
|
|
|%
|
|
|
|
+$ unsigned
|
2020-10-16 14:32:48 +03:00
|
|
|
$: version=@
|
|
|
|
locktime=@
|
|
|
|
inputs=(list input)
|
2020-10-16 12:28:51 +03:00
|
|
|
outputs=(list output)
|
2020-10-16 10:33:10 +03:00
|
|
|
==
|
|
|
|
+$ input
|
2020-10-20 12:05:37 +03:00
|
|
|
$: tx-hash=hash256
|
2020-10-16 10:33:10 +03:00
|
|
|
tx-index=@
|
|
|
|
witness-ver=@
|
2020-10-16 13:15:51 +03:00
|
|
|
sequence=byts
|
2020-10-16 10:33:10 +03:00
|
|
|
script-pubkey=byts
|
|
|
|
redeem-script=(unit byts)
|
2020-10-16 12:28:51 +03:00
|
|
|
pubkey=(unit byts)
|
|
|
|
value=sats
|
2020-10-16 10:33:10 +03:00
|
|
|
==
|
|
|
|
+$ output
|
|
|
|
$: =address
|
2020-10-16 12:28:51 +03:00
|
|
|
value=sats
|
2020-10-20 12:05:37 +03:00
|
|
|
|
2020-10-16 10:33:10 +03:00
|
|
|
==
|
|
|
|
--
|
2020-10-15 13:55:41 +03:00
|
|
|
++ ops
|
|
|
|
|%
|
2020-10-16 10:33:10 +03:00
|
|
|
++ op-dup 118
|
2020-10-15 13:55:41 +03:00
|
|
|
++ op-equalverify 136
|
|
|
|
++ op-hash160 169
|
|
|
|
++ op-checksig 172
|
|
|
|
--
|
2020-10-05 14:57:50 +03:00
|
|
|
--
|