getCurrentEpoch

getCurrentEpoch is a method on the ARIO class that retrieves information about the current epoch in the AR.IO network.

getCurrentEpoch does not require authentication.

Examples

getCurrentEpoch

const currentEpoch = await ario.getCurrentEpoch();

Parameters

The getCurrentEpoch method does not accept any parameters.

Output

{
  "epochIndex": 156,
  "startTimestamp": 1726761600000,
  "endTimestamp": 1726848000000,
  "distributionTimestamp": 1726761600000,
  "observations": {
    "failureSummaries": {},
    "reports": {}
  },
  "prescribedObservers": [
    "ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4",
    "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ"
  ],
  "prescribedNames": ["ardrive", "permaweb", "ar-io"]
}

Was this page helpful?