Panthea EU Docs
Search
K

BitSong (BTSG)

Snapshot (Max. 4 hours old)

sudo systemctl stop bitsongd
cp $HOME/.bitsongd/data/priv_validator_state.json $HOME/.bitsongd/priv_validator_state.json.backup
rm -rf $HOME/.bitsongd/data
curl -o - -L https://valhalla.panthea.eu/snapshots/bitsong-snapshot.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.bitsongd
mv $HOME/.bitsongd/priv_validator_state.json.backup $HOME/.bitsongd/data/priv_validator_state.json
sudo systemctl start bitsongd

State Sync

SNAP_RPC="https://bitsong-rpc.panthea.eu:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 500)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.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\"|" $HOME/.bitsongd/config/config.toml
sudo systemctl stop bitsongd
cp $HOME/.bitsongd/data/priv_validator_state.json $HOME/.bitsongd/priv_validator_state.json.backup
bitsongd tendermint unsafe-reset-all --keep-addr-book --home "$HOME/.bitsongd"
mv $HOME/.bitsongd/priv_validator_state.json.backup $HOME/.bitsongd/data/priv_validator_state.json
sudo systemctl start bitsongd

Addrbook (Updated every hour)

curl -Ls https://valhalla.panthea.eu/addrbooks/bitsong/addrbook.json > $HOME/.bitsongd/config/addrbook.json

Genesis file

curl -Ls https://valhalla.panthea.eu/genesis/bitsong/genesis.json > $HOME/.bitsongd/config/genesis.json

Persistent Peer

Seed Node

gRPC Endpoint

bitsong-grpc.panthea.eu:16750

RPC Endpoint

REST/API Endpoint

Last modified 21d ago