Skip to main content

/pallets/{palletId}/consts REST API Endpoint

Get a list of constants for a pallet.

Updated on
Sep 2, 2024

/pallets/{palletId}/consts REST API Endpoint

Path Parameters

palletId
string
REQUIRED
The name or index of the pallet to read constant metadata for

Query Parameters

onlyIds
boolean
Only return the names (IDs) of the const items instead of every constant's metadata
at
string
The block at which to retrieve a list of the pallet's constant items

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
items
array
A list containing different configuration items within the specified pallet. Each item includes several fields:
name
string
The name of the configuration item
type
string
The type identifier for the configuration item
value
string
The value of the configuration item in a hex-encoded format
docs
array
A list of strings providing documentation or description of the configuration item
Request
1
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/pallets/System/consts' \
2
--header 'Accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free