extendLease

extendLease is a method on the ARIO class that extends the lease duration of a registered ArNS domain. The extension period can be 1-5 years, depending on the domain's grace period status. Note that permanently registered domains cannot have their leases extended.

extendLease requires authentication.

Examples

extendLease

const { id: txId } = await ario.extendLease({
    name: 'ar-io',
    years: 1
});

Parameters

ParameterTypeDescriptionOptional
namestringThe ArNS name for which to extend the leasefalse
yearsnumber

The number of years to extend the lease by (1-5 years)

false
fundFromstring

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

true
paidBystring | string[]

Wallet address(es) that will pay for the purchase (used with fundFrom: 'turbo')

true
tagsarray

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

true

Was this page helpful?