Getting Started/Installation

Installation

Add Onyx SDK to your Rust project using Cargo.

Add Dependency

Add the following to your Cargo.toml:

Cargo.toml
toml
[dependencies]
onyx-sdk = "0.1"

Or install via cargo:

cargo add onyx-sdk

View on crates.io

Requirements

Rust 1.70+Latest stable Rust toolchain
Solana CLIRequired for program deployment
Anchor 0.30.xFor on-chain program development

Verify Installation

Create a simple test to verify the SDK is working:

src/main.rs
rust
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 run

If you see a meta-address printed, the SDK is installed correctly and ready to use.