Runtime calls
Each item described here is a RuntimeDescriptor<Args, ReturnType>
RuntimeDescriptor<Args, ReturnType>
For example, Metadata.metadata_at_version is of type
Metadata.metadata_at_version
metadata_at_version: RuntimeDescriptor<[version: number], Binary | undefined> Copy
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())}) Copy
const metadata = await api.apis.Metadata.metadata_at_version(15) console.log(metadata?.asHex())})
PAPI docs on runtime APIs for more
Runtime calls
Each item described here is a
RuntimeDescriptor<Args, ReturnType>
For example,
Metadata.metadata_at_version
is of typeand can be called like this:
See
PAPI docs on runtime APIs for more