Options for txwrapper-polkadot's getRegistry function.

interface GetRegistryOpts {
    additionalTypes?: RegistryTypes;
    asCallsOnlyArg?: boolean;
    chainName: string;
    metadataRpc: `0x${string}`;
    properties?: ChainProperties;
    signedExtensions?: string[];
    specName: "statemine" | "statemint" | "kusama" | "polkadot" | "westend" | "westmint" | "asset-hub-kusama" | "asset-hub-polkadot" | "asset-hub-westend";
    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

Chain ss58format, token decimals, and token ID

signedExtensions?: string[]

Array of signedExtensions

specName: "statemine" | "statemint" | "kusama" | "polkadot" | "westend" | "westmint" | "asset-hub-kusama" | "asset-hub-polkadot" | "asset-hub-westend"

Runtime specName

specVersion: number

Runtime specVersion

typesBundle?: OverrideBundleType

OverrideTypesBundle to set to registry

userExtensions?: ExtDef

User extensions used to inject into the type registry