Reads Pyth price data from a solana web3 connection. This class uses a callback-driven model,
similar to the solana web3 methods for tracking updates to accounts.
new PythConnection(connection: Connection, pythProgramKey: PublicKey, commitment?: Commitment): PythConnection
Create a PythConnection that reads its data from an underlying solana web3 connection.
pythProgramKey is the public key of the Pyth program running on the chosen solana cluster.
Reads Pyth price data from a solana web3 connection. This class uses a callback-driven model, similar to the solana web3 methods for tracking updates to accounts.