Get the current block height
GET/:network/chain/block-height
Get the current block height
Request
Path Parameters
network stringrequired
Blockchain network name or chain id
Query Parameters
projectId stringrequired
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
The current block height.
- application/json
- Schema
- Example (from schema)
Schema
network_name stringrequired
Blockchain network name For the requested query
chain_id numberrequired
The chain ID of the network.
block_height numberrequired
The current block height (number).
{
"network_name": "eth-mainnet",
"chain_id": 1,
"block_height": 0
}
Failed to fetch block height.
Loading...