Download and Install the Binary
First download the latest binary and make it executable:
wget https://github.com/airchains-network/junction/releases/download/v0.1.0/junctiond
chmod +x junctiond
sudo mv junctiond /usr/local/bin/
Initialize the Node
You need to initialize the node with a moniker (your node's name):
junctiond init <your_moniker>
This command will generate the required files and set up a directory for the node.
Configuration Files
Next, download the genesis file and modify the configuration files. Start by replacing the default genesis.json with the correct one:
wget https://example.com/genesis.json -O ~/.junction/config/genesis.json
Edit the config.toml file to set seeds, minimum gas prices, and peers:
nano ~/.junction/config/config.toml
In the file, find the seeds parameter and add the following:
seeds = "<peer_1>,<peer_2>"
Set Persistent Peers
Update persistent_peers with known peers to ensure your node connects properly:
persistent_peers = "<peer_1>,<peer_2>"
Run the Node
Once everything is set, run your node:
junctiond start
Monitoring the Node
To monitor the node's status, use the following commands:
Check the node's status:
junctiond status
View logs in real-time:
tail -f ~/.junction/logs/junctiond.log
Setting Up as a Validator
If you'd like to become a validator, first create a new wallet:
junctiond keys add <wallet_name>
Next, send some tokens to this wallet, and finally, create the validator:
junctiond tx staking create-validator \
--amount=1000000ujunction \
--pubkey=$(junctiond tendermint show-validator) \
--moniker="<your_moniker>" \
--chain-id="<chain_id>" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--from=<wallet_name>

