blocks_by_version
Overview
Fetch the block that contains a given ledger version.
Endpoint
GET /v1/blocks/by_version/{version}
Request
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
version | string | Yes | Ledger version |
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
with_transactions | boolean | No | Include transactions |
Code Examples
curl -s "https://api-aptos-mainnet.n.dwellir.com/YOUR_API_KEY/v1/blocks/by_version/123456789?with_transactions=true"