reassignName

reassignName is a method on the ANT class that transfers ownership of an ArNS name to a new ANT. This operation can only be performed by the current ANT owner.

reassignName requires authentication.

Examples

reassignName

const { id: txId } = await ant.reassignName({
    name: 'ardrive',
    ioProcessId: ARIO_PROCESS_ID,
    antProcessId: NEW_ANT_PROCESS_ID
});

Parameters

ParameterTypeDescriptionOptional
namestringThe ArNS name to be reassignedfalse
ioProcessIdstringThe Process ID of the ARIO contractfalse
antProcessIdstringThe Process ID of the target ANTfalse
tagsarray

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

true

Was this page helpful?