algosdk 1.15.0 → 1.16.0

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.
Files changed (107) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/src/client/kmd.js +1 -1
  5. package/dist/cjs/src/client/kmd.js.map +1 -1
  6. package/dist/cjs/src/client/v2/indexer/indexer.js +8 -8
  7. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js +29 -4
  8. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
  9. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js +29 -3
  10. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js.map +1 -1
  11. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js +76 -3
  12. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  13. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js +30 -4
  14. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
  15. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js +30 -3
  16. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
  17. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js +30 -25
  18. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  19. package/dist/cjs/src/client/v2/indexer/lookupApplicationLogs.js +112 -6
  20. package/dist/cjs/src/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
  21. package/dist/cjs/src/client/v2/indexer/lookupApplications.js +40 -1
  22. package/dist/cjs/src/client/v2/indexer/lookupApplications.js.map +1 -1
  23. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js +29 -6
  24. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  25. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js +2 -0
  26. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  27. package/dist/cjs/src/client/v2/indexer/lookupAssetTransactions.js +298 -18
  28. package/dist/cjs/src/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  29. package/dist/cjs/src/client/v2/indexer/lookupBlock.js +16 -0
  30. package/dist/cjs/src/client/v2/indexer/lookupBlock.js.map +1 -1
  31. package/dist/cjs/src/client/v2/indexer/lookupTransactionByID.js +16 -0
  32. package/dist/cjs/src/client/v2/indexer/lookupTransactionByID.js.map +1 -1
  33. package/dist/cjs/src/client/v2/indexer/makeHealthCheck.js +15 -0
  34. package/dist/cjs/src/client/v2/indexer/makeHealthCheck.js.map +1 -1
  35. package/dist/cjs/src/client/v2/indexer/searchAccounts.js +210 -10
  36. package/dist/cjs/src/client/v2/indexer/searchAccounts.js.map +1 -1
  37. package/dist/cjs/src/client/v2/indexer/searchForApplications.js +101 -5
  38. package/dist/cjs/src/client/v2/indexer/searchForApplications.js.map +1 -1
  39. package/dist/cjs/src/client/v2/indexer/searchForAssets.js +132 -7
  40. package/dist/cjs/src/client/v2/indexer/searchForAssets.js.map +1 -1
  41. package/dist/cjs/src/client/v2/indexer/searchForTransactions.js +328 -19
  42. package/dist/cjs/src/client/v2/indexer/searchForTransactions.js.map +1 -1
  43. package/dist/cjs/src/dryrun.js +199 -2
  44. package/dist/cjs/src/dryrun.js.map +1 -1
  45. package/dist/esm/src/client/kmd.js +1 -1
  46. package/dist/esm/src/client/kmd.js.map +1 -1
  47. package/dist/esm/src/client/v2/indexer/indexer.js +8 -8
  48. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js +29 -4
  49. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
  50. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js +29 -3
  51. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js.map +1 -1
  52. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js +76 -3
  53. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  54. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js +30 -4
  55. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
  56. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js +30 -3
  57. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
  58. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js +30 -25
  59. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  60. package/dist/esm/src/client/v2/indexer/lookupApplicationLogs.js +112 -6
  61. package/dist/esm/src/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
  62. package/dist/esm/src/client/v2/indexer/lookupApplications.js +40 -1
  63. package/dist/esm/src/client/v2/indexer/lookupApplications.js.map +1 -1
  64. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js +29 -6
  65. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  66. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js +2 -0
  67. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  68. package/dist/esm/src/client/v2/indexer/lookupAssetTransactions.js +298 -18
  69. package/dist/esm/src/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  70. package/dist/esm/src/client/v2/indexer/lookupBlock.js +16 -0
  71. package/dist/esm/src/client/v2/indexer/lookupBlock.js.map +1 -1
  72. package/dist/esm/src/client/v2/indexer/lookupTransactionByID.js +16 -0
  73. package/dist/esm/src/client/v2/indexer/lookupTransactionByID.js.map +1 -1
  74. package/dist/esm/src/client/v2/indexer/makeHealthCheck.js +15 -0
  75. package/dist/esm/src/client/v2/indexer/makeHealthCheck.js.map +1 -1
  76. package/dist/esm/src/client/v2/indexer/searchAccounts.js +210 -10
  77. package/dist/esm/src/client/v2/indexer/searchAccounts.js.map +1 -1
  78. package/dist/esm/src/client/v2/indexer/searchForApplications.js +101 -5
  79. package/dist/esm/src/client/v2/indexer/searchForApplications.js.map +1 -1
  80. package/dist/esm/src/client/v2/indexer/searchForAssets.js +132 -7
  81. package/dist/esm/src/client/v2/indexer/searchForAssets.js.map +1 -1
  82. package/dist/esm/src/client/v2/indexer/searchForTransactions.js +328 -19
  83. package/dist/esm/src/client/v2/indexer/searchForTransactions.js.map +1 -1
  84. package/dist/esm/src/dryrun.js +197 -1
  85. package/dist/esm/src/dryrun.js.map +1 -1
  86. package/dist/types/src/client/kmd.d.ts +2 -2
  87. package/dist/types/src/client/v2/indexer/indexer.d.ts +8 -8
  88. package/dist/types/src/client/v2/indexer/lookupAccountAppLocalStates.d.ts +29 -4
  89. package/dist/types/src/client/v2/indexer/lookupAccountAssets.d.ts +29 -3
  90. package/dist/types/src/client/v2/indexer/lookupAccountByID.d.ts +76 -0
  91. package/dist/types/src/client/v2/indexer/lookupAccountCreatedApplications.d.ts +30 -4
  92. package/dist/types/src/client/v2/indexer/lookupAccountCreatedAssets.d.ts +30 -3
  93. package/dist/types/src/client/v2/indexer/lookupAccountTransactions.d.ts +30 -25
  94. package/dist/types/src/client/v2/indexer/lookupApplicationLogs.d.ts +112 -6
  95. package/dist/types/src/client/v2/indexer/lookupApplications.d.ts +40 -0
  96. package/dist/types/src/client/v2/indexer/lookupAssetBalances.d.ts +29 -6
  97. package/dist/types/src/client/v2/indexer/lookupAssetByID.d.ts +2 -0
  98. package/dist/types/src/client/v2/indexer/lookupAssetTransactions.d.ts +298 -1
  99. package/dist/types/src/client/v2/indexer/lookupBlock.d.ts +16 -0
  100. package/dist/types/src/client/v2/indexer/lookupTransactionByID.d.ts +16 -0
  101. package/dist/types/src/client/v2/indexer/makeHealthCheck.d.ts +15 -0
  102. package/dist/types/src/client/v2/indexer/searchAccounts.d.ts +210 -0
  103. package/dist/types/src/client/v2/indexer/searchForApplications.d.ts +101 -0
  104. package/dist/types/src/client/v2/indexer/searchForAssets.d.ts +132 -0
  105. package/dist/types/src/client/v2/indexer/searchForTransactions.d.ts +328 -1
  106. package/dist/types/src/dryrun.d.ts +81 -1
  107. package/package.json +4 -3
