Constants reference
Each item described here is a PlainDescriptor<T>
PlainDescriptor<T>
For example, System.Version is of type
System.Version
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;}> Copy
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) Copy
const version = await typedApi.constants.System.Version()console.log(version.spec_version)
PAPI docs on constants for more
Constants reference
Each item described here is a
PlainDescriptor<T>
For example,
System.Version
is of typeand can be queried via
See
PAPI docs on constants for more