dispatchCreateEntryToChain
dispatchCreateEntryToChain(
registryEntryDetails,authorAccount):Promise<void>
Dispatches a transaction to create a new registry entry on the CORD blockchain.
Creates a new entry within a specified registry, storing its transaction hash and optional blob data.
Parameters
Section titled “Parameters”• registryEntryDetails: IRegistryEntry
The details of the entry to create.
• authorAccount: CordKeyringPair
The keyring pair of the account authorizing the transaction.
Returns
Section titled “Returns”Promise<void>
A promise which resolves on create.
Throws
Section titled “Throws”If the transaction fails or is invalid.
Example
Section titled “Example”const entryDetails = { registryId: '2Lddw3xygo...', tx_hash: '0x1234abcd...', blob: '{"data":"example"}',};await dispatchCreateEntryToChain(entryDetails, authorAccount);console.log('✅ Entry created');