Skip to main content
Version: 26.2.x

Interface: PolkadotConfig

api/client/types.PolkadotConfig

Properties

metadata

Optional metadata: Record<string, `0x${string}`>

provide a locally saved metadata file for a modestly fast startup time (e.g. 1 second when provided, 1.5 seconds without).

Note

if not provided the SDK will read the needed data from chain during startup

Note

format is key as genesis hash and spec version and the value hex encoded chain metadata

Example

creating valid metadata

const meta = _polkadotApi.runtimeMetadata.toHex();
const genesisHash = _polkadotApi.genesisHash;
const specVersion = _polkadotApi.runtimeVersion.specVersion;

const metadata = {
[`${genesisHash}-${specVersion}`]: meta,
};

Defined in

api/client/types.ts:161


noInitWarn

Optional noInitWarn: boolean

set to true to disable polkadot start up warnings

Defined in

api/client/types.ts:166


typesBundle

Optional typesBundle: OverrideBundleType

allows for types to be provided for multiple chain specs at once

Note

shouldn't be needed for most use cases

Defined in

api/client/types.ts:173