Get Blocks by Height
Get block data by the provided height range or list of heights.
get
https://flow-mainnet.g.alchemy.com/v2/demo/blocks
/
Get block data by the provided height range or list of heights.

Example:

Request:

HTTTP GET
cURL
https://flow-mainnet.g.alchemy.com/v2/demo/blocks?height=final
flow-mainnet.g.alchemy.com
curl --location --request GET 'https://flow-mainnet.g.alchemy.com/v2/demo/blocks?height=final'

Response

  • header -Object- A summary of a given block
    • id -String- SHA3-256 hash of the entire block payload
    • parent_id -String- ID of the previous block
    • height -String- Blockchain height
    • timestamp -String- Timestamp of a proposer's claim for block construction
    • parent_voter_signature -String- Cryptographic signature of parent voter
  • _expandable -Object- Expandable data
    • payload -String- The transaction payload contains the data that identifies the operations applied by the tx
    • execution_result -String- Resultant link to stored data
  • _links -Object- A summary of data stored
    • _self -String- A link from a source to target denoting the location of stored data
[
{
"header": {
"id": "3d30bdba8954eeb2d27fb5dc5fa7d502ef3dff419bca04d6913fe2214b0f4595",
"parent_id": "0ad023b05faa200c90507f5aa2391dfd0516a08f16be50374f8a2337524cdae0",
"height": "28733368",
"timestamp": "2022-04-28T21:37:17.306976958Z",
"parent_voter_signature": "+G+LAAAAAAAAAAAAAACwqgYe/tDbIYT4R6444J6ZndGA+5dWZG2jTSuT4Csb1DOEct502itvN+bGy3T/UEedgLCgohbD+7f4fazRD+zgbAuOQKJagAobzjajQ9pcZwJCc8voxpgRrUgOBh2NWlipUCA="
},
"_expandable": {
"payload": "/v1/blocks/3d30bdba8954eeb2d27fb5dc5fa7d502ef3dff419bca04d6913fe2214b0f4595/payload",
"execution_result": "/v1/execution_results/46e5b71d422f074db1af1214a04cfc8580ebb9e7c8581ae7f8cb71830a8a7b9e"
},
"_links": {
"_self": "/v1/blocks/3d30bdba8954eeb2d27fb5dc5fa7d502ef3dff419bca04d6913fe2214b0f4595"
}
}
]