Skip to content

verifyRegistryEntry

verifyRegistryEntry(input): void

Verifies the integrity of the given IRegistryEntry object.

Ensures that the input conforms to the expected data structure by checking required fields, such as the transaction hash (tx_hash) and the format of the optional blob.

Parameters

input: IRegistryEntry

The IRegistryEntry object to verify.

Returns

void

Throws

If the tx_hash is missing or invalid, or if blob is not a string or null.

Example

const entry = {
tx_hash: '0x1234abcd...',
blob: '{"key":"value"}',
registryUri: '2Lwdxygo...',
};
verifyRegistryEntry(entry);
console.log('✅ Entry verified');

Source

entry/src/Entry.ts:74