JSON-RPC Compatibility
Conflux eSpace implements the Web3 JSON-RPC protocol.
Check out the following video to get a quick overview of this topic:
- JSON-RPC Compatibility Video
Methods
| Method | Status | Note |
|---|---|---|
| web3_clientVersion | ✅ | |
| net_version | ✅ | |
| eth_protocolVersion | ✅ | |
| eth_chainId | ✅ | |
| eth_gasPrice | ✅ | |
| eth_blockNumber | ✅ | |
| eth_getBalance | ✅ | |
| eth_getStorageAt | ✅ | |
| eth_getCode | ✅ | |
| eth_getTransactionCount | ✅ | |
| eth_sendRawTransaction | ✅ | |
| eth_submitTransaction | ✅ | |
| eth_call | ✅ | |
| eth_estimateGas | ✅ | |
| eth_getTransactionByHash | ✅ | |
| eth_getTransactionReceipt | ✅ | |
| eth_getLogs | ✅ | The max gap between fromBlock and toBlock is limited to 1000 |
| eth_getBlockByHash | ✅ | |
| eth_getBlockByNumber | ✅ | |
| eth_getBlockTransactionCountByHash | ✅ | |
| eth_getBlockTransactionCountByNumber | ✅ | |
| eth_getTransactionByBlockHashAndIndex | ✅ | |
| eth_getTransactionByBlockNumberAndIndex | ✅ | |
| eth_syncing | ✅ | |
| eth_hashrate | ✅ | |
| eth_coinbase | ✅ | |
| eth_mining | ✅ | |
| eth_maxPriorityFeePerGas | ✅ | |
| eth_accounts | ✅ | |
| eth_submitHashrate | ✅ | |
| eth_getUncleByBlockHashAndIndex | ✅ | |
| eth_getUncleByBlockNumberAndIndex | ✅ | |
| eth_getUncleCountByBlockHash | ✅ | |
| eth_getUncleCountByBlockNumber | ✅ | |
| parity_getBlockReceipts | ✅ | |
| eth_pendingTransactions | 🚧 | |
| web3_sha3 | 🚧 | |
| trace_block | ✅ | Compatible with parity and erigon since v3.0.0 |
| trace_filter | ✅ | Compatible with parity and erigon since v3.0.0 |
| trace_transaction | ✅ | Compatible with parity and erigon since v3.0.0 |
| trace_get | ✅ | Supported at v3.0.0 |
| trace_call | 🚧 | |
| trace_rawTransaction | 🚧 | |
| trace_replayTransaction | 🚧 | |
| trace_replayBlockTransactions | 🚧 | |
| eth_feeHistory | ✅ | Supported at v2.4.0 |
| eth_getFilterChanges | ✅ | Supported at v2.1.1 |
| eth_getFilterLogs | ✅ | Supported at v2.1.1 |
| eth_newBlockFilter | ✅ | Supported at v2.1.1 |
| eth_newFilter | ✅ | Supported at v2.1.1 |
| eth_newPendingTransactionFilter | ✅ | Supported at v2.1.1 |
| eth_uninstallFilter | ✅ | Supported at v2.1.1 |
| debug_traceTransaction | ✅ | Supported at v2.4.0 |
| debug_traceBlockByHash | ✅ | Supported at v2.4.0 |
| debug_traceBlockByNumber | ✅ | Supported at v2.4.0 |
| debug_traceCall | ✅ | Supported at v2.4.1 |
| txpool_status | ✅ | Supported at v3.0.0 |
| txpool_inspect | ✅ | Supported at v3.0.0 |
| txpool_content | ✅ | Supported at v3.0.0 |
| txpool_contentFrom | ✅ | Supported at v3.0.0 |
| net_listening |