Skip to content

Commit 1948b9d

Browse files
committed
fix to 11.1 scripting`:wq
1 parent 649e168 commit 1948b9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/11_1_Understanding_the_Foundation_of_Transactions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ transaction fee:
9090

9191
```
9292
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)
93+
utxo_vout=$(bitcoin-cli listunspent | jq -r '.[1] | .vout')
94+
recipient=$(bitcoin-cli -named getrawchangeaddress address_type=legacy)
9495
rawtxhex=$(bitcoin-cli -named createrawtransaction inputs='''[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout' } ]''' outputs='''{ "'$recipient'": 0.00098 }''')
9596
signedtx=$(bitcoin-cli -named signrawtransactionwithwallet hexstring=$rawtxhex | jq -r '.hex')
9697
```

0 commit comments

Comments
 (0)