Ethereum Core API Methods

Index of Ethereum core API Methods

👍

Welcome to the Ethereum Core API Methods documentation.

This page provides an overview of the available API methods for interacting with the Ethereum blockchain.


Index of API Methods by Namespace

eth Namespace

[Websocket] eth_subscribe
[Websocket]eth_unsubscribe
eth_accounts
eth_blockNumber
eth_call
eth_chainId
eth_createAccessList
eth_estimateGas
eth_feeHistory
eth_gasPrice
eth_getBalance
eth_getBlockByHash
eth_getBlockByNumber
eth_getBlockReceipts
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getCode
eth_getFilterChanges
eth_getFilterLogs
eth_getLogs
eth_getProof
eth_getStorageAt
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_maxPriorityFeePerGas
eth_newBlockFilter
eth_newFilter
eth_newPendingTransactionFilter
eth_sendRawTransaction
eth_sendTransaction(Not Supported)
eth_signTransaction(Not Supported)
eth_syncing
eth_uninstallFilter

net Namespace

net_listening
net_peerCount
net_version

txpool Namespace

txpool_content
txpool_inspect
txpool_status

debug Namespace

debug_getBadBlocks
debug_getRawBlock
debug_getRawHeader
debug_storageRangeAt
debug_traceBlock
debug_traceBlockByHash
debug_traceBlockByNumber
debug_traceCall
debug_traceTransaction

trace Namespace

Erigon, OpenEthereum only

trace_block
trace_call
trace_callMany
trace_filter
trace_get
trace_replayBlockTransactions
trace_replayTransaction
trace_transaction

web3 Namespace

web3_clientVersion

erigon Namespace (TBD)

Erigon only

erigon_forks
erigon_getHeaderbyHash
erigon_getHeaderByNumber
erigon_getLogsByHash
erigon_issuance


Index of API Methods by Use Case

Getting Block

Retrieves information from a particular block in the blockchain.

eth_getBlockByHash
eth_blocknumber
eth_getBlockByNumber
eth_getBlockReceipts
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber

Reading Transactions

Retrieves information on the state data for addresses regardless of whether it is a user or a smart contract.

eth_getTransactionByHash
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionReceipt
eth_getTransactionCount

Writing Transactions & EVM Execution

Allows developers to send ETH from one address to another, write data on-chain, and interact with smart contracts.

eth_call
eth_sendRawTransaction
eth_sendTransaction(Not supported)
eth_signTransaction(Not supported)

Account Information

Returns information regarding an address's stored on-chain data.

eth_getCode
eth_getBalance
eth_accounts
eth_getStorageAt
eth_getProof

Event Logs

Returns logs which are records that denote/provide context on specific events within a smart contract, like a token transfer or a change of ownership, for example.

eth_getLogs
eth_newFilter
eth_newPendingTransactionFilter
eth_newBlockFilter
eth_getFilterChanges
eth_getFilterLogs
eth_uninstallFilter

Chain Information

Returns information on the Ethereum network and internal settings.

eth_chainId
net_version

Gas Estimation

Returns information on the Ethereum network gas estimates.

eth_estimateGas
eth_gasPrice
eth_feeHistory
eth_maxPriorityFeePerGas
eth_createAccessList

Real-time Events

Introduces WebSocket-based requests/responses which leverage a network connection allowing developers to listen for changes continuously without the need for HTTP polling.

[WSS] eth_subscribe
[WSS] eth_unsubscribe

Debug & Trace

Returns detailed information and data related to transactions, including opcode traces, stack and memory values, and gas usage.

debug_getBadBlocks
debug_getRawBlock
debug_getRawHeader
debug_storageRangeAt
debug_traceBlock
debug_traceBlockByHash
debug_traceBlockByNumber
debug_traceCall
debug_traceTransaction

trace_block
trace_call
trace_callMany
trace_filter
trace_get
trace_replayBlockTransactions
trace_replayTransaction
trace_transaction

Transaction Pool (Geth Only)

Returns information about the transaction pool, which contains pending transactions yet to be included in a block.

txpool_content
txpool_inspect
txpool_status

Node Status

Returns information about current node status.

eth_syncing
net_listening
net_peerCount
web3_clientVersion


Deprecated

API methods that are no more used

eth_submitWork
eth_hashrate
eth_mining
eth_coinbase
web3_sha3
parity_getBlockReceipts
trace_rawTransaction

eth_getUncleCountByBlockHash
eth_getUncleByBlockNumberAndIndex
eth_getUncleByBlockHashAndIndex
eth_getUncleCountByBlockNumber