Skip to content
Developer Handbook

VM limits and opcode reference

CashVM opcode index

Bitcoin Cash mainnet rules after May 2026. Select any of the 256 hexadecimal tiles to read its behavior, stack notation, and relevant specifications.

Scroll the table horizontally to see all 16 columns.

0x00OP_0 Push numbers0x01PUSH 1 Push bytes0x02PUSH 2 Push bytes0x03PUSH 3 Push bytes0x04PUSH 4 Push bytes0x05PUSH 5 Push bytes0x06PUSH 6 Push bytes0x07PUSH 7 Push bytes0x08PUSH 8 Push bytes0x09PUSH 9 Push bytes0x0APUSH 10 Push bytes0x0BPUSH 11 Push bytes0x0CPUSH 12 Push bytes0x0DPUSH 13 Push bytes0x0EPUSH 14 Push bytes0x0FPUSH 15 Push bytes0x10PUSH 16 Push bytes0x11PUSH 17 Push bytes0x12PUSH 18 Push bytes0x13PUSH 19 Push bytes0x14PUSH 20 Push bytes0x15PUSH 21 Push bytes0x16PUSH 22 Push bytes0x17PUSH 23 Push bytes0x18PUSH 24 Push bytes0x19PUSH 25 Push bytes0x1APUSH 26 Push bytes0x1BPUSH 27 Push bytes0x1CPUSH 28 Push bytes0x1DPUSH 29 Push bytes0x1EPUSH 30 Push bytes0x1FPUSH 31 Push bytes0x20PUSH 32 Push bytes0x21PUSH 33 Push bytes0x22PUSH 34 Push bytes0x23PUSH 35 Push bytes0x24PUSH 36 Push bytes0x25PUSH 37 Push bytes0x26PUSH 38 Push bytes0x27PUSH 39 Push bytes0x28PUSH 40 Push bytes0x29PUSH 41 Push bytes0x2APUSH 42 Push bytes0x2BPUSH 43 Push bytes0x2CPUSH 44 Push bytes0x2DPUSH 45 Push bytes0x2EPUSH 46 Push bytes0x2FPUSH 47 Push bytes0x30PUSH 48 Push bytes0x31PUSH 49 Push bytes0x32PUSH 50 Push bytes0x33PUSH 51 Push bytes0x34PUSH 52 Push bytes0x35PUSH 53 Push bytes0x36PUSH 54 Push bytes0x37PUSH 55 Push bytes0x38PUSH 56 Push bytes0x39PUSH 57 Push bytes0x3APUSH 58 Push bytes0x3BPUSH 59 Push bytes0x3CPUSH 60 Push bytes0x3DPUSH 61 Push bytes0x3EPUSH 62 Push bytes0x3FPUSH 63 Push bytes0x40PUSH 64 Push bytes0x41PUSH 65 Push bytes0x42PUSH 66 Push bytes0x43PUSH 67 Push bytes0x44PUSH 68 Push bytes0x45PUSH 69 Push bytes0x46PUSH 70 Push bytes0x47PUSH 71 Push bytes0x48PUSH 72 Push bytes0x49PUSH 73 Push bytes0x4APUSH 74 Push bytes0x4BPUSH 75 Push bytes0x4CPUSHDATA1 Push bytes0x4DPUSHDATA2 Push bytes0x4EPUSHDATA4 Push bytes0x4FOP_1NEGATE Push numbers0x50RESERVED Reserved and unassigned0x51OP_1 Push numbers0x52OP_2 Push numbers0x53OP_3 Push numbers0x54OP_4 Push numbers0x55OP_5 Push numbers0x56OP_6 Push numbers0x57OP_7 Push numbers0x58OP_8 Push numbers0x59OP_9 Push numbers0x5AOP_10 Push numbers0x5BOP_11 Push numbers0x5COP_12 Push numbers0x5DOP_13 Push numbers0x5EOP_14 Push numbers0x5FOP_15 Push numbers0x60OP_16 Push numbers0x61NOP Control flow0x62VER Reserved and unassigned0x63IF Control flow0x64NOTIF Control flow0x65BEGIN Control flow0x66UNTIL Control flow0x67ELSE Control flow0x68ENDIF Control flow0x69VERIFY Control flow0x6ARETURN Control flow0x6BTOALTSTACK Stack manipulation0x6CFROMALTSTACK Stack manipulation0x6D2DROP Stack manipulation0x6E2DUP Stack manipulation0x6F3DUP Stack manipulation0x702OVER Stack manipulation0x712ROT Stack manipulation0x722SWAP Stack manipulation0x73IFDUP Stack manipulation0x74DEPTH Stack manipulation0x75DROP Stack manipulation0x76DUP Stack manipulation0x77NIP Stack manipulation0x78OVER Stack manipulation0x79PICK Stack manipulation0x7AROLL Stack manipulation0x7BROT Stack manipulation0x7CSWAP Stack manipulation0x7DTUCK Stack manipulation0x7ECAT Byte strings0x7FSPLIT Byte strings0x80NUM2BIN Byte strings0x81BIN2NUM Byte strings0x82SIZE Byte strings0x83INVERT Bitwise0x84AND Bitwise0x85OR Bitwise0x86XOR Bitwise0x87EQUAL Bitwise0x88EQUALVERIFY Bitwise0x89DEFINE Control flow0x8AINVOKE Control flow0x8B1ADD Arithmetic and comparison0x8C1SUB Arithmetic and comparison0x8DLSHIFTNUM Arithmetic and comparison0x8ERSHIFTNUM Arithmetic and comparison0x8FNEGATE Arithmetic and comparison0x90ABS Arithmetic and comparison0x91NOT Arithmetic and comparison0x920NOTEQUAL Arithmetic and comparison0x93ADD Arithmetic and comparison0x94SUB Arithmetic and comparison0x95MUL Arithmetic and comparison0x96DIV Arithmetic and comparison0x97MOD Arithmetic and comparison0x98LSHIFTBIN Bitwise0x99RSHIFTBIN Bitwise0x9ABOOLAND Arithmetic and comparison0x9BBOOLOR Arithmetic and comparison0x9CNUMEQUAL Arithmetic and comparison0x9DNUMEQUALVERIFY Arithmetic and comparison0x9ENUMNOTEQUAL Arithmetic and comparison0x9FLESSTHAN Arithmetic and comparison0xA0GREATERTHAN Arithmetic and comparison0xA1LESSTHANOREQUAL Arithmetic and comparison0xA2GREATERTHANOREQUAL Arithmetic and comparison0xA3MIN Arithmetic and comparison0xA4MAX Arithmetic and comparison0xA5WITHIN Arithmetic and comparison0xA6RIPEMD160 Cryptography0xA7SHA1 Cryptography0xA8SHA256 Cryptography0xA9HASH160 Cryptography0xAAHASH256 Cryptography0xABCODESEPARATOR Cryptography0xACCHECKSIG Cryptography0xADCHECKSIGVERIFY Cryptography0xAECHECKMULTISIG Cryptography0xAFCHECKMULTISIGVERIFY Cryptography0xB0NOP1 Reserved and unassigned0xB1CHECKLOCKTIMEVERIFY Timelocks0xB2CHECKSEQUENCEVERIFY Timelocks0xB3NOP4 Reserved and unassigned0xB4NOP5 Reserved and unassigned0xB5NOP6 Reserved and unassigned0xB6NOP7 Reserved and unassigned0xB7NOP8 Reserved and unassigned0xB8NOP9 Reserved and unassigned0xB9NOP10 Reserved and unassigned0xBACHECKDATASIG Cryptography0xBBCHECKDATASIGVERIFY Cryptography0xBCREVERSEBYTES Byte strings0xBD— Reserved and unassigned0xBE— Reserved and unassigned0xBF— Reserved and unassigned0xC0INPUTINDEX Introspection0xC1ACTIVEBYTECODE Introspection0xC2TXVERSION Introspection0xC3TXINPUTCOUNT Introspection0xC4TXOUTPUTCOUNT Introspection0xC5TXLOCKTIME Introspection0xC6UTXOVALUE Introspection0xC7UTXOBYTECODE Introspection0xC8OUTPOINTTXHASH Introspection0xC9OUTPOINTINDEX Introspection0xCAINPUTBYTECODE Introspection0xCBINPUTSEQUENCENUMBER Introspection0xCCOUTPUTVALUE Introspection0xCDOUTPUTBYTECODE Introspection0xCEUTXOTOKENCATEGORY Token introspection0xCFUTXOTOKENCOMMITMENT Token introspection0xD0UTXOTOKENAMOUNT Token introspection0xD1OUTPUTTOKENCATEGORY Token introspection0xD2OUTPUTTOKENCOMMITMENT Token introspection0xD3OUTPUTTOKENAMOUNT Token introspection0xD4RESERVED3 Reserved and unassigned0xD5RESERVED4 Reserved and unassigned0xD6— Reserved and unassigned0xD7— Reserved and unassigned0xD8— Reserved and unassigned0xD9— Reserved and unassigned0xDA— Reserved and unassigned0xDB— Reserved and unassigned0xDC— Reserved and unassigned0xDD— Reserved and unassigned0xDE— Reserved and unassigned0xDF— Reserved and unassigned0xE0— Reserved and unassigned0xE1— Reserved and unassigned0xE2— Reserved and unassigned0xE3— Reserved and unassigned0xE4— Reserved and unassigned0xE5— Reserved and unassigned0xE6— Reserved and unassigned0xE7— Reserved and unassigned0xE8— Reserved and unassigned0xE9— Reserved and unassigned0xEA— Reserved and unassigned0xEB— Reserved and unassigned0xEC— Reserved and unassigned0xED— Reserved and unassigned0xEE— Reserved and unassigned0xEFSPECIAL_TOKEN_PREFIX Reserved and unassigned0xF0— Reserved and unassigned0xF1— Reserved and unassigned0xF2— Reserved and unassigned0xF3— Reserved and unassigned0xF4— Reserved and unassigned0xF5— Reserved and unassigned0xF6— Reserved and unassigned0xF7— Reserved and unassigned0xF8— Reserved and unassigned0xF9— Reserved and unassigned0xFA— Reserved and unassigned0xFB— Reserved and unassigned0xFC— Reserved and unassigned0xFD— Reserved and unassigned0xFE— Reserved and unassigned0xFFINVALIDOPCODE Reserved and unassigned

