Skip to main content

Generate the key

  1. Make the request from your VM (where your validator node container is running) using the following command:
  1. Copy the key from the response:
  1. 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.
validator-3
  1. Paste your session key into the aura: SpConsensusAuraSr25519AppSr25519Public field
  2. Paste 0x00 into the field proof: Bytes
  3. 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] validator-4
  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 methods, which we needed in the beginning, and rerun the container.