0%
less code when testing Solana programs

Solana Kite (Rust) + LiteSVM. Used across every example in the Solana program examples repo.

Get started docs.rs

Write less, test faster

Anchor 1.2 and Anchor 2 default to Rust tests. Solana Kite turns the usual 15–30 line wallet / token / transaction setup into single calls.

0%
less setup code
0
example programs
0
test files
0
helper calls
cargo add --dev solana-kite
use solana_kite::{create_wallet, create_token_mint, create_associated_token_account, mint_tokens_to_token_account};
use litesvm::LiteSVM;

let mut svm = LiteSVM::new();
let authority = create_wallet(&mut svm, 1_000_000_000).unwrap();
let mint = create_token_mint(&mut svm, &authority, 6, None, None).unwrap();
let ata = create_associated_token_account(&mut svm, &authority.pubkey(), &mint, &authority, None).unwrap();
mint_tokens_to_token_account(&mut svm, &mint, &ata, 1_000_000_000, &authority, None).unwrap();

Compatibility: Agave 4 · Anchor 1.2.2 / Anchor 2 · LiteSVM 0.18 · Rust 1.97.1+ · v0.7.0

How Kite reduces LiteSVM test code

Same task (funded wallet + token mint + associated token account + mint tokens) with and without Kite. Measured by Rust token count using the real Rust lexer. Source: solana-rust-library-comparison

Kite
120
Plain LiteSVM
403

Kite collapses the same setup into a few calls. Plain LiteSVM + SPL instruction builders is roughly 3.4× more code for this task.

Weighted across typical test setup in the Solana program examples, the net reduction is ~65% of the boilerplate lines.

Used in every Solana program example

The Solana program examples is the largest actively maintained set of Solana programs. Every example that needs wallets, tokens, or transactions uses Solana Kite.

58 example programs · 208 implementations · over 1,000 tests · 116 test files import Kite

Changelog

0.7.0 — LiteSVM 0.18 (Agave 4.3), Rust 1.97.1

0.6.0 — v1 transactions (SIMD-0385) by default, compute limits on every transaction

0.3.0 — Full Token Extensions + transfer hooks, Agave 3 / Anchor 1

Full changelog →