Skip to main content

/pallets/{palletId}/consts/{constantItemId} REST API Endpoint

Returns the value stored under the constantItemId.

Updated on
Sep 2, 2024

/pallets/{palletId}/consts/{constantItemId} REST API Endpoint

Path Parameters

palletId
string
REQUIRED
The name or index of the pallet to read constant metadata for
constantItemId
string
REQUIRED
Id of the const item to query for

Query Parameters

at
string
Block at which to query the const item at.
metadata
boolean
Include the const items metadata (including documentation) if set to true.

Returns

at
object
An object containing information about the state
hash
string
The block's hash
height
string
The block's height
pallet
string
Specifies the pallet (or module) within the blockchain's runtime
palletIndex
string
The index of the pallet within the runtime
constantsItem
string
The id of the const item
Request
1
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/pallets/System/consts/BlockWeights' \
2
--header 'Accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free