Version: 2.0.0
Ethereum JSON-RPC API
Standard Ethereum JSON-RPC API methods for interacting with the Ethereum blockchain. These methods allow developers to query blockchain data, send transactions, and interact with smart contracts.
Available Methods
Chain State
- eth_blockNumber – Returns the number of the most recent block
- eth_chainId – Returns the chain ID used for signing replay-protected transactions
- eth_syncing – Returns an object with data about the sync status
Block Information
- eth_getBlockByHash – Returns information about a block by its hash
- eth_getBlockByNumber – Returns information about a block by its number
- eth_getBlockTransactionCountByHash – Returns the number of transactions in a block by block hash
- eth_getBlockTransactionCountByNumber – Returns the number of transactions in a block by block number
Transaction Information
- eth_getTransactionByHash – Returns information about a transaction by hash
- eth_getTransactionByBlockHashAndIndex – Returns information about a transaction by block hash and index
- eth_getTransactionByBlockNumberAndIndex – Returns information about a transaction by block number and index
- eth_getTransactionReceipt – Returns the receipt of a transaction by hash
State Queries
- eth_call – Executes a new message call without creating a transaction
- eth_getBalance – Returns the balance of an account
- eth_getCode – Returns the code at a given address
- eth_getStorageAt – Returns the value from a storage position at a given address
- eth_getTransactionCount – Returns the number of transactions sent from an address
Transactions
- eth_estimateGas – Returns an estimation of gas needed for a transaction
- eth_gasPrice – Returns the current gas price in wei
- eth_feeHistory – Returns a collection of historical gas information
- eth_maxPriorityFeePerGas – Returns an estimate of the max priority fee per gas
- eth_sendRawTransaction – Submits a pre-signed transaction for broadcast
Filters
- eth_getFilterChanges – Returns an array of logs which occurred since last poll
- eth_getLogs – Returns an array of all logs matching a given filter object
- eth_newBlockFilter – Creates a filter to notify when a new block arrives
- eth_newFilter – Creates a filter object based on filter options
- eth_newPendingTransactionFilter – Creates a filter to notify for new pending transactions
- eth_uninstallFilter – Uninstalls a filter with given id