Ayush a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) před 1 rokem
..
migrations a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) před 1 rokem
programs 70efc6010f add idl-build to cargo.toml features před 1 rokem
programs_py f22f80270d add seahorse example před 2 roky
tests a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) před 1 rokem
.gitignore f22f80270d add seahorse example před 2 roky
.prettierignore f22f80270d add seahorse example před 2 roky
Anchor.toml f22f80270d add seahorse example před 2 roky
Cargo.toml 56dafe4b4a add resolver = "2" to fix compile warning před 1 rokem
README.md 9831611233 Update Seahorse README před 2 roky
package.json a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) před 1 rokem
tsconfig.json a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) před 1 rokem

README.md

Using Seahorse with Pyth

Make sure to import the Pyth module for Seahorse.

from seahorse.pyth import *

You have to validate a price feed's ID for security reasons, if you want to read the SOL/USD price feed, you can verify the account in the context like this:

price_account.validate_price_feed("SOL/USD")

For more information, visit the Seahorse documentation on Pyth.