Skip to content

dispatchRestoreRegistryToChain

dispatchRestoreRegistryToChain(registryId, authorAccount): Promise<string>

Dispatches a transaction to restore an archived registry.

registryId: string

The identifier of the registry to restore (e.g., ‘2ldewxygo…’).

authorAccount: CordKeyringPair

The keyring pair of the author.

Promise<string>

A promise that resolves when the transaction is submitted.

If the transaction fails.

await dispatchRestoreRegistryToChain('registry:cord:3xygo...', alice);

registry/src/Registry.chain.ts:534