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