StateSet Network Quickstart
Getting started with the StateSet Network
Prerequisites
First we need to install Git, Node.js, Go and Rust:
Install Git
Install Node.js with NVM
Currently, Stateset Network uses Go 1.19 to compile the code.
Install GO
Install Go 1.19
Verify the installation by typing go version in your terminal.
Setup
- Stop your node
- Reset
statesetd unsafe-reset-all
- Remove genesis
rm .stateset/config/genesis.json
- Remove gentxs
rm -r .stateset/config/gentx/
- Follow generate gentx as normal below
Genesis File
statesetd version
Setup
Prerequisites: Make sure to have Golang >=1.19.
Build from source
You need to ensure your gopath configuration is correct. If the following ‘make’ step does not work then you might have to add these lines to your .profile or .zshrc in the users home folder:
Source update .profile
This will build and install statesetd
binary into $GOBIN
.
Note: When building from source, it is important to have your $GOPATH
set correctly. When in doubt, the following should do:
Minimum hardware requirements
- 8-16GB RAM
- 100GB of disk space
- 2 cores
Setup validator node
Below are the instructions to generate & submit your genesis transaction
Generate genesis transaction (gentx)
-
Initialize the Stateset directories and create the local genesis file with the correct chain-id:
-
Create a local key pair:
-
Add your account to your local genesis file with a given amount and the key you just created.
-
Create the gentx, use only
9000000000ustate
:If all goes well, you will see a message similar to the following:
Submit genesis transaction
-
Fork the networks repo into your Github account
-
Clone your repo using
-
Copy the generated gentx json file to
<repo_path>/networks/stateset-1/gentx/
-
Commit and push to your repo
-
Create a PR onto https://github.com/stateset/networks
-
Only PRs from individuals / groups with a history successfully running nodes will be accepted. This is to ensure the network successfully starts on time.