post deprecatedhttps://ethereum-mainnet-archive.allthatnode.com/
Traces a call to eth_sendRawTransaction without making the call, returning the traces
Deprecated Method
trace_rawTransaction
is no longer available on the node client level. We will update this document once the client support the method again.
Parameters
- Data - Raw transaction data.
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_rawTransaction",
"params": [
"0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
["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": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000184461692f696e73756666696369656e742d62616c616e63650000000000000000",
"stateDiff": null,
"trace": [
{
"action": {
"from": "0xb54f8f44e8f2e6890c3463fe55e754cd8ffc0726",
"callType": "call",
"gas": "0xd060",
"input": "0xa9059cbb000000000000000000000000f3c50ffe518859370f16019682273e8d6cf301f50000000000000000000000000000000000000000000007313f1019b7ae940000",
"to": "0x6b175474e89094c44da98b954eedeac495271d0f",
"value": "0x0"
},
"error": "Reverted",
"result": {
"gasUsed": "0xa4f",
"output": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000184461692f696e73756666696369656e742d62616c616e63650000000000000000"
},
"subtraces": 0,
"traceAddress": [],
"type": "call"
}
],
"vmTrace": null
}
}