Post
Topic
Board Bitcoin Technical Support
Re: Using the Data field in OP_RETURN transactions, and converting text to hex
by
FractalEncrypt
on 08/01/2021, 12:28:21 UTC


Maybe try wrapping your "data" in " "'s? Huh

I just used this on the Bitcoin Core console:
Code:
createrawtransaction '[{"txid": "TXID", "vout": 0}]' '{"Address1": Amount1, "data": "4920616d204672616374616c456e6372797074"}'

And it immediately created the rawtransaction, which includes the following when I decoderawtransaction:
Code:
...
{
      "value": 0.00000000,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_RETURN 4920616d204672616374616c456e6372797074",
        "hex": "6a134920616d204672616374616c456e6372797074",
        "type": "nulldata"
}
...

#1
This worked perfectly,
#2
I love you
# 3
I think you're the coolest!