/og-protocol-services

Repo with public services for OG: kv, RPC, storage-node, peers, snapshots and etc

Primary LanguageShellMIT LicenseMIT

OG Logo

OG protocol 'Testnet Newton' services

Repo with public services for OG: kv, RPC, storage-node, peers, snapshots etc

0G Testnet Newton

Chain Id: zgtendermint_16600-1

Official links:

Repository Root

og-protocol-services
│
├── README.md                       # Overview and general information
├── LICENSE                         # Legal licensing information for the repository
│
├── docs                            # Documentation
│   ├── configuration_parameters.md # Configuration Parameters details
│   ├── access_points.md            # Access Points details
│   ├── metamask_chain_settings.md  # MetaMask Chain OG settings
│   ├── state_management.md         # State Management guides
│   ├── live_monitoring_tools.md    # Live Monitoring Tools details
│   ├── updates_and_maintenance.md  # Updates and maintenance schedules
│   ├── peers.md                    # Peer configurations and scripts
│
├── scripts                         # Scripts for various operations
│   ├── install_node.sh             # Script for quick NODE OG Installation
│   ├── check_sync_status.sh        # Script to check node sync status
│   ├── check_block.sh              # Script to check the latest block
│
├── services                        # Directory for various services
│   ├── kv                          # Key-Value store service configurations and scripts
│   ├── rpc                         # RPC service configurations and scripts
│   ├── storage-node                # Storage node service configurations and scripts
│   ├── peers                       # Peer configurations and scripts
│   ├── snapshots                   # Snapshot configurations and scripts
│
└── network                         # Network configuration and scripts
    ├── fresh_peers.md              # Network Fresh Peers details
    └── fetch_peers_script.sh       # Script to fetch fresh peers

3

Services:

Configuration Parameters

This section details the specific configuration parameters set for the OG Services.

Parameter Value
indexing kv
pruning custom (100/50)
min-retain-blocks 0
snapshot-interval 2000
snapshot-keep-recent 2
minimum-gas-prices 0.00252ua0gi

Access Points

Services provide various endpoints for access and interaction through different protocols:

Network Fresh Peers fetch_script (TBA)

  • P2P Persistent Peer: 7379543f98e0015dcf53b3eaa596138fb9c75fca@83.246.253.4:26656,2dacc36d2458627d7b972e1cf76ce5c28550f322@185.252.232.16:26656,cfe299faebfa81a2a4191ff93c8f6136887238da@185.250.36.142:26656,fd5b7f303e24649dcfb7ea5251b3ba65189c6623@158.220.115.143:12656,b2f647c3704b04b03700b67fcca7477d3f3d4c9b@173.212.242.60:26656,adb020421007751d1fa3fe779796460e3889839e@161.97.94.69:12656,334a34478c82e8669aace6f1ee04b4c3e04a50bb@92.118.56.200:26656,3c820ec2075e297c013b2e2f083f6c15a4fad594@62.169.26.95:26656,2d1f251c61b707e2c3521b1f5d8d431765366bfd@193.233.164.82:26656,56715db4fbe48028778ebb7cfeeeb689d0d2fb9b@37.60.252.203:26656,8cecd90d6d0d2d64afea9735dbab5e6e21e7bf6f@195.179.229.40:26656,01f53ba9f8b1f1cbcd274c52751136a741633187@5.189.142.98:26656,8f1880f4140e3d8187d0d0ac003e10443f9216b0@89.117.55.63:26656,f397ebb8b1180d71c47e69fa685d1cf525769031@45.94.209.123:26656,ac25a6be1272692d3fc73dc84b749df870072370@5.189.146.123:26656

Example how to mapping the ports for different chains in one server

or run a script ports_mapper.sh to install or check ports in use (for Cosmos SDK related projects)

How to Use:

!WARNING!: Safe mode is always hit the 'Enter'

  1. Copy-and-paste the script, it will download script and run it automaticly, choose your option: for remap ports 'Y/y' or hit Enter to check ports in use. (It's a safe mode to use script - just hit always Enter.).
  2. When you have any conflicts between ports and projects, you can choose option - install 'Y/y' and script ask you which project do you need to remap and change each port by confirmation 'Y/y', (To skip, just always hit the Enter).
  3. To re-run script again use: ./ports_mapper.sh
wget -O ports_mapper.sh https://raw.githubusercontent.com/papadritta/og-protocol-services/main/box/ports_mapper.sh && chmod +x ports_mapper.sh && ./ports_mapper.sh

1

Script for quick NODE OG Installation

  1. You can use a Script for quick STORAGE NODE OG Installation
wget -O run.sh https://raw.githubusercontent.com/papadritta/og-protocol-services/main/box/run.sh && chmod +x run.sh && ./run.sh

Tested on Ubuntu 24.04 LTS (GNU/Linux 6.8.0-31-generic x86_64)

Check node sync status

0gchaind status | jq '.sync_info'

check node status > false > add vars > Create a Validator

Check lastest block

curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' http://rpc-og.papadritta.com | jq -r '.result' | xargs printf "%d\n"

2

Full step-by-step & Script for quick STORAGE NODE OG Installation

  1. Full step-by-step Guide you can find here in Installation
  2. If you want to run a STORAGE Node on the same server where the main OG Node installed, you can use a Script for quick STORAGE NODE OG Installation
wget -O storage.sh https://raw.githubusercontent.com/papadritta/og-protocol-services/main/box/storage.sh && chmod +x storage.sh && ./storage.sh

Metamask Chain OG sets:

Network name : 0g Chain Testnet
New RPC URL : https://rpc-testnet.0g.ai
Chain ID : 16600
Currency symbol: A0GI
Block explorer URL (Optional) : https://scan-testnet.0g.ai/

State Management (TBA)

  • State Sync: Guide
  • Fresh Snapshot: Guide (Being updated every 5 hours)
  • Fresh Addrbook: Guide (Being updated every 15 minutes)

Live Monitoring Tools (TBA)

  • Live Peers Scanner: Guide (Being updated every 5 minutes)

Updates and Maintenance

For further details on updates, maintenance schedules, and historical data, refer to the specific guides linked above.