getEpoch

getEpoch is a method on the ARIO class that retrieves information about a specific epoch using its index.

getEpoch does not require authentication.

Examples

getEpoch

const epoch = await ario.getEpoch({ epochIndex: 150 });

Parameters

ParameterTypeDescriptionOptional
epochIndexnumberThe index of the epoch to retrievefalse

Output

{
  "epochIndex": 150,
  "startTimestamp": 1726243200000,
  "endTimestamp": 1726329600000,
  "distributionTimestamp": 1726243200000,
  "observations": {
    "failureSummaries": {
      "t4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3": [
        "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ"
      ]
    },
    "reports": {
      "ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4": "B6UUjKWjjEWDBvDSMXWNmymfwvgR9EN27z5FTkEVlX4"
    }
  },
  "prescribedObservers": [
    "ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4",
    "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ"
  ],
  "prescribedNames": ["ardrive", "permaweb", "ar-io"],
  "distributions": {
    "distributedTimestamp": 1726243200000,
    "totalEligibleRewards": 250000000,
    "rewards": {
      "ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4": 125000000,
      "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ": 125000000
    }
  }
}

Was this page helpful?