top of page

OKP4

The Next Generation of Data Applications. The infrastructure to unlock data value at scale

Chain ID: okp4-nemeton-1

Website: okp4.network

Public Endpoints:

✅ RPC

rpc.okp.ppnv.space:36657

✅ API / REST

 api.okp.ppnv.space 

✅ gRPC

 grpc.okp.ppnv.space:36090 

✅ gRPC Web

 grpc.okp.ppnv.space:36091

Genesis:

curl -Ls https://service.ppnv.space/okp4/genesis.json > $HOME/.okp4d/config/genesis.json

Peering:

✅ Seed Node

✅ Live Peers

✅ Addrbook #update every hour

curl -Ls https://service.ppnv.space/okp4/addrbook.json > $HOME/.okp4d/config/addrbook.json

✅ State Sync #snapshot-interval = 1000

sudo systemctl stop okp4d
cp $HOME/.okp4d/data/priv_validator_state.json $HOME/.okp4d/priv_validator_state.json.backup
okp4d tendermint unsafe-reset-all --home $HOME/.okp4d
STATE_SYNC_RPC=http://rpc.okp.ppnv.space:36657
STATE_SYNC_PEER=be9841ace1d71a4c7681918ee39f5e00d8e96a82@rpc.okp.ppnv.space:36656
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 1000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.okp4d/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
 $HOME/.okp4d/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
 $HOME/.okp4d/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
 $HOME/.okp4d/config/config.toml
sed -i.bak -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
 $HOME/.okp4d/config/config.toml
mv $HOME/.okp4d/priv_validator_state.json.backup $HOME/.okp4d/data/priv_validator_state.json
sudo systemctl restart okp4d && journalctl -u okp4d -f --no-hostname -o cat

bottom of page