0x00 OP_0

Push numbers · Available · Alias OP_FALSE

Push 0 as a minimally encoded Script number.

Back to table

0x01 OP_PUSHBYTES_1

Push bytes · Available

Read the next 1 byte from the script and push them as a byte string.

Back to table

0x02 OP_PUSHBYTES_2

Push bytes · Available

Read the next 2 bytes from the script and push them as a byte string.

Back to table

0x03 OP_PUSHBYTES_3

Push bytes · Available

Read the next 3 bytes from the script and push them as a byte string.

Back to table

0x04 OP_PUSHBYTES_4

Push bytes · Available

Read the next 4 bytes from the script and push them as a byte string.

Back to table

0x05 OP_PUSHBYTES_5

Push bytes · Available

Read the next 5 bytes from the script and push them as a byte string.

Back to table

0x06 OP_PUSHBYTES_6

Push bytes · Available

Read the next 6 bytes from the script and push them as a byte string.

Back to table

0x07 OP_PUSHBYTES_7

Push bytes · Available

Read the next 7 bytes from the script and push them as a byte string.

Back to table

0x08 OP_PUSHBYTES_8

Push bytes · Available

Read the next 8 bytes from the script and push them as a byte string.

Back to table

0x09 OP_PUSHBYTES_9

Push bytes · Available

Read the next 9 bytes from the script and push them as a byte string.

Back to table

0x0A OP_PUSHBYTES_10

Push bytes · Available

Read the next 10 bytes from the script and push them as a byte string.

Back to table

0x0B OP_PUSHBYTES_11

Push bytes · Available

Read the next 11 bytes from the script and push them as a byte string.

Back to table

0x0C OP_PUSHBYTES_12

Push bytes · Available

Read the next 12 bytes from the script and push them as a byte string.

Back to table

0x0D OP_PUSHBYTES_13

