Valentin Madrid 9831611233 Update Seahorse README há 2 anos atrás
..
migrations f22f80270d add seahorse example há 2 anos atrás
programs f22f80270d add seahorse example há 2 anos atrás
programs_py f22f80270d add seahorse example há 2 anos atrás
tests f22f80270d add seahorse example há 2 anos atrás
.gitignore f22f80270d add seahorse example há 2 anos atrás
.prettierignore f22f80270d add seahorse example há 2 anos atrás
Anchor.toml f22f80270d add seahorse example há 2 anos atrás
Cargo.toml f22f80270d add seahorse example há 2 anos atrás
README.md 9831611233 Update Seahorse README há 2 anos atrás
package.json f22f80270d add seahorse example há 2 anos atrás
tsconfig.json f22f80270d add seahorse example há 2 anos atrás

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.