getArNSRecords

getArNSRecords is a method on the ARIO class that retrieves all ArNS records with optional pagination and filtering support.

getArNSRecords does not require authentication.

Examples

getArNSRecords

const records = await ario.getArNSRecords({
    limit: 50,
    sortBy: 'endTimestamp',
    sortOrder: 'desc'
});

Parameters

ParameterTypeDescriptionOptionalDefault
cursorstring

The ArNS 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 bytruestartTimestamp
sortOrderstringThe sort direction ('desc' or 'asc')truedesc
filtersRecord<string, string | string[]>

Filters to apply to the results. Keys must match object properties. Arrays act as OR conditions, multiple keys act as AND conditions.

trueNone

Output

{
  "items": [
    {
      "name": "ardrive",
      "processId": "bh9l1cy0aksiL_x9M359faGzM_yjralacHIUo8_nQXM",
      "startTimestamp": 1707307200000,
      "endTimestamp": 1739307200000,
      "type": "lease",
      "undernameLimit": 10
    },
    {
      "name": "permaweb",
      "processId": "xWQ7UmbP0ZHDY7OLCxJsuPiLWYQo5bhHGnp-kgP8N2A",
      "type": "permabuy",
      "undernameLimit": 50
    }
  ],
  "hasMore": true,
  "nextCursor": "permaweb",
  "totalItems": 4567,
  "sortBy": "endTimestamp",
  "sortOrder": "desc"
}

Was this page helpful?