Push bytes · Available

Read the next 13 bytes from the script and push them as a byte string.

Back to table

0x0E OP_PUSHBYTES_14

Push bytes · Available

Read the next 14 bytes from the script and push them as a byte string.

Back to table

0x0F OP_PUSHBYTES_15

Push bytes · Available

Read the next 15 bytes from the script and push them as a byte string.

Back to table

0x10 OP_PUSHBYTES_16

Push bytes · Available

Read the next 16 bytes from the script and push them as a byte string.

Back to table

0x11 OP_PUSHBYTES_17

Push bytes · Available

Read the next 17 bytes from the script and push them as a byte string.

Back to table

0x12 OP_PUSHBYTES_18

Push bytes · Available

Read the next 18 bytes from the script and push them as a byte string.

Back to table

0x13 OP_PUSHBYTES_19

Push bytes · Available

Read the next 19 bytes from the script and push them as a byte string.

Back to table

0x14 OP_PUSHBYTES_20

Push bytes · Available

Read the next 20 bytes from the script and push them as a byte string.

Back to table

0x15 OP_PUSHBYTES_21

Push bytes · Available

Read the next 21 bytes from the script and push them as a byte string.

Back to table

0x16 OP_PUSHBYTES_22

Push bytes · Available

Read the next 22 bytes from the script and push them as a byte string.

Back to table

0x17 OP_PUSHBYTES_23

Push bytes · Available

Read the next 23 bytes from the script and push them as a byte string.

Back to table

0x18 OP_PUSHBYTES_24

Push bytes · Available

Read the next 24 bytes from the script and push them as a byte string.

Back to table

0x19 OP_PUSHBYTES_25

Push bytes · Available

Read the next 25 bytes from the script and push them as a byte string.

Back to table

0x1A OP_PUSHBYTES_26

Push bytes · Available

Read the next 26 bytes from the script and push them as a byte string.

Back to table

0x1B OP_PUSHBYTES_27

Push bytes · Available

Read the next 27 bytes from the script and push them as a byte string.

Back to table

0x1C OP_PUSHBYTES_28

Push bytes · Available

Read the next 28 bytes from the script and push them as a byte string.

Back to table

0x1D OP_PUSHBYTES_29

Push bytes · Available

Read the next 29 bytes from the script and push them as a byte string.

Back to table

0x1E OP_PUSHBYTES_30

Push bytes · Available

Read the next 30 bytes from the script and push them as a byte string.

Back to table

0x1F OP_PUSHBYTES_31

Push bytes · Available

Read the next 31 bytes from the script and push them as a byte string.

Back to table

0x20 OP_PUSHBYTES_32

Push bytes · Available

Read the next 32 bytes from the script and push them as a byte string.

Back to table

0x21 OP_PUSHBYTES_33

Push bytes · Available

Read the next 33 bytes from the script and push them as a byte string.

Back to table

0x22 OP_PUSHBYTES_34

Push bytes · Available

Read the next 34 bytes from the script and push them as a byte string.

Back to table

0x23 OP_PUSHBYTES_35

Push bytes · Available

Read the next 35 bytes from the script and push them as a byte string.

Back to table

0x24 OP_PUSHBYTES_36

Push bytes · Available

Read the next 36 bytes from the script and push them as a byte string.

Back to table

0x25 OP_PUSHBYTES_37

Push bytes · Available

Read the next 37 bytes from the script and push them as a byte string.

Back to table

0x26 OP_PUSHBYTES_38

Push bytes · Available

Read the next 38 bytes from the script and push them as a byte string.

Back to table

0x27 OP_PUSHBYTES_39

Push bytes · Available

Read the next 39 bytes from the script and push them as a byte string.

Back to table

0x28 OP_PUSHBYTES_40

Push bytes · Available

Read the next 40 bytes from the script and push them as a byte string.

Back to table

0x29 OP_PUSHBYTES_41

Push bytes · Available

Read the next 41 bytes from the script and push them as a byte string.

Back to table

0x2A OP_PUSHBYTES_42

Push bytes · Available

Read the next 42 bytes from the script and push them as a byte string.

Back to table

0x2B OP_PUSHBYTES_43

Push bytes · Available

Read the next 43 bytes from the script and push them as a byte string.

Back to table

0x2C OP_PUSHBYTES_44

Push bytes · Available

Read the next 44 bytes from the script and push them as a byte string.

Back to table

0x2D OP_PUSHBYTES_45

Push bytes · Available

Read the next 45 bytes from the script and push them as a byte string.

Back to table

0x2E OP_PUSHBYTES_46

Push bytes · Available

Read the next 46 bytes from the script and push them as a byte string.

Back to table

0x2F OP_PUSHBYTES_47

Push bytes · Available

Read the next 47 bytes from the script and push them as a byte string.

Back to table

0x30 OP_PUSHBYTES_48

Push bytes · Available

Read the next 48 bytes from the script and push them as a byte string.

Back to table

0x31 OP_PUSHBYTES_49

Push bytes · Available

Read the next 49 bytes from the script and push them as a byte string.

Back to table

0x32 OP_PUSHBYTES_50

Push bytes · Available

Read the next 50 bytes from the script and push them as a byte string.

Back to table

0x33 OP_PUSHBYTES_51

Push bytes · Available

Read the next 51 bytes from the script and push them as a byte string.

Back to table

0x34 OP_PUSHBYTES_52

Push bytes · Available

Read the next 52 bytes from the script and push them as a byte string.

Back to table

0x35 OP_PUSHBYTES_53

Push bytes · Available

Read the next 53 bytes from the script and push them as a byte string.

Back to table

0x36 OP_PUSHBYTES_54

Push bytes · Available

Read the next 54 bytes from the script and push them as a byte string.

Back to table

0x37 OP_PUSHBYTES_55

Push bytes · Available

Read the next 55 bytes from the script and push them as a byte string.

Back to table

0x38 OP_PUSHBYTES_56

Push bytes · Available

Read the next 56 bytes from the script and push them as a byte string.

Back to table

0x39 OP_PUSHBYTES_57

Push bytes · Available

Read the next 57 bytes from the script and push them as a byte string.

