@ar.io/sdk 2.2.2-alpha.1 → 2.2.3-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 CHANGED
@@ -323,7 +323,7 @@ Retrieves the balances of the IO process in `mIO`, paginated and sorted by the s
323
323
  const io = IO.init();
324
324
  const balances = await io.getBalances({
325
325
  cursor: '-4xgjroXENKYhTWqrBo57HQwvDL51mMdfsdsxJy6Y2Z_sA',
326
- limit: 1,
326
+ limit: 100,
327
327
  sortBy: 'balance',
328
328
  sortOrder: 'desc',
329
329
  });
@@ -338,7 +338,12 @@ const balances = await io.getBalances({
338
338
  {
339
339
  "address": "-4xgjroXENKYhTWqrBo57HQwvDL51mMvSxJy6Y2Z_sA",
340
340
  "balance": 1000000
341
+ },
342
+ {
343
+ "address": "-7vXsQZQDk8TMDlpiSLy3CnLi5PDPlAaN2DaynORpck",
344
+ "balance": 1000000
341
345
  }
346
+ // ...98 other balances
342
347
  ],
343
348
  "hasMore": true,
344
349
  "nextCursor": "-7vXsQZQDk8TMDlpiSLy3CnLi5PDPlAaN2DaynORpck",
@@ -406,7 +411,7 @@ Retrieves registered gateways of the IO process, using pagination and sorting by
406
411
  ```typescript
407
412
  const io = IO.init();
408
413
  const gateways = await io.getGateways({
409
- limit: 1,
414
+ limit: 100,
410
415
  sortOrder: 'desc',
411
416
  sortBy: 'operatorStake',
412
417
  });
@@ -492,9 +497,9 @@ Retrieves all registered ArNS records of the IO process, paginated and sorted by
492
497
 
493
498
  ```typescript
494
499
  const io = IO.init();
495
- // get the 5 newest names
500
+ // get the newest 100 names
496
501
  const records = await io.getArNSRecords({
497
- limit: 5,
502
+ limit: 100,
498
503
  sortBy: 'startTimestamp',
499
504
  sortOrder: 'desc',
500
505
  });
@@ -548,6 +553,7 @@ Available `sortBy` options are any of the keys on the record object, e.g. `name`
548
553
  "type": "lease",
549
554
  "undernames": 100
550
555
  }
556
+ // ...95 other records
551
557
  ],
552
558
  "hasMore": true,
553
559
  "nextCursor": "fwdresearch",
@@ -1336,7 +1342,7 @@ let hasMore = true;
1336
1342
  let cursor: string | undefined;
1337
1343
  const gateaways = [];
1338
1344
  while (hasMore) {
1339
- const page = await io.getGateways({ limit: 10, cursor });
1345
+ const page = await io.getGateways({ limit: 100, cursor });
1340
1346
  gateaways.push(...items);
1341
1347
  cursor = page.nextCursor;
1342
1348
  hasMore = page.hasMore;