/v1/blocks/by_version/{version}
GET
https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/blocks/by_version/{version}
Retrieves block metadata and optionally the transactions contained in the block, based on a specific ledger version.
If the block is pruned, the server will return a 410 error. To avoid partial results when with_transactions=true, consider checking the total number of transactions expected.
Path Parameters
integerrequired
Ledger version to look up block information for.
Query Parameters
booleanoptional
If set to true, includes all transactions in the block. May be limited by max transaction size.
Responses
200
Block data with or without transactions.
Was this page helpful?