Valentin Madrid 9831611233 Update Seahorse README 2 vuotta sitten
..
migrations f22f80270d add seahorse example 2 vuotta sitten
programs f22f80270d add seahorse example 2 vuotta sitten
programs_py f22f80270d add seahorse example 2 vuotta sitten
tests f22f80270d add seahorse example 2 vuotta sitten
.gitignore f22f80270d add seahorse example 2 vuotta sitten
.prettierignore f22f80270d add seahorse example 2 vuotta sitten
Anchor.toml f22f80270d add seahorse example 2 vuotta sitten
Cargo.toml f22f80270d add seahorse example 2 vuotta sitten
README.md 9831611233 Update Seahorse README 2 vuotta sitten
package.json f22f80270d add seahorse example 2 vuotta sitten
tsconfig.json f22f80270d add seahorse example 2 vuotta sitten

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.