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

← Swipe to see more →
ParameterTypeDescriptionOptional
namestringThe ArNS name to increase the undername limit forfalse
increaseCountnumber

The number of additional undername slots to purchase (up to 10,000 total)

false
fundFromstring

The source of funds: 'balance', 'stakes', 'any', or 'turbo'

true
tagsarray

An array of GQL tag objects to attach to the transfer AO message

true
← Swipe to see more →

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',
         increaseCount: 90,
     },
     // optional additional tags
     { tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] }
 );

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

main();