Endpoints
- API: https://api-testnet-0g.sr20de.xyz
- RPC: https://rpc-testnet-0g.sr20de.xyz
- GRPC: https://grpc-testnet-0g.sr20de.xyz
Peers
1 |
e4db7e0bd50c4aaee9fe6c40dc7226902ebc5c39@185.208.206.169:12656,c8807bba12fa67676319df8e049ae5fac690cf55@45.159.228.20:26656,93ef3995bcabc10962ad03769679f5beeb5b2577@84.46.250.95:12656,ffdf7a8cc6dbbd22e25b1590f61da149349bdc2e@135.181.229.206:26656,b29c09a286406fb46c99ec3d934381921936274c@37.60.225.239:26656,6604321a06f999754576acc20bcf0a33a4d39e7e@89.116.28.249:12656,94df6dc47dd3d0c0b7607f084aa22354802486a2@176.126.87.146:12656,a9db81ed0f2194313090c828c1701a870c6d49cf@194.163.179.70:12656,10041d9fa283266c44965bea7bbdceb8a7a7be3d@216.18.208.52:12656,e99e896e03d00e26d91b5852243d1548609e95a4@84.46.252.123:12656,d35b313ecea7b2757ff3cb5819da04bc4d580821@109.199.118.138:26656,d54a13519716c3923172ed3d6f5e004835509c54@75.119.141.23:26656,f2f6e775589159296b5898d83b3178170e198313@75.119.158.103:12656,c372bde929565b133de9c2e585b9cf8e96a87cbd@89.116.31.31:12656,c2701b3e41da496d2b35088f228c3c2e72f5ca6d@213.199.32.159:12656,aa1caaab96c16e18c908f21e48d52105564061ac@194.5.152.169:56656,0e741a1accb1541dd46e4c03442616abe187fecf@144.91.121.189:12656,f747efc7ed20edd1a934ab8f128a669d8c3b5b79@158.220.103.200:12656,4f7a1bd98522fcb92cffc64635e49c267f0673a3@84.247.140.112:12656,06bcf4ed948431e09bf41cdfba3d1ebbff35ca7e@138.201.123.100:13456,6ae927dd57d527c6d5a92c6772e876e4a78fbf53@109.123.255.75:26656,4668243717bbdf99bd02a9b4ca930481a179657c@161.97.162.230:12656,adaadd63f6e466eda0ef091a2eafeb645ccf50c3@31.220.73.245:12656,0e2bf3d1fcd25c61d754feafaede6b247a96de57@207.180.244.67:12656,45a579be729a8f51460f489a59d317f731430212@112.214.233.42:26656,c5a40e059dcd8a41e967c569d2128ce1cc901a2c@194.163.137.167:12656,94e9c0ffd8c2a3008a3a5b66b0aa17ba2a0313dc@38.242.130.49:12656,d1300a36656b8816a1f934f41a39b9ffcdbdb786@213.199.51.23:12656,a225467302f46593e54edf2d23455113da114c68@217.76.49.220:12656,1ff43e7d11c9643967ad4c58836694a8100da8e3@161.97.125.34:12656,3cc9a461b22af7aa03361f617cc9c0cac5d395d3@38.242.146.165:12656,01c4c2756c4922cd6aef6c358c0a96f4029a0826@161.97.120.133:12656,c2cd5d034d0ece4f0a858d038d80f15bdb8ea15a@164.68.121.210:12656,04cb7cfe3d1f86880b2f916aa2a8e61932217b5a@62.169.30.29:26656,c90c2db173f6af4e1fba3ffc57f9bc0019663dc5@38.242.242.69:26656,90ccc65b8310ad2961696bd38d3effd31c2d3480@62.171.138.207:12656,f74442fb0db8babf30a0bd3b0a49f097a061c000@144.91.103.161:12656,8bdccf917d0328846a2f2d8e973ab4d88dab7672@109.199.115.115:12656,2f43c95079d69f41c9ad091881ccb6b5c7a932c0@194.146.13.53:12656,44bfd71db7ee2b59b34a8ec9a0df8b79203d4b7e@185.197.194.197:12656,a6e237dac24b1987d24f191bbcf95fc7dba120ff@176.9.63.6:16656,bf9f06617edd76aa3da35747574b502f4350a694@161.97.104.9:12656,2d55340c2c73d5db0e7e16870a08af5038ab7356@207.180.247.103:12656,0447ce293bea47a208874c4fe9ddbadc80329210@185.194.216.55:12656,2ea9375a972034b34e5d7b9715be182e28193a94@164.68.116.138:12656 |
State-sync
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
sudo systemctl stop 0gchaind SNAP_RPC="https://rpc-testnet-0g.sr20de.xyz:443" 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 's|^enable *=.*|enable = true|' $HOME/.0gchaind/config/config.toml sed -i 's|^rpc_servers *=.*|rpc_servers = "'$SNAP_RPC,$SNAP_RPC'"|' $HOME/.0gchaind/config/config.toml sed -i 's|^trust_height *=.*|trust_height = '$BLOCK_HEIGHT'|' $HOME/.0gchaind/config/config.toml sed -i 's|^trust_hash *=.*|trust_hash = "'$TRUST_HASH'"|' $HOME/.0gchaind/config/config.toml sudo systemctl restart 0gchaind && journalctl -fu 0gchaind -o cat |
Snapshot
1 2 3 4 5 6 7 8 9 10 11 |
sudo systemctl stop 0gchaind cp $HOME/.0gchain/data/priv_validator_state.json $HOME/.0gchain/priv_validator_state.json.backup rm -rf $HOME/.0gchain/data curl -o - -L https://snapshots3.sr20de.xyz/0g/0gchain_latest.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.0gchain mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json sudo systemctl start 0gchaind |