author_rotateKeys – Mythos JSON-RPC Method
Requests that the node generate new session keys and return the concatenated public keys. Collators and authorities use this call when rotating consensus keys without restarting their infrastructure.
Parameters
This method takes no parameters.
Returns
Field | Type | Description |
---|---|---|
result | string | Hex-encoded SCALE payload containing the new session public keys. |
Request Example
{
"jsonrpc": "2.0",
"method": "author_rotateKeys",
"params": [],
"id": 1
}
Usage Notes
- The node must be configured with
--key
privileges and the RPC endpoint must be protected—never expose this call to untrusted clients. - After rotating keys, submit a new session key transaction on Mythos so the on-chain validator set picks up the change.
- Pair with
author_hasKey
for additional safety checks when automating rotations.