logo

OKP4 Snapshot, State Sync and API/RPC

With this guide you can easily connect to the OKP4 (nemeton) in a couple of minutes

State Sync

https://rpc-nemeton.nodiums.com
pruning="custom"
pruning_keep_recent="1000" 
pruning_keep_every="0"
pruning_interval="100" 
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.okp4d/config/app.toml 
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.okp4d/config/app.toml 
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.okp4d/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.okp4d/config/app.toml
SNAP_RPC=http://rpc-nemeton.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/.okp4d/config/config.toml

Snapshot (100-0-10)

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

API and RPC endpoints

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

Peering service

PEERS=a6fc531f7274aa6615fa33198496ea69b2023a0f@144.76.90.130:29656,9c462b1c0ba63115bd70c3bd4f2935fcb93721d0@65.21.170.3:42656,2e85c1d08cfca6982c74ef2b67251aa459dd9b2f@65.109.85.170:43656,8527f34bd6e542304809386896997d12d80e5e0e@65.108.237.232:29656,affaad7c297b627020f63d5bc5b1c1a9d8842f44@152.32.192.192:26656,264256d32511c512a0a9d4098310a057c9999fd1@65.21.90.141:12234,66a75c374c274733bfa3050277cdb43db3fcee56@147.182.229.52:26656,0448864ede56d3c96d7d3bb8ea9f546b70cc722e@51.159.149.68:26656,fa04503a35476204861f06b75be4839562205527@65.109.85.226:6070,e3c602b146121c88d350bd7e0f6ce8977e1aacff@161.97.122.216:26656,da8e2423cb90fba519e685aa47669eb861ea18c4@65.108.249.79:36656,7c2d71cf2c383c4ea622437176772cdfb4e5d6f0@167.235.15.19:31656,6bc178290d0773e244cf04598a3919d7a9391bf1@65.109.131.71:36656,61544968b65e34a59513b67613519cd37ace7ecb@161.97.151.109:26656,d5519e378247dfb61dfe90652d1fe3e2b3005a5b@65.109.68.190:36656,ed52ad66f7c30b322c1e58d226791f1402883db3@23.88.72.246:36656,428821d6b64eee5d67da467a4673ce2b1e52955d@54.88.179.178:26656,e1635bec0e5a14dbbf1a41557714632627729ff9@95.217.144.44:36656,307fb25cd6998d0d5bd1d947571f6043c6bb4069@65.109.31.114:2280,5ed1edac2d35c91577b34f6002c85927027058b9@95.217.202.49:30656,1655cdc8fdfe1dc2209d47ff68c02a417ef9ed52@135.181.222.179:31656,4ea26ce893d8f4f89a7b49b9bd77e0fbd914e029@65.109.88.162:36656,d4305fcb7b20dc96481a6ae6ae84f281f3413a4e@65.109.37.58:13656,cb6ae22e1e89d029c55f2cb400b0caa19cbe5523@142.93.156.231:26603,977373e6ff096d43c928e14724b8c6d9d7f48cb7@5.9.147.185:51656,7a15c08f8552d99346976b485d071ce0faa52ed3@65.108.78.80:30656,751d8d4bc73443aef9f95ddfac3572ddfc34e035@5.75.226.80:26656,14f8949ab0a276d2e55c8fa6255430881978a619@185.192.96.236:26656,a009a02a23428538b57591f73ba5a6462c476a70@136.243.88.91:6040,c3db3a07493e8f04d93a9228998ae799fa89877f@5.78.48.118:26656,126dc25a6a5aa0cfa83010550dfb3c5a1a861755@65.108.201.15:21337,23e895e7d650f43e1f53522165607b71685f8cfa@65.108.75.107:26656,2bfd405e8f0f176428e2127f98b5ec53164ae1f0@142.132.149.118:26656,61a8b9fdd5c21ebe6c02359cb192a4eda13d44cb@135.181.139.153:26656,540e0e9b33b2d87315fdf7089404671581d36e94@95.217.203.43:26656,b0b56d944cf1cc569a1e77e0923e075bad94d755@141.95.145.41:28656,82bb185819e5cf2bb6a9896447672efca27f28cb@65.109.15.202:26656,fff0a8c202befd9459ff93783a0e7756da305fe3@38.242.150.63:16656,8028015d1c6828a0b734f3b108f0853b0e19305e@157.90.176.184:26656,8a7605d8ae4338de5b7a0d5c70244ce05e377630@85.10.200.221:26656,506ae7340c1c1dfa893e916b5c9f40dda373cbc0@161.97.68.60:26656,f74f793a1efa51778fd74d4dbc5a1e88a8c644db@116.202.227.117:36656,be9841ace1d71a4c7681918ee39f5e00d8e96a82@213.239.216.252:36656,3ecbc8aa00b5dd8af88af7496489b0054e3b4d7f@138.68.182.247:26656,d132ad0c5b2afd0eab2d87351eeda46dc9d69312@46.228.205.200:26656,d1c1b729eff9afe7dfd371f190df6282c82ccfad@37.187.144.187:31656,a49302f8999e5a953ebae431c4dde93479e17155@141.95.153.244:26656,d34e07cdd7724cfc32c5f1653730d9ad640a10a4@65.109.105.110:12656,f3cccec7bdba9d5d4bd156087e3c6e2e5aa42948@65.108.134.215:29656,869bad4136d773f9ae83909257fd6c422b5cbe7a@142.132.151.169:26656,9689dcc3ab9026265950a5a7040c55ad1ce6b003@65.108.69.68:27363,dc835ee8a89598e7f9f28cb595a5f4cef363ab04@217.182.220.75:26656,07023da2f1fd638d40e37d13741e8e3d5525b4f1@65.108.96.104:26656,a4a96019d2fbc1b5df07940cd971585311166acd@65.108.206.118:61356,cc8bc81fea49a6a412992bb3e2c3f211d9e675c8@88.99.161.162:21656,6916e6e4d7a313abc759286f995ac29f58792f19@85.114.134.219:10656,1ba6a539a9f8115ea0e0e161b0fc3f2c8a276e8b@51.68.204.169:26643,9c2e37f0ae9cef769e31decc5aadaad30c04e6c0@94.130.140.145:36656,99f6675049e22a0216af0e2447e7a4c5021874cd@142.132.132.200:28656,8af258bbe73f4c66127a7b3e8b1ec23fde2950a6@65.108.192.123:19656,e755eb8016c2f6f5303b2f8d503d9126d235e80f@138.201.35.56:26656,907afed8fb7561b6d9bc6f755c8e4cce52e55080@65.108.72.252:26656,eef77b5ae1c37f3e5809ff928c329dde906be388@65.108.133.73:21656,a98484ac9cb8235bd6a65cdf7648107e3d14dab4@116.202.231.58:36656,11d2d5cab53f3e10bc8d91c76601d68cce33c82b@144.76.28.163:26656,8ef3ff95676c527652644b2ba1d60e6def282e1a@176.103.222.44:26656,0701068f9a102427252348f96bbafe926f20ddb1@176.9.146.72:36656,57f3df8b11c6c9b796c78d2a213b962acfcb7f3c@213.239.207.175:38656,3c805c2dead7b7a3a1d3ba2399d4d62153322413@65.108.2.41:36656,e676fad27d970abede25b0469676b05ea83e5f04@144.168.47.230:36656,42b1ed3a559cbc09278d360dfccf64866a780104@65.109.27.156:29656,d21f15a5ad8b9bc1b0e0828e8475137a749ae554@173.212.222.177:26656,9d4a80ef4f0f85f48e1dd3f5e00208025e858ab6@176.9.22.117:33656,24fbac02738005cfa9d8263d01dc7cc113d6b708@162.248.225.244:26656,9d1482bc31fb4578a5c7f7f65c4e0aaf2dfc2336@213.239.215.77:36656,666c7b5ef2a81e4a3115785c90305d5371e067ed@162.55.234.160:26656,15fdc722cd49ef7676205b6ad3120a84728d948c@65.108.225.158:17656,1e48c09a0f78070e90ed49b2e3d59f8fdc188e74@162.55.234.70:55156,78d923333e39e747c6a7fbfcc822ec6279990556@91.211.251.232:28656,643988550263605405a7968c38fd11653bf75cd0@38.242.252.104:26656,84da5ad673d086c5c0b4a8da8b8b1c1c29e1d81e@142.132.130.196:36656,f7e481df45bfbe62ea0553f5f6da34eaf4f688c3@194.34.232.225:26656,cd2e7d49cc2f911d7df7c7951d72c96727d1db1d@212.8.240.13:36656,64c0b18b169ce71fd6cf72b3988fd55319a2c03c@135.181.176.109:31656,47dfb0e033db2c5d5aa2618c243a9394608f7bc3@213.246.39.63:26656,c030413e39be95c397c6681639f5d48675554c0c@51.79.78.121:26646,7b56930f6f503934f2d14ee725496d784768847a@131.153.202.181:26656,19affe1359ddd91e24ca998f0f74a9deaf74c3f7@173.249.8.187:36656,59513e6626373eb3af4b1c0d10f935aa28683713@84.201.135.7:26656,e20b9048c220d4a8b7e7934fddb3c4fb20c20bdd@81.0.246.196:26656,e4a2549fbfa2e1130c235638244d474ce3dd411a@65.109.53.60:30656,9ed2f8472bd5aa53cfc7a996cb6ca43f5c47e76f@185.163.64.143:26656,7b23cb08b8396d0f9b87310bcdf36455d129bcbe@195.154.107.51:26656,d2cf04c6ed035f14d5d2d50a893235d8698c6134@65.108.9.164:24656,034c2fbca12a8ced548d3225bcd21bdf1216a1b3@65.109.49.163:11203,4fab49bfc0ad6d02dc92f8a9a5551c324e30a6fb@65.108.97.58:36656,9b22fb6daec21ec15dcf4107060dd59d63f6df35@162.55.245.219:29656,f7fb0f3248e4aed14e89bc4967d48c66b72e6f62@135.181.147.169:26656,1f4fa23210cc1d086a928a3c6de7c24f6c8f17ba@202.61.226.120:16656,30092d2717053f1c0813e8354c07c761c9c3ac5c@194.163.161.234:26656,413a9269a866cbeb462f352e72e7578e5b395502@65.109.92.240:10096,5c2a752c9b1952dbed075c56c600c3a79b58c395@95.214.55.232:26996,8633177b18f9031b84beb690293d20dce1d0c20e@121.78.247.252:35656,9f55b6fbf5d246138cc88acfe193ac45aa49c288@31.7.196.148:26656,ee4c5d9a8ac7401f996ef9c4d79b8abda9505400@144.76.97.251:12656,8cdeb85dada114c959c36bb59ce258c65ae3a09c@88.198.242.163:36656,4cbfeff6d88aa4cdb64631a30356a4fb5fb243c6@3.14.129.248:26656,44c4ad482cf8f1d9e7e18968da78bd0349fe853e@5.78.54.193:26656,854cc8b83a48ba4394c1940b57d0f42ec013e033@38.242.251.204:26656,5873ba1fc2bf43c4be57c13f8a5925a8e870a7b1@81.0.219.6:36656,fe850fe8d6a1d39a55ea572c9abf0b6829ea1575@103.234.71.245:26656,d1a0ff9bd7ea1ebd06bc7158f3523f5e557328be@163.172.131.169:26656,1f2fe5c95dec0529e23cdcb233723c2708f58d51@65.108.6.45:61356
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.okp4d/config/config.toml

