Get the detail of a block by the given block number.
curl --request GET \ --url https://api.chainbase.online/v1/block/detail \ --header 'x-api-key: <x-api-key>'
{ "code": 0, "message": "ok", "data": { "number": 123, "hash": "<string>", "parent_hash": "<string>", "timestamp": "<string>", "difficulty": "<string>", "extra_data": "<string>", "gas_limit": 123, "gas_used": 123, "base_fee_per_gas": 123, "miner": "<string>", "mix_hash": "<string>", "nonce": "<string>", "receipts_root": "<string>", "sha3_uncles": "<string>", "size": 123, "state_root": "<string>", "transactions_root": "<string>", "transactions_count": 123, "uncles_count": 123, "withdrawals_count": 123 } }
"demo"
chain network id, see list of details
Block number
Successful Response
The response is of type object.
object