Matador
API Reference

Opcode Reference

Comprehensive list of all supported opcodes by module.

Generated

This page is generated from spec/opcodes.v1.json. Do not edit by hand.

Core (ID 0)

HexNameParametersMutableDeprecated
0x00NOP-nono
0x01BALANCE_CHECKtoken:address, account:address, value:uint256, operator:uint8 (op)nono
0x02TIMESTAMP_CHECKvalue:uint256, operator:uint8 (op)nono
0x03BLOCK_NUMBER_CHECKvalue:uint256, operator:uint8 (op)nono
0x04CALLER_CHECKcaller:addressnono
0x05TARGET_CHECKtarget:addressnono
0x06VALUE_CHECKvalue:uint256, operator:uint8 (op)nono
0x07GAS_LIMIT_CHECKvalue:uint256, operator:uint8 (op)nono
0x08DATA_CHECKdata:bytes, offset:uint256, length:uint256nono
0x0bNONCE_CHECKnonce:uint256, operator:uint8 (op)nono
0x0cCHAIN_ID_CHECKchainId:uint256nono
0x0dCONTRACT_EXISTScontractAddress:addressnono
0x0fBALANCE_NATIVE_CHECKaccount:address, value:uint256, operator:uint8 (op)nono
0x10ALLOWANCE_CHECKtoken:address, owner:address, spender:address, value:uint256, operator:uint8 (op)nono
0x11NFT_OWNERSHIP_CHECKnftContract:address, tokenId:uint256, owner:addressnono
0x12MULTI_CHECK_AND-nono
0x13MULTI_CHECK_OR-nono
0x14END_MULTI_CHECK-nono
0x15CUSTOM_CHECKvalidatorContract:address, data:bytesnono
0x17RATE_LIMIT_CHECKwindow:uint256, maxCount:uint256, key:bytes32yesno
0x19ADDRESS_WHITELISTwhitelist:address[], toCheck:addressnono
0x1aADDRESS_BLACKLISTblacklist:address[], toCheck:addressnono
0x1cSTATE_VARIABLE_CHECKcontractAddress:address, selector:bytes4, value:bytes32, operator:uint8 (op)nono
0x1eGAS_PRICE_CHECKgasPrice:uint256, operator:uint8 (op)nono
0x1fORIGIN_CHECKorigin:addressnono
0x2eBASEFEE_CHECKbaseFee:uint256, operator:uint8 (op)nono
0x31PREVRANDAO_CHECKprevRandao:uint256, operator:uint8 (op)nono
0x40CUSTOM_DATA_CHECKvalidatorContract:addressnono
0x41CALLDATA_VALUE_CHECKoffset:uint256, expected:uint256, operator:uint8 (op)nono
0x42CALLDATA_POINTER_RESOLVEpointerOffset:uint256nono
0x43CALLDATA_BYTES_CHECKoffset:uint256, expected:bytes, operator:uint8 (op)nono
0x44PERSIST_MERKLE_MEMBERSHIProotKey:bytes32, leaf:bytes32, proof:bytesnono
0x45PERSIST_MERKLE_MEMBERSHIP_CTXrootKey:bytes32, leaf:bytes32, proofOffset:uint256nono
0x46CALLDATA_SLICE_KECCAK256_EQoffset:uint256, expectedHash:bytes32, maxLen:uint256, operator:uint8 (op)nono
0x47MULTI_CHECK_NOT-nono
0x80PUSHvalue:uint256nono
0x81ADD-nono
0x82SUB-nono
0x83MUL-nono
0x84DIV-nono
0x85MOD-nono
0x86EQ-nono
0x87LT-nono
0x88GT-nono
0x89NOT-nono
0x8aJUMP_IF_FALSEoffset:uint16nono
0x8bJUMPoffset:uint16nono
0x8cASSERT-nono
0x90STORE_REGreg:uint8nono
0x91LOAD_REGreg:uint8nono
0x92TSTORE-yesno
0x93TLOAD-nono
0x94TX_SESSION_SAVEslot:uint256yesno
0x95DEPTH_INCREMENT-yesno
0x96DEPTH_CHECK-nono
0x97ACCUMULATE_VALUE-yesno
0x98ACCUMULATE-yesno
0x99TX_SESSION_VALIDATEslot:uint256yesno
0x9aTX_SESSION_SKIP_IF_CACHEDslot:uint256, skip:uint256yesno
0x9bSET_VARslot:uint256yesno
0x9cGET_VARslot:uint256nono
0x9dPERSIST_LOADslot:uint256nono
0x9ePERSIST_STOREslot:uint256yesno
0xa0PERSIST_RATE_LIMIT_CONSUMEkey:bytes32, windowSeconds:uint256, maxCount:uint256yesno
0xa1PERSIST_ACCUM_ADD_LTEkey:bytes32, delta:uint256, limit:uint256yesno
0xa2PERSIST_SET_BYTES32_ONCEkey:bytes32, value:bytes32yesno
0xa3PERSIST_COMMITMENT_LOADpolicyNamespace:bytes32, scopeType:uint256, scopeValue:bytes32, rootKey:bytes32nono
0xa4PERSIST_COMMITMENT_SET_BYTES32_ONCEpolicyNamespace:bytes32, scopeType:uint256, scopeValue:bytes32, rootKey:bytes32, value:bytes32yesno
0xa5CALL_FNfunctionId:uint16nono
0xa6RETURN-nono
0xa7CALLDATA_SELECTOR_EQselector:bytes4nono
0xa8EXEC_TARGET-nono
0xa9CALLDATA_STATIC_FIELDselector:bytes4, offset:uint16, abiType:uint16nono
0xaaEXEC_ACCOUNT-nono
0xabEXEC_VALUE-nono
0xacSTATICCALL_WORDselector:bytes4, gasLimit:uint32, returnType:uint8, argCount:uint8, argTypes:uint32, returnWordIndex:uint8nono
0xadEXEC_SELECTOR-nono
0xaePERSIST_LOAD_DECLdeclIndex:uint16nono
0xafPERSIST_STORE_DECLdeclIndex:uint16yesno
0xb0TRANSIENT_LOAD_DECLdeclIndex:uint16nono
0xb1TRANSIENT_STORE_DECLdeclIndex:uint16yesno
0xb2EXEC_PHASE-nono
0xb3EXEC_AUTHORIZER_COUNT-nono
0xb4EXEC_AUTHORIZED_BY-nono

