Skip to main content

Services

Explorer

https://explorer.ngsolutions.xyz/initia

NGSolution Services

APIRPCgRPC
initia.api.ngsolutions.xyzinitia.rpc.ngsolutions.xyzinitia.grpc.ngsolutions.xyz:11093

Snapshot

warning

Unfortunately, snapshot is not available right now! We are working on it.

Guide

danger

Important: Back Up Your Validator Key

Before resetting your node, ensure you have a backup of your priv_validator_key.json file. This is especially important if you've already created a validator. Without a backup, resetting the node will result in lost access and require you to create a new validator from scratch.

info

This script creates a copy of your priv_validator_state.json and priv_validator_key.json files. It then copies the original private files back after downloading the snapshot. However, use this script with caution to avoid any potential failures.

  1. Stop the node

    systemctl stop initiad
  2. Create Backups of Private Files.

    cp $HOME/.initia/data/priv_validator_state.json $HOME/priv_validator_state.json.initia.backup
    cp $HOME/.initia/config/priv_validator_key.json $HOME/priv_validator_key.json.initia.backup
  3. Reset Node and Download Snapshot

    # initiad tendermint unsafe-reset-all --home $HOME/.initia --keep-addr-book
    # curl https://snapshots.ngsolutions.xyz/snapshots/initia/snap_initia.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.initia
  4. Restore Backed Up Files

    cp $HOME/priv_validator_state.json.initia.backup $HOME/.initia/data/priv_validator_state.json
    cp $HOME/priv_validator_key.json.initia.backup $HOME/.initia/config/priv_validator_key.json
  5. Start the Node and Monitor Logs

    # It might take a while to establish connections with peers.
    systemctl start initiad && journalctl -u initiad -f --no-hostname -o cat