prepareRotateKeyExtrinsic
prepareRotateKeyExtrinsic(
newKey):Promise<SubmittableExtrinsic>
Prepares a rotateKey extrinsic to update the key associated with a profile on the CORD blockchain.
Parameters
• newKey: string
The new account ID (SS58 address) to set as the profile’s key.
Returns
Promise<SubmittableExtrinsic>
A promise that resolves to the prepared SubmittableExtrinsic for the rotateKey transaction.
Throws
If the provided newKey is an invalid SS58 address or an error occurs while preparing the extrinsic.