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
  • State Sync
  1. Initia

Services

PreviousIntroductionNextNode guide

Last updated 10 months ago

Public Endpoints

  • RPC -

Peer

EmberStake Peer

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

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

Check logs

terminal

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

πŸ•–
https://testnet-initia-rpc.emberstake.xyz