⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

blocks_by_height

Overview#

Fetch a block by its height. Includes transactions and block metadata.

Endpoint#

GET /v1/blocks/by_height/{block_height}

Request#

Path Parameters#

NameTypeRequiredDescription
block_heightstringYesBlock height

Query Parameters#

NameTypeRequiredDescription
with_transactionsbooleanNoInclude transactions in response

Code Examples#

curl -X GET https://api-aptos-mainnet.n.dwellir.com/YOUR_API_KEY/v1/blocks/by_height/1000000?with_transactions=true \
-H "Accept: application/json"