eth

Ethereum (ETH)

Method: POST trace_block

dropdown
POST

trace_block

Provides transaction processing of type trace for the specified block.

Parameters

quantity|tag - None

Integer representing a block number or one of the string tags latest, earliest, or pending, as described in Block Parameter.

Request

curl --location --request POST 'https://eth.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "trace_block",
"params": ["0x6"],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        {
            "action": {
                "author": "0x0193d941b50d91be6567c7ee1c0fe7af498b4137",
                "rewardType": "block",
                "value": "0x4563918244f40000"
            },
            "blockHash": "0x1f1aed8e3694a067496c248e61879cda99b0709a1dfbacd0b693750df06b326e",
            "blockNumber": 6,
            "result": null,
            "subtraces": 0,
            "traceAddress": [],
            "transactionHash": null,
            "transactionPosition": null,
            "type": "reward"
        }
    ]
}