You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Check if a list of serial numbers exist in the chosen provider
27
32
*
28
-
* @param {string[]} serialNumbers The serial numbers to check
29
-
* @returns {Promise<Record<string, boolean>>} A record of serial numbers and whether they exist
33
+
* @param {string[]} serialNumbers The serial numbers to check.
34
+
* @returns {Promise<Record<string, boolean>>} Map of Aleo Record serial numbers and whether they appeared in any inputs on chain. If boolean corresponding to the Serial Number has a true value, that Record is considered spent by the Aleo Network.
* Check if a list of tags exist in the chosen provider
35
40
*
36
-
* @param {string[]} tags The tags to check
37
-
* @returns {Promise<Record<string, boolean>>} A record of tags and whether they exist
41
+
* @param {string[]} tags The tags to check.
42
+
* @returns {Promise<Record<string, boolean>>} Map of Aleo Record tags and whether they appeared in any inputs on chain. If boolean corresponding to the tag has a true value, that Record is considered spent by the Aleo Network.
* Find a credits.aleo record with a given number of microcredits from the chosen provider
43
48
*
44
-
* @param {number} microcredits The number of microcredits to search for
45
-
* @param {RecordSearchParams} searchParameters Additional parameters to search for
46
-
* @returns {Promise<OwnedRecord>} The record if one is found
49
+
* @param {number} microcredits The number of microcredits to search for.
50
+
* @param {RecordSearchParams} searchParameters Additional parameters to search for.
51
+
* @returns {Promise<OwnedRecord>} The record if one is found.
47
52
*
48
53
* @example
49
54
* // A class implementing record provider can be used to find a record with a given number of microcredits
@@ -63,9 +68,9 @@ interface RecordProvider {
63
68
/**
64
69
* Find a list of credit.aleo records with a given number of microcredits from the chosen provider
65
70
*
66
-
* @param {number[]} microcreditAmounts A list of separate microcredit amounts to search for (e.g. [5000, 100000])
67
-
* @param {RecordSearchParams} searchParameters Additional parameters to search for
68
-
* @returns {Promise<OwnedRecord[]>} A list of records with a value greater or equal to the amounts specified if such records exist, otherwise an error
71
+
* @param {number[]} microcreditAmounts A list of separate microcredit amounts to search for (e.g. [5000, 100000]).
72
+
* @param {RecordSearchParams} searchParameters Additional parameters to search for.
73
+
* @returns {Promise<OwnedRecord[]>} A list of records with a value greater or equal to the amounts specified if such records exist, otherwise an error.
69
74
*
70
75
* @example
71
76
* // A class implementing record provider can be used to find a record with a given number of microcredits
@@ -86,8 +91,8 @@ interface RecordProvider {
86
91
87
92
/**
88
93
* Find an arbitrary record
89
-
* @param {RecordSearchParams} searchParameters Additional parameters to search for
90
-
* @returns {Promise<OwnedRecord>} The record if found, otherwise an error
94
+
* @param {RecordSearchParams} searchParameters Additional parameters to search for.
95
+
* @returns {Promise<OwnedRecord>} The record if found, otherwise an error.
91
96
*
92
97
* @example
93
98
* // The RecordSearchParams interface can be used to create parameters for custom record searches which can then
@@ -131,8 +136,8 @@ interface RecordProvider {
131
136
/**
132
137
* Find multiple records from arbitrary programs
133
138
*
134
-
* @param {RecordSearchParams} searchParameters Additional parameters to search for
135
-
* @returns {Promise<OwnedRecord[]>} The records if found, otherwise an error
139
+
* @param {RecordSearchParams} searchParameters Additional parameters to search for.
140
+
* @returns {Promise<OwnedRecord[]>} The records if found, otherwise an error.
136
141
*
137
142
* @example
138
143
* // The RecordSearchParams interface can be used to create parameters for custom record searches which can then
@@ -188,7 +193,7 @@ class NetworkRecordProvider implements RecordProvider {
188
193
/**
189
194
* Set the account used to search for records
190
195
*
191
-
* @param {Account} account The account to use for searching for records
196
+
* @param {Account} account The account used to use for searching for records.
192
197
*/
193
198
setAccount(account: Account){
194
199
this.account=account;
@@ -197,9 +202,9 @@ class NetworkRecordProvider implements RecordProvider {
197
202
/**
198
203
* Find a list of credit records with a given number of microcredits by via the official Aleo API
199
204
*
200
-
* @param {number[]} microcredits The number of microcredits to search for
201
-
* @param {RecordSearchParams} searchParameters Additional parameters to search for
202
-
* @returns {Promise<OwnedRecord[]>} The records if found, otherwise an error
205
+
* @param {number[]} microcredits The number of microcredits to search for.
206
+
* @param {RecordSearchParams} searchParameters Additional parameters to search for.
207
+
* @returns {Promise<OwnedRecord[]>} The records if found, otherwise an error.
203
208
*
204
209
* @example
205
210
* // Create a new NetworkRecordProvider
@@ -268,9 +273,9 @@ class NetworkRecordProvider implements RecordProvider {
268
273
/**
269
274
* Find a credit record with a given number of microcredits by via the official Aleo API
270
275
*
271
-
* @param {number} microcredits The number of microcredits to search for
272
-
* @param {RecordSearchParams} searchParameters Additional parameters to search for
273
-
* @returns {Promise<OwnedRecord>} The record if found, otherwise an error
276
+
* @param {number} microcredits The number of microcredits to search for.
277
+
* @param {RecordSearchParams} searchParameters Additional parameters to search for.
278
+
* @returns {Promise<OwnedRecord>} The record if found, otherwise an error.
274
279
*
275
280
* @example
276
281
* // Create a new NetworkRecordProvider
@@ -363,13 +368,13 @@ class NetworkRecordProvider implements RecordProvider {
363
368
}
364
369
}
365
370
366
-
// If the end height is not specified, use the current block height
371
+
// If the end height is not specified, use the current block height.
0 commit comments