Initia

Services

A curated list of different services provided by EmberStake for Initia

Public Endpoints

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.

This guide is intended for users who are setting up and running their nodes using our Initia-Dockerized repository

Stop the container and Run an ephemeral container

terminal
docker compose stop node
docker compose run --rm --entrypoint /bin/bash node

now you are inside the container, you can enter required commands to enable state sync

terminal
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.emberstake.xyz:443
STATE_SYNC_PEER=72c090328c8384dfbfbea61f025f461e62a9c391@testnet-initia-peer.emberstake.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

exit from the container with ctrl + D
Run the node container in the background

terminal
docker compose up -d node

Check logs

terminal
docker compose logs -f node

Use this guide if you are using systemd

terminal
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.emberstake.xyz:443
STATE_SYNC_PEER=72c090328c8384dfbfbea61f025f461e62a9c391@testnet-initia-peer.emberstake.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