generated from PolymeshAssociation/typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
types.PolkadotConfig
prashantasdeveloper edited this page Sep 18, 2024
·
19 revisions
types.PolkadotConfig
• 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,
};
• Optional
noInitWarn: boolean
set to true
to disable polkadot start up warnings
• Optional
typesBundle: OverrideBundleType
allows for types to be provided for multiple chain specs at once
Note
shouldn't be needed for most use cases
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types