Skip to main content

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