13 unstable releases (3 breaking)
| new 0.3.0-rc.4 | May 14, 2026 |
|---|---|
| 0.3.0-rc.3 | Mar 31, 2026 |
| 0.3.0-rc.1 | Feb 17, 2026 |
| 0.2.0 | Nov 27, 2025 |
| 0.0.3 | Mar 12, 2025 |
#677 in Magic Beans
175 downloads per month
Used in trident-fuzz
6MB
1.5K
SLoC
Contains (ELF lib, 1.5MB) chainlink-oracle.so, (ELF lib, 1.5MB) spl-2022-token-mainnet.so, (ELF lib, 1MB) spl-stake-pool.so, (ELF lib, 1MB) metaplex-candy-machine-v3.so, (ELF lib, 795KB) metaplex-token-metadata.so, (ELF lib, 135KB) spl-token-mainnet.so and 1 more.
Trident SVM
An in-process Solana Virtual Machine execution environment built on Agave's TransactionBatchProcessor. Trident SVM enables fast, lightweight processing of Solana transactions without running a full validator or test-validator node.
Used by Trident for fuzz testing and integration testing of Solana programs.
What It Does
Trident SVM provides a self-contained SVM runtime with:
- Account Management — Three-tier account storage (temporary, permanent, sysvars) with automatic state settlement after transaction execution.
- Full Sysvar Support — Clock, Rent, EpochSchedule, SlotHashes, SlotHistory, StakeHistory, Fees, RecentBlockhashes, and EpochRewards — initialized at startup with real-time clock tracking.
- Builtin Programs — All Agave builtins (System Program, BPF Loader, Compute Budget, etc.) registered and ready to use.
- Precompile Support — Ed25519, Secp256k1, and Secp256r1 signature verification precompiles.
- Embedded SPL Programs — SPL Token, Token-2022, Associated Token Program, Metaplex Token Metadata, Metaplex Candy Machine V3, SPL Stake Pool, and Chainlink Oracle — loaded from mainnet binaries at initialization.
- Native Program Entrypoints — Deploy Rust-native program entrypoints directly into the SVM via the
syscall-v2feature, bypassing BPF compilation for faster iteration. - Builder Pattern — Configurable initialization with custom accounts, program entrypoints, and logging options.
Usage
Add this dependency to your Cargo.toml:
[dependencies]
trident-svm = "0.2.0"
or from git:
[dependencies.trident-svm]
git = "https://github.com/Ackee-Blockchain/trident-svm"
License
See LICENSE for details.
Dependencies
~34–46MB
~837K SLoC