Ask the extension to add a new connection to the chain of the given name.

The substrate-connect extension comes with some hardcoded chain names that applications can connect to. This list of names isn't indicated here, as it can change over time.

Because the extension reserves the right to remove support for a well-known chain in the future, applications should fall back to ToExtensionAddChain if this well-known chain connection fails.

interface ToExtensionAddWellKnownChain {
    chainId: string;
    chainName: string;
    type: "add-well-known-chain";
}

Properties

chainId: string

Identifier for this chain used in all future messages concerning this chain. Allocated by the sender of this message. It is recommended to generate this ID randomly, with at least 48 bits of entropy.

chainName: string

Name of the chain to connect to.

type
MMNEPVFCICPMFPCPTTAAATR