Class BlockRewards

Fields relating to rewards,

Hierarchy

Constructors

  • Creates a new BlockRewards object.

    Parameters

    • __namedParameters: { feeSink: string; rewardsCalculationRound: number | bigint; rewardsLevel: number | bigint; rewardsPool: string; rewardsRate: number | bigint; rewardsResidue: number | bigint }
      • feeSink: string
      • rewardsCalculationRound: number | bigint
      • rewardsLevel: number | bigint
      • rewardsPool: string
      • rewardsRate: number | bigint
      • rewardsResidue: number | bigint

    Returns BlockRewards

Properties

attribute_map: Record<string, string>
feeSink: string

(fees) accepts transaction fees, it can only spend to the incentive pool.

rewardsCalculationRound: number | bigint

(rwcalr) number of leftover MicroAlgos after the distribution of rewards-rate MicroAlgos for every reward unit in the next round.

rewardsLevel: number | bigint

(earn) How many rewards, in MicroAlgos, have been distributed to each RewardUnit of MicroAlgos since genesis.

rewardsPool: string

(rwd) accepts periodic injections from the fee-sink and continually redistributes them as rewards.

rewardsRate: number | bigint

(rate) Number of new MicroAlgos added to the participation stake from rewards at the next round.

rewardsResidue: number | bigint

(frac) Number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.

Methods

  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc