Skip to main content

/pallets/{palletId}/errors/{errorItemId} REST API Endpoint

Returns the value stored under the errorItemId.

Updated on
Sep 02, 2024

Path Parameters

palletId
string
REQUIRED

The name or index of the pallet to read error metadata for.

errorItemId
string
REQUIRED

The id of the error item to query for.

Query Parameters

at
string

Block at which to query the error item at.

metadata
boolean

Include the error 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

The name of the pallet (or module) within the blockchain's runtime

palletIndex
string

The index of the pallet in the runtime

errorItem
string

The id of the error item

metadata
object

The metadata object which contains the following fields:

name
string

The name of the error

fields
array

An array meant to list any fields associated with the error

index
string

The index or identifier of the error within the pallet

docs
array

An array containing documentation strings that describe the error

args
array

The arguments required by the error

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free