Skip to content

prepareCreateExtrinsic

prepareCreateExtrinsic(registryDetails): Promise<SubmittableExtrinsic>

Prepares an extrinsic to create a new registry on the CORD blockchain.

Parameters

registryDetails: IRegistryCreate

The details of the registry to create, including transaction hash, blob, and optional IDs.

Returns

Promise<SubmittableExtrinsic>

A promise that resolves to the prepared extrinsic.

Throws

If the preparation fails.

Example

const registryDetails = {
tx_hash: '0x1234567890abcdef',
blob: '{"key":"value"}',
};
const extrinsic = await prepareCreateExtrinsic(registryDetails);

Source

registry/src/Registry.chain.ts:76