Get blocks by version
This endpoint allows you to get the transactions in a block and the corresponding block information given a version in the block.
Last updated
Was this helpful?
This endpoint allows you to get the transactions in a block and the corresponding block information given a version in the block.
Last updated
Was this helpful?
Was this helpful?
// Request
curl -X GET -H 'Content-Type: application/json' https://aptos.blockpi.network/aptos/v1/your_api_key/v1/blocks/by_version/1
// Result
{
"block_height": "11631405",
"block_hash": "0xee76aa9f24a008390e98d73739adaa311f1ad05b8d75ad0a6b1213dcc5ceebbc",
"block_timestamp": "1669084548326324",
"first_version": "36173262",
"last_version": "36173265",
"transactions": [<array of transactions>]
}