0G
0G API is available on Web3 API platform.
0G Chain is a highly scalable, AI-optimized L1 blockchain designed to meet the needs of data-heavy applications. Built with a modular architecture, it allows for the independent optimization of key components like consensus, execution, and storage — making it ideal for AI-driven workflows. 0G is fully EVM-compatible, so decentralized applications (dApps) already deployed on other L1 or L2 chains (such as Ethereum or rollups) can easily leverage 0G's products without needing to migrate entirely.
0G Chain supports a data availability network, distributed storage network, and AI compute network. All of these networks integrate with 0G Chain's highly scalable consensus network, built to handle massive data volumes suitable for AI.
In order for your Web3 application to interact with 0G — either by reading blockchain data or sending transactions to the network — it must connect to an 0G node. Developers interact with the blockchain using the methods provided by the API.
We support the following networks and protocols for 0G:
Responses come in JSON format.
EVM JSON-RPC methods
web3_clientVersion— returns the current client version.web3_sha3— returns Keccak-256 (not the standardized SHA3-256) of the given data.net_version— returns the current network ID.net_listening— returns true if client is actively listening for network connections.eth_syncing— returns data on the sync status or false.eth_gasPrice— returns the current price per gas in wei.eth_accounts— returns a list of addresses owned by client.eth_blockNumber— returns the number of most recent block.eth_getBalance— returns the balance of the account specified by address.eth_getStorageAt— returns the value from a storage position at an address specified.eth_getTransactionCount— returns the number of transactions sent from an address.eth_getBlockTransactionCountByHash— returns the number of transactions in a block specified by block hash.eth_getBlockTransactionCountByNumber— returns the number of transactions in the block specified by number.eth_getUncleCountByBlockHash— returns the number of uncles in a block specified by block hash.eth_getUncleCountByBlockNumber— returns the number of uncles in a block specified by block number.eth_getCode— returns code at an address specified.eth_sendRawTransaction— creates a new message call transaction or a contract creation for signed transactions.eth_call— executes a new message call immediately without creating a transaction on the blockchain.eth_estimateGas— generates and returns an estimate of how much gas is necessary to allow the transaction to complete.eth_getBlockByHash— returns information for the block specified by block hash.eth_getBlockByNumber— returns information for the block specified by block number.eth_getTransactionByHash— returns information on a transaction specified by transaction hash.eth_getTransactionByBlockHashAndIndex— returns information on a transaction specified by block hash and transaction index position.eth_getTransactionByBlockNumberAndIndex— returns information on a transaction by block number and transaction index position.eth_getTransactionReceipt— returns the receipt of a transaction by transaction hash.eth_getUncleByBlockHashAndIndex— returns information about an uncle of a block by hash and uncle index position.eth_getUncleByBlockNumberAndIndex— returns information about an uncle of a block by number and uncle index position.eth_getLogs— returns logs matching the parameters specified.
Tendermint JSON-RPC/REST methods
Info — node information:
blockchain— retrieves block headers (max: 20) forminHeight <= height <= maxHeight.block— retrieves a block at a specified height.block_by_hash— retrieves a block by hash.block_results— retrieves block results at a specified height.commit— retrieves commit results at a specified height.validators— retrieves a validator set at a specified height.genesis_chunked— retrieves the Genesis in multiple chunks.dump_consensus_state— retrieves consensus state.consensus_state— retrieves consensus state.consensus_params— retrieves consensus parameters.unconfirmed_txs— retrieves the list of unconfirmed transactions.num_unconfirmed_txs— retrieves data about unconfirmed transactions.tx_search— searches for transactions.block_search— searches for blocks byBeginBlockandEndBlockevents.tx— retrieves transactions by hash.
Tx — transactions broadcast information:
broadcast_tx_sync— returns with the response fromCheckTx. Does not wait forDeliverTxresult.broadcast_tx_async— returns right away, with no response. Does not wait forCheckTxnorDeliverTxresults.broadcast_tx_commit— returns with the responses fromCheckTxandDeliverTx.check_tx— checks the transaction without executing it.
ABCI — ABCI info:
abci_info— retrieves info about the application.abci_query— queries the application for some information.
Beaconkit REST methods
GET /eth/v1/node/version— retrieves node version info.GET /eth/v2/debug/beacon/states/{state_id}— retrieves debug info.
Methods
Methods
web3_clientVersionweb3_sha3net_versionnet_listeningeth_syncingeth_gasPriceeth_accountseth_blockNumbereth_getBalanceeth_getStorageAteth_getTransactionCounteth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getUncleCountByBlockHasheth_getUncleCountByBlockNumbereth_getCodeeth_sendRawTransactioneth_calleth_estimateGaseth_getBlockByHasheth_getBlockByNumbereth_getTransactionByHasheth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getTransactionReceipteth_getUncleByBlockHashAndIndexeth_getUncleByBlockNumberAndIndexeth_getLogs
Information, Transactions, ABCI, Methods
blockchainblockblock_by_hashblock_resultscommitvalidatorsgenesis_chunkeddump_consensus_stateconsensus_stateconsensus_paramsunconfirmed_txsnum_unconfirmed_txstx_searchblock_searchtxbroadcast_tx_syncParametersbroadcast_tx_asyncbroadcast_tx_commitcheck_txabci_infoabci_queryGET /eth/v1/node/versionGET /eth/v2/debug/beacon/states/{state_id}