Parameters
- blockNumberstringREQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include 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
Returns
- resultarray
The block traces, where each trace object contains the following fields (all values are hexadecimal unless otherwise noted):
- actionobject
The action object that describes the call context
- fromstring
The address of the sender
- callTypestring
The type of call (e.g., call, delegatecall, staticcall, etc.)
- gasstring
The gas provided for the call
- inputstring
The input data sent with the call
- tostring
The address of the recipient
- valuestring
The amount of wei sent with the call
- blockHashstring
The hash of the block containing the traced transaction
- blockNumberinteger
The block number of the traced transaction
- errorstring
(Optional) Error message if the call failed
- resultobject
The result of the traced call execution
- gasUsedstring
The gas used by this specific call
- outputstring
The return value from the call, or empty if no RETURN was executed
- subtracesinteger
The number of internal subtraces that occurred
- traceAddressarray
The call hierarchy represented as an array of integers
- transactionHashstring
The hash of the transaction that generated this trace
- transactionPositioninteger
The index of the transaction in the block
- typestring
The type of trace (e.g., call, create)
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"action": {7"callType": "call",8"from": "0x07ce66c58b4b266096e16406ad2168d950bb0c45",9"to": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",10"value": "0x0",11"gas": "0x37585c",12"input": "0x00000000000344df454639134c260c0c49f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b9100a486775003cafd839688f44ef9cad21b500e2250c72eee6f7260d152628daba372434f7543cd1952401131f5ae1cbfefe8efbdf93da23fa4d39f14a817c25f56aa4abed7073e746aeb2cf0030d6982d0bf801e0000000000000002f"13},14"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",15"blockNumber": 9009586,16"result": {17"gasUsed": "0xb4798",18"output": "0x"19},20"subtraces": 4,21"traceAddress": [],22"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",23"transactionPosition": 0,24"type": "call"25},26{27"action": {28"callType": "staticcall",29"from": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",30"to": "0xec462cbffa8f385e6af8da003755b71e51451934",31"value": "0x0",32"gas": "0x36525d",33"input": "0xfba21b3d0000000000000000000000009f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000344df454639134c26"34},35"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",36"blockNumber": 9009586,37"result": {38"gasUsed": "0x6586",39"output": "0x000000000000000000000000000000000000000000000000000000000319de5f"40},41"subtraces": 5,42"traceAddress": [43044],45"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",46"transactionPosition": 0,47"type": "call"48},49{50"action": {51"callType": "staticcall",52"from": "0xec462cbffa8f385e6af8da003755b71e51451934",53"to": "0x9f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b",54"value": "0x0",55"gas": "0x356c10",56"input": "0x1a686502"57},58"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",59"blockNumber": 9009586,60"result": {61"gasUsed": "0x97e",62"output": "0x0000000000000000000000000000000000000000000000003d2571521fce39ab"63},64"subtraces": 0,65"traceAddress": [660,67068],69"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",70"transactionPosition": 0,71"type": "call"72}73]74}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"action": {7"callType": "call",8"from": "0x07ce66c58b4b266096e16406ad2168d950bb0c45",9"to": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",10"value": "0x0",11"gas": "0x37585c",12"input": "0x00000000000344df454639134c260c0c49f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b9100a486775003cafd839688f44ef9cad21b500e2250c72eee6f7260d152628daba372434f7543cd1952401131f5ae1cbfefe8efbdf93da23fa4d39f14a817c25f56aa4abed7073e746aeb2cf0030d6982d0bf801e0000000000000002f"13},14"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",15"blockNumber": 9009586,16"result": {17"gasUsed": "0xb4798",18"output": "0x"19},20"subtraces": 4,21"traceAddress": [],22"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",23"transactionPosition": 0,24"type": "call"25},26{27"action": {28"callType": "staticcall",29"from": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",30"to": "0xec462cbffa8f385e6af8da003755b71e51451934",31"value": "0x0",32"gas": "0x36525d",33"input": "0xfba21b3d0000000000000000000000009f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000344df454639134c26"34},35"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",36"blockNumber": 9009586,37"result": {38"gasUsed": "0x6586",39"output": "0x000000000000000000000000000000000000000000000000000000000319de5f"40},41"subtraces": 5,42"traceAddress": [43044],45"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",46"transactionPosition": 0,47"type": "call"48},49{50"action": {51"callType": "staticcall",52"from": "0xec462cbffa8f385e6af8da003755b71e51451934",53"to": "0x9f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b",54"value": "0x0",55"gas": "0x356c10",56"input": "0x1a686502"57},58"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",59"blockNumber": 9009586,60"result": {61"gasUsed": "0x97e",62"output": "0x0000000000000000000000000000000000000000000000003d2571521fce39ab"63},64"subtraces": 0,65"traceAddress": [660,67068],69"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",70"transactionPosition": 0,71"type": "call"72}73]74}