Parameters
- transaction_hashstringREQUIRED
The hash of the requested transaction
Returns
- resultobject
The transaction's trace, which can be one of the following objects
- INVOKE_TXN_TRACEobject
The execution trace of an invoke transaction, which contains the following fields
- validate_invocationobject
(Optional) The trace of the validate call, omitted when SKIP_VALIDATE is set
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- execute_invocationobject
The trace of the execute call. If the transaction reverted, this is an object with a single 'revert_reason' field instead
- revert_reasonstring
The revert reason, returned in place of the invocation fields when the execution reverted
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- fee_transfer_invocationobject
(Optional) The trace of the fee transfer, omitted when SKIP_FEE_CHARGE is set
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- execution_resourcesobject
The resources consumed by the transaction, including from L1 handler and validation
- l1_gasinteger
The L1 gas consumed by the transaction
- l1_data_gasinteger
The L1 data gas consumed by the transaction
- l2_gasinteger
The L2 gas consumed by the transaction
- state_diffobject
The state diff produced by the transaction, which contains the following fields
- declared_classesarray
The declared class hash and compiled class hash
- class_hashstring
The hash of the declared class
- compiled_class_hashstring
The Cairo assembly hash corresponding to the declared class
- deployed_contractsarray
The contracts deployed as part of the state update
- addressstring
The address of the contract
- class_hashstring
The hash of the contract code
- deprecated_declared_classesarray
The hashes of the declared deprecated (Cairo 0) classes
- noncesarray
The updated nonce per contract address
- contract_addressstring
The address of the contract
- noncestring
The nonce for the given address at the end of the block
- replaced_classesarray
The list of contracts whose class was replaced
- class_hashstring
The new class hash
- contract_addressstring
The address of the contract whose class was replaced
- storage_diffsarray
The storage updates per contract address
- addressstring
The address of the contract whose storage was updated
- storage_entriesarray
The changed storage entries, each with a 'key' and a 'value'
- typestring
The type of the traced transaction. It can take only one value - 'INVOKE'
- DECLARE_TXN_TRACEobject
The execution trace of a declare transaction, which contains the following fields
- validate_invocationobject
(Optional) The trace of the validate call, omitted when SKIP_VALIDATE is set
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- fee_transfer_invocationobject
(Optional) The trace of the fee transfer, omitted when SKIP_FEE_CHARGE is set
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- execution_resourcesobject
The resources consumed by the transaction, including from L1 handler and validation
- l1_gasinteger
The L1 gas consumed by the transaction
- l1_data_gasinteger
The L1 data gas consumed by the transaction
- l2_gasinteger
The L2 gas consumed by the transaction
- state_diffobject
The state diff produced by the transaction, which contains the following fields
- declared_classesarray
The declared class hash and compiled class hash
- class_hashstring
The hash of the declared class
- compiled_class_hashstring
The Cairo assembly hash corresponding to the declared class
- deployed_contractsarray
The contracts deployed as part of the state update
- addressstring
The address of the contract
- class_hashstring
The hash of the contract code
- deprecated_declared_classesarray
The hashes of the declared deprecated (Cairo 0) classes
- noncesarray
The updated nonce per contract address
- contract_addressstring
The address of the contract
- noncestring
The nonce for the given address at the end of the block
- replaced_classesarray
The list of contracts whose class was replaced
- class_hashstring
The new class hash
- contract_addressstring
The address of the contract whose class was replaced
- storage_diffsarray
The storage updates per contract address
- addressstring
The address of the contract whose storage was updated
- storage_entriesarray
The changed storage entries, each with a 'key' and a 'value'
- typestring
The type of the traced transaction. It can take only one value - 'DECLARE'
- DEPLOY_ACCOUNT_TXN_TRACEobject
The execution trace of a deploy account transaction, which contains the following fields
- validate_invocationobject
(Optional) The trace of the validate call, omitted when SKIP_VALIDATE is set
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- constructor_invocationobject
The trace of the constructor call
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- fee_transfer_invocationobject
(Optional) The trace of the fee transfer, omitted when SKIP_FEE_CHARGE is set
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- execution_resourcesobject
The resources consumed by the transaction, including from L1 handler and validation
- l1_gasinteger
The L1 gas consumed by the transaction
- l1_data_gasinteger
The L1 data gas consumed by the transaction
- l2_gasinteger
The L2 gas consumed by the transaction
- state_diffobject
The state diff produced by the transaction, which contains the following fields
- declared_classesarray
The declared class hash and compiled class hash
- class_hashstring
The hash of the declared class
- compiled_class_hashstring
The Cairo assembly hash corresponding to the declared class
- deployed_contractsarray
The contracts deployed as part of the state update
- addressstring
The address of the contract
- class_hashstring
The hash of the contract code
- deprecated_declared_classesarray
The hashes of the declared deprecated (Cairo 0) classes
- noncesarray
The updated nonce per contract address
- contract_addressstring
The address of the contract
- noncestring
The nonce for the given address at the end of the block
- replaced_classesarray
The list of contracts whose class was replaced
- class_hashstring
The new class hash
- contract_addressstring
The address of the contract whose class was replaced
- storage_diffsarray
The storage updates per contract address
- addressstring
The address of the contract whose storage was updated
- storage_entriesarray
The changed storage entries, each with a 'key' and a 'value'
- typestring
The type of the traced transaction. It can take only one value - 'DEPLOY_ACCOUNT'
- L1_HANDLER_TXN_TRACEobject
The execution trace of an L1 handler transaction, which contains the following fields
- function_invocationobject
The trace of the L1 handler call. If the transaction reverted, this is an object with a single 'revert_reason' field instead
- call_typestring
The type of call. Possible values include - 'LIBRARY_CALL', 'CALL', 'DELEGATE'
- calldataarray
The arguments passed to the function
- caller_addressstring
The address of the invoking contract. 0 for the root invocation
- callsarray
The calls made by this invocation, each with the same fields as this object
- class_hashstring
The hash of the class being called
- contract_addressstring
The address of the contract
- entry_point_selectorstring
The entry point selector
- entry_point_typestring
The type of entry point. Possible values include - 'EXTERNAL', 'L1_HANDLER', 'CONSTRUCTOR'
- eventsarray
The events emitted in this invocation
- orderinteger
The order of the event within the transaction
- keysarray
The keys associated with the event
- dataarray
The data associated with the event
- execution_resourcesobject
The computational resources consumed by the call
- l1_gasinteger
The L1 gas consumed by the call
- l2_gasinteger
The L2 gas consumed by the call
- is_revertedboolean
Whether the invocation reverted
- messagesarray
The messages sent by this invocation to L1
- orderinteger
The order of the message within the transaction
- payloadarray
The payload of the message
- to_addressstring
The target L1 address the message is sent to
- resultarray
The value returned from the function invocation
- execution_resourcesobject
The resources consumed by the transaction, including from L1 handler and validation
- l1_gasinteger
The L1 gas consumed by the transaction
- l1_data_gasinteger
The L1 data gas consumed by the transaction
- l2_gasinteger
The L2 gas consumed by the transaction
- state_diffobject
The state diff produced by the transaction, which contains the following fields
- declared_classesarray
The declared class hash and compiled class hash
- class_hashstring
The hash of the declared class
- compiled_class_hashstring
The Cairo assembly hash corresponding to the declared class
- deployed_contractsarray
The contracts deployed as part of the state update
- addressstring
The address of the contract
- class_hashstring
The hash of the contract code
- deprecated_declared_classesarray
The hashes of the declared deprecated (Cairo 0) classes
- noncesarray
The updated nonce per contract address
- contract_addressstring
The address of the contract
- noncestring
The nonce for the given address at the end of the block
- replaced_classesarray
The list of contracts whose class was replaced
- class_hashstring
The new class hash
- contract_addressstring
The address of the contract whose class was replaced
- storage_diffsarray
The storage updates per contract address
- addressstring
The address of the contract whose storage was updated
- storage_entriesarray
The changed storage entries, each with a 'key' and a 'value'
- typestring
The type of the traced transaction. It can take only one value - 'L1_HANDLER'