Get per-chain stats: latest block, totals, native coin USD price
Returns headline statistics for one or more chains: latest block number, average block time, total transactions and events since genesis, and the current native coin USD price.
Pass a blockchain array to scope the query; omit or pass an empty array for all supported chains. Useful for hero banners, homepage tiles, and basic network health checks.
Part of the Query API product (700 compute units per call, $0.00007 at base rate).
Plan availability. This method is restricted on the shared demo key (-32075 Method disabled, reason: restricted by blockchain schema). Use your own API key to call it.
Request
- Base URLhttps://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"id": 1,
"jsonrpc": "2.0",
"method": "ankr_getBlockchainStats",
"params": {
"blockchain": [
"bsc",
"polygon"
]
}
}Response
Success. JSON-RPC result contains the stats array. JSON-RPC errors are returned with HTTP 200; check the response body for an error key.
Changes
No recorded changes to this operation across all 1 revision of this API.