Skip to main content

getBlockByHeight Query

Loading...

Updated on
Oct 16, 2024

getBlockByHeight Query

Parameters

height
string
REQUIRED
Loading...

Returns

data
object
Loading...
block
object
Loading...
id
string
Loading...
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