Module node

Module node 

Source
Expand description

gRPC client for a Quilibrium node.

Example usage:

// Import the client
use quilibrium::node::NodeClient;

// Connect to your node
let mut client = NodeClient::new("http://1.2.3.4:5678".parse()?).await?;
// Fetch the peers from the node's peer store
let network_info = client.network_info().await?;

Structs§

ClockFrame
Represents a clock frame for a given filter. Clock frames are the primary sequencing mechanism upon which the network derives consensus. As the master pulse clock, this provides deterministic but random leader election. At the data pulse clock level, this provides the same, within a quorum for data sequencers. Docs from: https://github.com/QuilibriumNetwork/ceremonyclient/blob/20aae290cb2f67b4557bd3aa245193f4a4992583/node/protobufs/clock.proto
FramesOptions
Options for a get frames request.
FramesResponse
A get frames response from a node.
NetworkInfo
Info about a peer from the node’s peer store.
NetworkInfoResponse
A network info response from a node.
NodeClient
gRPC client for a Quilibrium node.
PeerId
Identifier of a peer of the network.
PeerInfo
Information about a peer the node knows about from the broadcasted sync info that gets replicated through the network mesh.
PeerInfoResponse
Info about a peer the node knows about.
TokenInfo
Token supply and balance from a node.

Enums§

FrameFilter
A frame filter for Quilibrium clock frames.
NodeClientError
Errors that can occur when interacting with a node.