Opcodes are used in Bitcoin Scripts to represent commands or methods. Below you can find the value of the op_hash160 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_HASH160 | |
Integer value | 169 |
Hex value | 0xa9 |
Python code representation as used Bitcoinlib
def op_hash160(self): self.append(hash160(self.pop())) return True