Skip to content
A workshop for getting started with Kusama's Thousand Validator's Programme
HCL Shell
Branch: master
Clone or download

Latest commit

Latest commit d6e27ae Feb 3, 2020


Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts initial commit Feb 2, 2020
terraform initial commit Feb 2, 2020 initial commit Feb 2, 2020

Getting Started

Create a Google Cloud Platform Account

  1. Create an account on Google Cloud Platform
  2. Create a project on Google Cloud Platform, for example Trustles2020
  3. Create a service account key, rename it to credentials.json, and place it in the repository root folder.

Install Terraform

  1. Install the Terraform binary.

Setup SSH Keys

  1. Run ./scripts/, or create a new ssh pair named id_rsa in the .ssh directory of this project
  2. update terraform.tfvars to have the public_key_path and private_key_path correspond to the public and private ssh keys that were just generated.

Set up terraform.tfvars

Fill in the following:

// GCP Project name, for example, trustless2020 project_name = ""

// Path of the setup script, for example, ../scripts/ script_path = ""

// Path of the public SSH key, for example ../.ssh/ public_key_path = ""

// Path of the private SSH key, for example, ../.ssh/id_rsa private_key_path = ""

// Path of the GCP service account credentials, for example, ../credentials.json service_key_path = ""

// Username of the user accessing the host, for example $USER username = ""

// URL of a tar file of a backed up DB db_url = ""

Run Terraform scripts

  1. cd terraform, and terraform apply. This should take ~10 minutes for the node to start syncing

Create Session Keys

  1. After the node is syncing, SSH into the box:

    ssh -i ../.ssh/id_rsa `terraform output ip`

and use the author_rotateKeys RPC call from within the Docker container:

sudo docker exec -i kusama-validator curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933

The output will look something like:


Set Session Keys and Validate

  1. Inject the above result and submit a Validate Extrinsic
You can’t perform that action at this time.