dispatchUpdateRegistryHashToChain
dispatchUpdateRegistryHashToChain(
registryDetails
,authorAccount
):Promise
<void
>
Dispatches a transaction to update a registry’s transaction hash and optional blob.
Parameters
• registryDetails: IRegistryTxHashUpdate
The details for updating the registry, including URI, transaction hash, and optional blob.
• authorAccount: CordKeyringPair
The keyring pair of the author updating the registry.
Returns
Promise
<void
>
A promise that resolves when the transaction is submitted.
Throws
If the transaction fails.
Example
const registryDetails = { registryId: '2Ldhxygo...', tx_hash: '0x456789abcdef', blob: '{"key":"newValue"}',};await dispatchUpdateRegistryHashToChain(registryDetails, alice);