Installation
Add Onyx SDK to your Rust project using Cargo.
Add Dependency
Add the following to your Cargo.toml:
Cargo.toml
[dependencies]
onyx-sdk = "0.1"Or install via cargo:
cargo add onyx-sdkView on crates.io
Requirements
Rust 1.70+ — Latest stable Rust toolchain
Solana CLI — Required for program deployment
Anchor 0.30.x — For on-chain program development
Verify Installation
Create a simple test to verify the SDK is working:
src/main.rs
use onyx_sdk::prelude::*;
fn main() -> Result<()> {
// Generate a new stealth meta-address
let meta = StealthMetaAddress::generate()?;
println!("Meta-address generated successfully!");
println!("Public: {}", meta.to_public().encode());
Ok(())
}Run the program:
cargo runIf you see a meta-address printed, the SDK is installed correctly and ready to use.