prepareUpdateExtrinsic
prepareUpdateExtrinsic(
registryEntryDetails):Promise<SubmittableExtrinsic>
Prepares a transaction to update an existing registry entry on the CORD blockchain.
Constructs an extrinsic using the provided registry entry details, including the registry ID, transaction hash, and optional blob data.
Parameters
Section titled “Parameters”• registryEntryDetails: IRegistryEntryUpdate
The details of the entry to update.
Returns
Section titled “Returns”Promise<SubmittableExtrinsic>
A promise resolving to the prepared extrinsic for submission.
Throws
Section titled “Throws”If an error occurs while preparing the extrinsic.
Example
Section titled “Example”const updateDetails = { registryEntryId: '2Kwdabc123...', registryId: '2Lwdjh3xygo...', tx_hash: '0x5678efgh...', blob: '{"data":"updated"}',};const extrinsic = await prepareUpdateExtrinsic(updateDetails);console.log(extrinsic); // Prepared extrinsic for submission