increaseUndernameLimit

increaseUndernameLimit is a method on the ARIO class that increases the undername support of a domain up to a maximum 10,000. Domains, by default, support up to 10 undernames.

increaseUndernameLimit requires authentication.

Parameters

ParameterTypeDescriptionOptional
namestringTarget ArNS name to increase undername limit.false
qtynumberThe number of additional undername slots to purchase.false
tagsarrayAn array of GQL tag objects to attach to the transfer AO message.true

Examples

increaseUndernameLimit

 const fs = require("fs");
 const { ARIO, ArweaveSigner, ARIOToken } = require("@ar.io/sdk");

 async function main() {
 const jwk = JSON.parse(fs.readFileSync("KeyFile.json"));
 const ario = ARIO.init({
     signer: new ArweaveSigner(jwk),
 });

 const { id: txId } = await ario.increaseUndernameLimit(
         {
             name: 'ar-io',
             qty: 420,
         },
         // optional additional tags
         { tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
     );
 }

 main();