extendLease
extendLease
is a method on the ARIO
class that extends the lease of a registered ArNS domain, with an extension of 1-5 years depending on grace period status. Permanently registered domains cannot be extended.
extendLease
requires authentication.
Parameters
Parameter | Type | Description | Optional |
---|---|---|---|
name | String | Target ArNS name to extend lease. | false |
years | number | The number of years to extend lease. | false |
tags | array | An 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',
years: 1,
},
// optional additional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
}
main();