You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: oracles/pyth/seahorse/README.md
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
-
# seahorse
1
+
## Using Seahorse with Pyth
2
+
3
+
Make sure to import the Pyth module for Seahorse.
4
+
5
+
`from seahorse.pyth import *`
6
+
7
+
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:
8
+
9
+
`price_account.validate_price_feed("SOL/USD")`
10
+
11
+
For more information, visit the [Seahorse documentation on Pyth](https://seahorse-lang.org/docs/pyth).
2
12
3
-
This project was created by Seahorse 0.2.7.
4
13
5
-
To get started, just add your code to **programs_py/seahorse.py** and run `seahorse build`.
0 commit comments