Post
Topic
Board Services
Re: [WTB] Teach me to manually create an OP_RETURN tx
by
coinableS
on 25/11/2015, 03:15:57 UTC
Hey luv2drnkbr,

thanks for the follow up! I kinda feel bad for "getting paid" for this kind of information, because I believe it serves the greater good, but you may use 1BzW1ETp2qZsi6ogAufmGsadnQzJcmVXet.

Thanks a lot! Smiley

And please let me know, if any step is unclear or needs to be refined.

As a related note:

The RPC "createrawtransaction" of Bitcoin Core 0.12 will be extended, and directly supports to create OP_RETURN transactions as follows:

Code:
bitcoin-cli "createrawtransaction" '[{"txid":"hash","vout":n}, ...] '{"data": "0123..."}'

Could you do an example for what would be entered for "data" and "0123...."?  It looks like the same format for a receiving address as a raw transaction.

Code:
createrawtransaction '[{"txid":"","vout":}]' '{"receive_address":0.0008}'

So instead of entering a receiving address and an amount one would enter '{"data":40_bytes}' ?