Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OracleAPI

Hierarchy

  • BaseAPI
    • OracleAPI

Index

Constructors

constructor

Methods

activeDenoms

  • activeDenoms(params?: APIParams): Promise<string[]>

aggregatePrevote

aggregateVote

exchangeRate

  • exchangeRate(denom: string, params?: APIParams): Promise<undefined | Coin>
  • Gets the Oracle module's currently registered exchange rate for the specific denomination.

    Parameters

    • denom: string

      denomination in which to get the exchange rate of LUNA

    • params: APIParams = {}

    Returns Promise<undefined | Coin>

exchangeRates

  • exchangeRates(params?: APIParams): Promise<Coins>
  • Gets the Oracle module's currently registered exchange rate for LUNA in all available denominations.

    Parameters

    • params: APIParams = {}

    Returns Promise<Coins>

feederAddress

  • feederAddress(validator: string, params?: APIParams): Promise<string>
  • Gets the registered feeder address associated with the validator. The feeder address is the Terra account that is permitted to sign Oracle vote messages in the validator's name.

    Parameters

    • validator: string

      validator's operator address

    • params: APIParams = {}

    Returns Promise<string>

misses

  • misses(validator: string, params?: APIParams): Promise<number>
  • Gets the number of missed oracle votes for the validator over the current slash window.

    Parameters

    • validator: string

      validator's operator address

    • params: APIParams = {}

    Returns Promise<number>

parameters