Namespace Constants

Constants reference

Each item described here is a PlainDescriptor<T>

For example, System.Version is of type

Version: PlainDescriptor<{
apis: [FixedSizeBinary<8>, number][];
authoring_version: number;
impl_name: string;
impl_version: number;
spec_name: string;
spec_version: number;
state_version: number;
transaction_version: number;
}>

and can be queried via

const version = await typedApi.constants.System.Version()
console.log(version.spec_version)

PAPI docs on constants for more

Index

Namespaces