post https://eth-mainnet.unifra.io/v1/
Gets traces created with a given block.
Parameters
- Quantity or Tag - Integer of a block number, or the string 'earliest', 'latest' or 'pending'.
Returns
Array - Block traces.
Example
Request
curl --location --request POST 'https://eth-mainnet.unifra.io/v1/{your-api-key} \
--header 'Content-Type: application/json' \
--data-raw '{"method":"trace_block","params":["latest"],"id":1,"jsonrpc":"2.0"}'
Result
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"from": "0xf2212eb5e92f29903116b36b81e05a4054d9264e",
"callType": "call",
"gas": "0x30e36",
"input": "0x820451670000000000effed40d1213415a7f1b1f2166f4cfeba696757682d0c88a",
"to": "0x007933790a4f00000099e9001629d9fe7775b800",
"value": "0xc15267464"
},
"blockHash": "0xbabc97045972469a7ab846f729e4e55213895dd6fcf4aff5b8ed8d8908a66d9a",
"blockNumber": 15789371,
"result": {
"gasUsed": "0xfd47",
"output": "0x"
},
"subtraces": 2,
"traceAddress": [],
"transactionHash": "0x2d32d6e44ff556ea28362b0e37c7d718008c0ea1b6c0a0981c8f64d10dec4fdf",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x007933790a4f00000099e9001629d9fe7775b800",
"callType": "call",
"gas": "0x300ef",
"input": "0x23b872dd000000000000000000000000007933790a4f00000099e9001629d9fe7775b8000000000000000000000000001213415a7f1b1f2166f4cfeba696757682d0c88a0000000000000000000000000000000000000000000000002745936454be6000",
"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"value": "0x0"
},
"blockHash": "0xbabc97045972469a7ab846f729e4e55213895dd6fcf4aff5b8ed8d8908a66d9a",
"blockNumber": 15789371,
"result": {
"gasUsed": "0x221c",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
0
],
"transactionHash": "0x2d32d6e44ff556ea28362b0e37c7d718008c0ea1b6c0a0981c8f64d10dec4fdf",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x007933790a4f00000099e9001629d9fe7775b800",
"callType": "call",
"gas": "0x2dea3",
"input": "0x022c0d9f000000000000000000000000000000000000000000000000000e4e0a1f235d400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007933790a4f00000099e9001629d9fe7775b800000000000000000000000000000000000000000000000000000000000000005f0000000000000000000000000000000000000000000000000000000000000000",
"to": "0x1213415a7f1b1f2166f4cfeba696757682d0c88a",
"value": "0x0"
},
"blockHash": "0xbabc97045972469a7ab846f729e4e55213895dd6fcf4aff5b8ed8d8908a66d9a",
"blockNumber": 15789371,
"result": {
"gasUsed": "0xd94d",
"output": "0x"
},
"subtraces": 3,
"traceAddress": [
1
],
"transactionHash": "0x2d32d6e44ff556ea28362b0e37c7d718008c0ea1b6c0a0981c8f64d10dec4fdf",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x1213415a7f1b1f2166f4cfeba696757682d0c88a",
"callType": "call",
"gas": "0x2c06a",
"input": "0xa9059cbb000000000000000000000000007933790a4f00000099e9001629d9fe7775b800000000000000000000000000000000000000000000000000000e4e0a1f235d40",
"to": "0x1b7b0b32134908468dc186daddd130c7a58e32bf",
"value": "0x0"
},
"blockHash": "0xbabc97045972469a7ab846f729e4e55213895dd6fcf4aff5b8ed8d8908a66d9a",
"blockNumber": 15789371,
"result": {
"gasUsed": "0x69ee",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
1,
0
],
"transactionHash": "0x2d32d6e44ff556ea28362b0e37c7d718008c0ea1b6c0a0981c8f64d10dec4fdf",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x1213415a7f1b1f2166f4cfeba696757682d0c88a",
"callType": "staticcall",
"gas": "0x255b7",
"input": "0x70a082310000000000000000000000001213415a7f1b1f2166f4cfeba696757682d0c88a",
"to": "0x1b7b0b32134908468dc186daddd130c7a58e32bf",
"value": "0x0"
},
"blockHash": "0xbabc97045972469a7ab846f729e4e55213895dd6fcf4aff5b8ed8d8908a66d9a",
"blockNumber": 15789371,
"result": {
"gasUsed": "0xa5e",
"output": "0x00000000000000000000000000000000000000000000000000800c486c9e7af6"
},
"subtraces": 0,
"traceAddress": [
1,
1
],
"transactionHash": "0x2d32d6e44ff556ea28362b0e37c7d718008c0ea1b6c0a0981c8f64d10dec4fdf",
"transactionPosition": 0,
"type": "call"
},
...
}