logo

Regen Snapshot, State Sync and API/RPC

With this guide you can easily connect to the Regen in a couple of minutes

State Sync

https://rpc-regen.nodiums.com
pruning="custom"
pruning_keep_recent="1000" 
pruning_keep_every="0"
pruning_interval="100" 
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.regen/config/app.toml 
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.regen/config/app.toml 
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.regen/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.regen/config/app.toml
SNAP_RPC=http://rpc-regen.nodiums.com:443 
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \ BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \ TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) 
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_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\"| ; \ s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.regen/config/config.toml

Snapshot

https://snapshots.nodiums.com/regen.tar

API and RPC endpoints

https://rpc-regen.nodiums.com
https://api-regen.nodiums.com
https://grpc-regen.nodiums.com