@ar.io/sdk 2.5.3 → 2.5.4-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1577,13 +1577,15 @@ const observers = await io.getPrescribedObservers({ epochIndex: 0 });
1577
1577
 
1578
1578
  #### `getPrimaryNames({ cursor, limit, sortBy, sortOrder })`
1579
1579
 
1580
- Retrieves all primary names across all gateways, paginated and sorted by the specified criteria. The `cursor` used for pagination is the last name from the previous request.
1580
+ Retrieves all primary names paginated and sorted by the specified criteria. The `cursor` used for pagination is the last name from the previous request.
1581
1581
 
1582
1582
  ```typescript
1583
1583
  const io = IO.init();
1584
1584
  const names = await io.getPrimaryNames({
1585
- cursor: 'ar-io',
1586
- limit: 2,
1585
+ cursor: 'ao', // this is the last name from the previous request
1586
+ limit: 1,
1587
+ sortBy: 'startTimestamp',
1588
+ sortOrder: 'desc',
1587
1589
  });
1588
1590
  ```
1589
1591
 
@@ -1593,10 +1595,11 @@ const names = await io.getPrimaryNames({
1593
1595
  ```json
1594
1596
  {
1595
1597
  "sortOrder": "desc",
1596
- "hasMore": false,
1597
- "totalItems": 1,
1598
- "limit": 100,
1599
- "sortBy": "name",
1598
+ "hasMore": true,
1599
+ "totalItems": 100,
1600
+ "limit": 1,
1601
+ "sortBy": "startTimestamp",
1602
+ "cursor": "arns",
1600
1603
  "items": [
1601
1604
  {
1602
1605
  "owner": "HwFceQaMQnOBgKDpnFqCqgwKwEU5LBme1oXRuQOWSRA",