This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
eth Methods
The eth namespace provides 40 standard Ethereum JSON-RPC methods for blocks, transactions, state queries, and more.
Overview
Access eth methods via the EIP-1193 request API:
Block Methods
eth_blockNumber
Get the most recent block number.
eth_getBlockByNumber
Get block by number with full transactions or hashes.
Parameters:
blockTag: BlockTag - Block to query
fullTransactions: boolean - true for full tx objects, false for hashes
eth_getBlockByHash
Get block by hash.
Parameters:
blockHash: Hash - Block hash
fullTransactions: boolean - true for full tx objects, false for hashes
eth_getBlockReceipts
Get all transaction receipts for a block.
eth_getBlockTransactionCountByHash
Get transaction count in a block by hash.
eth_getBlockTransactionCountByNumber
Get transaction count in a block by number.
eth_getUncleCountByBlockHash
Get uncle count for a block by hash.
eth_getUncleCountByBlockNumber
Get uncle count for a block by number.
Transaction Methods
eth_sendRawTransaction
Submit a signed transaction to the network.
Parameters:
signedTransaction: Hex - Signed transaction bytes
eth_sendTransaction
Sign and send a transaction (requires unlocked account).
eth_getTransactionByHash
Get transaction by hash.
eth_getTransactionByBlockHashAndIndex
Get transaction by block hash and index.
eth_getTransactionByBlockNumberAndIndex
Get transaction by block number and index.
eth_getTransactionReceipt
Get transaction receipt (includes logs and status).
eth_getTransactionCount
Get transaction count (nonce) for an address.
State Methods
eth_getBalance
Get ether balance of an address.
Parameters:
address: Address - Account address
blockTag: BlockTag - Block to query
eth_getCode
Get contract bytecode at an address.
Parameters:
address: Address - Contract address
blockTag: BlockTag - Block to query
eth_getStorageAt
Get value from a contract storage slot.
Parameters:
address: Address - Contract address
position: Quantity - Storage slot
blockTag: BlockTag - Block to query
eth_getProof
Get Merkle proof for account and storage values.
Parameters:
address: Address - Account address
storageKeys: Quantity[] - Storage slots to prove
blockTag: BlockTag - Block to query
Call Methods
eth_call
Execute a read-only contract call without creating a transaction.
Parameters:
callParams: CallParams - Transaction parameters
blockTag: BlockTag - Block to execute against
eth_estimateGas
Estimate gas required for a transaction.
eth_createAccessList
Generate an access list for a transaction.
eth_simulateV1
Simulate multiple transactions (EIP-not-yet-finalized).
Log & Filter Methods
eth_getLogs
Query event logs matching a filter.
eth_newFilter
Create a new log filter.
eth_newBlockFilter
Create a filter for new blocks.
eth_newPendingTransactionFilter
Create a filter for pending transactions.
eth_getFilterChanges
Get new entries for a filter since last poll.
eth_getFilterLogs
Get all logs matching a filter.
eth_uninstallFilter
Remove a filter.
Fee Methods
eth_gasPrice
Get current gas price.
eth_maxPriorityFeePerGas
Get current max priority fee per gas (EIP-1559).
eth_feeHistory
Get historical gas fee data.
eth_blobBaseFee
Get current blob base fee (EIP-4844).
Network Methods
eth_chainId
Get the chain ID.
eth_syncing
Get sync status (false if not syncing).
eth_coinbase
Get the coinbase address (miner/validator).
Account Methods
eth_accounts
List available accounts (if wallet is connected).
eth_sign
Sign data with an account (requires unlocked account).
eth_sign is dangerous and deprecated. Use typed signing methods like EIP-712 instead.
eth_signTransaction
Sign a transaction (requires unlocked account).
Usage Patterns
Check Balance and Nonce
Query Contract State
Monitor Transaction
Type Reference
All parameter and return types are defined in the JSON-RPC types module.
Next Steps