Alchemy Logo

getchaintxstats

POST
/{apiKey}

Calculates statistics about the overall transaction rate and volume of the blockchain over a window of blocks.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

nblocksintegeroptional

The size of the window in number of blocks. Defaults to approximately one month.

blockhashstringformat: "^[a-fA-F0-9]{64}$"optional

The block hash at which the window ends. Defaults to chain tip.

Responses

200

The calculated chain transaction statistics.

Was this page helpful?