Skip to content

dispatchArchiveRegistryToChain

dispatchArchiveRegistryToChain(registryId, authorAccount): Promise<string>

Dispatches a transaction to archive a registry.

registryId: string

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

authorAccount: CordKeyringPair

The keyring pair of the author.

Promise<string>

A promise that resolves when the transaction is submitted.

If the transaction fails.

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

registry/src/Registry.chain.ts:482