This class retrieves raw information from the Midgard API and caches it.

Constructors

Properties

Methods

Constructors

  • Constructor to create a MidgardCache instance.

    Parameters

    • midgardApi: MidgardApi = ...

      An instance of the Midgard API (could be pointing to stagenet, testnet, mainnet).

    Returns MidgardCache

    MidgardCache

Properties

cachedPools: CachedValue<PoolDetail[]>
midgardApi: MidgardApi

Methods

  • Get information about existing pools in the protocol from the Midgard API.

    Returns Promise<PoolDetail[]>

    Array of pool details.

Generated using TypeDoc