Skip to content

Commit 94e39b4

Browse files
committed
go
1 parent 2aa6acd commit 94e39b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
[Pyth](https://pyth.network/) is building a way to deliver a decentralized, cross-chain market of verifiable data from high-quality nodes to any smart contract, anywhere.
66

7-
This library reads on-chain Pyth data from [@solana/web3.js](https://www.npmjs.com/package/@solana/web3.js) and returns JavaScript-friendly objects.
7+
This library reads on-chain Pythnet (Pyth's app-specific SVM blockchain) data using [@solana/web3.js](https://www.npmjs.com/package/@solana/web3.js) and returns JavaScript-friendly objects.
88

9-
> ⚠️ **Important Warning**: For most use cases, it is recommended and easier to use Pyth's off-chain API (Hermes) via the [@pythnetwork/hermes-client](https://www.npmjs.com/package/@pythnetwork/hermes-client) package to get the most up-to-date Pyth prices. The Hermes client does not require a connection to Pythnet and provides a simpler interface for price updates.
9+
> ⚠️ **Important Warning**: For most use cases, it is recommended and more user-friendly to use Pyth's off-chain API ([Hermes](https://hermes.pyth.network/docs/)) via the [@pythnetwork/hermes-client](https://www.npmjs.com/package/@pythnetwork/hermes-client) package to get the most up-to-date Pyth prices. Using `@pythnetwork/client` requires a Pythnet RPC connection and exposes many low-level details.
1010
1111
## Installation
1212

@@ -31,7 +31,7 @@ This library lets you consume prices in two different ways: you can either get c
3131
The websocket connection provides a subscription model for consuming price updates:
3232

3333
```typescript
34-
const pythConnection = new PythConnection(solanaWeb3Connection, getPythProgramKeyForCluster(solanaClusterName))
34+
const pythConnection = new PythConnection(pythnetWeb3Connection, getPythProgramKeyForCluster(pythnetClusterName))
3535
pythConnection.onPriceChange((product, price) => {
3636
// sample output:
3737
// Crypto.SRM/USD: $8.68725 ±$0.0131 Status: Trading

0 commit comments

Comments
 (0)