Starknet Data

DATA_TYPE_TRACE

FieldTypeDescription
contract_addressstringThe address of the contract being called.
entry_point_selectorstringThe selector of the entry point in the contract (function signature).
calldatastring[]An array of input data for the contract call.
caller_addressstringThe address of the caller.
class_hashstringThe hash of the contract's bytecode.
entry_point_typestringThe type of entry point (EXTERNAL, L1_HANDLER, CONSTRUCTOR).
call_typestringThe type of the contract call (CALL, LIBRARY_CALL).
resultstring[]An array representing the result of the call.
callsobject[]An array of calls made by the contract.
eventsevent[] (see DATA_TYPE_LOG)An array of events emitted by the contract.

DATA_TYPE_LOG

FieldTypeDescription
from_addressstringThe address of the contract that emitted the event.
keysstring[]Event keys (indexed by the chain).
datastring[]Event data.
block_numbernumberNumber of block the event occurred in.
block_hashstringHash of block event occurred in.
transaction_hashstringHash of transaction event occurred in.

DATA_TYPE_BLOCK

FieldTypeDescription
parent_hashstringThe parent hash of the CVM header.
sequencer_addressstringThe address of the sequencer associated with the header.
timestampnumberThe timestamp of the CVM header.
block_numbernumberThe block number, only present for accepted blocks.
new_rootstringThe new root, only present for accepted blocks.
statusstringThe status of the block (PENDING, ACCEPTED_ON_L2, ACCEPTED_ON_L1, REJECTED).
statusstringThe block hash, only present for accepted blocks.