Skip to main content

Ethereum JSON-RPC Compatibility

The following tables present the full list of JSON-RPC methods. Each of them is in one of the states:

done— donein progress— in progresstodo— to do

JSON-RPC Methods According to Ethereum Client API

NumMethodDescriptionStatus
1eth_getBlockByHashReturns information about a block by hashdone
2eth_getBlockByNumberReturns information about a block by numberdone
3eth_getBlockTransactionCountByHashReturns the number of transactions in a block from a block matching the given block hashdone
4eth_getBlockTransactionCountByNumberReturns the number of transactions in a block matching the given block numberdone
5eth_getUncleCountByBlockHashReturns the number of uncles in a block from a block matching the given block hashtodo
6eth_getUncleCountByBlockNumberReturns the number of uncles in a block from a block matching the given block numbertodo
7eth_protocolVersionReturns the current Ethereum protocol versiontodo
8eth_chainIdReturns the chain ID of the current networkdone
9eth_syncingReturns an object with data about the sync status or falsedone
10eth_coinbaseReturns the client coinbase addresstodo
11eth_accountsReturns a list of addresses owned by clientdone
12eth_blockNumberReturns the number of most recent block.done
13eth_callExecutes a new message call immediately without creating a transaction on the block chaindone
14eth_estimateGasGenerates and returns an estimate of how much gas is necessary to allow the transaction to complete.done
15eth_gasPriceReturns the current price per gas in weidone
16eth_feeHistoryReturns fee historytodo
17eth_newFilterCreates a filter object, based on filter options, to notify when the state changes (logs)todo
18eth_newBlockFilterCreates a filter in the node, to notify when a new block arrivestodo
19eth_newPendingTransactionFilterCreates a filter in the node, to notify when new pending transactions arrivein progress
20eth_uninstallFilterUninstalls a filter with given idin progress
21eth_getFilterChangesPolling method for a filter, which returns an array of logs which occurred since last polltodo
22eth_getFilterLogsReturns an array of all logs matching filter with given id. Can compute the same results with an eth_getLogs calltodo
23eth_getLogsAnytime a transaction is mined, we can see event logs for that transaction by making a request to eth_getLogs and then take actions based off those resultsdone
24eth_miningReturns whether the client is actively mining new blocksdone
25eth_hashrateReturns the number of hashes per second that the node is mining withdone
26eth_getWorkReturns the hash of the current block, the seedHash, and the boundary condition to be met ("target")done
27eth_submitWorkUsed for submitting a proof-of-work solutiontodo
28eth_submitHashrateUsed for submitting mining hashratetodo
29eth_signReturns an EIP-191 signature over the provided data.done
30eth_signTransactionSigns and submits a transactiondone
31eth_getBalanceReturns the balance of the account of given addressdone
32eth_getStorageAtReturns the value from a storage position at a given addressdone
33eth_getTransactionCountReturns the number of transactions sent from an addressdone
34eth_getCodeReturns code at a given addressdone
35eth_sendTransactionSigns and submits a transactiondone
36eth_sendRawTransactionSubmits a raw transactiondone
37eth_getTransactionByHashReturns the information about a transaction requested by transaction hashdone
38eth_getTransactionByBlockHashAndIndexReturns information about a transaction by block hash and transaction index positiondone
39eth_getTransactionByBlockNumberAndIndexReturns information about a transaction by block number and transaction index positiondone
40eth_getTransactionReceiptReturns the receipt of a transaction by transaction hashdone

JSON-RPC Methods According to the Web3 Module API

NumMethodDescriptionStatus
1web3_clientVersionReturns the current client versiondone
2web3_shaReturns Keccak-256 (not the standardized SHA3-256) of the given datadone

JSON-RPC Methods According to the Net Module API

NumMethodDescriptionStatus
1net_listeningReturns true if client is actively listening for network connectionsdone
2net_peerCountReturns number of peers currenly connected to the clientdone
3net_versionReturns the current network protocol version.done