Alchemy Logo

getblockstats

POST
/{apiKey}

Calculates various statistics for a given block by hash or height.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

hash_or_heightstring or integerrequired

The block hash (string) or height (integer) of the target block.

statsstring[]optional

Optional list of specific stats to retrieve. If empty or omitted, returns all stats.

Responses

200

A set of statistical metrics for the specified block.

Was this page helpful?