getArNSReservedNames

getArNSReservedNames is a method on the ARIO class that retrieves all reserved ArNS names, with support for pagination and custom sorting. Reserved names are names that are protected and cannot be registered by users.

getArNSReservedNames does not require authentication.

Examples

getArNSReservedNames

const reservedNames = await ario.getArNSReservedNames({
    limit: 50,
    sortBy: 'name',
    sortOrder: 'asc'
});

Parameters

ParameterTypeDescriptionOptionalDefault
cursorstring

The name to use as the starting point for the next page of results

trueNone
limitnumber

The maximum number of records to return (max: 1000)

true100
sortBystringThe property to sort results bytruename
sortOrderstringThe sort direction ('desc' or 'asc')trueasc

Output

{
  "items": [
    {
      "name": "arweave",
      "target": "some-protected-target",
      "endTimestamp": null
    },
    {
      "name": "ar-io",
      "target": "another-protected-target",
      "endTimestamp": null
    }
  ],
  "hasMore": true,
  "nextCursor": "ar-io",
  "totalItems": 150,
  "sortBy": "name",
  "sortOrder": "asc"
}

Was this page helpful?