algosdk 1.14.0-beta.1 → 1.15.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 (102) 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/client.js +16 -41
  5. package/dist/cjs/src/client/client.js.map +1 -1
  6. package/dist/cjs/src/client/v2/algod/accountApplicationInformation.js +20 -0
  7. package/dist/cjs/src/client/v2/algod/accountApplicationInformation.js.map +1 -0
  8. package/dist/cjs/src/client/v2/algod/accountAssetInformation.js +20 -0
  9. package/dist/cjs/src/client/v2/algod/accountAssetInformation.js.map +1 -0
  10. package/dist/cjs/src/client/v2/algod/accountInformation.js +18 -0
  11. package/dist/cjs/src/client/v2/algod/accountInformation.js.map +1 -1
  12. package/dist/cjs/src/client/v2/algod/algod.js +38 -0
  13. package/dist/cjs/src/client/v2/algod/algod.js.map +1 -1
  14. package/dist/cjs/src/client/v2/algod/models/types.js +73 -8
  15. package/dist/cjs/src/client/v2/algod/models/types.js.map +1 -1
  16. package/dist/cjs/src/client/v2/indexer/indexer.js +68 -0
  17. package/dist/cjs/src/client/v2/indexer/indexer.js.map +1 -1
  18. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js +110 -0
  19. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
  20. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js +110 -0
  21. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js.map +1 -0
  22. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js +5 -0
  23. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  24. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js +110 -0
  25. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
  26. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js +110 -0
  27. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
  28. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js +280 -15
  29. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  30. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js +0 -18
  31. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  32. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js +37 -1
  33. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  34. package/dist/cjs/src/client/v2/indexer/searchAccounts.js +5 -0
  35. package/dist/cjs/src/client/v2/indexer/searchAccounts.js.map +1 -1
  36. package/dist/cjs/src/client/v2/indexer/searchForApplications.js +5 -0
  37. package/dist/cjs/src/client/v2/indexer/searchForApplications.js.map +1 -1
  38. package/dist/cjs/src/client/v2/jsonrequest.js +3 -0
  39. package/dist/cjs/src/client/v2/jsonrequest.js.map +1 -1
  40. package/dist/cjs/src/dryrun.js +1 -1
  41. package/dist/cjs/src/dryrun.js.map +1 -1
  42. package/dist/cjs/src/makeTxn.js.map +1 -1
  43. package/dist/esm/src/client/client.js +16 -41
  44. package/dist/esm/src/client/client.js.map +1 -1
  45. package/dist/esm/src/client/v2/algod/accountApplicationInformation.js +14 -0
  46. package/dist/esm/src/client/v2/algod/accountApplicationInformation.js.map +1 -0
  47. package/dist/esm/src/client/v2/algod/accountAssetInformation.js +14 -0
  48. package/dist/esm/src/client/v2/algod/accountAssetInformation.js.map +1 -0
  49. package/dist/esm/src/client/v2/algod/accountInformation.js +18 -0
  50. package/dist/esm/src/client/v2/algod/accountInformation.js.map +1 -1
  51. package/dist/esm/src/client/v2/algod/algod.js +38 -0
  52. package/dist/esm/src/client/v2/algod/algod.js.map +1 -1
  53. package/dist/esm/src/client/v2/algod/models/types.js +70 -7
  54. package/dist/esm/src/client/v2/algod/models/types.js.map +1 -1
  55. package/dist/esm/src/client/v2/indexer/indexer.js +68 -0
  56. package/dist/esm/src/client/v2/indexer/indexer.js.map +1 -1
  57. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js +104 -0
  58. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
  59. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js +104 -0
  60. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js.map +1 -0
  61. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js +5 -0
  62. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  63. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js +104 -0
  64. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
  65. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js +104 -0
  66. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
  67. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js +280 -15
  68. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  69. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js +0 -18
  70. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  71. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js +37 -1
  72. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  73. package/dist/esm/src/client/v2/indexer/searchAccounts.js +5 -0
  74. package/dist/esm/src/client/v2/indexer/searchAccounts.js.map +1 -1
  75. package/dist/esm/src/client/v2/indexer/searchForApplications.js +5 -0
  76. package/dist/esm/src/client/v2/indexer/searchForApplications.js.map +1 -1
  77. package/dist/esm/src/client/v2/jsonrequest.js +3 -0
  78. package/dist/esm/src/client/v2/jsonrequest.js.map +1 -1
  79. package/dist/esm/src/dryrun.js +1 -1
  80. package/dist/esm/src/dryrun.js.map +1 -1
  81. package/dist/esm/src/makeTxn.js.map +1 -1
  82. package/dist/types/src/client/client.d.ts +7 -7
  83. package/dist/types/src/client/v2/algod/accountApplicationInformation.d.ts +9 -0
  84. package/dist/types/src/client/v2/algod/accountAssetInformation.d.ts +9 -0
  85. package/dist/types/src/client/v2/algod/accountInformation.d.ts +15 -0
  86. package/dist/types/src/client/v2/algod/algod.d.ts +34 -0
  87. package/dist/types/src/client/v2/algod/models/types.d.ts +95 -13
  88. package/dist/types/src/client/v2/indexer/indexer.d.ts +60 -0
  89. package/dist/types/src/client/v2/indexer/lookupAccountAppLocalStates.d.ts +85 -0
  90. package/dist/types/src/client/v2/indexer/lookupAccountAssets.d.ts +85 -0
  91. package/dist/types/src/client/v2/indexer/lookupAccountByID.d.ts +1 -0
  92. package/dist/types/src/client/v2/indexer/lookupAccountCreatedApplications.d.ts +85 -0
  93. package/dist/types/src/client/v2/indexer/lookupAccountCreatedAssets.d.ts +85 -0
  94. package/dist/types/src/client/v2/indexer/lookupAccountTransactions.d.ts +280 -1
  95. package/dist/types/src/client/v2/indexer/lookupAssetBalances.d.ts +0 -15
  96. package/dist/types/src/client/v2/indexer/lookupAssetByID.d.ts +37 -0
  97. package/dist/types/src/client/v2/indexer/searchAccounts.d.ts +1 -0
  98. package/dist/types/src/client/v2/indexer/searchForApplications.d.ts +1 -0
  99. package/dist/types/src/client/v2/jsonrequest.d.ts +4 -0
  100. package/dist/types/src/makeTxn.d.ts +31 -31
  101. package/dist/types/src/types/utils.d.ts +7 -0
  102. package/package.json +3 -3