@@ -23,11 +23,11 @@ export default class LookupAccountTransactions extends JSONRequest {
23
23
  */
24
24
  constructor(c: HTTPClient, intDecoding: IntDecoding, account: string);
25
25
  /**
26
- * @returns /v2/accounts/`${account}`/transactions
26
+ * @returns `/v2/accounts/${account}/transactions`
27
27
  */
28
28
  path(): string;
29
29
  /**
30
- * Specifies a prefix which must be contained in the note field
30
+ * Specifies a prefix which must be contained in the note field.
31
31
  *
32
32
  * #### Example
33
33
  * ```typescript
@@ -44,7 +44,7 @@ export default class LookupAccountTransactions extends JSONRequest {
44
44
  */
45
45
  notePrefix(prefix: Uint8Array | string): this;
46
46
  /**
47
- * Type of transaction to filter with
47
+ * Type of transaction to filter with.
48
48
  *
49
49
  * #### Example
50
50
  * ```typescript
@@ -55,12 +55,12 @@ export default class LookupAccountTransactions extends JSONRequest {
55
55
  * .do();
56
56
  * ```
57
57
  *
58
- * @param type - one of “pay”, “keyreg”, “acfg”, “axfer”, “afrz”, "appl"
58
+ * @param type - one of `pay`, `keyreg`, `acfg`, `axfer`, `afrz`, `appl`
59
59
  * @category query
60
60
  */
61
61
  txType(type: string): this;
62
62
  /**
63
- * Type of signature to filter with
63
+ * Type of signature to filter with.
64
64
  * - sig: Standard
65
65
  * - msig: MultiSig
66
66
  * - lsig: LogicSig
@@ -74,12 +74,12 @@ export default class LookupAccountTransactions extends JSONRequest {
74
74
  * .do();
75
75
  * ```
76
76
  *
77
- * @param type - one of “sig”, “msig”, “lsig”
77
+ * @param type - one of `sig`, `msig`, `lsig`
78
78
  * @category query
79
79
  */
80
80
  sigType(type: string): this;
81
81
  /**
82
- * Lookup the specific transaction by ID
82
+ * Lookup the specific transaction by ID.
83
83
  *
84
84
  * #### Example
85
85
  * ```typescript
@@ -90,13 +90,13 @@ export default class LookupAccountTransactions extends JSONRequest {
90
90
  * .txid(txId)
91
91
  * .do();
92
92
  * ```
93
- *
93
+ * @remarks Alternatively, use `indexerClient.lookupTransactionByID(txnId).do()`
94
94
  * @param txid
95
95
  * @category query
96
96
  */
97
97
  txid(txid: string): this;
98
98
  /**
99
- * Include results for the specified round
99
+ * Include results for the specified round.
100
100
  *
101
101
  * #### Example
102
102
  * ```typescript
@@ -113,7 +113,7 @@ export default class LookupAccountTransactions extends JSONRequest {
113
113
  */
114
114
  round(round: number): this;
115
115
  /**
116
- * Include results at or after the specified min-round
116
+ * Include results at or after the specified min-round.
117
117
  *
118
118
  * #### Example
119
119
  * ```typescript
@@ -130,7 +130,7 @@ export default class LookupAccountTransactions extends JSONRequest {
130
130
  */
131
131
  minRound(round: number): this;
132
132
  /**
133
- * Include results at or before the specified max-round
133
+ * Include results at or before the specified max-round.
134
134
  *
135
135
  * #### Example
136
136
  * ```typescript
@@ -147,7 +147,7 @@ export default class LookupAccountTransactions extends JSONRequest {
147
147
  */
148
148
  maxRound(round: number): this;
149
149
  /**
150
- * Asset ID to filter with
150
+ * Asset ID to filter with.
151
151
  *
152
152
  * #### Example
153
153
  * ```typescript
@@ -164,15 +164,15 @@ export default class LookupAccountTransactions extends JSONRequest {
164
164
  */
165
165
  assetID(id: number): this;
166
166
  /**
167
- * Maximum number of results to return
167
+ * Maximum number of results to return.
168
168
  *
169
169
  * #### Example
170
170
  * ```typescript
171
- * const limit = 25;
171
+ * const maxResults = 25;
172
172
  * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
173
173
  * const accountTxns = await indexerClient
174
174
  * .lookupAccountTransactions(address)
175
- * .limit(limit)
175
+ * .limit(maxResults)
176
176
  * .do();
177
177
  * ```
178
178
  *
@@ -181,7 +181,7 @@ export default class LookupAccountTransactions extends JSONRequest {
181
181
  */
182
182
  limit(limit: number): this;
183
183
  /**
184
- * Include results before the given time
184
+ * Include results before the given time.
185
185
  *
186
186
  * #### Example
187
187
  * ```typescript
@@ -198,7 +198,7 @@ export default class LookupAccountTransactions extends JSONRequest {
198
198
  */
199
199
  beforeTime(before: string): this;
200
200
  /**
201
- * Include results after the given time
201
+ * Include results after the given time.
202
202
  *
203
203
  * #### Example
204
204
  * ```typescript
@@ -246,7 +246,7 @@ export default class LookupAccountTransactions extends JSONRequest {
246
246
  */
247
247
  currencyGreaterThan(greater: number): this;
248
248
  /**
249
- * Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units
249
+ * Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
250
250
  *
251
251
  * #### Example 1
252
252
  * ```typescript
@@ -279,22 +279,27 @@ export default class LookupAccountTransactions extends JSONRequest {
279
279
  *
280
280
  * #### Example
281
281
  * ```typescript
282
- * const limit = 25;
283
- * const nextToken = "the next token returned in the previous query response";
282
+ * const maxResults = 25;
284
283
  * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
285
- * const accountTxns = await indexerClient
284
+ *
285
+ * const accountTxnsPage1 = await indexerClient
286
+ * .lookupAccountTransactions(address)
287
+ * .limit(maxResults)
288
+ * .do();
289
+ *
290
+ * const accountTxnsPage2 = await indexerClient
286
291
  * .lookupAccountTransactions(address)
287
- * .limit(limit)
288
- * .nextToken(nextToken)
292
+ * .limit(maxResults)
293
+ * .nextToken(accountTxnsPage1["next-token"])
289
294
  * .do();
290
295
  * ```
291
296
  *
292
- * @param nextToken
297
+ * @param nextToken - provided by the previous results.
293
298
  * @category query
294
299
  */
295
300
  nextToken(nextToken: string): this;
296
301
  /**
297
- * Include results which include the rekey-to field
302
+ * Whether or not to include rekeying transactions.
298
303
  *
299
304
  * #### Example
300
305
  * ```typescript
@@ -3,18 +3,124 @@ import HTTPClient from '../../client';
3
3
  import IntDecoding from '../../../types/intDecoding';
4
4
  export default class LookupApplicationLogs extends JSONRequest {
5
5
  private appID;
6
+ /**
7
+ * Returns log messages generated by the passed in application.
8
+ *
9
+ * #### Example
10
+ * ```typescript
11
+ * const appId = 60553466;
12
+ * const appLogs = await indexerClient.lookupApplicationLogs(appId).do();
13
+ * ```
14
+ *
15
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-idlogs)
16
+ * @param appID - The ID of the application which generated the logs.
17
+ * @category GET
18
+ */
6
19
  constructor(c: HTTPClient, intDecoding: IntDecoding, appID: number);
20
+ /**
21
+ * @returns `/v2/applications/${appID}/logs`
22
+ */
7
23
  path(): string;
8
- /** limit for filter, as int */
24
+ /**
25
+ * Limit results for pagination.
26
+ *
27
+ * #### Example
28
+ * ```typescript
29
+ * const maxResults = 20;
30
+ * const appLogs = await indexerClient
31
+ * .lookupApplicationLogs(appId)
32
+ * .limit(maxResults)
33
+ * .do();
34
+ * ```
35
+ *
36
+ * @param limit - maximum number of results to return.
37
+ */
9
38
  limit(limit: number): this;
10
- /** min round to filter with, as int */
39
+ /**
40
+ * Include results at or after the specified min-round.
41
+ *
42
+ * #### Example
43
+ * ```typescript
44
+ * const minRound = 18309917;
45
+ * const appLogs = await indexerClient
46
+ * .lookupApplicationLogs(appId)
47
+ * .minRound(minRound)
48
+ * .do();
49
+ * ```
50
+ *
51
+ * @param round
52
+ * @category query
53
+ */
11
54
  minRound(round: number): this;
12
- /** max round to filter with, as int */
55
+ /**
56
+ * Include results at or before the specified max-round.
57
+ *
58
+ * #### Example
59
+ * ```typescript
60
+ * const maxRound = 18309917;
61
+ * const appLogs = await indexerClient
62
+ * .lookupApplicationLogs(appId)
63
+ * .maxRound(maxRound)
64
+ * .do();
65
+ * ```
66
+ *
67
+ * @param round
68
+ * @category query
69
+ */
13
70
  maxRound(round: number): this;
14
- /** used for pagination */
71
+ /**
72
+ * The next page of results.
73
+ *
74
+ * #### Example
75
+ * ```typescript
76
+ * const maxResults = 25;
77
+ *
78
+ * const appLogsPage1 = await indexerClient
79
+ * .lookupApplicationLogs(appId)
80
+ * .limit(maxResults)
81
+ * .do();
82
+ *
83
+ * const appLogsPage2 = await indexerClient
84
+ * .lookupApplicationLogs(appId)
85
+ * .limit(maxResults)
86
+ * .nextToken(appLogsPage1["next-token"])
87
+ * .do();
88
+ * ```
89
+ *
90
+ * @param nextToken - provided by the previous results.
91
+ * @category query
92
+ */
15
93
  nextToken(nextToken: string): this;
16
- /** only include transactions with this sender address */
94
+ /**
95
+ * Only include transactions with this sender address.
96
+ *
97
+ * #### Example
98
+ * ```typescript
99
+ * const sender = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
100
+ * const appLogs = await indexerClient
101
+ * .lookupApplicationLogs(appId)
102
+ * .sender(sender)
103
+ * .do();
104
+ * ```
105
+ *
106
+ * @param senderAddress
107
+ * @category query
108
+ */
17
109
  sender(senderAddress: string): this;
18
- /** txid to filter with, as string */
110
+ /**
111
+ * Lookup the specific transaction by ID.
112
+ *
113
+ * #### Example
114
+ * ```typescript
115
+ * const txId = "MEUOC4RQJB23CQZRFRKYEI6WBO73VTTPST5A7B3S5OKBUY6LFUDA";
116
+ * const appLogs = await indexerClient
117
+ * .lookupApplicationLogs(appId)
118
+ * .txid(txId)
119
+ * .do();
120
+ * ```
121
+ *
122
+ * @param txid
123
+ * @category query
124
+ */
19
125
  txid(txid: string): this;
20
126
  }