Back to table

0x3A OP_PUSHBYTES_58

Push bytes · Available

Read the next 58 bytes from the script and push them as a byte string.

Back to table

0x3B OP_PUSHBYTES_59

Push bytes · Available

Read the next 59 bytes from the script and push them as a byte string.

Back to table

0x3C OP_PUSHBYTES_60

Push bytes · Available

Read the next 60 bytes from the script and push them as a byte string.

Back to table

0x3D OP_PUSHBYTES_61

Push bytes · Available

Read the next 61 bytes from the script and push them as a byte string.

Back to table

0x3E OP_PUSHBYTES_62

Push bytes · Available

Read the next 62 bytes from the script and push them as a byte string.

Back to table

0x3F OP_PUSHBYTES_63

Push bytes · Available

Read the next 63 bytes from the script and push them as a byte string.

Back to table

0x40 OP_PUSHBYTES_64

Push bytes · Available

Read the next 64 bytes from the script and push them as a byte string.

Back to table

0x41 OP_PUSHBYTES_65

Push bytes · Available

Read the next 65 bytes from the script and push them as a byte string.

Back to table

0x42 OP_PUSHBYTES_66

Push bytes · Available

Read the next 66 bytes from the script and push them as a byte string.

Back to table

0x43 OP_PUSHBYTES_67

Push bytes · Available

Read the next 67 bytes from the script and push them as a byte string.

Back to table

0x44 OP_PUSHBYTES_68

Push bytes · Available

Read the next 68 bytes from the script and push them as a byte string.

Back to table

0x45 OP_PUSHBYTES_69

Push bytes · Available

Read the next 69 bytes from the script and push them as a byte string.

Back to table

0x46 OP_PUSHBYTES_70

Push bytes · Available

Read the next 70 bytes from the script and push them as a byte string.

Back to table

0x47 OP_PUSHBYTES_71

Push bytes · Available

Read the next 71 bytes from the script and push them as a byte string.

Back to table

0x48 OP_PUSHBYTES_72

Push bytes · Available

Read the next 72 bytes from the script and push them as a byte string.

Back to table

0x49 OP_PUSHBYTES_73

Push bytes · Available

Read the next 73 bytes from the script and push them as a byte string.

Back to table

0x4A OP_PUSHBYTES_74

Push bytes · Available

Read the next 74 bytes from the script and push them as a byte string.

Back to table

0x4B OP_PUSHBYTES_75

Push bytes · Available

Read the next 75 bytes from the script and push them as a byte string.

Back to table

0x4C OP_PUSHDATA1

Push bytes · Available

Read a 1-byte little-endian length, then push that many bytes from the script.

Back to table

0x4D OP_PUSHDATA2

Push bytes · Available

Read a 2-byte little-endian length, then push that many bytes from the script.

Back to table

0x4E OP_PUSHDATA4

Push bytes · Available

Read a 4-byte little-endian length, then push that many bytes from the script.

Back to table

0x4F OP_1NEGATE

Push numbers · Available

Push -1 as a minimally encoded Script number.

Back to table

0x50 OP_RESERVED

Reserved and unassigned · Reserved

Reserved byte. Execution fails.

Back to table

0x51 OP_1

Push numbers · Available · Alias OP_TRUE

Push 1 as a minimally encoded Script number.

Back to table

0x52 OP_2

Push numbers · Available

Push 2 as a minimally encoded Script number.

Back to table

0x53 OP_3

Push numbers · Available

Push 3 as a minimally encoded Script number.

Back to table

0x54 OP_4

Push numbers · Available

Push 4 as a minimally encoded Script number.

Back to table

0x55 OP_5

Push numbers · Available

Push 5 as a minimally encoded Script number.

Back to table

0x56 OP_6

Push numbers · Available

Push 6 as a minimally encoded Script number.

Back to table

0x57 OP_7

Push numbers · Available

Push 7 as a minimally encoded Script number.

Back to table

0x58 OP_8

Push numbers · Available

Push 8 as a minimally encoded Script number.

Back to table

0x59 OP_9

Push numbers · Available

Push 9 as a minimally encoded Script number.

Back to table

0x5A OP_10

Push numbers · Available

Push 10 as a minimally encoded Script number.

Back to table

0x5B OP_11

Push numbers · Available

Push 11 as a minimally encoded Script number.

Back to table

0x5C OP_12

Push numbers · Available

Push 12 as a minimally encoded Script number.

Back to table

0x5D OP_13

Push numbers · Available

Push 13 as a minimally encoded Script number.

Back to table

0x5E OP_14

Push numbers · Available

Push 14 as a minimally encoded Script number.

Back to table

0x5F OP_15

Push numbers · Available

Push 15 as a minimally encoded Script number.

Back to table

0x60 OP_16

Push numbers · Available

Push 16 as a minimally encoded Script number.

Back to table

0x61 OP_NOP

Control flow · Available

Does nothing.

Back to table

0x62 OP_VER

Reserved and unassigned · Reserved

Reserved byte. Execution fails.

Back to table

0x63 OP_IF

Control flow · Available

IF [statements] ENDIF → ∅ Top of stack on the right. ∅ means no items.

If the top stack value is not False, the statements are executed. The top stack value is removed.

Back to table

0x64 OP_NOTIF

Control flow · Available

NOTIF [statements] ENDIF → ∅ Top of stack on the right. ∅ means no items.

If the top stack value is False, the statements are executed. The top stack value is removed.

Back to table

0x65 OP_BEGIN

Control flow · Available · Alias OP_VERIF (historical)

Mark the beginning of a bounded loop. The matching OP_UNTIL controls repetition. May 2026 Loops specification

Back to table

0x66 OP_UNTIL

Control flow · Available · Alias OP_VERNOTIF (historical)

a → ∅ Top of stack on the right. ∅ means no items.

Pop a condition. If false, repeat from just after the matching OP_BEGIN. If true, exit the loop. May 2026 Loops specification

Back to table

0x67 OP_ELSE

Control flow · Available

IF/NOTIF [...] ELSE [statements] ENDIF → ∅ Top of stack on the right. ∅ means no items.

