πŸ”Œ 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

atomoned keys add wallet-name

➑️ Import wallet

atomoned keys add wallet-name --recover

➑️ Create Validator

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.