Skip to main content

getBlockInfo Query

Get detailed information about a specific block.

Updated on
Oct 16, 2024

getBlockInfo Query

Parameters

This method does not accept any parameters

Returns

data
object
The data object which contains the following fields:
block
object
The object that holds information about the specific block
id
string
The unique identifier (hash) of the block
height
string
The height of the block
transactions
array
An array of transactions included in the block
id
string
The unique identifier (hash) of each transaction in 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 BlockById($id: BlockId!) { block(id: $id) { id height transactions { id } } }",
6
"variables": {
7
"id": "0x37f8a43bc7a5c0460bd7478a41f191a74dfb3685f00e48a316d8406658dc0dad"
8
}
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free