If the preceding OP_IF or OP_NOTIF or OP_ELSE was not executed then these statements are and if the preceding OP_IF or OP_NOTIF or OP_ELSE was executed then these statements are not.

Back to table

0x68 OP_ENDIF

Control flow · Available

IF [statements] ENDIF → ∅ Top of stack on the right. ∅ means no items.

Ends an if/else block. All blocks must end, or the transaction is marked as invalid . An OP_ENDIF without OP_IF earlier is also invalid .

Back to table

0x69 OP_VERIFY

Control flow · Available

true / false → Nothing / fail Top of stack on the right. ∅ means no items.

Pop the top value. Fail script evaluation if the value is false.

Back to table

0x6A OP_RETURN

Control flow · Fails when executed

∅ → fail Top of stack on the right. ∅ means no items.

Fail immediately when executed. A locking script beginning with OP_RETURN creates an unspendable output.

Back to table

0x6B OP_TOALTSTACK

Stack manipulation · Available

a → (alt) a Top of stack on the right. ∅ means no items.

Puts the input onto the top of the alt stack. Removes it from the main stack.

Back to table

0x6C OP_FROMALTSTACK

Stack manipulation · Available

(alt) a → a Top of stack on the right. ∅ means no items.

Puts the input onto the top of the main stack. Removes it from the alt stack.

Back to table

0x6D OP_2DROP

Stack manipulation · Available

a b → ∅ Top of stack on the right. ∅ means no items.

Removes the top two stack items.

Back to table

0x6E OP_2DUP

Stack manipulation · Available

a b → a b a b Top of stack on the right. ∅ means no items.

Duplicates the top two stack items.

Back to table

0x6F OP_3DUP

Stack manipulation · Available

a b c → a b c a b c Top of stack on the right. ∅ means no items.

Duplicates the top three stack items.

Back to table

0x70 OP_2OVER

Stack manipulation · Available

a b c d → a b c d a b Top of stack on the right. ∅ means no items.

Copies the pair of items two spaces back in the stack to the front.

Back to table

0x71 OP_2ROT

Stack manipulation · Available

a b c d e f → c d e f a b Top of stack on the right. ∅ means no items.

The fifth and sixth items back are moved to the top of the stack.

Back to table

0x72 OP_2SWAP

Stack manipulation · Available

a b c d → c d a b Top of stack on the right. ∅ means no items.

Swaps the top two pairs of items.

Back to table

0x73 OP_IFDUP

Stack manipulation · Available

a → a | a a Top of stack on the right. ∅ means no items.

If the top stack value is not 0, duplicate it.

Back to table

0x74 OP_DEPTH

Stack manipulation · Available

∅ → depth Top of stack on the right. ∅ means no items.

Puts the number of stack items onto the stack.

Back to table

0x75 OP_DROP

Stack manipulation · Available

a → ∅ Top of stack on the right. ∅ means no items.

Removes the top stack item.

Back to table

0x76 OP_DUP

Stack manipulation · Available

a → a a Top of stack on the right. ∅ means no items.

Duplicates the top stack item.

Back to table

0x77 OP_NIP

Stack manipulation · Available

a b → b Top of stack on the right. ∅ means no items.

Removes the second-to-top stack item.

Back to table

0x78 OP_OVER

Stack manipulation · Available

a b → a b a Top of stack on the right. ∅ means no items.

Copies the second-to-top stack item to the top.

Back to table

0x79 OP_PICK

Stack manipulation · Available

xn ... x2 x1 x0 n → xn ... x2 x1 x0 xn Top of stack on the right. ∅ means no items.

The item n back in the stack is copied to the top.

Back to table

0x7A OP_ROLL

Stack manipulation · Available

xn ... x2 x1 x0 n → x(n-1) ... x2 x1 x0 xn Top of stack on the right. ∅ means no items.

The item n back in the stack is moved to the top.

Back to table

0x7B OP_ROT

Stack manipulation · Available

a b c → b c a Top of stack on the right. ∅ means no items.

The top three items on the stack are rotated to the left.

Back to table

0x7C OP_SWAP

Stack manipulation · Available

a b → b a Top of stack on the right. ∅ means no items.

The top two items on the stack are swapped.

Back to table

0x7D OP_TUCK

Stack manipulation · Available

a b → b a b Top of stack on the right. ∅ means no items.

The item at the top of the stack is copied and inserted below the second-to-top item.

Back to table

0x7E OP_CAT

Byte strings · Available

a b → c Top of stack on the right. ∅ means no items.

Concatenates two byte sequences

Back to table

0x7F OP_SPLIT

Byte strings · Available · Alias OP_SUBSTR (historical)

x n → x1 x2 Top of stack on the right. ∅ means no items.

Splits byte sequence x at position n . Known as OP_SUBSTR before 2018-05-15.

Back to table

0x80 OP_NUM2BIN

Byte strings · Available · Alias OP_LEFT (historical)

a b → c Top of stack on the right. ∅ means no items.

Converts numeric value a into byte sequence of length b . Known as OP_LEFT before 2018-05-15.

Back to table

0x81 OP_BIN2NUM

Byte strings · Available · Alias OP_RIGHT (historical)

a → b Top of stack on the right. ∅ means no items.

Converts byte sequence x into a numeric value. Known as OP_RIGHT before 2018-05-15.

Back to table

0x82 OP_SIZE

Byte strings · Available

a → a b Top of stack on the right. ∅ means no items.

Pushes the byte length of the top element of the stack (without popping it).

Back to table

0x83 OP_INVERT

Bitwise · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack. Invert (bitwise "NOT") each byte of the item, then push the result to the stack. May 2026 Bitwise specification

Back to table

0x84 OP_AND

Bitwise · Available

a b → c Top of stack on the right. ∅ means no items.

Boolean AND between each bit of the inputs

Back to table

0x85 OP_OR

Bitwise · Available

a b → c Top of stack on the right. ∅ means no items.

Boolean OR between each bit of the inputs.

Back to table

0x86 OP_XOR

Bitwise · Available

a b → c Top of stack on the right. ∅ means no items.

Boolean EXCLUSIVE OR between each bit of the inputs.

Back to table

0x87 OP_EQUAL