@@ -3,7 +3,47 @@ import HTTPClient from '../../client';
3
3
  import IntDecoding from '../../../types/intDecoding';
4
4
  export default class LookupApplications extends JSONRequest {
5
5
  private index;
6
+ /**
7
+ * Returns information about the passed application.
8
+ *
9
+ * #### Example
10
+ * ```typescript
11
+ * const appId = 60553466;
12
+ * const appInfo = await indexerClient.lookupApplications(appId).do();
13
+ * ```
14
+ *
15
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-id)
16
+ * @param index - The ID of the application to look up.
17
+ * @category GET
18
+ */
6
19
  constructor(c: HTTPClient, intDecoding: IntDecoding, index: number);
20
+ /**
21
+ * @returns `/v2/applications/${index}`
22
+ */
7
23
  path(): string;
24
+ /**
25
+ * Includes all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
26
+ *
27
+ * #### Example 1
28
+ * ```typescript
29
+ * const appId = 60553466;
30
+ * const appInfo = await indexerClient
31
+ * .lookupApplications(appId)
32
+ * .includeAll(false)
33
+ * .do();
34
+ * ```
35
+ *
36
+ * #### Example 2
37
+ * ```typescript
38
+ * const appId = 60553466;
39
+ * const appInfo = await indexerClient
40
+ * .lookupApplications(appId)
41
+ * .includeAll()
42
+ * .do();
43
+ * ```
44
+ *
45
+ * @param value - default true when called without passing a value
46
+ * @category query
47
+ */
8
48
  includeAll(value?: boolean): this;
9
49
  }
