ValiTech
  • ℹ️Intro
  • Initia
    • 🐒Introduction
    • πŸ•–Services
    • ♾️Node guide
  • 0G - Zero Gravity
    • 🐒Introduction
    • πŸ•–Services
    • ♾️Node guide
  • Aligned Layer
    • 🐒Introduction
    • ♾️Node guide
Powered by GitBook
On this page
  • Public Endpoints
  • Peer
  • Address book
  • State Sync
  • Snapshot
  • Check logs
  1. 0G - Zero Gravity

Services

PreviousIntroductionNextNode guide

Last updated 10 months ago

Public Endpoints

  • RPC -

  • LCD -

  • JSON API -

Peer

ValiTech Peer

72c090328c8384dfbfbea61f025f461e62a9c391@testnet-initia-peer.valitech.xyz:29759

Address book

You can also download our nodes Address book. updates in realtime

terminal

wget -O $HOME/.0gchain/config/addrbook.json https://testnet-v2-0g-snapshot.valitech.xyz/addrbook.json

State Sync

To quickly sync your node with rest of network, you can our State Sync Snapshots.

Use this guide if you are using systemd

sudo systemctl stop evmosd
cp $HOME/.initia/data/priv_validator_state.json $HOME/.initia/priv_validator_state.json.backup
initiad tendermint unsafe-reset-all --home $HOME/.initia --keep-addr-book

STATE_SYNC_RPC=https://testnet-initia-rpc.valitech.xyz:443
STATE_SYNC_PEER=72c090328c8384dfbfbea61f025f461e62a9c391@testnet-initia-peer.valitech.xyz:29759
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000))
TRUST_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo -e "RPC:          $STATE_SYNC_RPC"
echo -e "Latest Block Height:  $LATEST_HEIGHT"
echo -e "Sync Block Height:    $SYNC_BLOCK_HEIGHT"
echo -e "Trust Hash:           $TRUST_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 = \"$TRUST_HASH\"|" \
    -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
    $HOME/.initia/config/config.toml

mkdir -p $HOME/.initia/data && mv $HOME/.initia/priv_validator_state.json.backup $HOME/.initia/data/priv_validator_state.json

Snapshot

Use our snapshot to bootstrap your node, updated every 6 hours

sudo systemctl stop 0gchain
cp $HOME/.0gchain/data/priv_validator_state.json $HOME/.0gchain/priv_validator_state.json.backup
rm -rf $HOME/.0gchain/data

curl https://testnet-v2-0g-snapshot.valitech.xyz/latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.0gchain

mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json

Check logs

sudo systemctl restart initiad && sudo journalctl -u initiad -f --no-hostname -o cat

πŸ•–
https://testnet-v2-0g-rpc.valitech.xyz/
https://testnet-v2-0g-lcd.valitech.xyz
https://testnet-v2-0g-api-rpc.valitech.xyz