getPrescribedObservers

getPrescribedObservers is a method on the ARIO class that returns the prescribed observers of the ARIO process. If no epoch index is provided, the current epoch is used.

getPrescribedObservers does not require authentication.

Examples

getPrescribedObservers

const observers = await ario.getPrescribedObservers({ epochIndex: 0 });

Parameters

ParameterTypeDescriptionOptional
epochIndexnumber

Epoch index for the requested prescribed observer data.

true

Output

;[
  {
    gatewayAddress: 'BpQlyhREz4lNGS-y3rSS1WxADfxPpAuing9Lgfdrj2U',
    observerAddress: '2Fk8lCmDegPg6jjprl57-UCpKmNgYiKwyhkU4vMNDnE',
    stake: 10000000000, // value in mARIO
    start: 1296976,
    stakeWeight: 1,
    tenureWeight: 0.41453703703703704,
    gatewayRewardRatioWeight: 1,
    observerRewardRatioWeight: 1,
    compositeWeight: 0.41453703703703704,
    normalizedCompositeWeight: 0.0018972019546783507,
  },
]

Was this page helpful?