@@ -0,0 +1,85 @@
1
+ import JSONRequest from '../jsonrequest';
2
+ import HTTPClient from '../../client';
3
+ import IntDecoding from '../../../types/intDecoding';
4
+ export default class LookupAccountCreatedAssets extends JSONRequest {
5
+ private account;
6
+ constructor(c: HTTPClient, intDecoding: IntDecoding, account: string);
7
+ path(): string;
8
+ /**
9
+ * Add a limit for filter.
10
+ *
11
+ * #### Example
12
+ * ```typescript
13
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
14
+ * const maxResults = 20;
15
+ * const accountAssets = await indexerClient
16
+ * .lookupAccountCreatedAssets(address)
17
+ * .limit(maxResults)
18
+ * .do();
19
+ * ```
20
+ *
21
+ * @param limit - maximum number of results to return.
22
+ */
23
+ limit(limit: number): this;
24
+ /**
25
+ * Specify round to filter with.
26
+ *
27
+ * #### Example
28
+ * ```typescript
29
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
30
+ * const targetBlock = 18309917;
31
+ * const accountAssets = await indexerClient
32
+ * .lookupAccountCreatedAssets(address)
33
+ * .round(targetBlock)
34
+ * .do();
35
+ * ```
36
+ * @param round
37
+ */
38
+ round(round: number): this;
39
+ /**
40
+ * Specify the next page of results.
41
+ *
42
+ * #### Example
43
+ * ```typescript
44
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
45
+ * const maxResults = 20;
46
+ * const nextToken = "APA6C7C3NCANRPIBUWQOF7WSKLJMK6RPQUVFLLDV4U5WCQE4DEF26D4E3E";
47
+ * const accountAssets = await indexerClient
48
+ * .lookupAccountCreatedAssets(address)
49
+ * .limit(maxResults)
50
+ * .next(nextToken)
51
+ * .do();
52
+ * ```
53
+ * @param nextToken - provided by the previous results.
54
+ */
55
+ nextToken(nextToken: string): this;
56
+ /**
57
+ * Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
58
+ *
59
+ * #### Example
60
+ * ```typescript
61
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
62
+ * const accountAssets = await indexerClient
63
+ * .lookupAccountCreatedAssets(address)
64
+ * .includeAll(false)
65
+ * .do();
66
+ * ```
67
+ * @param value
68
+ */
69
+ includeAll(value?: boolean): this;
70
+ /**
71
+ * Specify an assetID to search for.
72
+ *
73
+ * #### Example
74
+ * ```typescript
75
+ * const assetID = 163650;
76
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
77
+ * const assetAssets = await indexerClient
78
+ * .lookupAccountCreatedAssets(address)
79
+ * .assetID(assetID)
80
+ * .do();
81
+ * ```
82
+ * @param index - the assetID
83
+ */
84
+ assetID(index: number): this;
85
+ }
@@ -9,25 +9,304 @@ import IntDecoding from '../../../types/intDecoding';
9
9
  export declare function base64StringFunnel(data: Uint8Array | string): string;
