Options for getRegistry.

interface GetRegistryOpts {
    additionalTypes?: RegistryTypes;
    asCallsOnlyArg?: boolean;
    chainName: string;
    metadataRpc: `0x${string}`;
    properties?: ChainProperties;
    signedExtensions?: string[];
    specName: string;
    specVersion: number;
    typesBundle?: OverrideBundleType;
    userExtensions?: ExtDef;
}

Hierarchy (view full)

Properties

additionalTypes?: RegistryTypes

Additional types to register in the registry.

asCallsOnlyArg?: boolean

Used to reduce the metadata size by only having the calls

chainName: string

chainName

metadataRpc: `0x${string}`

SCALE encoded runtime metadata as a hex string

properties?: ChainProperties

Optionally specify the chain properties if they are not included in https://raw.githubusercontent.com/paritytech/substrate/master/ss58-registry.json (and thus not included in knownChainProperties)

signedExtensions?: string[]

Array of signedExtensions

specName: string

Runtime specName

specVersion: number

Runtime specVersion

typesBundle?: OverrideBundleType

OverrideTypesBundle to set to registry

userExtensions?: ExtDef

User extensions used to inject into the type registry