# prov.account.rotateKey

prov.account.rotateKey in Node SDK. Rotate a key (the calling key by default, or a named `keyId`).

## Signature

```ts
prov.account.rotateKey(params?: { keyId?: string }): Promise<RotatedKey>
```

## Parameters

- `params` ({ keyId?: string }, optional)

## Returns

`Promise<RotatedKey>`

Runs locally, with no request to the API.
