-
Notifications
You must be signed in to change notification settings - Fork 17
Clean up lazer JS examples #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lazer/js/README.md
Outdated
@@ -0,0 +1,113 @@ | |||
# Pyth Lazer JavaScript SDK Examples | |||
|
|||
This directory contains JavaScript/TypeScript examples demonstrating how to use the Pyth Lazer SDK to interact with real-time price feeds and verify cryptographic messages on the Solana blockchain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just say verify prices
or verify price updates
rather cryptographic messsages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe priceUpdates ? 🤔
lazer/js/README.md
Outdated
## Basic Examples | ||
|
||
### 1. WebSocket Client Example (`src/index.ts`) | ||
Demonstrates how to connect to the Pyth Lazer WebSocket stream and receive real-time price feed updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Demonstrates how to connect to the Pyth Lazer WebSocket stream and receive real-time price feed updates. | |
Demonstrates how to connect to the Pyth Lazer WebSocket stream and receive real-time price updates. |
|
||
**What it does:** | ||
- Connects to the Pyth Lazer server | ||
- Subscribes to price feeds (IDs 1 and 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add a TODO to the link to price feeds ID table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the thing to do is to actually use the client to query the symbols for these ids and then print it out nicely. Unfortunately that's not in the SDK right now but i'll push to get it added .
I'm trying to make the onboarding journey for Lazer smoother. This PR adds some niceties to the js examples:
solana/
directory to provide context for non-Solana users