⚡ We welcome businesses to test our enterprise-grade service

Method: POST trace_block

dropdown

方法 RPC trace_block 例如 Ethereum (ETH)

POST trace_block

为指定块提供跟踪类型的事务处理。

Parameters

quantity|tag -

表示块编号或字符串标记最新、最早或待定之一的整数,如块参数中所述。

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"
        }
    ]
}