Skip to main content

Module network

Module network 

Source

Structsยง

AnnouncedPeerResponse ๐Ÿ”’
A peer that has been announced.
ConnectedPeerResponse ๐Ÿ”’
Immediate observation data for a connected peer.
GraphQueryRequest ๐Ÿ”’
Parameters for the network graph endpoint.
TicketPriceResponse ๐Ÿ”’
Contains the ticket price in HOPR tokens.
TicketProbabilityResponse ๐Ÿ”’
Contains the winning probability of a ticket.

Enumsยง

AnnouncementOriginResponse ๐Ÿ”’
How a peer announcement was discovered.

Functionsยง

announced ๐Ÿ”’
Lists all announced peers.
connected ๐Ÿ”’
Lists peers with immediate observation data from the network graph.
graph ๐Ÿ”’
Returns the network graph in DOT (Graphviz) format.
price ๐Ÿ”’
Gets the current ticket price.
probability ๐Ÿ”’
Gets the current minimum incoming ticket winning probability defined by the network.