post https://ethereum-mainnet-archive.allthatnode.com/
Traces a call to eth_sendRawTransaction without making the call, returning the traces
Note for trace_ methods
- trace_ namespace methods are only available on paid plans.
- developer plan, team plan, enterprise plan, custom plans. dedicated nodes
- trace_ namespace methods are only available on erigon client.
Parameters
transactionHash
- the transaction hash of the transaction that needs to be traced.array
- Type of trace, one or more of:"trace"
- To get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcells."stateDiff"
- To get the basic trace of the given transaction."vmTrace"
- To get information on altered Ethereum state due to execution of the given transaction.
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "trace_replayTransaction",
"params": [
"0xa310ce8dc2288d000bd3043a861a822b47894d1730cf0f9b75ad8cc34a7107be",
["trace"]
]
}'
Returns
output
- The data which is returned as an output encoded in hexadecimal formatstateDiff
- It returns the information on altered Ethereum state due to execution of the given transactionblock trace
: A list of calls to other contracts containing one object per call, in transaction execution order.action
- The ParityTrace object, which has the following fields:from
- The address of the sendercallType
- The type of method such as call, delegatecallgas
- The gas provided by the sender, encoded as hexadecimalinput
- The data sent along with the transactionto
- The address of the receivervalue
- The integer of the value sent with this transaction, encoded as hexadecimal
blockHash
- The hash of the block where this transaction was inblockNumber
- An integer value representing the block number where this transaction was inerror
- The error message, if anyresult
- The ParityTraceResult object which has the following fields:gasUsed
- The amount of gas used by this specific transaction aloneoutput
- The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes
subtraces
- The traces of contract calls made by the transactiontraceAddress
- The list of addresses where the call executed, the address of the parents and the order of the current sub calltype
- The value of the method such as call or create
vmTrace
- It is used to get a full trace of the virtual machine's state during the execution of the given transaction, including for any sub-calls
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"output": "0x",
"stateDiff": null,
"trace": [
{
"action": {
"from": "0x42b4d2b675c0553b7fac27b32dc45c53fec1ed63",
"callType": "call",
"gas": "0xb9c3",
"input": "0xa9059cbb00000000000000000000000051d5d0139e10a28bd820731cec2842e99331eeed00000000000000000000000000000000000000000000000000000000026a2dcc",
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"value": "0x0"
},
"result": {
"gasUsed": "0x5fb5",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"type": "call"
}
],
"vmTrace": null
}
}