getPrimaryNames

getPrimaryNames is a method on the ARIO class that retrieves all primary names paginated and sorted by the specified criteria. the cursor used for pagination is the last name from the previous request.

getPrimaryNames does not require authentication.

Example

getPrimaryNames

const names = await ario.getPrimaryNames({
    limit: 10,
    sortBy: 'startTimestamp',
    sortOrder: 'desc'
});

Parameters

ParameterTypeDescriptionOptionalDefault
cursorStringCursor used for paginated resultstrueNone
limitNumber

Max number of results to return in a single search. Max is 1000.

true100
sortByStringProperty used to sort returned resultstruestartTimestamp
sortOrderString

Order in which sorted results are returned. valid values are desc or asc

truedesc

Output

{
  "sortOrder": "desc",
  "hasMore": true,
  "totalItems": 100,
  "limit": 1,
  "sortBy": "startTimestamp",
  "cursor": "arns",
  "items": [
    {
      "owner": "HwFceQaMQnOBgKDpnFqCqgwKwEU5LBme1oXRuQOWSRA",
      "startTimestamp": 1719356032297,
      "name": "arns"
    }
  ]
}

Was this page helpful?