atomone-icon

AtomeOne

Chain ID:

atomone-1

Block Height:

RPC Status:

Setup Server

Update Packages and Install Prerequisites
sudo apt update && apt upgrade -y
sudo apt install curl git jq lz4 build-essential -y
Set Firewall
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh
sudo ufw allow 26656
sudo ufw enable

Install Go

VER="1.21.5"
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go$VER.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Node Installation

Build Binary From Repository
cd $HOME
rm -rf atomone
git clone https://github.com/atomone-hub/atomone.git atomone
cd atomone
git checkout v2.0.0
make install
Initialize Node
MONIKER="NodeName"
atomoned init $MONIKER --chain-id atomone-1
Set Node Configuration
atomoned config chain-id atomone-1
atomoned config keyring-backend file
Add Genesis File and Addrbook
curl -Ls https://snapshots.revonode.com/atomone/genesis.json > $HOME/.atomone/config/genesis.json
curl -Ls https://snapshots.revonode.com/atomone/addrbook.json > $HOME/.atomone/config/addrbook.json
Configure Seeds and Peers
SEEDS="35e39b83d2d0d76a8ebd97939629fe0730508c0b@seed-atomone.revonode.com:10356"
PEERS="$(curl -sS https://rpc.atomone.revonode.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^seeds *=.*|seeds = '"$SEEDS"'|; s|^persistent_peers *=.*|persistent_peers = '"$PEERS"'|" $HOME/.atomone/config/config.toml
Configure Gas Prices
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = "0.025uatone"/" $HOME/.atomone/config/app.toml
Set Custom Pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.atomone/config/app.toml
Set Service File
sudo tee /etc/systemd/system/atomoned.service > /dev/null <<EOF
[Unit]
Description=atomone node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which atomoned) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Reload and Enable Service File
sudo systemctl daemon-reload
sudo systemctl enable atomoned
Download Latest Snapshot
curl -L https://snapshots.revonode.com/atomone/atomone-latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.atomone
[[ -f $HOME/.atomone/data/upgrade-info.json ]] && cp $HOME/.atomone/data/upgrade-info.json $HOME/.atomone/cosmovisor/genesis/upgrade-info.json
Start Node
sudo systemctl start atomoned && sudo journalctl -fu atomoned -o cat