Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.39 KB

solana.md

File metadata and controls

32 lines (22 loc) · 1.39 KB
description
Consume Pyth prices in Solana programs.

Pyth on Solana

We provide two different SDKs for Solana on-chain programs to use Pyth prices:

{% tabs %} {% tab title="Rust" %} The pyth-sdk-solana crate can be used to consume Pyth prices inside Solana programs written in Rust. {% endtab %}

{% tab title="NEON EVM" %} NEON is an EVM compatibility layer for Solana, allowing users to migrate their Ethereum applications to Solana with minimum effort.

The pyth-neon library is an interface to Pyth oracles for NEON applications. {% endtab %} {% endtabs %}

Example Program

The Pyth Solana SDK includes two example programs that demonstrate how to use Pyth price feeds in Solana programs: a program using only the basic Solana SDK and an Anchor program.

Price Feed IDs

The price feeds available on each Solana network are listed on the following pages: