Creating an OP_RETURN transaction > 80 bytes

Summary

This is a experiment to see if a transaction with OP_RETURN > 80 is currently accepted by the bitcoin network

Reference

How to

Most current bitcoin wallets will currently reject >80 bytes OP_RETURN. So a wokaround is needed.

  • Download and run bitcoin core v30.0 and let it sync in prune mode
  • Crafting raw OP_RETURN tx on core is tricking so we use electrum
    . You must convert your text to hex and paste after OP_RETURN . The first address can be your own wallet address
  • Don’t directly send from electrum at it will refuse to broadcast it
  • Now click on Pay > Preview > Sign
  • Now click on Share > Copy to Clipboard
  • Now broadcast transaction using bitcoin-cli
    bitcoin-cli sendrawtransaction <paste the hex copied from clipboard>
  • It will generate a txid
  • Monitor the txid on few blockexplorers. None of them will show it !! Don’t get disappointed :sad_but_relieved_face:
  • Try to incentivize the miners more and increase the fee. Still tx will not show in mempool, however, it will straightaway end up in a bitcoin block :smirking_face:

Result

Two transactions with 912 bytes in OP_RETURN . Text is starting of satoshi.pdf

1 Like