Skip to main content

/runtime/metadata REST API Endpoint

Returns the runtime metadata as a JSON object.

Updated on
Sep 02, 2024

Path Parameters

Query Parameters

at
string

Block at which to retrieve the metadata at.

Returns

magicNumber
string

A unique identifier for the metadata format version

metadata
object

The metadata object which contains the following fields:

v14
object

The v14 object which contains the following fields:

lookup
object

Provides a mapping and definition of types used within the runtime

types
array

A list of types defining the data structures used in the blockchain

id
string

Identifier for the specific type

type
object

Describes the type's structure and attributes

path
string | array

Specifies the module path to the type

params
array

Lists any parameters associated with the type

def
object

The def object which contains the following fields:

composite
object

The composite object which contains the following fields:

fields
array

Describes the individual fields within the composite type

name
string | null

The name of the field

type
string

The type identifier of the field

typeName
string | null

The human-readable name of the field's type, or null when not specified

docs
array

The documentation or comments about the field

docs
array

The documentation or comments about the type

pallets
array

Lists the runtime modules (pallets) and their associated components

name
string

The name of the pallet

storage
object | null

(Optional) The storage object which contains the following fields, or null when the pallet defines no storage:

prefix
string

The prefix used for storage items in this pallet

items
array

Lists the storage items within the pallet

name
string

The name of the storage item

modifier
string

Specifies the modifier type

type
object

The type object which contains the following fields:

map
object

The map object which contains the following fields:

hashers
array

Storage map key hashers

key
string

The type identifier for the key

value
string

The type identifier for the value

plain
string

Type identifier when the storage item is a plain value (not a map)

fallback
string

Default value used when no value is stored

docs
array

Documentation strings about the storage item

calls
object | null

(Optional) Describes the callable functions provided by the pallet

type
string

The type identifier for the calls

events
object | null

Describes the events emitted by the pallet

type
string

The type identifier for the events

constants
array

Lists the constant values defined within the pallet

name
string

The name of the constant

type
string

The type identifier for the constant

value
string | object

The value object which contains the following fields:

baseBlock
object

The baseBlock object which contains the following fields:

refTime
string

The reference time for the base block

proofSize
string

The size of the proof for the base block

maxBlock
object

The maxBlock object which contains the following fields:

refTime
string

The reference time for the maximum block

proofSize
string

The size of the proof for the maximum block.

perClass
object

The perClass object which contains the following fields:

normal
object

The normal object which contains the following fields:

baseExtrinsic
object

The baseExtrinsic object which contains the following fields:

refTime
string

The reference time for the base extrinsic

proofSize
string

The proof size for the base extrinsic

maxExtrinsic
object

The maxExtrinsic object which contains the following fields:

refTime
string

The reference time for the maximum extrinsic

proofSize
string

The proof size for the maximum total

maxTotal
object

The maxTotal object which contains the following fields:

refTime
string

The reference time for the maximum total

proofSize
string

The proof size for the maximum total

reserved
object

The reserved object which contains the following fields:

refTime
string

The reference time for the reserved total

proofSize
string

The proof size for the reserved total

operational
object

The operational object which contains the following fields:

baseExtrinsic
object

The baseExtrinsic object which contains the following fields:

refTime
string

The reference time for the baseExtrinsic total

proofSize
string

The proof size for the baseExtrinsic total

maxExtrinsic
object

The maxExtrinsic object which contains the following fields:

refTime
string

The reference time for the maxExtrinsic total

proofSize
string

The proof size for the maxExtrinsic total

maxTotal
object

The maxTotal object which contains the following fields:

refTime
string

The reference time for the maxTotal

proofSize
string

The proof size for the maxTotal

reserved
object

The reserved object which contains the following fields:

refTime
string

The reference time for the reserved total

proofSize
string

The proof size for the reserved total

mandatory
object

The mandatory object which contains the following fields:

baseExtrinsic
object

The baseExtrinsic object which contains the following fields:

refTime
string

The reference time for the baseExtrinsic total

proofSize
string

The proof size for the baseExtrinsic total

maxExtrinsic
object

The maxExtrinsic object which contains the following fields:

refTime
string

The reference time for the maxExtrinsic total

proofSize
string

The proof size for the maxExtrinsic total

maxTotal
object

The maxTotal object which contains the following fields:

refTime
string

The reference time for the maxTotal

proofSize
string

The proof size for the maxTotal

reserved
object

The reserved object which contains the following fields:

refTime
string

The reference time for the reserved total

proofSize
string

The proof size for the reserved total

docs
array

Documentation strings about the constant

errors
object | null

The errors object which contains the following fields:

type
string

The type identifier for the errors

index
string

The index or identifier of the pallet within the runtime

extrinsic
object

The extrinsic object which contains the following fields:

type
string

The type identifier for the extrinsics

version
string

The version of the extrinsic format

signedExtensions
array

Lists additional checks or data required for signed extrinsics

identifier
string

The name of the signed extension

type
string

The type identifier for the signed extension

additionalSigned
string

Additional data required by the signed extension

type
string

The type identifier for the metadata structure

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