The custom RPC methods appear in the
tenderly_ namespace.tenderly_traceTransaction
Replays transaction on the blockchain and provides information about the execution, such as status, logs, internal transactions, etc.
Params
- Transaction hash
STRING32 byte hex value
- example.json
- example
- example.js
- example.json
example.json
Result
Trace transactions resultOBJECT
- status
NUMBER:either1(success) or0(failure) - gasUsed
NUMBER: The amount of gas used by this specific transaction alone - cumulativeGasUsed
NUMBER: the total amount of gas used when this transaction was executed in the block - blockNumber
NUMBER: the block number in which this transaction was simulated - type
NUMBER: transaction type,0x00for legacy transactions,0x01for access list types,0x02for dynamic fees - logsBloom
STRING: bloom filter for light clients to quickly retrieve related logs - logs: an array of emitted events
ARRAYofOBJECT- name
STRING: event name - anonymous
BOOLEAN: indicates if event is anonymous - inputs: array of decoded log arguments
ARRAYof decoded logsOBJECT- name
STRING: event argument name - type
STRING: event argument type from Solidity type system - value (optional)
STRINGstring representation value of the argument; interpret according to thetypefield
- name
- raw
OBJECT: raw logs- address
STRINGhex encoded address: address of the contract emitting the log - topics
ARRAYofSTRING32 hex encoded bytes - data
STRINGhex encoded string representing event data
- address
- name
- trace: Trace
ARRAYofOBJECT- type
STRINGtype: trace item type - eitherCALL|CALLCODE|STATICCALL|DELEGATECALL|CREATE|CREATE2|SELFDESTRUCT - from
STRING: hex encoded address - to
STRING: hex encoded address - gas
STRING: hex encoded unsigned 64 byte integer representing event gas - gasUsed
STRING: hex encoded unsigned 64 byte integer representing event gasUsed - value
STRING: hex encoded unsigned 64 byte integer representing event value in wei - error
STRING: low-level error from virtual machine - errorReason
STRING: extracted error reason in case of revert - input
STRING: hex encoded string representation of raw input bytes for the trace point - method
STRING: invoked contract method - decodedInput : decoded input for the invoked method -
ARRAYof decoded in argumentOBJECT- value
STRING: string representation value of the argument; interpret according to thetypefield. - type
STRING: the Solidity type of this argument - name
STRING: the name of this argument
- value
- output
STRING: raw trace output - decodedOutput : decoded output of the invoked method -
ARRAYof decoded out argumentOBJECT- value
STRING: string representation value of the argument; interpret according to thetypefield. - type
STRING: the Solidity type of this argument - name
STRING: the name of this argument
- value
- subtraces
NUMBER: number of child traces - traceAddress : trace position
ARRAYofNUMBER
- type
assetChangesARRAY:typeSTRINGtype of asset change, can be transfer, mint, burnfromSTRING: address of the sender (empty for mint transfers)toSTRING: address of the receiver (empty for burn transfers)amountSTRING: the amount of the token that was transferredrawAmountSTRING: raw amount transfer for the tokendollarValueSTRING: dollar value of the transferred tokenassetInfoOBJECT: asset informationstandardSTRING: supported token standards: ERC20, ERC721, NativeCurrencytypeSTRING: the token type: Native, Fungible, Non-FungiblecontractAddressSTRING: address of the contractsymbolSTRING: token symbolnameSTRING: token namelogoSTRING: URL for the token icondecimalsNUMBER: number of decimals in the tokendollarValueSTRING: dollar value of a single token
balanceChangesARRAY: an array of balance changes - cumulated asset changesaddressSTRINGaddressdollarValueSTRING: dollar value of cumulated asset changestransfersARRAY: array of asset changes indexes