Compatibility with the Web3 JSON-RPC Protocol
The Conflux EVM space implements the Web3 JSON-RPC protocol.
#
MethodsMethod | 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 | โ | Parity RPC |
trace_filter | โ | Parity RPC |
trace_transaction | โ | Parity RPC |
eth_feeHistory | โ | |
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 |
net_listening | โ | |
net_peerCount | โ | |
eth_compileLLL | โ | |
eth_compileSerpent | โ | |
eth_compileSolidity | โ | |
eth_getCompilers | โ | |
eth_getProof | โ | EIP-1186 |
eth_getWork | โ | |
db_* | โ | |
shh_* | โ | |
Legend: โ = not supported. ๐ง = work in progress. โ = supported.
#
Noteseth_sendRawTransaction
only accept 155 transaction,1559
,2930
is not supported- Methods not listed here are also not supported.
- There is no concept of uncle (aka ommer) blocks. The
eth_getUncleByBlockHashAndIndex
andeth_getUncleByBlockNumberAndIndex
methods always returnnull
. Theeth_getUncleCountByBlockHash
andeth_getUncleCountByBlockNumber
methods return zero for valid block IDs andnull
for invalid block IDs. Additionally, uncle-related block metadata such assha3Uncles
is sha3 of empty hash array. - The nonstandard Geth tracing APIs are not supported at present
- The nonstandard Parity tracing APIs are in progress
pending
tag#
Only eth_getTransactionCount
method has supported pending
tag. Other method will treat pending
tag as latest
- eth_getTransactionCount โ
- eth_getBalance
- eth_getCode
- eth_getStorageAt
- eth_call
Note: filter related methods also not support pending
tag
#
Data verifiabilityBelow fields can not guarantee the verifiability
#
Block- hash
- stateRoot
- receiptsRoot
- transactionsRoot
- totalDifficulty
#
Receipt- logsBloom
#
pub/subStarting from v2.1.0 newHeads
and logs
is supported