Parameters
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
The tracer object with the following fields:
The type of tracer. It could be callTracer or prestateTracer
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
The prestateTracer replays the transaction and tracks every part of state that occured during the transaction
The object to specify the configurations of the tracer
When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame
Returns
The type of the call
The address the transaction is sent from
The address the transaction is directed to
The integer of the value sent with this transaction
The integer of the gas provided for the transaction execution
The integer of the gas used
The data given at the time of input
The data which is returned as an output
A list of sub-calls
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"type": "CALL",7"from": "0x3b5b09d988ba5be25d130a6959a7e4dc5cad4578",8"to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",9"value": "0x2386f26fc10000",10"gas": "0x55730",11"gasUsed": "0x3d227",12"input": "0x7ff36ab5000000000000000000000000000000000000000000000000000b8d442e2d8b000000000000000000000000000003b5b09d988ba5be25d130a6959a7e4dc5cad45780000000000000000000000000000000000000000000000000000000064a571e9",13"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000002e90edd00000",14"calls": [15{16"type": "CALL",17"from": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",18"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",19"value": "0x2386f26fc10000",20"gas": "0x12e04",21"gasUsed": "0x8fc",22"input": "0xd0e30db0",23"output": "0x",24"calls": []25},26{27"type": "CALL",28"from": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",29"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",30"value": "0x0",31"gas": "0x11b36",32"gasUsed": "0x2c33",33"input": "0xa9059cbb0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000000000000000000000000000000002386f26fc10000",34"output": "0x0000000000000000000000000000000000000000000000000000000000000001",35"calls": []36}37]38},39{40"type": "CALL",41"from": "0xf04a5cc80b1e94c69b48f5ee68a08cd2f09a7c3e",42"to": "0x881d40237659c251811cec9c364ef91dc08d300c",43"value": "0x0",44"gas": "0x29dbb",45"gasUsed": "0x16e0a",46"input": "0x38ed1739000000000000000000000000000000000000000000000000000429d069189e00000000000000000000000000000000000000000000000000029e8d66e8203c2e0000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f04a5cc80b1e94c69b48f5ee68a08cd2f09a7c3e0000000000000000000000000000000000000000000000000000000064a571f40000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef",47"output": "0x0000000000000000000000000000000000000000000000000029e8d66e8203c2e",48"calls": []49}50]51}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"type": "CALL",7"from": "0x3b5b09d988ba5be25d130a6959a7e4dc5cad4578",8"to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",9"value": "0x2386f26fc10000",10"gas": "0x55730",11"gasUsed": "0x3d227",12"input": "0x7ff36ab5000000000000000000000000000000000000000000000000000b8d442e2d8b000000000000000000000000000003b5b09d988ba5be25d130a6959a7e4dc5cad45780000000000000000000000000000000000000000000000000000000064a571e9",13"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000002e90edd00000",14"calls": [15{16"type": "CALL",17"from": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",18"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",19"value": "0x2386f26fc10000",20"gas": "0x12e04",21"gasUsed": "0x8fc",22"input": "0xd0e30db0",23"output": "0x",24"calls": []25},26{27"type": "CALL",28"from": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",29"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",30"value": "0x0",31"gas": "0x11b36",32"gasUsed": "0x2c33",33"input": "0xa9059cbb0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000000000000000000000000000000002386f26fc10000",34"output": "0x0000000000000000000000000000000000000000000000000000000000000001",35"calls": []36}37]38},39{40"type": "CALL",41"from": "0xf04a5cc80b1e94c69b48f5ee68a08cd2f09a7c3e",42"to": "0x881d40237659c251811cec9c364ef91dc08d300c",43"value": "0x0",44"gas": "0x29dbb",45"gasUsed": "0x16e0a",46"input": "0x38ed1739000000000000000000000000000000000000000000000000000429d069189e00000000000000000000000000000000000000000000000000029e8d66e8203c2e0000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f04a5cc80b1e94c69b48f5ee68a08cd2f09a7c3e0000000000000000000000000000000000000000000000000000000064a571f40000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef",47"output": "0x0000000000000000000000000000000000000000000000000029e8d66e8203c2e",48"calls": []49}50]51}