Skip to content

prepareUpdateExtrinsic

prepareUpdateExtrinsic(registryDetails): Promise<SubmittableExtrinsic>

Prepares an extrinsic to update the transaction hash and optional blob of a registry.

registryDetails: IRegistryTxHashUpdate

The details for updating the registry, including URI, transaction hash, and optional blob.

Promise<SubmittableExtrinsic>

A promise that resolves to the prepared extrinsic.

If the preparation fails.

const registryDetails = {
registryId '2L3xygo...',
tx_hash: '0x456789abcdef',
blob: '{"key":"newValue"}',
};
const extrinsic = await prepareUpdateExtrinsic(registryDetails);

registry/src/Registry.chain.ts:151