Update 06_5_Sending_a_Transaction_with_Data.md

error in transaction command
This commit is contained in:
Perry Smit 2020-06-16 15:09:47 +02:00 committed by GitHub
parent 547bae454b
commit 38c0403d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:
```