RPC, API, gRPC
gRPC:
provenance-mainnet-grpc.itrocket.net:443
Peers, Seeds, Live Peers, Addrbook
peers:
b75bb5d0c033b5a8ca24df607a757d09e4f99acd@provenance-mainnet-peer.itrocket.net:57656
seeds:
a280ec7a1b563cb71510723b860ed37d40494308@provenance-mainnet-seed.itrocket.net:57656
live peers: (0 active)
PEERS="b75bb5d0c033b5a8ca24df607a757d09e4f99acd@provenance-mainnet-peer.itrocket.net:57656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.provenanced/config/config.toml
peers scanner:
PEERS="[email protected]:29656,7e2c9022216834e5136daae9a1b105a031977f3c@provenance.rpc.m.anode.team:29656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:40656,[email protected]:28212,[email protected]:26656,b75bb5d0c033b5a8ca24df607a757d09e4f99acd@provenance-mainnet-rpc.itrocket.net:57656,30973174fa34714da38bda961bea24a49f84b15c@provenance-rpc.highstakes.ch:26657"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.provenanced/config/config.toml
addrbook: (upd 1h)
wget -O $HOME/.provenanced/config/addrbook.json https://server-5.itrocket.net/mainnet/provenance/addrbook.json
genesis:
wget -O $HOME/.provenanced/config/genesis.json https://server-5.itrocket.net/mainnet/provenance/genesis.json
Snapshot
prunedupdated every available 24/7 (every server stores last 2 snapshots)
height: Loading...0 blocks agoBdb:
sudo systemctl stop provenanced
cp $HOME/.provenanced/data/priv_validator_state.json $HOME/.provenanced/priv_validator_state.json.backup
rm -rf $HOME/.provenanced/data
curl https://server-5.itrocket.net/mainnet/provenance/null | lz4 -dc - | tar -xf - -C $HOME/.provenanced
mv $HOME/.provenanced/priv_validator_state.json.backup $HOME/.provenanced/data/priv_validator_state.json
sudo systemctl restart provenanced && sudo journalctl -u provenanced -f
State Sync
If you don't want to wait for a long synchronization you can use:
sudo systemctl stop provenanced
cp $HOME/.provenanced/data/priv_validator_state.json $HOME/.provenanced/priv_validator_state.json.backup
provenanced tendermint unsafe-reset-all --home $HOME/.provenanced
peers="b75bb5d0c033b5a8ca24df607a757d09e4f99acd@provenance-mainnet-peer.itrocket.net:57656"
SNAP_RPC="https://provenance-mainnet-rpc.itrocket.net:443"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.provenanced/config/config.toml
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height);
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000));
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH && sleep 2
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\"| ;
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.provenanced/config/config.toml
mv $HOME/.provenanced/priv_validator_state.json.backup $HOME/.provenanced/data/priv_validator_state.json
sudo systemctl restart provenanced && sudo journalctl -u provenanced -f
Wasm
Sorry, this project does not support WebAssembly.