This section documents the core Ethereum JSON-RPC API methods that provide essential functionality for interacting with the Ethereum blockchain. These methods form the foundation of most Ethereum applications and development workflows.
These methods provide core functionality for interacting with the Ethereum blockchain, including account balances, transaction data, block information, and smart contract interactions.
Method Calls | HTTP! | 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. | ||
These methods provide information about the network status and connections, helping developers monitor node connectivity and network configuration.
Method Calls | HTTP! | 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 | ||
These methods allow inspection of the transaction pool status, providing visibility into pending transactions and mempool state.
Method Calls | HTTP! | 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 | ||
Basic web3 utility methods for general blockchain interaction, including hashing and client information.
Method Calls | HTTP! | WS! |
---|---|---|
web3_clientVersion Returns the current client version | ||
web3_sha3 Returns the Keccak-256 hash of the given data | ||