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.
Detailed documentation is available in the API Reference.
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 and deserialization helpers -
Anchor Reusables
Macros and shared structures for cleaner, more maintainable Anchor programs
Get Started
Add to your project via git (until published on crates.io):
toml [dependencies] solana-pipkit = { git = "https://github.com/piccassol/solana-pipkit" } Simple example Reclaiming rent from empty accounts:
rust Copy code use solana_pipkit::rent::RentCleaner; use solana_sdk::{signature::read_keypair_file, signer::Signer};
#[tokio::main] async fn main() -> Result<(), Box> { let keypair = read_keypair_file("~/.config/solana/id.json")?; let rpc_url = "https://api.mainnet-beta.solana.com";
let cleaner = RentCleaner::new(rpc_url, keypair.pubkey(), keypair);
let reclaimed = cleaner.clean_empty_accounts().await?;
println!("Reclaimed {} lamports", reclaimed);
Ok(())
} More examples are available in the examples/ directory.
⚠️ Note This is an early-stage utility crate. APIs may evolve, and breaking changes can occur as the toolkit matures.
Fast chains deserve safe, expressive tooling. solana-pipkit exists to remove boilerplate, reduce footguns, and let you focus on protocol logic. ⚠️ Project Status
Early-stage utility crate APIs may evolve and breaking changes can occur as the toolkit matures. Feedback, issues, and contributions are highly encouraged.
🤝 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
👉 Get started: https://github.com/piccassol/solana-pipkit/issues/new
📄 License
This project is licensed under the MIT License.
🧱 Built by ARK