Sunrise Validator Tools & Infrastructure Documentation
Complete infrastructure toolkit for Sunrise validators and developers. Access our professional-grade services including RPC nodes, API endpoints, daily snapshots, and real-time metrics. Our sunrise infrastructure features optimized pruning configurations, automated backups, and comprehensive monitoring solutions. Supporting both mainnet and testnet environments with dedicated endpoints, state-sync services, and detailed technical documentation for seamless network participation and development.
With our state sync services you will be able to catch up latest chain block in matter of minutes
ⓘ  Â
State Sync allows a new node to join the network by fetching a snapshot of the application state
at a recent height instead of fetching and replaying all historical blocks. Since the
application state is generally much smaller than the blocks, and restoring it is much
faster than replaying blocks, this can reduce the time to sync with the network from days to minutes.
#Instructions
#Stop sunrised and reset database
sudo systemctl stop sunrised
cp $HOME/.sunrised/data/priv_validator_state.json $HOME/.sunrised/priv_validator_state.json.backup
sunrised tendermint unsafe-reset-all --home $HOME/.sunrised --keep-addr-book
#Get and configure the state sync information
STATE_SYNC_RPC=https://rpc.cosmos.directory:443/sunrise
BACKUP_RPC=https://testnet-rpc.lavenderfive.com:443/sunrise/
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
BLOCK_HEIGHT=$(echo LATEST_HEIGHT | awk '{print $1 - ($1 % 6000)}'); \
TRUST_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
SEEDS="ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:28356,0c0e0cf617c1c58297f53f3a82cea86a7c860396@a.sunrise-test-1.cauchye.net:26656"
echo -e "Modifying $HOME/.sunrised/config/config.toml based on the following values:"
echo -e "RPC Address: $STATE_SYNC_RPC"
echo -e "Latest Block Height: $LATEST_HEIGHT"
echo -e "Sync Block Height: $BLOCK_HEIGHT"
echo -e "Trust Hash: $TRUST_HASH"
sed -i \
-e "s|^enable *=.*|enable = true|" \
-e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$BACKUP_RPC\"|" \
-e "s|^trust_height *=.*|trust_height = $BLOCK_HEIGHT|" \
-e "s|^trust_hash *=.*|trust_hash = \"$TRUST_HASH\"|" \
-e "s|^seeds *=.*|seeds = \"$SEEDS\"|" \
$HOME/.sunrised/config/config.toml
mv $HOME/.sunrised/priv_validator_state.json.backup $HOME/.sunrised/data/priv_validator_state.json
#Download latest wasm
ⓘ  Â
Currently state sync does not support copy of the `wasm` folder. Therefore, you will have to download it manually.
curl -L https://snapshots.lavenderfive.com/wasm/sunrise/wasmonly.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.sunrised
#Restart sunrised and check the log
sudo systemctl restart sunrised && sudo journalctl -u sunrised -f --no-hostname -o cat
Chain ID:
The unique identifier for the blockchain network.
sunrise-test-0.2
Latest Version:
The latest version of the chain software.
v0.2.6
Github:
The Github repository hosting the code for the network in question.
Public endpoints
Public endpoints are rate limited but can be used for basic CLI usage, node syncing or testing environments. Request an API key for enhanced access limits, we offer free trial periods of 14 days and cheap shared access plans from $50 a month.
REST/LCD
REST endpoint for querying blockchain data through the REST framework. Often available for Cosmos chains but also the main framework for Aleo as an example.
testnet-rest.lavenderfive.com:443/sunrise
RPC
Remote Procedure Call endpoint for the consensus client of a blockchain. This is not an EVM endpoint (we call this json RPC) but the main framework for blockchain frameworks like Cosmos, Aptos, Sui and Near.
testnet-rpc.lavenderfive.com:443/sunrise
gRPC
High-performance RPC endpoint for blockchain communication using the Google gRPC framework. This is often standard gRPC and not the "WEB" framework which is sometimes also accesible.
testnet-sunrise.lavenderfive.com:443
WebSocket
WebSocket endpoint for real-time blockchain updates of the consensus client. This is not the EVM websocket integration, we name and expose that separately. WS is commonly available for Cosmos and Move networks that also expose a REST endpoint.
wss://testnet-rpc.lavenderfive.com:443/sunrise/ws
© 2022 Lavender.Five Nodes. All rights reserved.