π Installation
1οΈβ£ Installation packages and dependencies
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
sudo apt-get update && apt-get install -y libssl-dev
β‘οΈ Go Installation
cd $HOME
VER="1.21.13"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
2οΈβ£ Install node
echo "export ATOMONE_PORT="36"" >> $HOME/.bash_profile
source $HOME/.bash_profile
cd $HOME
rm -rf atomone
git clone https://github.com/atomone-hub/atomone
cd atomone
git checkout v1.0.1
make build
mkdir -p $HOME/.atomone/cosmovisor/genesis/bin
mv $HOME/atomone/build/atomoned $HOME/.atomone/cosmovisor/genesis/bin/
sudo ln -s $HOME/.atomone/cosmovisor/genesis $HOME/.atomone/cosmovisor/current -f
sudo ln -s $HOME/.atomone/cosmovisor/current/bin/atomoned /usr/local/bin/atomoned -f
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
cd
β‘οΈ Create a service
sudo tee /etc/systemd/system/atomoned.service > /dev/null << EOF
[Unit]
Description=atomone node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --home $HOME/.atomone
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.atomone"
Environment="DAEMON_NAME=atomoned"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.atomone/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
β‘οΈ Letβs activate it
sudo systemctl daemon-reload
sudo systemctl enable atomoned
β‘οΈ Initialize the node
atomoned init "NODE-NAME" --chain-id atomone-1
sed -i -e '/^chain-id = /c\chain-id = "atomone-1"' $HOME/.atomone/config/client.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${ATOMONE_PORT}657\"|" $HOME/.atomone/config/client.toml
β‘οΈ Genesis addrbook
curl https://atomone.fra1.digitaloceanspaces.com/genesis.json -o ~/.atomone/config/genesis.json
curl https://raw.githubusercontent.com/MictoNode/micto-atomone/refs/heads/main/addrbook.json -o ~/.atomone/config/addrbook.json
β‘οΈ Port
sed -i.bak -e "s%:1317%:${ATOMONE_PORT}317%g;
s%:8080%:${ATOMONE_PORT}080%g;
s%:9090%:${ATOMONE_PORT}090%g;
s%:9091%:${ATOMONE_PORT}091%g;
s%:8545%:${ATOMONE_PORT}545%g;
s%:8546%:${ATOMONE_PORT}546%g;
s%:6065%:${ATOMONE_PORT}065%g" $HOME/.atomone/config/app.toml
sed -i.bak -e "s%:26658%:${ATOMONE_PORT}658%g;
s%:26657%:${ATOMONE_PORT}657%g;
s%:6060%:${ATOMONE_PORT}060%g;
s%:26656%:${ATOMONE_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${ATOMONE_PORT}656\"%;
s%:26660%:${ATOMONE_PORT}660%g" $HOME/.atomone/config/config.toml
β‘οΈ Peers and Seeds
SEEDS=""
PEERS="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2110,[email protected]:29956,[email protected]:26666,[email protected]:26656,[email protected]:27396,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:14556,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:30656,[email protected]:23956,[email protected]:10156,[email protected]:29956,[email protected]:26656,[email protected]:9756,[email protected]:26656,[email protected]:17900,[email protected]:26706,[email protected]:11256,[email protected]:26656,[email protected]:29956,[email protected]:16656,[email protected]:17900,[email protected]:29956,[email protected]:34656,[email protected]:27656,[email protected]:43656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.atomone/config/config.toml
β‘οΈ Pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.atomone/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.atomone/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.atomone/config/app.toml
β‘οΈ Gas Settings
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.001uatone"|g' $HOME/.atomone/config/app.toml
β‘οΈ Prometheus & Indexer
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.atomone/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.atomone/config/config.toml
β‘οΈ Starter Snap (Thx Utsa)
rm -rf $HOME/.atomone/data/{application.db,evidence.db,snapshots,tx_index.db,blockstore.db,state.db,cs.wal}
curl -o - -L https://share102.utsa.tech/atomone/atomone.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.atomone/
β‘οΈ Letβs get started
sudo systemctl start atomoned && sudo journalctl -u atomoned -f -o cat
β‘οΈ Log Command
journalctl -u atomoned -f -o cat
β‘οΈ Create wallet
Warning
Donβt forget to backup the wallet words!
atomoned keys add wallet-name
β‘οΈ Import wallet
atomoned keys add wallet-name --recover
β‘οΈ Create Validator
Info
You canβt create a validator without Sync. You must have to catch the latest block.
atomoned tx staking create-validator \
--pubkey $(atomoned tendermint show-validator) \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--amount 1000000uatone \
--moniker "MictoNode" \
--identity "" \
--details "" \
--from wallet-name \
--chain-id atomone-1 \
--fees 200uatone \
-y
β‘οΈ Delegate to Yourself
atomoned tx staking delegate $(atomoned keys show wallet-name --bech val -a) amount000000uatone \
--chain-id atomone-1 \
--from "wallet-name" \
--fees 200uatone
-y
β‘οΈ Edit Validator
atomoned tx staking edit-validator \
--chain-id atomone-1 \
--commission-rate 0.05 \
--new-moniker "validator-name" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--from "wallet-name" \
--node http://localhost:${ATOMONE_PORT}657 \
--fees 200uatone \
-y
β‘οΈ Complete deletion
cd $HOME
sudo systemctl stop atomoned
sudo systemctl disable atomoned
sudo rm -rf /etc/systemd/system/atomoned.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/atomoned
sudo rm -f $(which atomoned)
sudo rm -rf $HOME/.atomone $HOME/atomone
sed -i "/ATOMONE_PORT_/d" $HOME/.bash_profile
β‘οΈ Block check
local_height=$(curl -s localhost:${ATOMONE_PORT}657/status | jq -r .result.sync_info.latest_block_height); network_height=$(curl -s https://atomone-mainnet-rpc.mictonode.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
- Your node height - the current block of your node
- Network height - the last block of the network
- Blocks left - how many blocks your node has left to sync.