Expand description
§Lightspeed SDK for Rust
Official Rust SDK for the Solana Vibe Station Lightspeed RPC service.
Lightspeed provides prioritized transaction processing on Solana through an optimized RPC endpoint with automatic tip management.
§Features
- Automatic tip injection for transaction prioritization
- Multiple priority levels (Standard, Rush, Custom)
- Built-in keep-alive connection management
- Simple and intuitive API
- Full compatibility with solana-sdk
§Quick Start
use lightspeed_sdk::{LightspeedClientBuilder, Priority};
let client = LightspeedClientBuilder::new("your-api-key")
.svs_rpc_url("https://basic.rpc.solanavibestation.com")
.default_priority(Priority::Minimum)
.build()?;
// Start keep-alive to maintain connection
client.start_keep_alive().await?;
// Send transactions with automatic tip management
// ... transaction code here ...Structs§
- Lightspeed
Client - Lightspeed RPC client for prioritized transaction processing
- Lightspeed
Client Builder - Builder for creating Lightspeed client instances
- Lightspeed
Config - Configuration settings for the Lightspeed client
- Transaction
Result - Result of a successful transaction submission
Enums§
- Lightspeed
Error - Priority
- Priority levels for transaction processing
Constants§
- LIGHTSPEED_
TIP_ ADDRESS - Lightspeed tip recipient address
- MIN_
TIP_ LAMPORTS - Minimum tip amount in lamports (0.0001 SOL)