Skip to content

dispatchArchiveRegistryToChain

dispatchArchiveRegistryToChain(registryId, authorAccount): Promise<void>

Dispatches a transaction to archive a registry.

Parameters

registryId: string

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

authorAccount: CordKeyringPair

The keyring pair of the author.

Returns

Promise<void>

A promise that resolves when the transaction is submitted.

Throws

If the transaction fails.

Example

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

Source

registry/src/Registry.chain.ts:474