Crate lightspeed_sdk

Crate lightspeed_sdk 

Source
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§

LightspeedClient
Lightspeed RPC client for prioritized transaction processing
LightspeedClientBuilder
Builder for creating Lightspeed client instances
LightspeedConfig
Configuration settings for the Lightspeed client
TransactionResult
Result of a successful transaction submission

Enums§

LightspeedError
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)