Class PythHttpClient

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.

Hierarchy

  • PythHttpClient

Constructors

Properties

Methods

Constructors

  • Parameters

    • connection: Connection
    • pythProgramKey: PublicKey
    • Optional commitment: Commitment

    Returns PythHttpClient

Properties

commitment: Commitment
connection: Connection
pythProgramKey: PublicKey

Methods

  • Returns Promise<PythHttpClientResult>

Generated using TypeDoc