Constructors
constructor
- new PythHttpClient(connection: Connection, pythProgramKey: PublicKey, commitment?: Commitment): PythHttpClient
-
Parameters
-
connection: Connection
-
-
Optional
commitment: Commitment
Properties
commitment
commitment: Commitment
connection
connection: Connection
pythProgramKey
Methods
getData
- getData(): Promise<PythHttpClientResult>
-
Returns Promise<PythHttpClientResult>
Reads Pyth price data from a solana web3 connection. This class uses a single HTTP call. Use the method getData() to get updated prices values.