getDemandFactor
getDemandFactor
is a method on the ARIO
class that retrieves the current network demand factor. This factor is a dynamic multiplier that adjusts the cost of ArNS interactions based on network demand - higher demand results in higher costs, and vice versa.
getDemandFactor
does not require authentication.
Parameters
getDemandFactor
does not accept parameters.
Examples
getDemandFactor
const { ARIO } = require('@ar.io/sdk');
async function main() {
const ario = ARIO.init();
const demandFactor = await ario.getDemandFactor();
console.log('Current demand factor:', demandFactor);
}
main();
Output
1.05256 // A multiplier where 1.0 represents baseline cost