Skip to content

isRegistryEntryStored

isRegistryEntryStored(registryEntryId): Promise<boolean>

Checks whether a registry entry exists on the CORD blockchain.

Queries the chain using the provided registry entry identifier to determine if an entry is stored.

registryEntryId: string

The identifier of the registry entry to check (without entry:cord: prefix).

Promise<boolean>

A promise resolving to true if the entry exists, false otherwise.

If an error occurs while querying the blockchain.

const exists = await isRegistryEntryStored('abc123');
console.log(`Entry exists: ${exists}`); // true or false

entry/src/Entry.chain.ts:86