Skip to content

prepareUpdateCreatorExtrinsic

prepareUpdateCreatorExtrinsic(registryId, newCreatorAddress): Promise<SubmittableExtrinsic>

Prepares an extrinsic to update the creator address of a registry.

registryId: string

The identifier of the registry to update (e.g., ‘2Ldxygo…’).

newCreatorAddress: string

The new creator’s SS58 address.

Promise<SubmittableExtrinsic>

A promise that resolves to the prepared extrinsic.

If the preparation fails.

const extrinsic = await prepareUpdateCreatorExtrinsic('registry:cord:3xygo...', '5FHne...');

registry/src/Registry.chain.ts:223