Namespace RuntimeCalls

Runtime calls

Each item described here is a RuntimeDescriptor<Args, ReturnType>

For example, Metadata.metadata_at_version is of type

metadata_at_version: RuntimeDescriptor<[version: number], Binary | undefined>

and can be called like this:

 const metadata = await api.apis.Metadata.metadata_at_version(15)
console.log(metadata?.asHex())
})

PAPI docs on runtime APIs for more

Index

Namespaces