Registry / crypto / solana-sdk

solana-sdk

JSON →
library4.0.0rscratesunverified

Solana SDK for building Solana programs and clients.

# Cargo.toml [dependencies] solana-sdk = "4.0.0"
INSTALL
IMPORT
SIG · SOLANA-SDK
S
solana-sdk
cryptorustv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pubkey
use solana_sdk::pubkey::Pubkey;

Generate a new unique Solana public key.

use solana_sdk::pubkey::Pubkey; fn main() { let pubkey = Pubkey::new_unique(); println!("Pubkey: {}", pubkey); }
Debug
Known issues
gotchaRequires specific Solana runtime features; not all functions work outside of Solana environment.
fix
Ensure you are building for Solana target or use feature flags appropriately.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
Resources
solana-sdk — cargo add solana-sdk · libregistry