Registry / crypto / pyth-sdk-solana

pyth-sdk-solana

JSON →
library0.10.6rscratesunverified

Provides Pyth price oracle data structures and example usage for Solana blockchain.

# Cargo.toml [dependencies] pyth-sdk-solana = "0.10.6"
INSTALL
IMPORT
SIG · PYTH-SDK-SOLANA
P
pyth-sdk-solana
cryptorustv0.10.6
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.

load_price_feed_from_account_info
use pyth_sdk_solana::load_price_feed_from_account_info;

Loads a Pyth price feed from a Solana account.

use pyth_sdk_solana::load_price_feed_from_account_info; fn main() { // Example: loading a price feed (requires Solana account info) println!("Pyth SDK Solana loaded"); }
Debug
Known issues
gotchaRequires a Solana RPC connection and account info to fetch price data.
fix
Ensure you have a valid Solana RPC endpoint and the correct account key.
affects: >=0.10.0
Upgrade
Version history
0.10.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
Amazon
1
Resources
pyth-sdk-solana — cargo add pyth-sdk-solana · libregistry