Skip to content
Alchemy Logo

getblockcount

POST
/{apiKey}

Returns the number of blocks in the longest fully validated blockchain.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Responses

200

The number of blocks in the current best blockchain.

The block height (index) used to fetch the block hash.

Was this page helpful?