Get a block by block number or block hash on any supported network
GET/:network/chain/block
Get a block by block number or block hash on any supported network
Request
Path Parameters
Blockchain network name or chain id
Query Parameters
Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.
Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.
The currency used for the conversion.
The block hash for which the block data is requested.
Responses
- 200
- 400
- 404
The block details.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Blockchain network name For the requested query
The chain ID of the network.
block
object
required
The hash of the block.
The block signed time in ISO format.
The block signed timestamp (in seconds since epoch).
The block height (block number).
The hash of the parent block.
The extra data attached to the block.
The address of the miner who produced the block.
The total amount of gas used in the block.
The gas limit of the block.
The number of transactions in the block.
The hashes of each transaction in the block.
The link to the transactions in the block.
The cost of the block gas in USD.
The currency of the block valuation.
[
{
"network_name": "eth-mainnet",
"chain_id": 1,
"block": {
"block_hash": "0xa8c5c67a5d5a9b19fed27d6b290857ab4e389e73d41683ef1af80e1ddef337c5",
"signed_at": "2024-10-12T16:35:47.000Z",
"signed_at_timestamp": 1728750947,
"block_height": 20950751,
"block_parent_hash": "0xdaaa889de9758c641b32b118913f62f9c39e19b90f90a90ab4559ebbeab96d35",
"extra_data": "0x6265617665726275696c642e6f7267",
"miner_address": "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5",
"gas_used": 11873017,
"gas_limit": 30000000,
"transaction_count": 1,
"transaction_hashes": [
"0x9f8e7f7d9d7c1f3b3b7f8f7d9d7c1f3b3b7f8f7d9d7c1f3b3b7f8f7d9d7c1f3b",
"0x9f8e7f7d9d7c1f3b3b7f8f7d9d7c1f3b3b7f8f7d9d7c1f3b3b7f8f7d9d7c1f3b"
],
"transactions_link": "https://api.histori.xyz/v1/eth-mainnet/blocks/20950751/transactions",
"block_valuation": "$0.031124",
"block_valuation_currency": "USD"
}
}
]
Failed to fetch block.
Block not found.