---
title: "Get per-chain stats: latest block, totals, native coin USD price"
method: POST
path: "/?ankr_getBlockchainStats"
tags: ["Query API"]
---

# Get per-chain stats: latest block, totals, native coin USD price

`POST /?ankr_getBlockchainStats`

## Request

- Base URL: `https://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe`
- URL: `https://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe/?ankr_getBlockchainStats`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ankr/apis/ankr-advanced-api/docs/%3Fankr_getBlockchainStats/post.ts> (a function with typed inputs; its response is checked against the schema)

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 body

- object
  - `id` integer, required: Client-supplied request ID echoed in the response.
  - `jsonrpc` '2.0', required
  - `method` 'ankr_getBlockchainStats', required
  - `params` object, required
    - `blockchain` string[]: Chains to query. Omit or pass an empty array to query all supported chains.

## Response `200`

Success. JSON-RPC `result` contains the `stats` array. JSON-RPC errors are returned with HTTP 200; check the response body for an `error` key.

- object
  - `id` integer, required
  - `jsonrpc` '2.0', required
  - `result` object, required
    - `stats` object[], nullable, required
      - `blockTimeMs` integer, required: Average block time in milliseconds.
      - `blockchain` string, required
      - `latestBlockNumber` integer, required
      - `nativeCoinUsdPrice` string, required: Native coin USD price as a decimal string.
      - `totalEventsCount` integer, required: All events emitted since genesis.
      - `totalTransactionsCount` integer, required: All transactions since genesis.

## Other responses

- `400`: Bad Request — malformed JSON-RPC envelope or invalid `params`. The gateway rejects before the JSON-RPC layer processes the call.
- `401`: Unauthorized — missing or invalid API key in the server URL path. Verify that `{API_KEY}` is set to a valid project key.
- `429`: Too Many Requests — the API key has exceeded its rate or quota limits. Back off and retry; consider upgrading the Premium tier for higher limits.
- `500`: Server error — unexpected condition. Retry with exponential backoff; if it persists, file a ticket at https://www.ankr.com/support/.

---

[API](https://skmtc.dev/ankr/apis/ankr-advanced-api.md) - [All operations](https://skmtc.dev/ankr/apis/ankr-advanced-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ankr/apis/ankr-advanced-api/revisions/77e494aeec1b?raw)
