Node Installation
Hardware requirements The following requirements are recommended for running ORAICHAIN:
16 or more physical CPU cores
At least 1TB of SSD disk storage
At least 32GB of memory (RAM)
At least 1Gbps network bandwidth
Manual Installation
# Update & install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq htop tmux chrony liblz4-tool -y
# Install Go
cd $HOME
VER="1.22.2"
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
go version
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export ORAI_CHAIN_ID="Oraichain"" >> $HOME/.bash_profile
echo "export ORAI_PORT="104"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Download Binary
cd $HOME
rm -rf orai
git clone https://github.com/oraichain/orai
cd orai
git checkout v0.42.0
make install
# Config and Init App
oraid config node tcp://localhost:${ORAI_PORT}57
oraid config keyring-backend os
oraid config chain-id $ORAI_CHAIN_ID
oraid init $MONIKER --chain-id $ORAI_CHAIN_ID
# Add Genesis File and Addrbook
wget -O $HOME/.oraid/config/genesis.json https://testnet-files.syanodes.my.id/orai-m-genesis.json
wget -O $HOME/.oraid/config/addrbook.json https://testnet-files.syanodes.my.id/orai-m-addrbook.json
#Configure Seeds and Peers
SEEDS=""
PEERS="[email protected]:26656,[email protected]:11256,[email protected]:26656,[email protected]:27656,[email protected]:26696,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:37095,[email protected]:26656,[email protected]:30456,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26643,[email protected]:25956,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:34656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:27436,[email protected]:38801,[email protected]:24556,[email protected]:26656,[email protected]:26656,[email protected]:11256,[email protected]:26656,[email protected]:23356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:42656,[email protected]:26656,[email protected]:26656,[email protected]:11256,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:23356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:16456,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:23356,[email protected]:26656,[email protected]:26656,[email protected]:23356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:22656,[email protected]:26656,[email protected]:11256,[email protected]:26656,[email protected]:26656,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:35656,[email protected]:26656,[email protected]:23356,[email protected]:26656,[email protected]:2056,[email protected]:12356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:23356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:40656,[email protected]:26656,[email protected]:27656,[email protected]:11256,[email protected]:30456,[email protected]:26656,[email protected]:33656,[email protected]:23177,[email protected]:11256"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.oraid/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0orai\"/" $HOME/.oraid/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.oraid/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.oraid/config/config.toml
# Config Pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.oraid/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.oraid/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.oraid/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.oraid/config/app.toml
# Set Custom Port
sed -i -e "s%:1317%:${ORAI_PORT}17%; s%:8080%:${ORAI_PORT}80%; s%:9090%:${ORAI_PORT}90%; s%:9091%:${ORAI_PORT}91%; s%:8545%:${ORAI_PORT}45%; s%:8546%:${ORAI_PORT}46%; s%:6065%:${ORAI_PORT}65%" $HOME/.oraid/config/app.toml
sed -i -e "s%:26658%:${ORAI_PORT}58%; s%:26657%:${ORAI_PORT}57%; s%:6060%:${ORAI_PORT}60%; s%:26656%:${ORAI_PORT}56%; s%:26660%:${ORAI_PORT}61%" $HOME/.oraid/config/config.toml
sed -i \
-e 's|^chain-id *=.*|chain-id = "Oraichain"|' \
-e 's|^node *=.*|node = "tcp://localhost:10457"|' \
$HOME/.oraid/config/client.toml
# Set Service File
sudo tee /etc/systemd/system/oraid.service > /dev/null <<EOF
[Unit]
Description=Oraichain
After=network-online.target
[Service]
User=$USER
ExecStart=$(which oraid) start --home $HOME/.oraid
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable oraid
sudo systemctl start oraid
sudo journalctl -fu oraid -o cat
Auto Installation
wget https://snapshot.syanodes.my.id/auto/mainnet/orai_auto && chmod +x orai_auto && ./orai_auto
Last updated