Skip to content

dispatchReinstateEntryToChain

dispatchReinstateEntryToChain(registryId, registryEntryId, authorAccount): Promise<void>

Dispatches a transaction to reinstate a previously revoked registry entry on the CORD blockchain.

Restores an entry to active status, ensuring it exists before reinstatement.

Parameters

registryId: string

The identifier of the registry containing the entry (e.g., 2Lwde3xygo...).

registryEntryId: string

The identifier of the entry to reinstate (e.g., 2Kwfjhabc123...).

authorAccount: CordKeyringPair

The keyring pair of the account authorizing the transaction.

Returns

Promise<void>

A promise that resolves when the transaction is submitted successfully.

Throws

If the entry doesn’t exist or the transaction fails.

Example

await dispatchReinstateEntryToChain(
'2Kwe3xygo...',
'2wefhjabc123...',
authorAccount
);
console.log('✅ Entry reinstated');

Source

entry/src/Entry.chain.ts:455