Expand description
EthStats
client support for Reth.
This crate provides the necessary components to connect to, authenticate with, and report
node and network statistics to an EthStats
server. It includes abstractions for WebSocket
connections, error handling, event/message types, and the main EthStats
service logic.
connection
:WebSocket
connection management and utilitieserror
: Error types for connection andEthStats
operationsethstats
: Main service logic forEthStats
clientevents
: Data structures forEthStats
protocol messages
Structsยง
- AuthMsg
- Authentication message used to login to the ethstats monitoring server. Contains node identification and authentication information.
- Block
Msg - Message containing a block to be reported to the ethstats monitoring server.
- Block
Stats - Information to report about individual blocks.
- EthStats
Service - Main service for interacting with an
EthStats
server - History
Msg - Message containing historical block data to be reported to the ethstats monitoring server.
- Latency
Msg - Latency report message used to report network latency to the ethstats monitoring server.
- Node
Info - Collection of meta information about a node that is displayed on the monitoring page. This information is used to identify and display node details in the ethstats monitoring interface.
- Node
Stats - Information reported about the local node.
- Pending
Msg - Message containing pending transaction statistics to be reported to the ethstats monitoring server.
- Pending
Stats - Message containing pending transaction statistics to be reported to the ethstats monitoring server.
- PingMsg
- Ping message sent to the ethstats monitoring server to initiate latency measurement.
- Stats
Msg - Message containing node statistics to be reported to the ethstats monitoring server.
- TxStats
- Simplified transaction info, containing only the hash.
- Uncle
Stats - Wrapper for uncle block headers.
This ensures empty lists serialize as
[]
instead ofnull
.