Getting started with TheRPC
Ethereum/Methods All

Ethereum API Methods

This page provides a comprehensive list of all supported Ethereum API methods. Each method includes information about its purpose and usage. For detailed information about a specific method, click on its name to view the complete documentation.

Core Ethereum Methods (eth_)

These methods provide core functionality for interacting with the Ethereum blockchain.

Method CallsHTTP!WS!
eth_blockNumber
Returns the current block number
eth_call
Executes a new message call immediately without creating a transaction
eth_chainId
Returns the chain ID of the current network
eth_estimateGas
Generates and returns an estimate of how much gas is necessary to execute a transaction
eth_feeHistory
Returns transaction fee history data for the requested block range
eth_gasPrice
Returns the current gas price in wei
eth_getBalance
Returns the balance of an account for a given address
eth_getBlockByHash
Returns information about a block specified by its hash
eth_getBlockByNumber
Returns information about a block specified by its number
eth_getBlockReceipts
Returns all transaction receipts for a given block
eth_getBlockTransactionCountByHash
Returns the number of transactions in a block specified by its hash
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block specified by its number
eth_getCode
Returns the compiled smart contract code at a given address
eth_getFilterChanges
Polling method for a filter, returns an array of logs which occurred since last poll
eth_getFilterLogs
Returns an array of all logs matching filter with given id
eth_getLogs
Returns an array of logs matching the given filter criteria
eth_getProof
Returns the merkle proof for an account's state
eth_getStorageAt
Returns the value from a storage position at a given address
eth_getTransactionByBlockHashAndIndex
Returns transaction information by block hash and transaction index
eth_getTransactionByBlockNumberAndIndex
Returns transaction information by block number and transaction index
eth_getTransactionByHash
Returns transaction details by transaction hash
eth_getTransactionCount
Returns the number of transactions sent from an address (nonce)
eth_getTransactionReceipt
Returns the receipt of a transaction specified by its hash
eth_getUncleByBlockHashAndIndex
Returns information about an uncle block by block hash and uncle index
eth_getUncleByBlockNumberAndIndex
Returns information about an uncle block by block number and uncle index
eth_getUncleCountByBlockHash
Returns the number of uncles in a block specified by its hash
eth_getUncleCountByBlockNumber
Returns the number of uncles in a block specified by its number
eth_maxPriorityFeePerGas
Returns the current maximum priority fee per gas in wei
eth_newBlockFilter
Creates a filter in the node, to notify when a new block arrives
eth_newFilter
Creates a filter object, based on filter options, to notify when the state changes
eth_newPendingTransactionFilter
Creates a filter in the node, to notify when new pending transactions arrive
eth_sendRawTransaction
Submits a raw transaction to the network
eth_subscribe
Creates a subscription for specific blockchain events via WebSocket.
eth_syncing
Returns information about the sync status of the node
eth_uninstallFilter
Uninstalls a filter with given id
eth_unsubscribe
Cancels an existing subscription via WebSocket.

Debug Methods (debug_)

These methods are used for debugging and analyzing blockchain data in detail.

Method CallsHTTP!WS!
debug_getBadBlocks
Returns a list of the last 'bad blocks' that the client has seen on the network
debug_storageRangeAt
Returns the storage range of a contract at a specific block height
debug_traceBlock
Returns all traces created at a given block
debug_traceBlockByHash
Returns all traces created at a block specified by its hash
debug_traceBlockByNumber
Returns all traces created at a block specified by its number
debug_traceCall
Executes a new message call and returns the traces created during execution
debug_traceTransaction
Returns all traces of a given transaction

Trace Methods (trace_)

These methods provide detailed transaction and block trace information.

Method CallsHTTP!WS!
trace_block
Returns traces created at a given block
trace_call
Executes a call and returns the traces created during execution
trace_replayBlockTransactions
Replays all transactions in a block and returns their traces
trace_replayTransaction
Replays a transaction and returns its trace
trace_transaction
Returns all traces of a given transaction

Network Methods (net_)

These methods provide information about the network status and connections.

Method CallsHTTP!WS!
net_listening
Returns true if the client is actively listening for network connections
net_peerCount
Returns the number of peers currently connected to the client
net_version
Returns the current network protocol version

Transaction Pool Methods (txpool_)

These methods allow inspection of the transaction pool status.

Method CallsHTTP!WS!
txpool_inspect
Returns a detailed list of transactions currently pending in the transaction pool
txpool_status
Returns the number of transactions currently pending and queued

Web3 Utility Methods (web3_)

Basic web3 utility methods for general blockchain interaction.

Method CallsHTTP!WS!
web3_clientVersion
Returns the current client version
web3_sha3
Returns the Keccak-256 hash of the given data
Help Us Get Better!
Share this page and help us create an even better product for you.