Skip to content

EVM JSON-RPC Methods

MethodRU CostDescription
eth_chainId0Returns the chain ID
net_version0Returns the network ID
web3_clientVersion0Returns the client version
web3_sha30Returns Keccak-256 hash
net_listening0Returns listening status
net_peerCount0Returns peer count
MethodRU CostDescription
eth_blockNumber5Returns latest block number
eth_getBlockByNumber10Returns block by number
eth_getBlockByHash10Returns block by hash
eth_getBlockTransactionCountByNumber5Returns tx count in block
eth_getBlockTransactionCountByHash5Returns tx count in block
MethodRU CostDescription
eth_getTransactionByHash10Returns transaction by hash
eth_getTransactionByBlockNumberAndIndex10Returns tx by block number and index
eth_getTransactionByBlockHashAndIndex10Returns tx by block hash and index
eth_getTransactionReceipt10Returns transaction receipt
eth_getTransactionCount10Returns nonce for address
eth_sendRawTransaction20Broadcasts a signed transaction
MethodRU CostDescription
eth_getBalance10Returns ETH balance
eth_getCode10Returns contract bytecode
eth_getStorageAt10Returns storage at position
eth_call20Executes call without creating tx
eth_estimateGas20Estimates gas for a transaction
eth_gasPrice5Returns current gas price
eth_feeHistory10Returns fee history
eth_maxPriorityFeePerGas5Returns priority fee suggestion
MethodRU CostDescription
eth_getLogs50Returns logs matching filter
eth_newFilter10Creates a new filter
eth_newBlockFilter10Creates block filter
eth_newPendingTransactionFilter10Creates pending tx filter
eth_getFilterChanges10Returns filter changes
eth_getFilterLogs50Returns all logs for filter
eth_uninstallFilter5Removes a filter
MethodRU CostDescription
eth_subscribe10Subscribes to events
eth_unsubscribe5Unsubscribes from events
MethodRU CostDescription
debug_traceTransaction200Traces a transaction
debug_traceBlockByNumber500Traces all txs in block
trace_block200Returns traces for block
trace_transaction200Returns traces for tx

Note: RU costs are approximate. Complex calls (e.g., large eth_getLogs ranges) may consume more RU based on the response size.