dispatchUpdateRegistryHashToChain
dispatchUpdateRegistryHashToChain(
registryDetails,authorAccount):Promise<void>
Dispatches a transaction to update a registry’s transaction hash and optional blob.
Parameters
Section titled “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
Section titled “Returns”Promise<void>
A promise that resolves when the transaction is submitted.
Throws
Section titled “Throws”If the transaction fails.
Example
Section titled “Example”const registryDetails = { registryId: '2Ldhxygo...', tx_hash: '0x456789abcdef', blob: '{"key":"newValue"}',};await dispatchUpdateRegistryHashToChain(registryDetails, alice);