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
• registryEntryDetails: IRegistryEntry
The details of the entry to create.
Returns
Promise
<SubmittableExtrinsic
>
A promise resolving to the prepared extrinsic for submission.
Throws
If an error occurs while preparing the extrinsic.
Example
const entryDetails = { '2Lwed3xygo...', tx_hash: '0x1234abcd...', blob: '{"data":"example"}',};const extrinsic = await prepareCreateExtrinsic(entryDetails);console.log(extrinsic); // Prepared extrinsic for submission