post https://ethereum-mainnet-archive.allthatnode.com/
Returns traces created at given block.
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
hash
|quantity
|tag
- block hash, or hex encoded integer block number, or the string "latest", "earliest" or "pending", see the default block parameter.
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "trace_block",
"params": [
"0x10F5EE1"
]
}'
Returns
- An
array
ofblock trace
s: 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 alone
- output - 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 calltransactionHash
- The hash of the transactiontransactionPosition
- The transaction positiontype
- The value of the method such as call or create
{
"jsonrpc": "2.0",
"id": 1,
{
"action": {
"from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"callType": "call",
"gas": "0x8fc",
"input": "0x",
"to": "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
"value": "0x494654067e10000"
},
"blockHash": "0xd06a2bde5c94c5f83d4e2b55e5f8ea0694f85366053567ca679ac2678744161a",
"blockNumber": 17784545,
"result": {
"gasUsed": "0x50",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [
6,
0
],
"transactionHash": "0x0d1f01b57e151f3013dab1a14e234065b7bd61116d113e4d70f0eb0249143622",
"transactionPosition": 145,
"type": "call"
},
{
"action": {
"from": "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
"callType": "call",
"gas": "0x9f0e",
"input": "0x",
"to": "0xf8d3ade1a406e6ca81836427dd715d3f70815cfd",
"value": "0x494654067e10000"
},
"blockHash": "0xd06a2bde5c94c5f83d4e2b55e5f8ea0694f85366053567ca679ac2678744161a",
"blockNumber": 17784545,
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [
7
],
"transactionHash": "0x0d1f01b57e151f3013dab1a14e234065b7bd61116d113e4d70f0eb0249143622",
"transactionPosition": 145,
"type": "call"
},
{
"action": {
"from": "0xbb7b633a90d271352dfc530a74e3f9c54e5001e9",
"callType": "call",
"gas": "0x0",
"input": "0x",
"to": "0xc014a48f5a09bed90d63c09fc600e0a6e19c2c40",
"value": "0xdf199755788878"
},
"blockHash": "0xd06a2bde5c94c5f83d4e2b55e5f8ea0694f85366053567ca679ac2678744161a",
"blockNumber": 17784545,
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0x34b227c19ef737bc23449c063cb086be60b3270c30eccd753352cd7b6439743a",
"transactionPosition": 146,
"type": "call"
},
{
"action": {
"from": "0x3ff7b34379d379ca98a1ba3cd83a539d0e938196",
"callType": "call",
"gas": "0x9615",
"input": "0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c710000000000000000000000000000000000000000000000000000000000000001",
"to": "0x2a6f79378ee5ddf8d57c146d59a4d5192427f7a6",
"value": "0x0"
},
"blockHash": "0xd06a2bde5c94c5f83d4e2b55e5f8ea0694f85366053567ca679ac2678744161a",
"blockNumber": 17784545,
"result": {
"gasUsed": "0x1258",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0xf50c301317190021015bddc412e2290461325a389f7637f8e16a76e04d42d1f9",
"transactionPosition": 147,
"type": "call"
}
}