Skip to main content

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

Returns the value stored under the constantItemId.

Updated on
Sep 02, 2024

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
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free