Run a Validator Node

This manual offers a detailed, step-by-step approach for establishing and operating a full validator node on the Airsettle.

1. Clone the repository

git clone https://github.com/airchains-network/junction.git
cd junction

2. Switch to Release

git checkout v0.0.2-beta

3. Initialize the chain

ignite chain init

Add the path /Users/<your_pc_username>/go/bin to your environment variables for easy access to 'Junction'. Replace <your_pc_username> with your actual PC username.

4. Delete the Existing Configuration Folder

Remove the folder ~/.junction if it exists.

rm -rf ~/.junction

5. Initialize the Node with the Moniker

junctiond init <moniker>

6. Update Genesis Configuration

Replace the contents of ~/.junction/config/genesis.json with the contents from the resources/genesis/genesis.json file.

cp resources/genesis/genesis.json ~/.junction/config/genesis.json

7. Update Configuration

Edit ~/.junction/config/config.toml to set persistent_peers:

persistent_peers = "009075e1d1b0989ab2d0563c9e7454eb6c320772@35.200.232.241:26656"

8. Start the Node

junctiond start

9. Wait For the Node the to Sync

Run the Command to check the status of the Node.

junctiond status

Should the 'catching_up' field return 'true', it's important to wait until the Node completes its synchronization. Do not proceed with further steps until this process is finished.

10. Creating New Account for the Validator

junctiond keys add <validator-name>

This command will generate your wallet's mnemonic and address. It's crucial to write these down and store them securely.

11. Fund you Account

You need to ensure that your validator account holds a minimum of 58 tokens. If your account doesn't have enough tokens, you can acquire devnet or testnet tokens from our public faucet. The faucet is accessible at Airchains Faucet.

12. Stake Token to become a Validator

/junctiond tx staking create-validator \
--amount=58stake \
--pubkey=$(./junctiond tendermint show-validator) \
--moniker=<moniker> \
--chain-id=airsettle \
--commission-rate="0.05" \
--commission-max-rate="0.10" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--gas="200000" \
--fees="2stake" \
--from=<nameOfTheValdiator>

A prompt will appear in the CLI. To proceed, type 'y' and press enter.

It will return Transaction hash Like this

code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 3068ED7C9867D9DC926A200363704715AE9470EE73452324A32C2583E62B1D79

13 Query Validator Set

To See if you were accepted as a validator,

junctiond query tendermint-validator-set

If your address is visible, it indicates successful inclusion in the validator set. Please note that this process may take some time.

Last updated