10
10
  export default class LookupAccountTransactions extends JSONRequest {
11
11
  private account;
12
+ /**
13
+ * Returns transactions relating to the given account.
14
+ *
15
+ * #### Example
16
+ * ```typescript
17
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
18
+ * const accountTxns = await indexerClient.lookupAccountTransactions(address).do();
19
+ * ```
20
+ *
21
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idtransactions)
22
+ * @param account - The address of the account.
23
+ */
12
24
  constructor(c: HTTPClient, intDecoding: IntDecoding, account: string);
25
+ /**
26
+ * @returns /v2/accounts/`${account}`/transactions
27
+ */
13
28
  path(): string;
14
29
  /**
15
- * notePrefix to filter with
30
+ * Specifies a prefix which must be contained in the note field
31
+ *
32
+ * #### Example
33
+ * ```typescript
34
+ * const notePrefixBase64Encoded = "Y3JlYXRl";
35
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
36
+ * const accountTxns = await indexerClient
37
+ * .lookupAccountTransactions(address)
38
+ * .notePrefix(notePrefixBase64Encoded)
39
+ * .do();
40
+ * ```
41
+ *
16
42
  * @param prefix - base64 string or uint8array
43
+ * @category query
17
44
  */
18
45
  notePrefix(prefix: Uint8Array | string): this;
46
+ /**
47
+ * Type of transaction to filter with
48
+ *
49
+ * #### Example
50
+ * ```typescript
51
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
52
+ * const accountTxns = await indexerClient
53
+ * .lookupAccountTransactions(address)
54
+ * .txType("appl")
55
+ * .do();
56
+ * ```
57
+ *
58
+ * @param type - one of “pay”, “keyreg”, “acfg”, “axfer”, “afrz”, "appl"
59
+ * @category query
60
+ */
19
61
  txType(type: string): this;
62
+ /**
63
+ * Type of signature to filter with
64
+ * - sig: Standard
65
+ * - msig: MultiSig
66
+ * - lsig: LogicSig
67
+ *
68
+ * #### Example
69
+ * ```typescript
70
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
71
+ * const accountTxns = await indexerClient
72
+ * .lookupAccountTransactions(address)
73
+ * .sigType("msig")
74
+ * .do();
75
+ * ```
76
+ *
77
+ * @param type - one of “sig”, “msig”, “lsig”
78
+ * @category query
79
+ */
20
80
  sigType(type: string): this;
81
+ /**
82
+ * Lookup the specific transaction by ID
83
+ *
84
+ * #### Example
85
+ * ```typescript
86
+ * const txId = "MEUOC4RQJB23CQZRFRKYEI6WBO73VTTPST5A7B3S5OKBUY6LFUDA";
87
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
88
+ * const accountTxns = await indexerClient
89
+ * .lookupAccountTransactions(address)
90
+ * .txid(txId)
91
+ * .do();
92
+ * ```
93
+ *
94
+ * @param txid
95
+ * @category query
96
+ */
21
97
  txid(txid: string): this;
98
+ /**
99
+ * Include results for the specified round
100
+ *
101
+ * #### Example
102
+ * ```typescript
103
+ * const targetBlock = 18309917;
104
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
105
+ * const accountTxns = await indexerClient
106
+ * .lookupAccountTransactions(address)
107
+ * .round(targetBlock)
108
+ * .do();
109
+ * ```
110
+ *
111
+ * @param round
112
+ * @category query
113
+ */
22
114
  round(round: number): this;
115
+ /**
116
+ * Include results at or after the specified min-round
117
+ *
118
+ * #### Example
119
+ * ```typescript
120
+ * const minRound = 18309917;
121
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
122
+ * const accountTxns = await indexerClient
123
+ * .lookupAccountTransactions(address)
124
+ * .minRound(minRound)
125
+ * .do();
126
+ * ```
127
+ *
128
+ * @param round
129
+ * @category query
130
+ */
23
131
  minRound(round: number): this;
132
+ /**
133
+ * Include results at or before the specified max-round
134
+ *
135
+ * #### Example
136
+ * ```typescript
137
+ * const maxRound = 18309917;
138
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
139
+ * const accountTxns = await indexerClient
140
+ * .lookupAccountTransactions(address)
141
+ * .maxRound(maxRound)
142
+ * .do();
143
+ * ```
144
+ *
145
+ * @param round
146
+ * @category query
147
+ */
24
148
  maxRound(round: number): this;
149
+ /**
150
+ * Asset ID to filter with
151
+ *
152
+ * #### Example
153
+ * ```typescript
154
+ * const assetID = 163650;
155
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
156
+ * const accountTxns = await indexerClient
157
+ * .lookupAccountTransactions(address)
158
+ * .assetID(assetID)
159
+ * .do();
160
+ * ```
161
+ *
162
+ * @param id
163
+ * @category query
164
+ */
25
165
  assetID(id: number): this;
166
+ /**
167
+ * Maximum number of results to return
168
+ *
169
+ * #### Example
170
+ * ```typescript
171
+ * const limit = 25;
172
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
173
+ * const accountTxns = await indexerClient
174
+ * .lookupAccountTransactions(address)
175
+ * .limit(limit)
176
+ * .do();
177
+ * ```
178
+ *
179
+ * @param limit
180
+ * @category query
181
+ */
26
182
  limit(limit: number): this;
183
+ /**
184
+ * Include results before the given time
185
+ *
186
+ * #### Example
187
+ * ```typescript
188
+ * const beforeTime = "2022-02-02T20:20:22.02Z";
189
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
190
+ * const accountTxns = await indexerClient
191
+ * .lookupAccountTransactions(address)
192
+ * .beforeTime(beforeTime)
193
+ * .do();
194
+ * ```
195
+ *
196
+ * @param before - rfc3339 string
197
+ * @category query
198
+ */
27
199
  beforeTime(before: string): this;
200
+ /**
201
+ * Include results after the given time
202
+ *
203
+ * #### Example
204
+ * ```typescript
205
+ * const afterTime = "2022-10-21T00:00:11.55Z";
206
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
207
+ * const accountTxns = await indexerClient
208
+ * .lookupAccountTransactions(address)
209
+ * .afterTime(afterTime)
210
+ * .do();
211
+ * ```
212
+ *
213
+ * @param after - rfc3339 string
214
+ * @category query
215
+ */
28
216
  afterTime(after: string): this;
217
+ /**
218
+ * Filtered results should have an amount greater than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
219
+ *
220
+ * #### Example 1
221
+ * ```typescript
222
+ * const minBalance = 300000;
223
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
224
+ * const accountTxns = await indexerClient
225
+ * .lookupAccountTransactions(address)
226
+ * .currencyGreaterThan(minBalance - 1)
227
+ * .do();
228
+ * ```
229
+ *
230
+ * #### Example 2
231
+ * ```typescript
232
+ * const assetID = 163650;
233
+ * const minBalance = 300000;
234
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
235
+ * const accountTxns = await indexerClient
236
+ * .lookupAccountTransactions(address)
237
+ * .assetID(assetID)
238
+ * .currencyGreaterThan(minBalance - 1)
239
+ * .do();
240
+ * ```
241
+ * @remarks
242
+ * If you are looking for transactions with the currency amount greater than 0, simply construct the query without `currencyGreaterThan` because it doesn't accept `-1`, and passing the `0` `currency-greater-than` value would exclude transactions with a 0 amount.
243
+ *
244
+ * @param greater
245
+ * @category query
246
+ */
29
247
  currencyGreaterThan(greater: number): this;
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
250
+ *
251
+ * #### Example 1
252
+ * ```typescript
253
+ * const maxBalance = 500000;
254
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
255
+ * const accountTxns = await indexerClient
256
+ * .lookupAccountTransactions(address)
257
+ * .currencyLessThan(maxBalance + 1)
258
+ * .do();
259
+ * ```
260
+ *
261
+ * #### Example 2
262
+ * ```typescript
263
+ * const assetID = 163650;
264
+ * const maxBalance = 500000;
265
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
266
+ * const accountTxns = await indexerClient
267
+ * .lookupAccountTransactions(address)
268
+ * .assetID(assetID)
269
+ * .currencyLessThan(maxBalance + 1)
270
+ * .do();
271
+ * ```
272
+ *
273
+ * @param lesser
274
+ * @category query
275
+ */
30
276
  currencyLessThan(lesser: number): this;
277
+ /**
278
+ * The next page of results. Use the next token provided by the previous results.
279
+ *
280
+ * #### Example
281
+ * ```typescript
282
+ * const limit = 25;
283
+ * const nextToken = "the next token returned in the previous query response";
284
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
285
+ * const accountTxns = await indexerClient
286
+ * .lookupAccountTransactions(address)
287
+ * .limit(limit)
288
+ * .nextToken(nextToken)
289
+ * .do();
290
+ * ```
291
+ *
292
+ * @param nextToken
293
+ * @category query
294
+ */
31
295
  nextToken(nextToken: string): this;
296
+ /**
297
+ * Include results which include the rekey-to field
298
+ *
299
+ * #### Example
300
+ * ```typescript
301
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
302
+ * const accountTxns = await indexerClient
303
+ * .lookupAccountTransactions(address)
304
+ * .rekeyTo(false)
305
+ * .do();
306
+ * ```
307
+ *
308
+ * @param rekeyTo
309
+ * @category query
310
+ */
32
311
  rekeyTo(rekeyTo: boolean): this;
33
312
  }
