We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 649e168 commit 1948b9dCopy full SHA for 1948b9d
1 file changed
docs/11_1_Understanding_the_Foundation_of_Transactions.md
@@ -90,7 +90,8 @@ transaction fee:
90
91
```
92
utxo_txid=$(bitcoin-cli listunspent | jq -r '.[1] | .txid')
93
-utxo_vout=$(bitcoin-cli listunspent | jq -r '.[1] | .vout')recipient=$(bitcoin-cli -named getrawchangeaddress address_type=legacy)
+utxo_vout=$(bitcoin-cli listunspent | jq -r '.[1] | .vout')
94
+recipient=$(bitcoin-cli -named getrawchangeaddress address_type=legacy)
95
rawtxhex=$(bitcoin-cli -named createrawtransaction inputs='''[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout' } ]''' outputs='''{ "'$recipient'": 0.00098 }''')
96
signedtx=$(bitcoin-cli -named signrawtransactionwithwallet hexstring=$rawtxhex | jq -r '.hex')
97
0 commit comments