prepareCreateExtrinsic
prepareCreateExtrinsic(
registryEntryDetails):Promise<SubmittableExtrinsic>
Prepares a transaction to create a new 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: IRegistryEntry
The details of the entry to create.
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 entryDetails = { '2Lwed3xygo...', tx_hash: '0x1234abcd...', blob: '{"data":"example"}',};const extrinsic = await prepareCreateExtrinsic(entryDetails);console.log(extrinsic); // Prepared extrinsic for submission