mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 16:06:26 +00:00
Update 06_5_Sending_a_Transaction_with_Data.md
error in transaction command
This commit is contained in:
parent
547bae454b
commit
38c0403d71
@ -44,7 +44,8 @@ $ changeaddress=$(bitcoin-cli getrawchangeaddress)
|
||||
You can now write a new rawtransaction with two outputs: one is your change address to get back (most of) your money, the other is a data address, which is the `bitcoin-cli` term for an OP_RETURN.
|
||||
```
|
||||
$ rawtxhex=$(bitcoin-cli -named createrawtransaction inputs='''[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout' } ]''' outputs='''{ "data": "'$op_return_data'", "'$changeaddress'": 0.8995 }''')
|
||||
```
|
||||
```#this end in an error: Error parsing JSON:{ "data": "transactie
|
||||
|
||||
|
||||
Here's what that transaction actually looks like:
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user