Opcodes · control · enabled

OP_RETURN (0x6a)

Fails the script immediately. Outputs that start with OP_RETURN are provably unspendable and are used to carry data.

Verified
Stack in → out
∅ → (fails)
Since
Original Bitcoin script
Cost
Base instruction cost 100.
Bitcoin status
Same in Bitcoin (BTC)

Example

OP_RETURN <'hello'>

Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.

Sources

  1. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)
  2. BCHN script interpreter (interpreter.cpp)