Skip to content

prepareRotateKeyExtrinsic

prepareRotateKeyExtrinsic(newKey): Promise<SubmittableExtrinsic>

Prepares a rotateKey extrinsic to update the key associated with a profile on the CORD blockchain.

newKey: string

The new account ID (SS58 address) to set as the profile’s key.

Promise<SubmittableExtrinsic>

A promise that resolves to the prepared SubmittableExtrinsic for the rotateKey transaction.

If the provided newKey is invalid SS58 address or an error occurs while preparing the extrinsic.

profile/src/Profile.chain.ts:71