@@ -33,21 +33,6 @@ export default class LookupAssetBalances extends JSONRequest {
33
33
  * @param limit - maximum number of results to return.
34
34
  */
35
35
  limit(limit: number): this;
36
- /**
37
- * Specify round to filter with.
38
- *
39
- * #### Example
40
- * ```typescript
41
- * const assetId = 163650;
42
- * const targetBlock = 18309917;
43
- * const assetBalances = await indexerClient
44
- * .lookupAssetBalances(assetId)
45
- * .round(targetBlock)
46
- * .do();
47
- * ```
48
- * @param round
49
- */
50
- round(round: number): this;
51
36
  /**
52
37
  * Filtered results should have an asset balance greater than this value.
53
38
  *
@@ -3,7 +3,44 @@ import HTTPClient from '../../client';
3
3
  import IntDecoding from '../../../types/intDecoding';
4
4
  export default class LookupAssetByID extends JSONRequest {
5
5
  private index;
6
+ /**
7
+ * Returns asset information of the queried asset.
8
+ *
9
+ * #### Example
10
+ * ```typescript
11
+ * const assetId = 163650;
12
+ * const assetInfo = await indexerClient.lookupAssetByID(assetId).do();
13
+ * ```
14
+ *
15
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2assetsasset-id)
16
+ * @param index - The asset ID to look up.
17
+ */
6
18
  constructor(c: HTTPClient, intDecoding: IntDecoding, index: number);
19
+ /**
20
+ * @returns `/v2/assets/${index}`
21
+ */
7
22
  path(): string;
23
+ /**
24
+ * Includes all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
25
+ *
26
+ * #### Example 1
27
+ * ```typescript
28
+ * const assetInfo = await indexerClient
29
+ * .lookupAssetByID(assetId)
30
+ * .includeAll(false)
31
+ * .do();
32
+ * ```
33
+ *
34
+ * #### Example 2
35
+ * ```typescript
36
+ * const assetInfo = await indexerClient
37
+ * .lookupAssetByID(assetId)
38
+ * .includeAll()
39
+ * .do();
40
+ * ```
41
+ *
42
+ * @param value - default true when called without passing a value
43
+ * @category query
44
+ */
8
45
  includeAll(value?: boolean): this;
9
46
  }
