This object contains the raw occurrence that matched your trigger. There are many different types of data objects and the dataType field inside the context object tells you the specific type you are currently working with.
DATA_TYPE_TRACE
This is the object that is returned from the node in response to a debug_traceTransaction rpc call with a callTracer tracer.
Field
Type
Description
type
string
The type of the trace. Can be one of CALL, STATICCALL, DELEGATECALL, CALLCODE, CREATE, CREATE2, SUICIDE, SELFDESTRUCT, REWARD, REVERT.
error
string
The error message if the transaction failed.
from
string
The address of the sender.
to
string
The address of the receiver.
value
string
The Wei value passed from the sender. The receiver can accept these funds or partially refund them.
gas
string
The amount of gas that was available for the transaction.
gasUsed
string
The amount of gas that was used by the transaction.
input
string
The input data of the transaction. This usually begins with a 4 byte function signature, followed by the function's abi encoded arguments.
output
string
The output data of the transaction.
time
string
The time the transaction took to execute.
calls
array
An array of internal transactions.
DATA_TYPE_STORAGE_ACCESS
Field
Type
Description
accessedSlot
string
The accessed slot.
initialValue
string
The value in the slot before this operation.
finalValue
string
The value in the slot after this operation.
storageAddress
string
The address of the contract whose storage is being changes.
logicAddress
string
The address of the contract that contains the code that is being executed (relevant for proxies).
innerPath
string
The inner path.
type
string
The type of access. One of: elementary, mapping, dynamic_array, raw.
baseSlot
string
The base slot value (if applicable).
keys
string list
List of mapping keys.
indexes
string list
List of array indexes.
DATA_TYPE_CONTRACT
This is the bytecode of a contract. It is a string that starts with 0x.
Field
Type
Description
creator
string
The address of the creator of the contract.
address
string
The address of the newly deployed contract.
bytecode
string
The bytecode of the newly created contract.
DATA_TYPE_LOG
This is the standard event/log object (as returned from eth_getLogs):
Field
Type
Description
address
string
The address of the contract that emitted the event.
topics
array
An array of the topics of the event.
data
string
The data of the event.
blockNumber
string
The block number the event was emitted in.
transactionHash
string
The hash of the transaction that emitted the event.
transactionIndex
string
The index of the transaction in the block.
blockHash
string
The hash of the block the event was emitted in.
logIndex
string
The index of the event in the block.
removed
boolean
Whether the event was removed.
DATA_TYPE_BLOCK
This is the standard block object (as returned from eth_getBlockByNumber or eth_getBlockByHash):
Field
Type
Description
header
object
The header of the block.
transactions
array
An array of the transactions in the block.
Block Header Object
Field
Type
Description
parentHash
string
The hash of the parent block.
sha3Uncles
string
The hash of the uncles of the block.
miner
string
The address of the miner.
stateRoot
string
The state root of the block.
transactionsRoot
string
The transactions root of the block.
receiptsRoot
string
The receipts root of the block.
logsBloom
string
The logs bloom of the block.
difficulty
string
The difficulty of the block.
number
string
The block number.
gasLimit
string
The gas limit of the block.
gasUsed
string
The gas used by the block.
timestamp
string
The epoch timestamp of the block.
extraData
string
The extra data of the block.
mixHash
string
The mix hash of the block.
nonce
string
The nonce of the block.
baseFeePerGas
string
The base fee per gas of the block.
hash
string
The hash of the block.
Transaction Object
Field
Type
Description
type
string
The type of the transaction. Can be one of 0x0 (EIP-1559), 0x1 (EIP-2930), 0x2 (Legacy).