K256 Rust SDK
Official Rust SDK for K256 - the gateway to decentralized finance.
Connect any application to Solana's liquidity ecosystem. One API. All venues. Full observability.
Installation
[]
= "0.1"
Quick Start
use ;
async
Examples
See the examples/ directory for runnable examples:
K256_API_KEY=your-key
Module Structure
k256_sdk/
├── lib.rs # Main crate exports
├── ws/
│ ├── mod.rs # WebSocket module
│ ├── client.rs # WebSocket client
│ └── decoder.rs # Binary message decoder
├── types/
│ ├── mod.rs # Type re-exports
│ ├── pool.rs # PoolUpdate
│ ├── fees.rs # PriorityFees
│ ├── blockhash.rs # Blockhash
│ ├── quote.rs # Quote
│ ├── token.rs # Token
│ ├── heartbeat.rs # Heartbeat
│ └── messages.rs # MessageType, NetworkState
└── utils/
├── mod.rs # Utility exports
└── base58.rs # Base58 encoding
Architecture
This SDK follows the cross-language conventions defined in ARCHITECTURE.md.
License
MIT