1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # stakewiz-rs
//!
//! Unofficial Rust client for the [Stakewiz API](https://docs.stakewiz.com/) —
//! Solana validator analytics, Wiz Score, epoch info, and more.
//!
//! ## Quick Start
//!
//! ```no_run
//! use stakewiz_rs::{StakewizClient, QueryParams};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = StakewizClient::new();
//!
//! // Get a single validator by vote account
//! let v = client.get_validator("GE6atKoWiQ2pt3zL7N13pjNHjdLVys8LinG8qeJLcAiL").await?;
//! println!("{} — APY: {:?}%", v.name.unwrap_or_default(), v.apy_estimate);
//!
//! // Get all stake accounts for a validator
//! let stakes = client.get_validator_stakes("LSTmLs1DENX82ihc7jU134mydiV3NDEPXsRrekAY6Ys").await?;
//! println!("Total stake accounts: {}", stakes.len());
//!
//! // Get current epoch info
//! let epoch = client.get_epoch_info().await?;
//! println!("Epoch {} — {:.0}s remaining", epoch.epoch, epoch.remaining_seconds);
//!
//! Ok(())
//! }
//! ```
pub use StakewizClient;
pub use ;
pub use *;
pub use QueryParams;