Community RPC endpoints

  • http://144.76.97.251:12657
  • http://65.108.6.45:61357
  • http://54.36.109.62:26657
  • http://65.21.90.141:12231
  • http://65.109.88.162:36657
  • http://95.217.144.44:36657
  • http://142.93.156.231:26600
  • http://85.10.200.221:31657
  • http://65.109.55.186:30657
  • http://91.211.251.232:28657
  • http://65.109.27.156:29657
  • http://65.108.131.190:23457
  • http://213.239.216.252:36657
  • http://135.181.222.179:31657
  • http://144.76.90.130:29657
  • http://65.108.237.232:29657
  • http://65.21.170.3:42657
  • http://136.243.88.91:6041
  • http://65.108.78.80:30657
  • http://65.108.134.215:26657
  • http://176.9.22.117:33657
  • http://213.239.207.175:38657
  • http://65.109.49.163:11201
  • http://65.108.97.58:36657
  • http://65.108.129.29:27657
  • http://195.201.194.249:26657
  • http://65.108.121.240:29657
  • http://155.133.27.197:26657

Installation guide

Get goland

sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.19.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
rm go1.19.3.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Clone github and install binary

git clone https://github.com/okp4/okp4d
cd okp4
git checkout v3.0.0
make install

Initialize node

okp4d init moniker --chain-id okp4-nemeton-1

Download genesis and add seed

wget -O genesis.json https://raw.githubusercontent.com/okp4/networks/main/chains/nemeton-1/genesis.json
mv genesis.json ~/.okp4d/config

sed -i 's/seeds = ""/seeds = "fe850fe8d6a1d39a55ea572c9abf0b6829ea1575@103.234.71.245:26656,d1a0ff9bd7ea1ebd06bc7158f3523f5e557328be@163.172.131.169:26656,1f2fe5c95dec0529e23cdcb233723c2708f58d51@65.108.6.45:61356/' ~/.okp4d/config/config.toml

Run node as a service. Put to /etc/systemd/system/okp4d.service

[Unit]
Description=OKP4 Cosmos daemon
After=network-online.target

[Service]
User=root
ExecStart=/root/go/bin/okp4d start
Restart=on-failure
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target

Enable Service

sudo systemctl enable okp4.service
sudo service okp4 start
sudo journalctl -u okp4