John 56dafe4b4a add resolver = "2" to fix compile warning hace 1 año
..
migrations f22f80270d add seahorse example hace 2 años
programs 70efc6010f add idl-build to cargo.toml features hace 1 año
programs_py f22f80270d add seahorse example hace 2 años
tests f22f80270d add seahorse example hace 2 años
.gitignore f22f80270d add seahorse example hace 2 años
.prettierignore f22f80270d add seahorse example hace 2 años
Anchor.toml f22f80270d add seahorse example hace 2 años
Cargo.toml 56dafe4b4a add resolver = "2" to fix compile warning hace 1 año
README.md 9831611233 Update Seahorse README hace 2 años
package.json f22f80270d add seahorse example hace 2 años
tsconfig.json f22f80270d add seahorse example hace 2 años

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.