Class for retrieving and processing data from the Midgard API using MidgardCache to optimize request numbers (THORChain L2 API).

Constructors

  • Constructor to create a MidgardQuery.

    Parameters

    • midgardCache: MidgardCache = defaultCache

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

    Returns MidgardQuery

    MidgardQuery

Properties

midgardCache: MidgardCache

Methods

  • Get pool by asset.

    Parameters

    • asset: string

      For example: BTC.BTC.

    Returns Promise<PoolDetail>

    • Details of the selected pool.

    Throws

    • Can't find pool for asset.

Generated using TypeDoc