Bitwise · Available

a b → true | false Top of stack on the right. ∅ means no items.

Returns 1 if the inputs are exactly equal, 0 otherwise.

Back to table

0x88 OP_EQUALVERIFY

Bitwise · Available

a b → Nothing | fail Top of stack on the right. ∅ means no items.

Same as OP_EQUAL, but runs OP_VERIFY afterward.

Back to table

0x89 OP_DEFINE

Control flow · Available · Alias OP_RESERVED1 (historical)

a b → ∅ Top of stack on the right. ∅ means no items.

Consume the function bytecode and identifier from the stack and register the function. A duplicate identifier fails. May 2026 Functions specification

Back to table

0x8A OP_INVOKE

Control flow · Available · Alias OP_RESERVED2 (historical)

a → ∅ Top of stack on the right. ∅ means no items.

Consume an identifier and execute its registered bytecode in a new evaluation frame. An undefined identifier fails. May 2026 Functions specification

Back to table

0x8B OP_1ADD

Arithmetic and comparison · Available

a → b Top of stack on the right. ∅ means no items.

1 is added to the input.

Back to table

0x8C OP_1SUB

Arithmetic and comparison · Available

a → b Top of stack on the right. ∅ means no items.

1 is subtracted from the input.

Back to table

0x8D OP_LSHIFTNUM

Arithmetic and comparison · Available · Alias OP_2MUL (historical)

a b → c Top of stack on the right. ∅ means no items.

Pop the top item from the stack as a bit count (VM number). Pop the next item from the stack as the value (VM number) to shift. Perform an arithmetic left shift of the value by the bit count ( result = value * (2 ^ bit_count) ), then push the result to the stack. May 2026 Bitwise specification

Back to table

0x8E OP_RSHIFTNUM

Arithmetic and comparison · Available · Alias OP_2DIV (historical)

a b → c Top of stack on the right. ∅ means no items.

Pop the top item from the stack as a bit count (VM number). Pop the next item from the stack as the value (VM number) to shift. Perform an arithmetic right shift of the value by the bit count ( result = value / (2 ^ bit_count) ) rounding towards negative infinity, then push the resulting VM number to the stack. May 2026 Bitwise specification

Back to table

0x8F OP_NEGATE

Arithmetic and comparison · Available

a → b Top of stack on the right. ∅ means no items.

The sign of the input is flipped.

Back to table

0x90 OP_ABS

Arithmetic and comparison · Available

a → b Top of stack on the right. ∅ means no items.

The input is made positive.

Back to table

0x91 OP_NOT

Arithmetic and comparison · Available

a → true | false Top of stack on the right. ∅ means no items.

If the input is 0 or 1, it is flipped. Otherwise the output will be 0.

Back to table

0x92 OP_0NOTEQUAL

Arithmetic and comparison · Available

a → true | false Top of stack on the right. ∅ means no items.

Returns 0 if the input is 0. 1 otherwise.

Back to table

0x93 OP_ADD

Arithmetic and comparison · Available

a b → c Top of stack on the right. ∅ means no items.

a is added to b .

Back to table

0x94 OP_SUB

Arithmetic and comparison · Available

a b → c Top of stack on the right. ∅ means no items.

b is subtracted from a .

Back to table

0x95 OP_MUL

Arithmetic and comparison · Available

a b → c Top of stack on the right. ∅ means no items.

a is multiplied by b . Enabled in HF-20220515 .

Back to table

0x96 OP_DIV

Arithmetic and comparison · Available

a b → c Top of stack on the right. ∅ means no items.

a is divided by b .

Back to table

0x97 OP_MOD

Arithmetic and comparison · Available

a b → c Top of stack on the right. ∅ means no items.

Returns the remainder after a is divided by b .

Back to table

0x98 OP_LSHIFTBIN

Bitwise · Available · Alias OP_LSHIFT (historical)

a b → c Top of stack on the right. ∅ means no items.

Pop the top item from the stack as a bit count (VM number). Pop the next item from the stack as the binary data to shift. Perform a fixed-length, logical left shift of the data by the bit count, shifting-in 0 bits from the right and dropping shifted-out bits on the left, then push the result to the stack. May 2026 Bitwise specification

Back to table

0x99 OP_RSHIFTBIN

Bitwise · Available · Alias OP_RSHIFT (historical)

a b → c Top of stack on the right. ∅ means no items.

Pop the top item from the stack as a bit count (VM number). Pop the next item from the stack as the binary data to shift. Perform a fixed-length, logical right shift of the data by the bit count, shifting-in 0 bits from the left and dropping shifted-out bits on the right, then push the result to the stack. May 2026 Bitwise specification

Back to table

0x9A OP_BOOLAND

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

If both a and b are not 0, the output is 1. Otherwise 0.

Back to table

0x9B OP_BOOLOR

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

If a or b is not 0, the output is 1. Otherwise 0.

Back to table

0x9C OP_NUMEQUAL

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

Returns 1 if the numbers are equal, 0 otherwise.

Back to table

0x9D OP_NUMEQUALVERIFY

Arithmetic and comparison · Available

a b → Nothing | fail Top of stack on the right. ∅ means no items.

Same as OP_NUMEQUAL, but runs OP_VERIFY afterward.

Back to table

0x9E OP_NUMNOTEQUAL

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

Returns 1 if the numbers are not equal, 0 otherwise.

Back to table

0x9F OP_LESSTHAN

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

Returns 1 if a is less than b , 0 otherwise.

Back to table

0xA0 OP_GREATERTHAN

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

Returns 1 if a is greater than b , 0 otherwise.

Back to table

0xA1 OP_LESSTHANOREQUAL

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

Returns 1 if a is less than or equal to b , 0 otherwise.

Back to table

0xA2 OP_GREATERTHANOREQUAL

Arithmetic and comparison · Available

a b → true | false Top of stack on the right. ∅ means no items.

Returns 1 if a is greater than or equal to b , 0 otherwise.

Back to table

0xA3 OP_MIN

Arithmetic and comparison · Available

a b → c Top of stack on the right. ∅ means no items.

Returns the smaller of a and b.

Back to table

0xA4 OP_MAX

