Crate reth_node_ethstats

Crate reth_node_ethstats 

Source
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 utilities
  • error: Error types for connection and EthStats operations
  • ethstats: Main service logic for EthStats client
  • events: Data structures for EthStats protocol messages

Structsยง

AuthMsg
Authentication message used to login to the ethstats monitoring server. Contains node identification and authentication information.
BlockMsg
Message containing a block to be reported to the ethstats monitoring server.
BlockStats
Information to report about individual blocks.
EthStatsService
Main service for interacting with an EthStats server
HistoryMsg
Message containing historical block data to be reported to the ethstats monitoring server.
LatencyMsg
Latency report message used to report network latency to the ethstats monitoring server.
NodeInfo
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.
NodeStats
Information reported about the local node.
PendingMsg
Message containing pending transaction statistics to be reported to the ethstats monitoring server.
PendingStats
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.
StatsMsg
Message containing node statistics to be reported to the ethstats monitoring server.
TxStats
Simplified transaction info, containing only the hash.
UncleStats
Wrapper for uncle block headers. This ensures empty lists serialize as [] instead of null.