Skip to main content

JSON-RPC API Methods

This page presents the full list of JSON-RPC methods. Each of them is in one of three states:

done— donein progress— in progressnot supported— not supported

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 hashnot supported
6eth_getUncleCountByBlockNumberReturns the number of uncles in a block from a block matching the given block numbernot supported
7eth_protocolVersionReturns the current Ethereum protocol versionnot supported
8eth_chainIdReturns the chain ID of the current networkdone
9eth_syncingReturns an object with data about the sync status or false-copydone
10eth_coinbaseReturns the client Coinbase addressnot supported
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 blockchaindone
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 historynot supported
17eth_newFilterCreates a filter object, based on filter options, to notify when the state changes (logs)not supported
18eth_newBlockFilterCreates a filter in the node, to notify when a new block arrivesnot supported
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 pollnot supported
22eth_getFilterLogsReturns an array of all logs matching filter with given id. Can compute the same results with an eth_getLogs callnot supported
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 solutionnot supported
28eth_submitHashrateUsed for submitting mining hashratenot supported
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 currently connected to the clientdone
3net_versionReturns the current network protocol versiondone
Was this page helpful?