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.

Examples

getDemandFactorSettings

const settings = await ario.getDemandFactorSettings();

Parameters

The getDemandFactorSettings method does not accept any parameters.

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
}

Was this page helpful?