@ar.io/sdk 3.16.1-alpha.1 → 3.17.1-alpha.1
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 +43 -0
- package/bundles/web.bundle.min.js +47 -47
- package/lib/cjs/cli/cli.js +10 -0
- package/lib/cjs/cli/commands/readCommands.js +11 -0
- package/lib/cjs/common/io.js +45 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/cli/cli.js +11 -1
- package/lib/esm/cli/commands/readCommands.js +10 -0
- package/lib/esm/common/io.js +46 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/commands/readCommands.d.ts +3 -0
- package/lib/types/common/ant-versions.d.ts +3 -1
- package/lib/types/common/io.d.ts +13 -0
- package/lib/types/types/ant.d.ts +2 -0
- package/lib/types/types/io.d.ts +4 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1400,6 +1400,49 @@ Available `sortBy` options are any of the keys on the record object, e.g. `name`
|
|
|
1400
1400
|
|
|
1401
1401
|
</details>
|
|
1402
1402
|
|
|
1403
|
+
#### `getArNSRecordsForAddress({ address, antRegistryProcessId, cursor, limit, sortBy, sortOrder })`
|
|
1404
|
+
|
|
1405
|
+
Retrieves all registered ArNS records of the specified address according to the `ANTRegistry` access control list, paginated and sorted by the specified criteria. The `cursor` used for pagination is the last ArNS name from the previous request.
|
|
1406
|
+
|
|
1407
|
+
```typescript
|
|
1408
|
+
const ario = ARIO.mainnet();
|
|
1409
|
+
const records = await ario.getArNSRecordsForAddress({
|
|
1410
|
+
address: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
|
|
1411
|
+
limit: 100,
|
|
1412
|
+
sortBy: 'startTimestamp',
|
|
1413
|
+
sortOrder: 'desc',
|
|
1414
|
+
});
|
|
1415
|
+
```
|
|
1416
|
+
|
|
1417
|
+
Available `sortBy` options are any of the keys on the record object, e.g. `name`, `processId`, `endTimestamp`, `startTimestamp`, `type`, `undernames`.
|
|
1418
|
+
|
|
1419
|
+
<details>
|
|
1420
|
+
<summary>Output</summary>
|
|
1421
|
+
|
|
1422
|
+
```json
|
|
1423
|
+
{
|
|
1424
|
+
"limit": 1,
|
|
1425
|
+
"totalItems": 31,
|
|
1426
|
+
"hasMore": true,
|
|
1427
|
+
"nextCursor": "ardrive",
|
|
1428
|
+
"items": [
|
|
1429
|
+
{
|
|
1430
|
+
"startTimestamp": 1740009600000,
|
|
1431
|
+
"name": "ardrive",
|
|
1432
|
+
"endTimestamp": 1777328018367,
|
|
1433
|
+
"type": "permabuy",
|
|
1434
|
+
"purchasePrice": 0,
|
|
1435
|
+
"undernameLimit": 100,
|
|
1436
|
+
"processId": "hpF0HdijWlBLFePjWX6u_-Lg3Z2E_PrP_AoaXDVs0bA"
|
|
1437
|
+
}
|
|
1438
|
+
],
|
|
1439
|
+
"sortOrder": "desc",
|
|
1440
|
+
"sortBy": "startTimestamp"
|
|
1441
|
+
}
|
|
1442
|
+
```
|
|
1443
|
+
|
|
1444
|
+
</details>
|
|
1445
|
+
|
|
1403
1446
|
#### `increaseUndernameLimit({ name, qty })`
|
|
1404
1447
|
|
|
1405
1448
|
Increases the undername support of a domain up to a maximum of 10k. Domains, by default, support up to 10 undernames.
|