approvePrimaryNameRequest

approvePrimaryNameRequest is a method on the ANT class that approves a primary name request for a given name or address.

approvePrimaryNameRequest requires authentication.

Examples

approvePrimaryNameRequest

const { id: txId } = await ant.approvePrimaryNameRequest({
    name: 'arns',
    address: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
    ioProcessId: ARIO_PROCESS_ID
});

Parameters

ParameterTypeDescriptionOptional
namestringArNS name to approve as primary name.false
addressstring - WalletAddress

Public wallet address that made the primary name request being approved.

false
ioProcessIdstringProcess Id of the ARIO contract.false
tagsarray

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

true

Was this page helpful?