← ClaudeAtlas

solana-streamer-botlisted

Use this skill when building bot-facing event streams with solana-streamer or solana-streamer-sdk, including Yellowstone gRPC, ShredStream, dynamic subscriptions, DexEvent callbacks, account filters, RPC transaction replay, and migration from older trait-based streamer APIs. Supports Chinese and English prompts, including 事件流, 监听, 订阅, gRPC, ShredStream, 账户过滤, 回调, RPC 回放, 低延迟.
0xfnzero/solana-bot-dev-skills · ★ 3 · AI & Automation · score 64
Install: claude install-skill 0xfnzero/solana-bot-dev-skills
# Solana Streamer Bot Use `solana-streamer-sdk` for Chinese or English bot requests that need stable application-level event streams backed by `sol-parser-sdk`. ## When To Prefer Streamer Prefer `solana-streamer-sdk` when the user needs: - A bot-facing `DexEvent` stream across multiple DEX protocols. - Callback-style subscription APIs. - gRPC plus ShredStream behind a simpler facade. - RPC transaction replay converted to streamer events. - Dynamic subscription management. - Account and transaction filtering in one subscription. Use `sol-parser-sdk` directly for parser internals, maximal low-level control, or contribution work. ## Dependency ```toml solana-streamer-sdk = "1.5.1" ``` For zero-copy parser backend: ```toml solana-streamer-sdk = { version = "1.5.1", default-features = false, features = ["sdk-parse-zero-copy"] } ``` ## Current Event Model Current v1 APIs use concrete enum events: - Event type: `DexEvent` - Callback signature: `Fn(DexEvent)` - Event matching: standard Rust `match` - Metadata: `event.metadata().event_type`, `.signature`, `.slot`, `.protocol` When migrating old code, replace `Box<dyn UnifiedEvent>` and `match_event!` with `DexEvent` enum matching. ## gRPC Subscription Pattern ```rust use solana_streamer_sdk::streaming::{ event_parser::{ common::{filter::EventTypeFilter, EventType}, DexEvent, Protocol, }, grpc::ClientConfig, yellowstone_grpc::{AccountFilter, TransactionFilter}, YellowstoneGrpc, }; let