EthStatsReporter(vertx: Vertx!, ethstatsServerURIs: MutableList<URI!>!, secret: String!, name: String!, node: String!, port: Int, network: String!, protocol: String!, os: String!, osVer: String!, historyRequester: Consumer<MutableList<UInt256!>!>!)
Default constructor.
vertx
- Vertx!: a Vert.x instance, externally managed.
ethstatsServerURIs
- MutableList<URI!>!: the URIs to connect to eth-netstats, such as ws://www.ethnetstats.org:3000/api. URIs are tried in sequence, and the first one to work is used.
secret
- String!: the secret to use when we connect to eth-netstats
name
- String!: the name of the node to be reported in the UI
node
- String!: the node name to be reported in the UI
port
- Int: the devp2p port exposed by this node
network
- String!: the network id
protocol
- String!: the version of the devp2p eth subprotocol, such as eth/63
os
- String!: the operating system on which the node runs
osVer
- String!: the version of the OS on which the node runs
historyRequester
- Consumer<MutableList<UInt256!>!>!: a hook for ethstats to request block information by number.