@@ -16,9 +16,12 @@ export default class LookupAssetBalances extends JSONRequest {
16
16
  * @param index - The asset ID to look up.
17
17
  */
18
18
  constructor(c: HTTPClient, intDecoding: IntDecoding, index: number);
19
+ /**
20
+ * @returns `/v2/assets/${index}/balances`
21
+ */
19
22
  path(): string;
20
23
  /**
21
- * Add a limit for filter.
24
+ * Limit results for pagination.
22
25
  *
23
26
  * #### Example
24
27
  * ```typescript
@@ -31,6 +34,7 @@ export default class LookupAssetBalances extends JSONRequest {
31
34
  * ```
32
35
  *
33
36
  * @param limit - maximum number of results to return.
37
+ * @category query
34
38
  */
35
39
  limit(limit: number): this;
36
40
  /**
@@ -46,6 +50,7 @@ export default class LookupAssetBalances extends JSONRequest {
46
50
  * .do();
47
51
  * ```
48
52
  * @param greater
53
+ * @category query
49
54
  */
50
55
  currencyGreaterThan(greater: number): this;
51
56
  /**
@@ -61,6 +66,7 @@ export default class LookupAssetBalances extends JSONRequest {
61
66
  * .do();
62
67
  * ```
63
68
  * @param lesser
69
+ * @category query
64
70
  */
65
71
  currencyLessThan(lesser: number): this;
66
72
  /**
@@ -70,20 +76,26 @@ export default class LookupAssetBalances extends JSONRequest {
70
76
  * ```typescript
71
77
  * const assetId = 163650;
72
78
  * const maxResults = 20;
73
- * const nextToken = "APA6C7C3NCANRPIBUWQOF7WSKLJMK6RPQUVFLLDV4U5WCQE4DEF26D4E3E";
74
- * const assetBalances = await indexerClient
79
+ *
80
+ * const assetBalancesPage1 = await indexerClient
75
81
  * .lookupAssetBalances(assetId)
76
82
  * .limit(maxResults)
77
- * .next(nextToken)
83
+ * .do();
84
+ *
85
+ * const assetBalancesPage2 = await indexerClient
86
+ * .lookupAssetBalances(assetId)
87
+ * .limit(maxResults)
88
+ * .nextToken(assetBalancesPage1["next-token"])
78
89
  * .do();
79
90
  * ```
80
91
  * @param nextToken - provided by the previous results.
92
+ * @category query
81
93
  */
82
94
  nextToken(nextToken: string): this;
83
95
  /**
84
- * Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
96
+ * Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.
85
97
  *
86
- * #### Example
98
+ * #### Example 1
87
99
  * ```typescript
88
100
  * const assetId = 163650;
89
101
  * const assetBalances = await indexerClient
@@ -91,7 +103,18 @@ export default class LookupAssetBalances extends JSONRequest {
91
103
  * .includeAll(false)
92
104
  * .do();
93
105
  * ```
106
+ *
107
+ * #### Example 2
108
+ * ```typescript
109
+ * const assetId = 163650;
110
+ * const assetBalances = await indexerClient
111
+ * .lookupAssetBalances(assetId)
112
+ * .includeAll()
113
+ * .do();
114
+ * ```
115
+ *
94
116
  * @param value
117
+ * @category query
95
118
  */
96
119
  includeAll(value?: boolean): this;
97
120
  }
@@ -25,6 +25,7 @@ export default class LookupAssetByID extends JSONRequest {
25
25
  *
26
26
  * #### Example 1
27
27
  * ```typescript
28
+ * const assetId = 163650;
28
29
  * const assetInfo = await indexerClient
29
30
  * .lookupAssetByID(assetId)
30
31
  * .includeAll(false)
@@ -33,6 +34,7 @@ export default class LookupAssetByID extends JSONRequest {
33
34
  *
34
35
  * #### Example 2
35
36
  * ```typescript
37
+ * const assetId = 163650;
36
38
  * const assetInfo = await indexerClient
37
39
  * .lookupAssetByID(assetId)
38
40
  * .includeAll()