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
//! # K256 SDK
//!
//! Official Rust SDK for [K256](https://k256.xyz) - the gateway to Solana's liquidity ecosystem.
//!
//! Connect any application to Solana's liquidity ecosystem. One API. All venues. Full observability.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use k256_sdk::{K256WebSocketClient, Config};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = K256WebSocketClient::new(Config {
//! api_key: std::env::var("K256_API_KEY")?,
//! ..Default::default()
//! });
//!
//! client.on_pool_update(|update| {
//! println!("Pool {}: slot={}", update.pool_address, update.slot);
//! });
//!
//! client.connect().await?;
//! Ok(())
//! }
//! ```
//!
//! ## Features
//!
//! - **WebSocket streaming** - Real-time pool updates, priority fees, blockhash
//! - **Binary protocol** - Low-latency bincode-encoded messages
//! - **Auto-reconnect** - Exponential backoff with jitter
//! - **Type-safe** - Strongly typed message structs
//!
//! ## Modules
//!
//! - [`ws`] - WebSocket client and binary decoder
//! - [`types`] - Core type definitions
//! - [`utils`] - Utility functions (base58, pubkey validation)
// Re-exports
pub use *;
pub use ;