Generate the key
Run this on the VM where your validator node container is running:result field of the response:
Associate your session key with your validator account
Submit thesetKeys extrinsic from the polkadot.js portal. You can submit it through any peaq endpoint, including the one on the VM running your validator node.
Developer → Extrinsics → session → setKeys(keys, proof)
- Paste your session key into the
aura: SpConsensusAuraSr25519AppSr25519Publicfield. - Paste
0x00into theproof: Bytesfield. - Click
Submit Transaction.
Check that the key is associated with your address
Developer → Chain state → Session → nextKeys[AccountId32]
- Toggle the switch
include optionand select your validator address in theAccountId32field. - Click the
+button. - Confirm that your key is displayed.
Remove unsafe RPC methods from your node
Remove--unsafe-rpc-external and --rpc-methods=unsafe, which you needed to generate the key, and rerun the container.
First stop and remove the container you started in Set up a node. Find its ID:
peaq-storage volume is not deleted, so your synced chain data stays on the VM:

