Skip to content

Supported Methods

Complete list of supported Ethereum JSON-RPC methods.

Standard Methods

Block Methods

MethodDescription
eth_blockNumberReturns the current block number
eth_getBlockByHashReturns block by hash
eth_getBlockByNumberReturns block by number
eth_getBlockTransactionCountByHashTransaction count by block hash
eth_getBlockTransactionCountByNumberTransaction count by block number
eth_getBlockReceiptsAll receipts for a block

Transaction Methods

MethodDescription
eth_getTransactionByHashReturns transaction by hash
eth_getTransactionByBlockHashAndIndexTransaction by block hash and index
eth_getTransactionByBlockNumberAndIndexTransaction by block number and index
eth_getTransactionReceiptReturns transaction receipt
eth_getTransactionCountReturns nonce for address
eth_sendRawTransactionSubmits signed transaction

Account Methods

MethodDescription
eth_getBalanceReturns account balance
eth_getCodeReturns contract bytecode
eth_getStorageAtReturns storage value
eth_accountsReturns list of accounts (empty for public nodes)

Call Methods

MethodDescription
eth_callExecutes call without creating transaction
eth_estimateGasEstimates gas for transaction
eth_createAccessListCreates access list for transaction

Gas Methods

MethodDescription
eth_gasPriceReturns current gas price
eth_maxPriorityFeePerGasReturns max priority fee
eth_feeHistoryReturns fee history

Log Methods

MethodDescription
eth_getLogsReturns logs matching filter
eth_newFilterCreates new filter
eth_newBlockFilterCreates block filter
eth_newPendingTransactionFilterCreates pending tx filter
eth_getFilterChangesReturns filter changes
eth_getFilterLogsReturns filter logs
eth_uninstallFilterRemoves filter

Chain Methods

MethodDescription
eth_chainIdReturns chain ID
eth_syncingReturns sync status
net_versionReturns network ID
net_listeningReturns listening status
web3_clientVersionReturns client version

Debug & Trace Methods

Archive Nodes Only

These methods require archive data access.

MethodDescription
debug_traceTransactionTraces transaction execution
debug_traceBlockByNumberTraces all transactions in block
debug_traceBlockByHashTraces all transactions in block by hash
debug_traceCallTraces call without transaction
trace_transactionOpenEthereum-style trace
trace_blockTraces entire block
trace_callTraces call

Example Requests

eth_blockNumber

json
{
  "jsonrpc": "2.0",
  "method": "eth_blockNumber",
  "params": [],
  "id": 1
}

eth_getBalance

json
{
  "jsonrpc": "2.0",
  "method": "eth_getBalance",
  "params": ["0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2", "latest"],
  "id": 1
}

eth_call

json
{
  "jsonrpc": "2.0",
  "method": "eth_call",
  "params": [
    {
      "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "data": "0x70a08231000000000000000000000000742d35Cc6634C0532925a3b844Bc9e7595f0bEb2"
    },
    "latest"
  ],
  "id": 1
}

eth_getLogs

json
{
  "jsonrpc": "2.0",
  "method": "eth_getLogs",
  "params": [
    {
      "fromBlock": "0x134a1b0",
      "toBlock": "latest",
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "topics": [
        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
      ]
    }
  ],
  "id": 1
}