requestPrimaryName

requestPrimaryName is a method on the ARIO class that requests a primary name for the caller's address. The request must be approved by the new owner of the requested name via the approvePrimaryNameRequest API.

requestPrimaryName requires authentication.

setPrimaryName

A simpler way to request a primary name is to use the setPrimaryName API. This will request the primary name and approve it in a single API call.

Examples

transfer

const { id: txId } = await ario.requestPrimaryName({
    name: 'arns'
});

Parameters

ParameterTypeDescriptionOptional
namestringPrimary name being requested.false

Was this page helpful?