web3_clientVersion
method. This RPC method returns the client version as a response.
Discover how to use web3_clientVersion
and explore code examples in the Ethereum node API reference.
eth_blockNumber | eth_syncing | eth_gasPrice | eth_maxPriorityFeePerGas |
eth_feeHistory | eth_getBlockTransactionCountByHash | eth_getUncleCountByBlockHash | eth_getUncleCountByBlockNumber |
eth_getTransactionByHash | eth_getTransactionByBlockHashAndIndex | eth_getTransactionByBlockNumberAndIndex | eth_getTransactionReceipt |
eth_estimateGas | eth_getBalance | eth_getCode | eth_getTransactionCount |
eth_getStorageAt | eth_call | eth_createAccessList | eth_newFilter |
eth_newBlockFilter | eth_newPendingTransactionFilter | eth_getFilterLogs | eth_getFilterChanges |
eth_uninstallFilter | eth_getLogs | eth_sendRawTransaction |
eth_accounts | eth_sendTransaction | eth_sign | eth_signTransaction |
eth_mining | eth_hashrate | eth_getWork | eth_submitWork |
eth_submitHashrate | eth_sign | eth_signTransaction | eth_getProof |
eth_sendTransaction | debug_getRawBlock | debug_getRawTransaction | debug_getRawReceipts |
debug_getRawHeader | debug_getBadBlocks |
eth_subscribe | eth_unsubscribe | |
web3_clientVersion | web3_sha3 | |
txpool_content | txpool_status | |
net_listening | net_peerCount | net_version |
eth_getUncleByBlockHashAndIndex | eth_getUncleByBlockNumberAndIndex | eth_getRawTransactionByHash |
eth_getRawTransactionByBlockHashAndIndex | eth_getRawTransactionByBlockNumberAndIndex | eth_createAccessList |
debug_accountRange | debug_getModifiedAccountsByNumber | debug_getModifiedAccountsByHash |
debug_traceBlockByNumber | debug_traceBlockByHash | debug_traceTransaction |
debug_storageRangeAt | debug_traceCall |
eth_subscribe
and eth_unsubscribe
RPC methods, available exclusively through WebSocket Secure (WSS), allow subscribing to real-time data streams for events like new blocks and pending transactions.
The web3_clientVersion
function delivers client information, while web3_sha3
calculates the Keccak hash for a given string.
Utilize txpool_content
and txpool_status
RPC methods for accessing transactions in the mempool.
RPC methods within the net
namespace facilitate the monitoring of a node’s P2P status.
Leveraging non-standard methods in the eth
namespace is advantageous for obtaining extra information that is not accessible via standard RPC methods but is highly valuable for developers.
The debug
methods are designed for advanced users and fulfill a range of purposes, including gathering execution traces for single or multiple transactions.
txpool_contentFrom | txpool_inspect | ||
debug_backtraceAt | debug_blockProfile | debug_chaindbCompact | debug_chaindbProperty |
debug_cpuProfile | debug_dbAncient | debug_dbAncients | debug_dbGet |
debug_dumpBlock | debug_freeOSMemory | debug_freezeClient | debug_gcStats |
debug_getAccessibleState | debug_getBadBlocks | debug_getRawBlock | debug_getRawHeader |
debug_getRawTransaction | debug_getRawReceipts | debug_goTrace | debug_intermediateRoots |
debug_memStats | debug_mutexProfile | debug_preimage | debug_printBlock |
debug_seedHash | debug_setBlockProfileRate | debug_setGCPercent | debug_setHead |
debug_setMutexProfileFraction | debug_setTrieFlushInterval | debug_stacks | debug_standardTraceBlockToFile |
debug_standardTraceBadBlockToFile | debug_startCPUProfile | debug_startGoTrace | debug_stopCPUProfile |
debug_stopGoTrace | debug_traceBadBlock | debug_traceBlock | debug_traceBlockFromFile |
debug_traceChain | debug_verbosity | debug_vmodule | debug_writeBlockProfile |
debug_writeMemProfile | debug_writeMutexProfile |
txpool
namespace: txpool_contentFrom
and txpool_inspect
. txpool_contentFrom
retrieves the transactions contained within the txpool, and txpool_inspect
lists a textual summary of all transactions.
In addition, Geth exposes many execution-time node tuning through the debug namespace. Some of these methods are destructive to the node itself so it should be used with caution. For example:
debug_freezeClient
forces a temporary client freeze.debug_setHead
sets the current head of the local chain by block number.debug_setTrieFlushInterval
configures how often in-memory state tries are persisted to disk. If this value is set to 0, the node will essentially turn into an archive node.debug
namespace. If you are interested in how they work, the guide Deep Dive into Ethereum debug_trace APIs may be useful for you.
eth_getBlockReceipts | eth_protocolVersion | eth_callMany | eth_callBundle |
debug_accountAt | debug_traceCallMany | ||
trace_call | trace_callMany | trace_rawTransaction | trace_replayBlockTransactions |
trace_replayTransaction | trace_block | trace_filter | trace_get |
trace_transaction | |||
erigon_getHeaderByHash | erigon_getBlockReceiptsByBlockHash | erigon_getHeaderByNumber | erigon_getLogsByHash |
erigon_forks | erigon_getBlockByTimestamp | erigon_BlockNumber | erigon_getLatestLogs |
debug_traceCallMany
and trace_callMany
are handy methods that don’t exist on Geth. These two methods perform the same function, allowing users to send multiple transactions in a batch to oversee their execution. The transactions are executed in sequence, with each transaction depending on the resulting state of the previous transactions.