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.
These methods provide information about the network status and connections, helping developers monitor node connectivity and network configuration.
方法调用 | HTTP! | WS! |
---|---|---|
net_listening 如果客户端正在主动监听网络连接,则返回true | ||
net_peerCount 返回当前连接到客户端的对等节点数量 | ||
net_version 返回当前网络协议版本 | ||
These methods allow inspection of the transaction pool status, providing visibility into pending transactions and mempool state.
方法调用 | HTTP! | WS! |
---|---|---|
txpool_inspect 返回当前在交易池中待处理的交易的详细列表 | ||
txpool_status 返回当前待处理和排队的交易数量 | ||
Basic web3 utility methods for general blockchain interaction, including hashing and client information.
方法调用 | HTTP! | WS! |
---|---|---|
web3_clientVersion 返回当前客户端版本 | ||
web3_sha3 返回给定数据的Keccak-256哈希 | ||