trace_block - Ethereum Classic
Example code for the trace_block json-rpc method. Сomplete guide on how to use trace_block json-rpc in GetBlock.io Web3 documentation.
Parameters
quantity|tag
- string
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://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "trace_block",
"params": ["latest"],
"id": "getblock.io"}'
Response
{
"id": "getblock.io",
"jsonrpc": "2.0",
"result": [
{
"action": {
"author": "0xdf7d7e053933b5cc24372f878c90e62dadad5d42",
"rewardType": "block",
"value": "0x2c68af0bb1400000"
},
"blockHash": "0xf71c2351b989bbec7e8172e3b97cd91516ddab6895021a7c94eed05cc00ff8a9",
"blockNumber": 13522687,
"result": null,
"subtraces": 0,
"traceAddress": [],
"transactionHash": null,
"transactionPosition": null,
"type": "reward"
}
]
}
Last updated