Skip to main content

Generate the key

Run this on the VM where your validator node container is running:
Your session key is the result field of the response:

Associate your session key with your validator account

Submit the setKeys 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)
  1. Paste your session key into the aura: SpConsensusAuraSr25519AppSr25519Public field.
  2. Paste 0x00 into the proof: Bytes field.
  3. Click Submit Transaction.

Check that the key is associated with your address

Developer → Chain state → Session → nextKeys[AccountId32]
  1. Toggle the switch include option and select your validator address in the AccountId32 field.
  2. Click the + button.
  3. 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:
Then stop and remove it. The peaq-storage volume is not deleted, so your synced chain data stays on the VM:
Start the container again without the unsafe flags: