Api & Sync
Explorer:
https://explorer.nodesync.top/NexaRail-Testnet
API:
https://nexarail-api-testnet.nodesync.top
RPC:
https://nexarail-rpc-testnet.nodesync.top
Peers Scanner:
Auto-updated every 6 hours
Loading peers...
Snapshots
cd $HOME
systemctl stop nexaraild
cp $HOME/.nexarail/data/priv_validator_state.json $HOME/.nexarail/priv_validator_state.json.backup
nexaraild tendermint unsafe-reset-all --home $HOME/.nexarail --keep-addr-book
rm -rf $HOME/.nexarail/data/
curl -o - -L https://snapshots.nodesync.top/Testnet/NexaRail/nexarail_latest.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.nexarail
mv $HOME/.nexarail/priv_validator_state.json.backup $HOME/.nexarail/data/priv_validator_state.json
systemctl restart nexaraild && journalctl -u nexaraild -f -o cat
StateSync
sudo systemctl stop nexaraild
cp $HOME/.nexarail/data/priv_validator_state.json $HOME/.nexarail/priv_validator_state.json.backup
nexaraild tendermint unsafe-reset-all --home $HOME/.nexarail --keep-addr-book
# add peer
peers="2bb62d82b4dbf820fdafd843816f1e72a84ffa8f@nexarail-testnet-peer.nodesync.top:26656,[email protected]:60756"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.nexarail/config/config.toml
SNAP_RPC=https://t-nexarail.rpc.utsa.tech:443
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.nexarail/config/config.toml
mv $HOME/.nexarail/priv_validator_state.json.backup $HOME/.nexarail/data/priv_validator_state.json
sudo systemctl restart nexaraild && sudo journalctl -u nexaraild -fo cat