Becoming a Validator
Generate Session Key
Generate the key
- Make the request from your VM (where your validator node container is running) using the following command:
- Copy the key from the response:
- In this case, the key is:
Associate your session key with your validator account
Open the Developer tab, and click Extrinsics, there you’ll need to submit the following extrinsic:
Developer → Extrinsics → session → setKeys(keys, proof)
You can use any peaq endpoint to submit
setKeys
extrinsic, including the endpoint from your VM with validator node.- Paste your session key into the
aura: SpConsensusAuraSr25519AppSr25519Public field
- Paste 0x00 into the field
proof: Bytes
- Click
Submit Transaction
After using setKeys extrinsic, you can connect back to the public endpoint.
Double-check that your session key is associated with your wallet address
Open the Developer tab, and click Chain state. There, you’ll need to submit the following state query:
Developer → Chain state → Session → nextKeys[AccountId32]
- Toggle the switch
include option
and select your validator address in theAccountId32
field. - Click the
+
button. - Confirm that your key is displayed.
Remove unsafe rpc methods from your node
Remove --unsafe-rpc-external
and --rpc-methods=unsafe
methods, which we needed in the beginning, and rerun the container.