mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 10:27:29 +00:00 
			
		
		
		
	Merge pull request #130 from Goosie/patch-9
Update 06_5_Sending_a_Transaction_with_Data.md
This commit is contained in:
		
						commit
						0569270c8f
					
				| @ -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. | 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 }''') | $ 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: | Here's what that transaction actually looks like: | ||||||
| ``` | ``` | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user