Skip to content

Commit 9831611

Browse files
Update Seahorse README
1 parent b6f68ab commit 9831611

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

oracles/pyth/seahorse/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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).
212

3-
This project was created by Seahorse 0.2.7.
413

5-
To get started, just add your code to **programs_py/seahorse.py** and run `seahorse build`.

0 commit comments

Comments
 (0)