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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! API endpoint implementations
//!
//! This module contains implementations for all Koios API endpoints, organized by category.
//! These implementations work across all supported networks (Mainnet, Preprod, Preview, Guild).
//!
//! - [`account`] - Stake account related endpoints
//! - [`address`] - Address related endpoints
//! - [`asset`] - Asset and token related endpoints
//! - [`block`] - Block related endpoints
//! - [`epoch`] - Epoch related endpoints
//! - [`governance`] - Governance related endpoints
//! - [`network`] - Network related endpoints
//! - [`ogmios`] - Ogmios v6 integration endpoints
//! - [`pool`] - Stake pool related endpoints
//! - [`script`] - Script related endpoints
//! - [`transaction`] - Transaction related endpoints
//!
//! # Examples
//!
//! Fetching account info on Mainnet:
//!
//! ```rust,no_run
//! use koios_sdk::Client;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Client::new()?;
//! let stake_addresses = vec![
//! "stake1ux3g2c9dx2nhhehyrezyxpkstartcqmu9hk63qgfkccw5rqttygt7".to_string()
//! ];
//! let account_info = client.get_account_info(&stake_addresses).await?;
//! println!("Account info: {:?}", account_info);
//! Ok(())
//! }
//! ```
//!
//! Fetching account info on Preprod network:
//!
//! ```rust,no_run
//! use koios_sdk::{Client, Network};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Client::builder()
//! .network(Network::Preprod)
//! .build()?;
//!
//! let stake_addresses = vec![
//! "stake_test1ux3g2c9dx2nhhehyrezyxpkstartcqmu9hk63qgfkccw5rqttygt7".to_string()
//! ];
//! let account_info = client.get_account_info(&stake_addresses).await?;
//! println!("Account info: {:?}", account_info);
//! Ok(())
//! }
//! ```