Arithmetic and comparison · Available

a b → c Top of stack on the right. ∅ means no items.

Returns the larger of a and b.

Back to table

0xA5 OP_WITHIN

Arithmetic and comparison · Available

a min max → true | false Top of stack on the right. ∅ means no items.

Returns 1 if a is within the specified range (left-inclusive), 0 otherwise.

Back to table

0xA6 OP_RIPEMD160

Cryptography · Available

a → b Top of stack on the right. ∅ means no items.

Hashes input with RIPEMD-160.

Back to table

0xA7 OP_SHA1

Cryptography · Available

a → b Top of stack on the right. ∅ means no items.

Hashes input with SHA-1.

Back to table

0xA8 OP_SHA256

Cryptography · Available

a → b Top of stack on the right. ∅ means no items.

Hashes input with SHA-256.

Back to table

0xA9 OP_HASH160

Cryptography · Available

a → b Top of stack on the right. ∅ means no items.

Hashes input with SHA-256 and then with RIPEMD-160.

Back to table

0xAA OP_HASH256

Cryptography · Available

a → b Top of stack on the right. ∅ means no items.

Hashes input twice with SHA-256.

Back to table

0xAB OP_CODESEPARATOR

Cryptography · Available

Makes OP_CHECK(MULTI)SIG(VERIFY) use the subset of the script of everything after the most recently-executed OP_CODESEPARATOR when computing the sighash.

Back to table

0xAC OP_CHECKSIG

Cryptography · Available

sig pubkey → true | false Top of stack on the right. ∅ means no items.

The last byte (=sighash type) of the signature is removed. The sighash for this input is calculated based on the sighash type. The truncated signature used by OP_CHECKSIG must be a valid ECDSA or Schnorr signature for this hash and public key. If it is valid, 1 is returned, if it is empty, 0 is returned, otherwise the operation fails.

Back to table

0xAD OP_CHECKSIGVERIFY

Cryptography · Available

sig pubkey → nothing | fail Top of stack on the right. ∅ means no items.

Same as OP_CHECKSIG, but OP_VERIFY is executed afterward.

Back to table

0xAE OP_CHECKMULTISIG

Cryptography · Available

[dummy] [signatures] m [keys] n → true | false Top of stack on the right. ∅ means no items.

Signatures are checked against public keys. Signatures must be placed in the unlocking script using the same order as their corresponding public keys were placed in the locking script or redeem script. If all signatures are valid, 1 is returned, 0 otherwise. All elements are removed from the stack. For more information on the execution of this opcode, see Multisignature .

Back to table

0xAF OP_CHECKMULTISIGVERIFY

Cryptography · Available

[dummy] [signatures] m [keys] n → nothing | fail Top of stack on the right. ∅ means no items.

Same as OP_CHECKMULTISIG, but OP_VERIFY is executed afterward.

Back to table

0xB0 OP_NOP1

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xB1 OP_CHECKLOCKTIMEVERIFY

Timelocks · Available · Alias OP_NOP2 (historical)

a → a | fail Top of stack on the right. ∅ means no items.

Check the top stack value against the transaction locktime without consuming it. Locktime type and input sequence also participate in validation.

Back to table

0xB2 OP_CHECKSEQUENCEVERIFY

Timelocks · Available · Alias OP_NOP3 (historical)

a → a | fail Top of stack on the right. ∅ means no items.

Check the relative locktime against the current input’s sequence under BIP112. The top stack value is retained.

Back to table

0xB3 OP_NOP4

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xB4 OP_NOP5

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xB5 OP_NOP6

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xB6 OP_NOP7

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xB7 OP_NOP8

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xB8 OP_NOP9

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xB9 OP_NOP10

Reserved and unassigned · Reserved NOP

No operation under consensus rules. Standard relay policy discourages use when executed.

Back to table

0xBA OP_CHECKDATASIG

Cryptography · Available

sig msg pubkey → true | false Top of stack on the right. ∅ means no items.

Check if signature is valid for message and a public key. See spec

Back to table

0xBB OP_CHECKDATASIGVERIFY

Cryptography · Available

sig msg pubkey → nothing | fail Top of stack on the right. ∅ means no items.

Same as OP_CHECKDATASIG, but runs OP_VERIFY afterward.

Back to table

0xBC OP_REVERSEBYTES

Byte strings · Available

a → b Top of stack on the right. ∅ means no items.

Reverses the order of the bytes in byte sequence x so that the first byte is now its last byte, the second is now its second-to-last, and so forth. Enabled in HF-20200515 .

Back to table

0xBD Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xBE Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xBF Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xC0 OP_INPUTINDEX

Introspection · Available

∅ → a Top of stack on the right. ∅ means no items.

Push the index of the input being evaluated to the stack as a Script Number. Native introspection specification

Back to table

0xC1 OP_ACTIVEBYTECODE

Introspection · Available

∅ → a Top of stack on the right. ∅ means no items.

Push the current evaluation’s bytecode after its last executed OP_CODESEPARATOR. If that evaluation has executed no separator, push its entire bytecode. During OP_INVOKE, the current evaluation is the invoked function. Native introspection specification

Back to table

0xC2 OP_TXVERSION

Introspection · Available

∅ → a Top of stack on the right. ∅ means no items.

Push the version of the current transaction to the stack as a Script Number. Native introspection specification

Back to table

0xC3 OP_TXINPUTCOUNT

Introspection · Available

∅ → a Top of stack on the right. ∅ means no items.

Push the count of inputs in the current transaction to the stack as a Script Number. Native introspection specification

Back to table

0xC4 OP_TXOUTPUTCOUNT

Introspection · Available

∅ → a Top of stack on the right. ∅ means no items.

Push the count of outputs in the current transaction to the stack as a Script Number. Native introspection specification

Back to table

0xC5 OP_TXLOCKTIME

Introspection · Available

∅ → a Top of stack on the right. ∅ means no items.

Push the locktime of the current transaction to the stack as a Script Number. Native introspection specification

Back to table

0xC6 OP_UTXOVALUE

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (Script Number). Push the value (in satoshis) of the Unspent Transaction Output (UTXO) spent by that input to the stack as a Script Number. Native introspection specification

