getDistributions

getDistributions is a method on the ARIO class that returns the rewards distribution information for the specified epoch. If no epoch index is provided, the current epoch is used.

getDistributions does not require authentication.

Examples

getDistributions

const distributions = await ario.getDistributions({ epochIndex: 0 });

Parameters

ParameterTypeDescriptionRequired
epochIndexnumber

The epoch index for which to retrieve distribution data.

No

Output

{
  "totalEligibleGateways": 1,
  "totalEligibleRewards": 100000000,
  "totalEligibleObserverReward": 100000000,
  "totalEligibleGatewayReward": 100000000,
  "totalDistributedRewards": 100000000,
  "distributedTimestamp": 1720720621424,
  "rewards": {
    "eligible": {
      "IPdwa3Mb_9pDD8c2IaJx6aad51Ss-_TfStVwBuhtXMs": {
        "operatorReward": 100000000,
        "delegateRewards": {}
      }
    },
    "distributed": {
      "IPdwa3Mb_9pDD8c2IaJx6aad51Ss-_TfStVwBuhtXMs": 100000000
    }
  }
}

Was this page helpful?