Send these calls to the Mainnet endpoints below. Do not send them to comfyscan.io.
POST JSON. A browser visit returns “only POST is supported”.
| Call | Method | Params |
|---|---|---|
| Latest block | eth_blockNumber | [] |
| Block by number | eth_getBlockByNumber | ["latest", false] |
| Transaction by hash | eth_getTransactionByHash | ["0xHASH"] |
| Account balance | eth_getBalance | ["0xADDRESS", "latest"] |
| Receipt | eth_getTransactionReceipt | ["0xHASH"] |
curl https://evmrpc.0g.ai \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'GET requests. Responses use status, message, and result.
0G Mainnet is chain 16661. Galileo is chain 16602: RPC https://evmrpc-testnet.0g.ai, indexed history https://chainscan-galileo.0g.ai/open/api. The header network chooses which endpoints this page shows.
Balance and receipt are on the JSON-RPC as hex values. The indexed calls return the explorer shape, including decimal balances and transfer lists.