@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 +10 -7
- package/bundles/web.bundle.min.js +2 -2
- package/lib/cjs/common/ant.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/common/io.d.ts +8 -0
- package/lib/types/types/io.d.ts +2 -2
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
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
|
|
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: '
|
|
1586
|
-
limit:
|
|
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":
|
|
1597
|
-
"totalItems":
|
|
1598
|
-
"limit":
|
|
1599
|
-
"sortBy": "
|
|
1598
|
+
"hasMore": true,
|
|
1599
|
+
"totalItems": 100,
|
|
1600
|
+
"limit": 1,
|
|
1601
|
+
"sortBy": "startTimestamp",
|
|
1602
|
+
"cursor": "arns",
|
|
1600
1603
|
"items": [
|
|
1601
1604
|
{
|
|
1602
1605
|
"owner": "HwFceQaMQnOBgKDpnFqCqgwKwEU5LBme1oXRuQOWSRA",
|