Skip to content

prepareRevokeEntryExtrinsic

prepareRevokeEntryExtrinsic(registryId, registryEntryId): Promise<SubmittableExtrinsic>

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

Constructs an extrinsic using the provided registry and entry URIs.

Parameters

registryId: string

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

registryEntryId: string

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

Returns

Promise<SubmittableExtrinsic>

A promise resolving to the prepared extrinsic for submission.

Throws

If an error occurs while preparing the extrinsic.

Example

const extrinsic = await prepareRevokeEntryExtrinsic(
'2Kska3xygo...',
'2Kedjbc123...'
);
console.log(extrinsic); // Prepared extrinsic for submission

Source

entry/src/Entry.chain.ts:312