getDemandFactorSettings

getDemandFactorSettings is a method on the ARIO class that retrieves the configuration settings for the demand factor algorithm, which dynamically adjusts ArNS registration costs based on network demand.

getDemandFactorSettings does not require authentication.

Parameters

The getDemandFactorSettings method does not accept any parameters.

Examples

getDemandFactorSettings

const { ARIO } = require('@ar.io/sdk');

async function main() {
  const ario = ARIO.init();
  const settings = await ario.getDemandFactorSettings();

  console.log(settings);
}

main();

Output

{
  "movingAvgPeriodCount": 7,        // Period count for moving average
  "periodZeroBlockHeight": 1350700, // Starting block height
  "stepDownThreshold": 0.9,         // Threshold for stepping down
  "stepUpThreshold": 1.1,           // Threshold for stepping up
  "stepDownMagnitude": 0.05,        // Magnitude of step down
  "stepUpMagnitude": 0.05,          // Magnitude of step up
  "baseDemandFactor": 1             // Base demand factor
}