@@ -10,4 +10,5 @@ export default class SearchAccounts extends JSONRequest {
10
10
  authAddr(authAddr: string): this;
11
11
  applicationID(applicationID: number): this;
12
12
  includeAll(value?: boolean): this;
13
+ exclude(exclude: string): this;
13
14
  }
@@ -2,6 +2,7 @@ import JSONRequest from '../jsonrequest';
2
2
  export default class SearchForApplications extends JSONRequest {
3
3
  path(): string;
4
4
  index(index: number): this;
5
+ creator(creator: string): this;
5
6
  nextToken(next: string): this;
6
7
  limit(limit: number): this;
7
8
  includeAll(value?: boolean): this;
@@ -20,6 +20,7 @@ export default abstract class JSONRequest<Data = Record<string, any>, Body = Dat
20
20
  constructor(client: HTTPClient, intDecoding?: IntDecoding);
21
21
  /**
22
22
  * @returns The path of this request.
23
+ * @category JSONRequest
23
24
  */
24
25
  abstract path(): string;
25
26
  /**
@@ -28,12 +29,14 @@ export default abstract class JSONRequest<Data = Record<string, any>, Body = Dat
28
29
  * Use this method to change and restructure response
29
30
  * data as needed after receiving it from the `do()` method.
30
31
  * @param body - Response body received
32
+ * @category JSONRequest
31
33
  */
32
34
  prepare(body: Body): Data;
33
35
  /**
34
36
  * Execute the request.
35
37
  * @param headers - Additional headers to send in the request. Optional.
36
38
  * @returns A promise which resolves to the response data.
39
+ * @category JSONRequest
37
40
  */
38
41
  do(headers?: Record<string, any>): Promise<Data>;
39
42
  /**
@@ -50,6 +53,7 @@ export default abstract class JSONRequest<Data = Record<string, any>, Body = Dat
50
53
  *
51
54
  * @param method - The method to use when parsing the
52
55
  * response for this request. Must be one of "default", "safe", "mixed", or "bigint".
56
+ * @category JSONRequest
53
57
  */
54
58
  setIntDecoding(method: IntDecoding): this;
55
59
  }