RETURN opcode

op_return bitcoin script command

Opcodes are used in Bitcoin Scripts to represent commands or methods. Below you can find the value of the op_return code and an implementation in Python. A bitcoin script works with a stack of items. The op_code representing a method, usually takes or puts 1 or more items from the top of the stack.

OP_RETURN
Integer value 106
Hex value 0x6a

Python code representation as used Bitcoinlib

    @staticmethod
    def op_return():
        return False

Links to related method