saveObservations

saveObservations is a method on the ARIO class that submits gateway observations for the current epoch. This method is used by observers to report their assessment of gateway performance and any failed gateways they identified during their evaluation.

saveObservations requires authentication.

Examples

saveObservations

const { id: txId } = await ario.saveObservations({
    reportTxId: 'B6UUjKWjjEWDBvDSMXWNmymfwvgR9EN27z5FTkEVlX4',
    failedGateways: [
        't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
        'QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ'
    ]
});

Parameters

ParameterTypeDescriptionOptional
reportTxIdstring

The Arweave transaction ID containing the detailed observation data

false
failedGatewaysarray

An array of wallet addresses for gateways that failed the assessment

false
tagsarray

An array of GQL tag objects to attach to the transfer AO message

true

Output

{
  "id": "7tKsiQ2fxv0D8ZVN_QEv29fZ8hwFIgHoEDrpeEG0DIs"
}

Was this page helpful?