upgradeRecord

upgradeRecord is a method on the ARIO class that upgrades an existing ArNS record from a lease to a permanent ownership (permabuy). This allows converting a leased name to permanent ownership.

upgradeRecord requires authentication.

Examples

upgradeRecord

const { id: txId } = await ario.upgradeRecord({
    name: 'ardrive'
});

Parameters

ParameterTypeDescriptionOptional
namestringThe ArNS name to upgrade to permanent ownershipfalse
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?