increaseUndernameLimit

increaseUndernameLimit is a method on the ARIO class that increases the number of undernames an ArNS domain can support. Each domain starts with a default limit of 10 undernames and can be increased up to a maximum of 10,000 undernames.

increaseUndernameLimit requires authentication.

Parameters

ParameterTypeDescriptionOptional
namestringThe ArNS name to increase the undername limit forfalse
qtynumberThe number of additional undername slots to purchase (up to 10,000 total)false
tagsarrayAn array of GQL tag objects to attach to the transfer AO messagetrue

Examples

increaseUndernameLimit

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

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

 // Increase limit by 90 slots (from default 10 to 100 total)
 const { id: txId } = await ario.increaseUndernameLimit(
     {
         name: 'ar-io',
         qty: 90,
     },
     // optional additional tags
     { tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] }
 );

 console.log('Transaction ID:', txId);
}

main();