All articles

Use OP_RETURN in Trezor Suite

You can use OP_RETURN in Trezor Suite to embed notes into Bitcoin transaction data.

OP_RETURN is a script opcode which can be used to write arbitrary data on blockchain and also to mark a transaction output as invalid. Since any outputs with OP_RETURN are provably unspendable, OP_RETURN outputs can be used to burn bitcoins.
OP_RETURN creates unspendable transactions. This is an anti-congestion feature that prevents any Bitcoin sent with OP_RETURN message from being used ever again. Only send the minimum amount of bitcoin when using OP_RETURN.


Creating a message using OP_RETURN

  • Select 'Add OP Return' from the drop-down menu in the Send transaction tab:
  • Write your desired text in the data (text) box:
Left Box for ASCII Text:
  • Use this box for plain text like "Hello World."
Right Box for Hex Code:
  • If you have specific binary or hexadecimal data, you can insert it here.  For example, the ASCII "Hello World" would be 48656c6c6f20576f726c64 in hexadecimal.
Trezor Suite shows both ASCII text and its corresponding hexadecimal code is to provide transparency and ensure data integrity. You can see exactly how your text will be represented in hexadecimal, which is the format that will ultimately be written to the blockchain.

By showing the conversion, Trezor Suite allows both novice and advanced users to confidently use the OP_RETURN feature, knowing their data will be embedded correctly. It also serves as a verification step to ensure the correct data is being sent.
  • Click send. Your text is now permanently encoded in the blockchain as a hexadecimal string.
The longer the text is, the higher the transaction fee will be.
  • You can view your text by finding the transaction in any block explorer. In some cases only the hexadecimal code will be shown, but many block explorers convert this to text automatically.