A representation of a staking reward earned on a network for a given asset.

Constructors

Properties

asset: Asset

Methods

  • Returns a list of StakingRewards for the provided network, asset, and addresses.

    Parameters

    • networkId: string

      The network ID.

    • assetId: string

      The asset ID.

    • addressIds: string[]

      The address ID.

    • startTime: string

      The start time.

    • endTime: string

      The end time.

    • format: StakingRewardFormat = StakingRewardFormat.USD

      The format to return the rewards in. (usd, native). Defaults to usd.

    Returns Promise<StakingReward[]>

    The staking rewards.