OP_RETURN_254 ​
INFO
Opcode number: 254
Byte representation: 0xfe
Short description: Fail the script immediately.
OP_RETURN_254
fails the script immediately, but it must be executed (for example it does not render a script invalid if it is in a branch of an if/else statement that doesn't get executed). It is a synonym for OP_RETURN.
OP_RETURN_254
is part of a group of opcodes that are not defined directly in bitcoin core, (the OP_RETURN_254
name comes from rust-bitcoin). Those opcodes are OP_RETURN_187
to OP_RETURN_254
, and all render a script invalid if executed. This means that they essentially behave like OP_RETURN, but their use would make a script non-standard, and therefore a transaction that would include one of them would not be relayed by nodes by default.