getPrimaryName

getPrimaryName is a method on the ARIO class that retrieves the primary name for a given name or address.

getPrimaryName does not require authentication.

Examples

getPrimaryName

const name = await ario.getPrimaryName({
    name: 'arns'
});

Parameters

ParameterTypeDescriptionOptional
namestring

The ArNS name for which to receive primary name data.

true
addressstring - WalletAddress

The public wallet address for which to receive primary name data.

true

Output

{
  "owner": "HwFceQaMQnOBgKDpnFqCqgwKwEU5LBme1oXRuQOWSRA",
  "startTimestamp": 1719356032297,
  "name": "arns"
}

Was this page helpful?