What is solana-pipkit?
solana-pipkit is a Rust utility crate designed to streamline common tasks in Solana program and client development. It focuses on ergonomics, safety, and reusable patterns for production-grade Solana workflows.
As of version 2.0.0, solana-pipkit represents a stable, cohesive client-side framework for building trading systems, wallets, bots, analytics pipelines, and developer tooling on Solana.
Installation
Or add to your Cargo.toml:
[]
= "2.0.0"
# Enable high-performance trading features
= { = "2.0.0", = ["speed"] }
High-level features
-
Rent Recovery Efficiently reclaim lamports from dormant or empty accounts
-
SPL Token Helpers Simplified helpers for burning, transferring, and closing token accounts
-
PDA Management Utilities for derivation, seeding, and validation including Metaplex metadata PDAs
-
Account Utilities Common validation patterns, deserialization helpers, and account graph traversal
-
Transaction Batching Fluent builders and batch executors for reliable multi-transaction workflows
-
Anchor Reusables Shared structures and helpers for cleaner, more maintainable Anchor programs
-
Safety Protocol Client-side validation to prevent costly transaction mistakes before submission
-
Transaction Simulation Pre-flight simulation for previewing balance changes, compute usage, and failure risks
-
Program and NFT Safety Detection of risky programs, upgrade authorities, and suspicious or fake NFTs
-
MEV Protection Sandwich risk analysis, priority fee recommendations, and Jito bundle support
-
Speed Module (introduced in v1.3.0, consolidated in v2.0.0) High-performance execution for trading agents with connection pooling, blockhash caching, and optimized swaps
-
Analytics Module (v2.0.0) Wallet profiling, PnL analysis, and behavioral classification
-
DeFi Module (v2.0.0) Pool inspection, LP position tracking, and farming position analysis
Speed Module
Built for trading bots and agents that need minimal latency. The speed module provides optimized RPC clients, instant transaction building, and fast swap execution.
use *;
use Keypair;
async
Performance targets:
- Cached blockhash retrieval: 0ms
- ATA computation: <50us
- Quote to execution: <500ms
Transaction Simulation
Before sending a transaction, solana-pipkit allows you to simulate execution locally or via RPC.
Simulation provides insight into balance changes, compute unit usage, instruction failures, and swap outcomes without committing state on-chain.
Simulation is a first-class component in version 2.0.0 and integrates directly with safety analysis to block or warn on unsafe outcomes.
Project Status
Stable major release. Version 2.0.0 marks a consolidated and production-ready API surface. Backwards compatibility will be preserved within the 2.x series.
Fast chains deserve safe, expressive tooling. solana-pipkit exists to reduce boilerplate, eliminate common footguns, and provide a reliable foundation for Solana client-side infrastructure.
Contributing
Contributions are welcome and appreciated.
- Open an issue for bugs, ideas, or discussion
- Submit a PR for improvements or new helpers
- Keep APIs ergonomic, composable, and Solana-native
License
This project is licensed under the MIT License.