Back to table

0xC7 OP_UTXOBYTECODE

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (Script Number). Push the full locking bytecode of the Unspent Transaction Output (UTXO) spent by that input to the stack. Native introspection specification

Back to table

0xC8 OP_OUTPOINTTXHASH

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (Script Number). From that input, push the outpoint transaction hash – the hash of the transaction which created the Unspent Transaction Output (UTXO) which is being spent – to the stack in OP_HASH256 byte order. Native introspection specification

Back to table

0xC9 OP_OUTPOINTINDEX

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (Script Number). From that input, push the outpoint index – the index of the output in the transaction which created the Unspent Transaction Output (UTXO) which is being spent – to the stack as a Script Number. Native introspection specification

Back to table

0xCA OP_INPUTBYTECODE

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (Script Number). Push the unlocking bytecode of the input at that index to the stack. Native introspection specification

Back to table

0xCB OP_INPUTSEQUENCENUMBER

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (Script Number). Push the sequence number of the input at that index to the stack as a Script Number. Native introspection specification

Back to table

0xCC OP_OUTPUTVALUE

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an output index (Script Number). Push the value (in satoshis) of the output at that index to the stack as a Script Number. Native introspection specification

Back to table

0xCD OP_OUTPUTBYTECODE

Introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an output index (Script Number). Push the locking bytecode of the output at that index to the stack. Native introspection specification

Back to table

0xCE OP_UTXOTOKENCATEGORY

Token introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (VM Number). If the Unspent Transaction Output (UTXO) spent by that input includes no tokens, push a 0 (VM Number) to the stack. If the UTXO does not include a non-fungible token with a capability, push the UTXO's token category, otherwise, push the concatenation of the token category and capability, where the mutable capability is represented by 1 (VM Number) and the minting capability is represented by 2 (VM Number). CashTokens specification

Back to table

0xCF OP_UTXOTOKENCOMMITMENT

Token introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (VM Number). Push the token commitment of the Unspent Transaction Output (UTXO) spent by that input to the stack. If the UTXO does not include a non-fungible token, or if it includes a non-fungible token with a zero-length commitment, push a 0 (VM Number). CashTokens specification

Back to table

0xD0 OP_UTXOTOKENAMOUNT

Token introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an input index (VM Number). Push the fungible token amount of the Unspent Transaction Output (UTXO) spent by that input to the stack as a VM Number. If the UTXO includes no fungible tokens, push a 0 (VM Number). CashTokens specification

Back to table

0xD1 OP_OUTPUTTOKENCATEGORY

Token introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an output index (VM Number). If the output at that index includes no tokens, push a 0 (VM Number) to the stack. If the output does not include a non-fungible token with a capability, push the output's token category, otherwise, push the concatenation of the token category and capability, where the mutable capability is represented by 1 (VM Number) and the minting capability is represented by 2 (VM Number). CashTokens specification

Back to table

0xD2 OP_OUTPUTTOKENCOMMITMENT

Token introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an output index (VM Number). Push the token commitment of the output at that index to the stack. If the output does not include a non-fungible token, or if it includes a non-fungible token with a zero-length commitment, push a 0 (VM Number). CashTokens specification

Back to table

0xD3 OP_OUTPUTTOKENAMOUNT

Token introspection · Available

a → b Top of stack on the right. ∅ means no items.

Pop the top item from the stack as an output index (VM Number). Push the fungible token amount of the output at that index to the stack as a VM Number. If the output includes no fungible tokens, push a 0 (VM Number). CashTokens specification

Back to table

0xD4 OP_RESERVED3

Reserved and unassigned · Reserved

Reserved byte. Execution fails.

Back to table

0xD5 OP_RESERVED4

Reserved and unassigned · Reserved

Reserved byte. Execution fails.

Back to table

0xD6 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xD7 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xD8 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xD9 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xDA Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xDB Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xDC Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xDD Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xDE Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xDF Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE0 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE1 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE2 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE3 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE4 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE5 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE6 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE7 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE8 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xE9 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xEA Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xEB Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xEC Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xED Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xEE Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xEF SPECIAL_TOKEN_PREFIX

Reserved and unassigned · Output serialization

Signals a CashTokens prefix at the beginning of an output’s serialized byte field. Executing it as an instruction fails. CashTokens specification

Back to table

0xF0 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF1 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF2 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF3 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF4 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF5 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF6 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF7 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF8 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xF9 Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xFA Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xFB Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xFC Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xFD Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xFE Unassigned

Reserved and unassigned · Unassigned

No assigned instruction under May 2026 mainnet rules. Execution fails.

Back to table

0xFF INVALIDOPCODE

Reserved and unassigned · Invalid

Invalid opcode marker. Execution fails.

Back to table

What limits a spending script

CashVM tracks how much work it takes to verify each input. The May 2025 rules introduced operation and hashing budgets tied to the length of its unlocking bytecode. Pushing and copying bytes costs work, and hashing, signature checks, and some arithmetic carry additional costs. In May 2026, BCH added bounded loops (OP_BEGIN/OP_UNTIL) and functions (OP_DEFINE/OP_INVOKE) that run within the applicable budgets.

To find the budgets for an input, add 41 to its unlocking bytecode length. The specification calls the result the density control length. Our P2PKH input has 100 bytes of unlocking bytecode, giving 41 + 100 = 141.

LimitFormula or boundP2PKH example
Operation cost per input800 × density control length112,800 units
Hash iterations, relay policyFloor of density control length ÷ 270 iterations
Hash iterations, block consensusFloor of 7 × density control length ÷ 2493 iterations
Script and stack item lengthsUp to 10,000 bytes, with separate output standardness rules and exceptions.100-byte unlocking script and 25-byte locking script.

The table shows the limits available to this input. To measure what a contract uses, execute each relevant branch with realistic arguments and test the largest inputs your app accepts against both block and relay limits. VM Limits · Bounded Looping · Functions · Pay to Script

Sources

Byte assignments follow BCHN v29.2.0 with May 2026 rules active. Opcode descriptions and stack notation draw on Documentation.cash under CC BY 3.0 US. The hexadecimal layout is inspired by vm.cash.