getInflationReward abstract method

Future<List<InflationReward>> getInflationReward(
  1. List<String> addresses, {
  2. Commitment? commitment,
  3. int? epoch,
  4. num? minContextSlot,
})

Returns the inflation / staking reward for a list of addresses for an epoch

addresses An array of addresses to query, as base-58 encoded strings

commitment For commitment parameter description see this document Commitment.processed is not supported as commitment.

epoch An epoch for which the reward occurs. If omitted, the previous epoch will be used

minContextSlot Set the minimum slot that the request can be evaluated at

Implementation

Future<List<InflationReward>> getInflationReward(
  List<String> addresses, {
  Commitment? commitment,
  int? epoch,
  num? minContextSlot,
});