|
@@ -1,5 +1,13 @@
|
|
|
-# seahorse
|
|
|
+## 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](https://seahorse-lang.org/docs/pyth).
|
|
|
|
|
|
-This project was created by Seahorse 0.2.7.
|
|
|
|
|
|
-To get started, just add your code to **programs_py/seahorse.py** and run `seahorse build`.
|