Skip to content

Latest commit

 

History

History
81 lines (66 loc) · 3.56 KB

README.md

File metadata and controls

81 lines (66 loc) · 3.56 KB

Visit Our Website : NodeX Capital Official


Realio Mainnet | Chain ID: realionetwork_3301-1 | Custom Port: 115

Community Documentation:

Explorer:

Automatic Installer

You can setup your Realio fullnode in few minutes by using automated script below

wget -O realio.sh https://raw.githubusercontent.com/nodexcapital/mainnet/main/realio/realio.sh && chmod +x realio.sh && ./realio.sh

Public Endpoint

Snapshot

sudo systemctl stop realio-networkd
cp $HOME/.realio-network/data/priv_validator_state.json $HOME/.realio-network/priv_validator_state.json.backup
rm -rf $HOME/.realio-network/data

curl -L https://snap.nodexcapital.com/realio/realio-latest.tar.lz4 | tar -Ilz4 -xf - -C  $HOME/.realio-network
mv $HOME/.realio-network/priv_validator_state.json.backup $HOME/.realio-network/data/priv_validator_state.json

sudo systemctl start realio-networkd && sudo journalctl -u realio-networkd -f --no-hostname -o cat

State Sync

sudo systemctl stop realio-networkd
cp $HOME/.realio-network/data/priv_validator_state.json $HOME/.realio-network/priv_validator_state.json.backup
realio-networkd tendermint unsafe-reset-all --home $HOME/.realio-network

STATE_SYNC_RPC=https://rpc.realio.nodexcapital.com:443
STATE_SYNC_PEER=a6ebaed2c7972941b5cce5d94ec94a1352a600a4@peers-decentr.sxlzptprjkt.xyz:31656 
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)

sed -i \
  -e "s|^enable *=.*|enable = true|" \
  -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
  -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
  -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
  -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
  $HOME/.realio-network/config/config.toml

mv $HOME/.realio-network/priv_validator_state.json.backup $HOME/.realio-network/data/priv_validator_state.json

sudo systemctl start realio-networkd && sudo journalctl -u realio-networkd -f --no-hostname -o cat

Live Peers

PEERS="$(curl -sS https://rpc.realio.nodexcapital.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.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.realio-network/config/config.toml

Addrbook (Update every hour)

curl -Ls https://snap.nodexcapital.com/realio/addrbook.json > $HOME/.realio-network/config/addrbook.json

Genesis

curl -Ls https://snap.nodexcapital.com/realio/genesis.json > $HOME/.realio-network/config/genesis.json