Delegation (ID 1)

HexNameParametersMutableDeprecated
0x0aDELEGATE_CHECKdelegate:addressnono
0x16SIGNATURE_CHECKmessageHash:bytes32, signature:bytes, signer:addressnono
0x18VALUE_RANGE_CHECKmin:uint256, max:uint256, value:uint256nono
0x1dOPERATION_COUNT_CHECKmaxOperations:uint256, sessionKey:bytes32nono

Storage (ID 2)

HexNameParametersMutableDeprecated
0x09STORAGE_CHECKslot:bytes32, value:bytes32, operator:uint8 (op)noyes
0x1bEVENT_EMITTED_CHECKeventSignature:bytes32, data:bytesnono
0x26SSTORE_CHECKallowed:boolnono
0x27SLOAD_CHECKallowed:boolnono
0x28LOG_CHECKallowed:boolnono
0x36WARM_STORAGE_CHECKcontractAddress:address, slot:bytes32nono
0x37TRANSIENT_STORAGE_CHECKcontractAddress:address, slot:bytes32, value:bytes32, operator:uint8 (op)nono

Execution (ID 3)

HexNameParametersMutableDeprecated
0x20CALL_DEPTH_CHECKdepth:uint256, operator:uint8 (op)nono
0x21SELFDESTRUCT_CHECK-nono
0x22CREATE_CHECKallowed:boolnono
0x23STATICCALL_CHECK-nono
0x24DELEGATECALL_CHECKallowed:boolnono
0x25CALLCODE_CHECKallowed:boolnono

Code (ID 4)

HexNameParametersMutableDeprecated
0x0eCODE_HASH_CHECKcontractAddress:address, codeHash:bytes32nono
0x29EXTCODEHASH_CHECKcontractAddress:address, codeHash:bytes32nono
0x2aBLOCKHASH_CHECKblockNumber:uint256, blockHash:bytes32nono

Consensus (ID 5)

HexNameParametersMutableDeprecated
0x2bCOINBASE_CHECKcoinbase:addressnono
0x2cDIFFICULTY_CHECKvalue:uint256, operator:uint8 (op)nono
0x2dGASLIMIT_CHECKgasLimit:uint256, operator:uint8 (op)nono
0x2fSELFBALANCE_CHECKvalue:uint256, operator:uint8 (op)nono
0x30CHAINWORK_CHECKchainWork:uint256, operator:uint8 (op)nono
0x3fRANDOM_CHECKrandomValue:uint256, operator:uint8 (op)nono

Blob (ID 6)

HexNameParametersMutableDeprecated
0x32BLOBBASEFEE_CHECKblobBaseFee:uint256, operator:uint8 (op)nono
0x33BLOBHASH_CHECKindex:uint256, blobHash:bytes32nono
0x34TX_TYPE_CHECKtxType:uint8nono
0x35ACCESS_LIST_CHECKaccount:addressnono
0x38BEACON_ROOT_CHECKbeaconRoot:bytes32nono
0x39WITHDRAWAL_ROOT_CHECKwithdrawalRoot:bytes32nono
0x3aEXCESS_BLOB_GAS_CHECKexcessBlobGas:uint256, operator:uint8 (op)nono
0x3bBLOB_GAS_PRICE_CHECKblobGasPrice:uint256, operator:uint8 (op)nono
0x3cPARENT_BEACON_BLOCK_ROOT_CHECKparentBeaconBlockRoot:bytes32nono
0x3dEXECUTION_PAYLOAD_CHECKpayloadHash:bytes32nono
0x3ePROPOSER_INDEX_CHECKproposerIndex:uint64nono

On this page