CHAIN DIGITAL | services for nodes
  • About CHAIN DIGITAL
  • Testnets
    • Celestia
      • Install
        • Full node
        • Bridge node
      • Upgrade
      • API/Snapshot/AddrBook
      • Useful Commands
      • Monitoring a Celestia consensus node
      • Celestia Validator monitoring guide with tenderduty
    • Walrus
      • Guide for Node Operators
  • MAINNETS
    • Celestia
      • Install
        • Full node
        • Bridge node
      • Upgrade
      • Useful Commands
    • Kusama
      • Install
      • Upgrade
      • RPC and Snapshot
      • Useful Commands
    • Polkadot
      • Install
      • Upgrade
      • RPC and Snapshot
      • Useful Commands
    • Sui
      • Sui Full Node
      • Sui Validator Node
  • VALIDATOR SECURITY
    • Server Security for Validators
Powered by GitBook
On this page
  • Chain ID: celestia | Latest Version Tag: v3.8.1
  • Dependencies Installation
  • Automatic installation
  • Manual installation
  • Create wallet
  • Create validator
  1. MAINNETS
  2. Celestia

Install

Recommended Hardware: 6 Cores, 8GB RAM, 500GB of storage (NVME)

Chain ID: celestia | Latest Version Tag: v3.8.1

Dependencies Installation

Update system and install build tools

sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

Install GO

cd $HOME
ver="1.23.1" && \
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" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

Automatic installation

Just copy and paste it on your server

source <(curl -s https://raw.githubusercontent.com/chaindigital/celestia/main/installvalidatormain.sh)

Manual installation

Come up with the name of your node and replace it instead <your_moniker>

MONIKER=<your_moniker>

Download binary files

cd $HOME 
rm -rf celestia-app 
git clone https://github.com/celestiaorg/celestia-app.git 
cd celestia-app 
git checkout v3.8.1
make install

Initialize the node

# config and init app
celestia-appd config chain-id celestia
celestia-appd config keyring-backend file
celestia-appd config node tcp://localhost:26657

celestia-appd init $MONIKER --chain-id celestia

Set node configuration

# download genesis and addrbook
curl -Ls https://snapshots.kjnodes.com/celestia/genesis.json > $HOME/.celestia-app/config/genesis.json
curl -Ls https://snapshots.kjnodes.com/celestia/addrbook.json > $HOME/.celestia-app/config/addrbook.json

# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"400f3d9e30b69e78a7fb891f60d76fa3c73f0ecc@celestia.rpc.kjnodes.com:12059\"|" $HOME/.celestia-app/config/config.toml

# Set commit timeout
sed -i -e "s|^target_height_duration *=.*|timeout_commit = \"11s\"|" $HOME/.celestia-app/config/config.toml

# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.002utia\"|" $HOME/.celestia-app/config/app.toml

# Set pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.celestia-app/config/app.toml 
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.celestia-app/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"19\"/" $HOME/.celestia-app/config/app.toml

# Set configuration for v3
sed -i -e "s|^recv_rate *=.*|recv_rate = 10485760|" -e "s|^send_rate *=.*|send_rate = 10485760|" -e "s|^ttl-num-blocks *=.*|ttl-num-blocks = 12|" $HOME/.celestia-app/config/config.toml

# Enable bbr
sudo modprobe tcp_bbr
echo "net.core.default_qdisc=fq" | sudo tee -a /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

Create a service

sudo tee /etc/systemd/system/celestia-appd.service > /dev/null <<EOF
[Unit]
Description=Celestia node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.celestia-app
ExecStart=$(which celestia-appd) start --home $HOME/.celestia-app
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable celestia-appd

Download latest chain snapshot

Start service and check the logs

sudo systemctl start celestia-appd && sudo journalctl -u celestia-appd -f

Create wallet

# to create a new wallet, use the following command. don’t forget to save the mnemonic
celestia-appd keys add wallet

# to restore exexuting wallet, use the following command
celestia-appd keys add wallet --recover

# list all keys
celestia-appd keys list

# before creating a validator, you need to fund your wallet and check balance
celestia-appd q bank balances $(celestia-appd keys show wallet -a)

Create validator

celestia-appd tx staking create-validator \
--amount 1000000utia \
--pubkey $(celestia-appd tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id celestia \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.05 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005utia \
-y
PreviousCelestiaNextFull node

Last updated 1 month ago