Function fetchAllMarkets

  • Fetches all the markets for a given program

    Returns

    MarketBundle

    Parameters

    • connection: Connection

      to the cluster

    • wallet: ConnectedWallet

      connected wallet adapter (or null for read-only)

    • honeyId: string

      of the program

    • honeyMarketIds: string[]

      array of market ids to fetch

    • Optional devnet: boolean

      fetch devnet or mainnet-beta idl

    Returns Promise<MarketBundle[]>

Generated using TypeDoc