Get Blocks by ID
Get a block data or list of blocks by the provided ID or list of IDs.
get
https://flow-mainnet.g.alchemy.com/v2/demo/blocks
/
Get a block data or list of blocks by the provided ID or list of IDs.

Example:

Request:

HTTP GET
cURL
https://flow-mainnet.g.alchemy.com/v2/demo/blocks/eee7afe3b1f01a8a0ba1debd656db228fa49e18e0e68545ae88a250f1289f64f
flow-mainnet.g.alchemy.com
curl --location --request GET 'https://flow-mainnet.g.alchemy.com/v2/demo/blocks/eee7afe3b1f01a8a0ba1debd656db228fa49e18e0e68545ae88a250f1289f64f'

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": "eee7afe3b1f01a8a0ba1debd656db228fa49e18e0e68545ae88a250f1289f64f",
"parent_id": "9f20ac520f456f541999d6596468e69d99927e73ab36dc734a92d3420924271b",
"height": "28738957",
"timestamp": "2022-04-28T23:44:52.633913342Z",
"parent_voter_signature": "+G+LAAAAAAAAAAAAAACwpu4CtN6zdaOE5zMBsib4NNBtqbwWhIMPvDU9AgrvYc1fCmdPCwfPxLP1Bg7YqIh4gLCwbDa8tAeVCTNxkBnNEqZo8/S/F1IbAO5LXXpRB1QVgSHrs2M8g+SUVUGpxHry+xo="
},
"_expandable": {
"payload": "/v1/blocks/eee7afe3b1f01a8a0ba1debd656db228fa49e18e0e68545ae88a250f1289f64f/payload",
"execution_result": "/v1/execution_results/b579c069223235c90b895d0120fd00dcca598bef009b792dfa7553d66c7aa29d"
},
"_links": {
"_self": "/v1/blocks/eee7afe3b1f01a8a0ba1debd656db228fa49e18e0e68545ae88a250f1289f64f"
}
}]