An object for access the core functions of a remote chain.

Note that "remote" can mean the local chain; it's just that accounts are treated as remote/arms length for consistency.

interface Chain<C> {
    getChainInfo: (() => Promise<KnownChains[C]["info"]>);
    makeAccount: (() => Promise<OrchestrationAccount<C>>);
}

Type Parameters

Properties

getChainInfo: (() => Promise<KnownChains[C]["info"]>)

Type declaration

makeAccount: (() => Promise<OrchestrationAccount<C>>)

Creates a new account on the remote chain.

Type declaration

Returns

an object that controls a new remote account on Chain