Skip to content

dispatchRevokeEntryToChain

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

Dispatches a transaction to revoke a registry entry on the CORD blockchain.

Marks an entry as inactive or invalid, ensuring it exists before revocation.

Parameters

registryId: string

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

registryEntryId: string

The identifier of the entry to revoke (e.g., 2Lweabc123...).

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 dispatchRevokeEntryToChain(
'registry:cord:3xygo...',
'entry:cord:abc123...',
authorAccount
);
console.log('✅ Entry revoked');

Source

entry/src/Entry.chain.ts:362