⚠️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_version

Overview

Fetch the block that contains a given ledger version.

Endpoint

GET /v1/blocks/by_version/{version}

Request

Path Parameters

NameTypeRequiredDescription
versionstringYesLedger version

Query Parameters

NameTypeRequiredDescription
with_transactionsbooleanNoInclude transactions

Code Examples

curl -s "https://api-aptos-mainnet.n.dwellir.com/YOUR_API_KEY/v1/blocks/by_version/123456789?with_transactions=true"