prepareCreateExtrinsic
prepareCreateExtrinsic(
registryDetails):Promise<SubmittableExtrinsic>
Prepares an extrinsic to create a new registry on the CORD blockchain.
Parameters
Section titled “Parameters”• registryDetails: IRegistryCreate
The details of the registry to create, including transaction hash, blob, and optional IDs.
Returns
Section titled “Returns”Promise<SubmittableExtrinsic>
A promise that resolves to the prepared extrinsic.
Throws
Section titled “Throws”If the preparation fails.
Example
Section titled “Example”const registryDetails = { tx_hash: '0x1234567890abcdef', blob: '{"key":"value"}',};const extrinsic = await prepareCreateExtrinsic(registryDetails);