dispatchRotateKeyToChain
dispatchRotateKeyToChain(
newKey,authorAccount):Promise<void>
Dispatches a request to rotate the key for a profile on the CORD blockchain using the rotateKey extrinsic.
Parameters
Section titled “Parameters”• newKey: string
The new account ID (SS58 address) to set as the profile’s key.
• authorAccount: CordKeyringPair
The keyring pair of the current profile owner to sign the transaction.
Returns
Section titled “Returns”Promise<void>
A promise that resolves with when the transaction is successfully submitted.
Throws
Section titled “Throws”If the newKey is invalid or an error occurs during dispatch.