Skip to content

prepareUpdateExtrinsic

prepareUpdateExtrinsic(registryDetails): Promise<SubmittableExtrinsic>

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

Parameters

registryDetails: IRegistryTxHashUpdate

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

Returns

Promise<SubmittableExtrinsic>

A promise that resolves to the prepared extrinsic.

Throws

If the preparation fails.

Example

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

Source

registry/src/Registry.chain.ts:150