1.API & Dashboard

Dashboard

https://okp4-testnet.mellifera.network/monitor

RPC

https://okp4-testnet.mellifera.network:26657

gRPC

https://okp4-testnet.mellifera.network:9090

REST API

https://okp4-testnet.mellifera.network:1317

SNAPSHOT STORAGE

https://okp4-testnet.mellifera.network/snapshot

2. Snapshot

*Snapshot is pured and do not contain full history

pruning: custom/1000/0/10; indexer: null

sudo systemctl stop okp4d


okp4d tendermint unsafe-reset-all --home $HOME/.okp4d --keep-addr-book


SNAP_CHAIN_NAME=$(curl -s https://okp4-testnet.mellifera.network/snapshot/ | egrep -o ">okp4-snap.*\.tar.gz" | tr -d ">")


curl https://okp4-testnet.mellifera.network/snapshot/${SNAP_CHAIN_NAME} | tar -xzf - -C $HOME/ --strip-components 1


SNAP_WASM_NAME=$(curl -s https://okp4-testnet.mellifera.network/snapshot/ | egrep -o ">okp4-wasm.*\.tar.gz" | tr -d ">")


curl https://okp4-testnet.mellifera.network/snapshot/${SNAP_WASM_NAME} | tar -xzf - -C $HOME/ --strip-components 1


sudo systemctl restart okp4d

3. State Sync

SNAP_RPC="https://okp4-testnet.mellifera.network:26657"

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

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\"\"|" ~/.okp4d/config/config.toml

4. Address Book

curl -s https://okp4-testnet.mellifera.network/snapshot/addrbook.json > $HOME/.okp4d/config/addrbook.json   

4. Peers

866b505e44a2077def00ede26999551bedb5bddd@okp4-testnet.mellifera.network:29959

Set pear

PEERS="866b505e44a2077def00ede26999551bedb5bddd@okp4-testnet.mellifera.network:29959"
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.okp4d/config/config.toml              
              

6. Stuck? Do you need some help?

You can contact us and we help you :)