Skip to main content

getBlockByHeight Query

Fetches detailed information about a block by its height.

Updated on
Oct 16, 2024

getBlockByHeight Query

Parameters

height
string
REQUIRED
The height of the block

Returns

data
object
The data object which contains the following fields:
block
object
The object that holds information about the queried block
id
string
The unique identifier (hash) of the block.
Request
1
curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \
2
--header 'Accept: application/json' \
3
--header 'Content-Type: application/json' \
4
--data '{
5
"query": "query Block($height: U64) { block(height: $height) { id } }",
6
"variables": {
7
"height": "3412"
8
}
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free