Skip to content

Coha05/0g-testnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 

Repository files navigation

cover-0g

Zero Gravity (0G) Testnet Service

Welcome to the Zero Gravity (0G) Testnet Service! This repository provides all the necessary information about the various endpoints available for interacting with the Zero Gravity testnet. Below you will find details and links for the RPC, API, and other services.

Services

1. gRPC Node

2. Key-Value Node

3. Storage Node

4. Testnet RPC

5. API Testnet

6. DA-Node

7. DA-Client

How to Use

To interact with the Zero Gravity testnet, you can use the provided endpoints. Each endpoint corresponds to a specific service, such as key-value storage, gRPC, storage, RPC, and API services.

Example Request

Here is an example of how you can use one of the endpoints to make a request:

curl -X POST https://0g-testnet-rpc.tech-coha05.xyz -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

This request retrieves the list of validators from the Zero Gravity testnet using the API endpoint.

Example API Request

Here is an example of how you can use the API endpoint to get a list of validators:

curl -X GET https://0g-api-testnet.tech-coha05.xyz/cosmos/staking/v1beta1/validators

Fresh peers from my node

PEERS=$(curl -sS https://0grpc.tech-coha05.xyz/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | paste -sd, -)
echo $PEERS
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.0gchain/config/config.toml

Explorer

Dashboard: https://explorer.tech-coha05.xyz/0g image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages