@avalabs/glacier-sdk 2.8.0-alpha.122 → 2.8.0-alpha.124

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 (70) hide show
  1. package/dist/index.d.ts +2254 -2088
  2. package/dist/index.js +298 -222
  3. package/esm/generated/Glacier.d.ts +20 -2
  4. package/esm/generated/Glacier.js +21 -3
  5. package/esm/generated/core/OpenAPI.js +1 -1
  6. package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
  8. package/esm/generated/models/CompletedDelegatorDetails.d.ts +15 -0
  9. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  10. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  11. package/esm/generated/models/DelegationStatusType.js +8 -0
  12. package/esm/generated/models/Erc1155Contract.d.ts +36 -0
  13. package/esm/generated/models/Erc1155Contract.js +8 -0
  14. package/esm/generated/models/Erc20Contract.d.ts +40 -0
  15. package/esm/generated/models/Erc20Contract.js +8 -0
  16. package/esm/generated/models/Erc721Contract.d.ts +36 -0
  17. package/esm/generated/models/Erc721Contract.js +8 -0
  18. package/esm/generated/models/ImageAsset.d.ts +12 -0
  19. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  20. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  21. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +6 -1
  22. package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
  23. package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
  24. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  25. package/esm/generated/models/PrimaryNetwork.js +7 -0
  26. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +5 -2
  27. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  28. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  29. package/esm/generated/models/StakingDistribution.d.ts +1 -0
  30. package/esm/generated/models/UnknownContract.d.ts +32 -0
  31. package/esm/generated/models/UnknownContract.js +8 -0
  32. package/esm/generated/models/ValidationStatusType.d.ts +3 -1
  33. package/esm/generated/models/ValidationStatusType.js +2 -0
  34. package/esm/generated/models/ValidatorsDetails.d.ts +1 -0
  35. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  36. package/esm/generated/services/EvmBalancesService.js +116 -0
  37. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  38. package/esm/generated/services/EvmBlocksService.js +37 -0
  39. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  40. package/esm/generated/services/EvmChainsService.js +29 -0
  41. package/esm/generated/services/{EvmService.d.ts → EvmTransactionsService.d.ts} +9 -314
  42. package/esm/generated/services/{EvmService.js → EvmTransactionsService.js} +7 -219
  43. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  44. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  45. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  46. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  47. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +69 -0
  48. package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
  49. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -444
  50. package/esm/generated/services/PrimaryNetworkService.js +34 -305
  51. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +171 -0
  52. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  53. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  54. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  55. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  56. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  57. package/esm/index.d.ts +26 -9
  58. package/esm/index.js +17 -4
  59. package/package.json +2 -2
  60. package/esm/generated/models/CollectionMetrics.d.ts +0 -41
  61. package/esm/generated/models/CollectionSortByOption.d.ts +0 -9
  62. package/esm/generated/models/CollectionSortByOption.js +0 -10
  63. package/esm/generated/models/ErcType.d.ts +0 -8
  64. package/esm/generated/models/ErcType.js +0 -9
  65. package/esm/generated/models/FloorPrice.d.ts +0 -8
  66. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  67. package/esm/generated/models/NftCollection.d.ts +0 -24
  68. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  69. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  70. package/esm/generated/models/TrendingTimeframe.js +0 -8
@@ -1,414 +1,21 @@
1
- import { BlockchainId } from '../models/BlockchainId.js';
2
- import { CChainExportTransaction } from '../models/CChainExportTransaction.js';
3
- import { CChainImportTransaction } from '../models/CChainImportTransaction.js';
4
1
  import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js';
2
+ import { DelegationStatusType } from '../models/DelegationStatusType.js';
5
3
  import { GetNetworkDetailsResponse } from '../models/GetNetworkDetailsResponse.js';
6
- import { GetPrimaryNetworkBlockResponse } from '../models/GetPrimaryNetworkBlockResponse.js';
7
4
  import { ListBlockchainsResponse } from '../models/ListBlockchainsResponse.js';
8
- import { ListCChainAtomicBalancesResponse } from '../models/ListCChainAtomicBalancesResponse.js';
9
- import { ListCChainAtomicTransactionsResponse } from '../models/ListCChainAtomicTransactionsResponse.js';
10
- import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
11
- import { ListPChainBalancesResponse } from '../models/ListPChainBalancesResponse.js';
12
- import { ListPChainTransactionsResponse } from '../models/ListPChainTransactionsResponse.js';
13
- import { ListPChainUtxosResponse } from '../models/ListPChainUtxosResponse.js';
14
- import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
15
- import { ListPrimaryNetworkBlocksResponse } from '../models/ListPrimaryNetworkBlocksResponse.js';
5
+ import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResponse.js';
16
6
  import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
17
- import { ListUtxosResponse } from '../models/ListUtxosResponse.js';
18
7
  import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
19
- import { ListXChainBalancesResponse } from '../models/ListXChainBalancesResponse.js';
20
- import { ListXChainTransactionsResponse } from '../models/ListXChainTransactionsResponse.js';
21
- import { ListXChainVerticesResponse } from '../models/ListXChainVerticesResponse.js';
22
8
  import { Network } from '../models/Network.js';
23
- import { PChainId } from '../models/PChainId.js';
24
- import { PChainTransaction } from '../models/PChainTransaction.js';
25
- import { PrimaryNetworkTxType } from '../models/PrimaryNetworkTxType.js';
26
9
  import { SortOrder } from '../models/SortOrder.js';
10
+ import { ValidationStatusType } from '../models/ValidationStatusType.js';
27
11
  import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
28
12
  import { XChainId } from '../models/XChainId.js';
29
- import { XChainLinearTransaction } from '../models/XChainLinearTransaction.js';
30
- import { XChainNonLinearTransaction } from '../models/XChainNonLinearTransaction.js';
31
- import { XChainVertex } from '../models/XChainVertex.js';
32
13
  import { CancelablePromise } from '../core/CancelablePromise.js';
33
14
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
34
15
 
35
16
  declare class PrimaryNetworkService {
36
17
  readonly httpRequest: BaseHttpRequest;
37
18
  constructor(httpRequest: BaseHttpRequest);
38
- /**
39
- * Get transaction
40
- * Gets the details of a single transaction on one of the Primary Network chains.
41
- * @returns any
42
- * @throws ApiError
43
- */
44
- getTxByHash({ blockchainId, network, txHash, }: {
45
- /**
46
- * A primary network blockchain id or alias.
47
- */
48
- blockchainId: BlockchainId;
49
- /**
50
- * Either mainnet or a testnet.
51
- */
52
- network: Network;
53
- /**
54
- * A primary network (P or X chain) transaction hash.
55
- */
56
- txHash: string;
57
- }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
58
- /**
59
- * List latest transactions
60
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
61
- * @returns any
62
- * @throws ApiError
63
- */
64
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
65
- /**
66
- * A primary network blockchain id or alias.
67
- */
68
- blockchainId: BlockchainId;
69
- /**
70
- * Either mainnet or a testnet.
71
- */
72
- network: Network;
73
- /**
74
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
75
- */
76
- addresses?: string;
77
- /**
78
- * Query param for filtering items based on transaction types.
79
- */
80
- txTypes?: Array<PrimaryNetworkTxType>;
81
- /**
82
- * Query param for retrieving items after a specific timestamp.
83
- */
84
- startTimestamp?: number;
85
- /**
86
- * Query param for retrieving items before a specific timestamp.
87
- */
88
- endTimestamp?: number;
89
- /**
90
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
91
- */
92
- pageSize?: number;
93
- /**
94
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
95
- */
96
- pageToken?: string;
97
- /**
98
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
99
- */
100
- sortOrder?: SortOrder;
101
- }): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
102
- /**
103
- * List staking transactions
104
- * Lists active staking transactions on the P-Chain for the supplied addresses.
105
- * @returns ListPChainTransactionsResponse
106
- * @throws ApiError
107
- */
108
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
109
- /**
110
- * A primary network blockchain id or alias.
111
- */
112
- blockchainId: PChainId;
113
- /**
114
- * Either mainnet or a testnet.
115
- */
116
- network: Network;
117
- /**
118
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
119
- */
120
- addresses?: string;
121
- /**
122
- * Query param for filtering items based on transaction types.
123
- */
124
- txTypes?: Array<PrimaryNetworkTxType>;
125
- /**
126
- * Query param for retrieving items after a specific timestamp.
127
- */
128
- startTimestamp?: number;
129
- /**
130
- * Query param for retrieving items before a specific timestamp.
131
- */
132
- endTimestamp?: number;
133
- /**
134
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
135
- */
136
- pageSize?: number;
137
- /**
138
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
139
- */
140
- pageToken?: string;
141
- /**
142
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
143
- */
144
- sortOrder?: SortOrder;
145
- }): CancelablePromise<ListPChainTransactionsResponse>;
146
- /**
147
- * List pending rewards
148
- * Lists pending rewards on the Primary Network for the supplied addresses.
149
- * @returns ListPendingRewardsResponse
150
- * @throws ApiError
151
- */
152
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
153
- /**
154
- * Either mainnet or a testnet.
155
- */
156
- network: Network;
157
- /**
158
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
159
- */
160
- addresses?: string;
161
- /**
162
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
163
- */
164
- pageSize?: number;
165
- /**
166
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
167
- */
168
- pageToken?: string;
169
- /**
170
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
171
- */
172
- sortOrder?: SortOrder;
173
- }): CancelablePromise<ListPendingRewardsResponse>;
174
- /**
175
- * List historical rewards
176
- * Lists historical rewards on the Primary Network for the supplied addresses.
177
- * @returns ListHistoricalRewardsResponse
178
- * @throws ApiError
179
- */
180
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
181
- /**
182
- * Either mainnet or a testnet.
183
- */
184
- network: Network;
185
- /**
186
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
187
- */
188
- addresses?: string;
189
- /**
190
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
191
- */
192
- pageSize?: number;
193
- /**
194
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
195
- */
196
- pageToken?: string;
197
- /**
198
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
199
- */
200
- sortOrder?: SortOrder;
201
- }): CancelablePromise<ListHistoricalRewardsResponse>;
202
- /**
203
- * List UTXOs
204
- * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
205
- * @returns any
206
- * @throws ApiError
207
- */
208
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, sortOrder, }: {
209
- /**
210
- * A primary network blockchain id or alias.
211
- */
212
- blockchainId: BlockchainId;
213
- /**
214
- * Either mainnet or a testnet.
215
- */
216
- network: Network;
217
- /**
218
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
219
- */
220
- addresses?: string;
221
- /**
222
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
223
- */
224
- pageSize?: number;
225
- /**
226
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
227
- */
228
- pageToken?: string;
229
- /**
230
- * Asset ID for any asset (only applicable X-Chain)
231
- */
232
- assetId?: string;
233
- /**
234
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
235
- */
236
- sortOrder?: SortOrder;
237
- }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
238
- /**
239
- * Get balances
240
- * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
241
- *
242
- * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
243
- * @returns any
244
- * @throws ApiError
245
- */
246
- getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
247
- /**
248
- * A primary network blockchain id or alias.
249
- */
250
- blockchainId: BlockchainId;
251
- /**
252
- * Either mainnet or a testnet.
253
- */
254
- network: Network;
255
- /**
256
- * An epoch timestamp in seconds. Balance will be calculated at this timestamp.
257
- */
258
- blockTimestamp?: number;
259
- /**
260
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
261
- */
262
- addresses?: string;
263
- }): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
264
- /**
265
- * Get block
266
- * Gets a block by block height or block hash on one of the Primary Network chains.
267
- * @returns GetPrimaryNetworkBlockResponse
268
- * @throws ApiError
269
- */
270
- getBlockById({ blockchainId, network, blockId, }: {
271
- /**
272
- * A primary network blockchain id or alias.
273
- */
274
- blockchainId: BlockchainId;
275
- /**
276
- * Either mainnet or a testnet.
277
- */
278
- network: Network;
279
- /**
280
- * A block identifier which is either a block number or the block hash.
281
- */
282
- blockId: string;
283
- }): CancelablePromise<GetPrimaryNetworkBlockResponse>;
284
- /**
285
- * List blocks proposed by node
286
- * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
287
- * @returns ListPrimaryNetworkBlocksResponse
288
- * @throws ApiError
289
- */
290
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
291
- /**
292
- * A primary network blockchain id or alias.
293
- */
294
- blockchainId: BlockchainId;
295
- /**
296
- * Either mainnet or a testnet.
297
- */
298
- network: Network;
299
- /**
300
- * A primary network (P or X chain) nodeId.
301
- */
302
- nodeId: string;
303
- /**
304
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
305
- */
306
- pageSize?: number;
307
- /**
308
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
309
- */
310
- pageToken?: string;
311
- }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
312
- /**
313
- * List latest blocks
314
- * Lists latest blocks on one of the Primary Network chains.
315
- * @returns ListPrimaryNetworkBlocksResponse
316
- * @throws ApiError
317
- */
318
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
319
- /**
320
- * A primary network blockchain id or alias.
321
- */
322
- blockchainId: BlockchainId;
323
- /**
324
- * Either mainnet or a testnet.
325
- */
326
- network: Network;
327
- /**
328
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
329
- */
330
- pageSize?: number;
331
- /**
332
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
333
- */
334
- pageToken?: string;
335
- }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
336
- /**
337
- * List vertices
338
- * Lists latest vertices on the X-Chain.
339
- * @returns ListXChainVerticesResponse
340
- * @throws ApiError
341
- */
342
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
343
- /**
344
- * A primary network blockchain id or alias.
345
- */
346
- blockchainId: XChainId;
347
- /**
348
- * Either mainnet or a testnet.
349
- */
350
- network: Network;
351
- /**
352
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
353
- */
354
- pageSize?: number;
355
- /**
356
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
357
- */
358
- pageToken?: string;
359
- }): CancelablePromise<ListXChainVerticesResponse>;
360
- /**
361
- * Get vertex
362
- * Gets a single vertex on the X-Chain.
363
- * @returns XChainVertex
364
- * @throws ApiError
365
- */
366
- getVertexByHash({ vertexHash, blockchainId, network, }: {
367
- /**
368
- * A vertex hash string.
369
- */
370
- vertexHash: string;
371
- /**
372
- * A primary network blockchain id or alias.
373
- */
374
- blockchainId: XChainId;
375
- /**
376
- * Either mainnet or a testnet.
377
- */
378
- network: Network;
379
- }): CancelablePromise<XChainVertex>;
380
- /**
381
- * List vertices by height
382
- * Lists vertices at the given vertex height on the X-Chain.
383
- * @returns ListXChainVerticesResponse
384
- * @throws ApiError
385
- */
386
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
387
- /**
388
- * The height of a vertex.
389
- */
390
- vertexHeight: number;
391
- /**
392
- * A primary network blockchain id or alias.
393
- */
394
- blockchainId: XChainId;
395
- /**
396
- * Either mainnet or a testnet.
397
- */
398
- network: Network;
399
- /**
400
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
401
- */
402
- pageSize?: number;
403
- /**
404
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
405
- */
406
- pageToken?: string;
407
- /**
408
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
409
- */
410
- sortOrder?: SortOrder;
411
- }): CancelablePromise<ListXChainVerticesResponse>;
412
19
  /**
413
20
  * Get asset details
414
21
  * Gets asset details corresponding to the given asset id on the X-Chain.
@@ -429,46 +36,6 @@ declare class PrimaryNetworkService {
429
36
  */
430
37
  assetId: string;
431
38
  }): CancelablePromise<XChainAssetDetails>;
432
- /**
433
- * List asset transactions
434
- * Lists asset transactions corresponding to the given asset id on the X-Chain.
435
- * @returns ListXChainTransactionsResponse
436
- * @throws ApiError
437
- */
438
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
439
- /**
440
- * A primary network blockchain id or alias.
441
- */
442
- blockchainId: XChainId;
443
- /**
444
- * Either mainnet or a testnet.
445
- */
446
- network: Network;
447
- /**
448
- * Asset ID for any asset on X-Chain
449
- */
450
- assetId: string;
451
- /**
452
- * Query param for filtering items based on transaction types.
453
- */
454
- txTypes?: Array<PrimaryNetworkTxType>;
455
- /**
456
- * Query param for retrieving items after a specific timestamp.
457
- */
458
- startTimestamp?: number;
459
- /**
460
- * Query param for retrieving items before a specific timestamp.
461
- */
462
- endTimestamp?: number;
463
- /**
464
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
465
- */
466
- pageSize?: number;
467
- /**
468
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
469
- */
470
- pageToken?: string;
471
- }): CancelablePromise<ListXChainTransactionsResponse>;
472
39
  /**
473
40
  * Get chain interactions for addresses
474
41
  * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
@@ -551,15 +118,11 @@ declare class PrimaryNetworkService {
551
118
  * @returns ListValidatorDetailsResponse
552
119
  * @throws ApiError
553
120
  */
554
- listValidators({ network, validationStatus, pageSize, pageToken, nodeIds, sortOrder, minDelegationCapacity, }: {
121
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
555
122
  /**
556
123
  * Either mainnet or a testnet.
557
124
  */
558
125
  network: Network;
559
- /**
560
- * Validation status of the node.
561
- */
562
- validationStatus: 'completed' | 'active' | 'pending';
563
126
  /**
564
127
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
565
128
  */
@@ -576,6 +139,10 @@ declare class PrimaryNetworkService {
576
139
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
577
140
  */
578
141
  sortOrder?: SortOrder;
142
+ /**
143
+ * Validation status of the node.
144
+ */
145
+ validationStatus?: ValidationStatusType;
579
146
  /**
580
147
  * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
581
148
  */
@@ -587,7 +154,7 @@ declare class PrimaryNetworkService {
587
154
  * @returns ListValidatorDetailsResponse
588
155
  * @throws ApiError
589
156
  */
590
- getSingleValidatorDetails({ network, nodeId, validationStatus, pageSize, pageToken, sortOrder, }: {
157
+ getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
591
158
  /**
592
159
  * Either mainnet or a testnet.
593
160
  */
@@ -596,10 +163,38 @@ declare class PrimaryNetworkService {
596
163
  * A primary network (P or X chain) nodeId.
597
164
  */
598
165
  nodeId: string;
166
+ /**
167
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
168
+ */
169
+ pageSize?: number;
170
+ /**
171
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
172
+ */
173
+ pageToken?: string;
174
+ /**
175
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
176
+ */
177
+ sortOrder?: SortOrder;
599
178
  /**
600
179
  * Validation status of the node.
601
180
  */
602
- validationStatus: 'completed' | 'active' | 'pending';
181
+ validationStatus?: ValidationStatusType;
182
+ }): CancelablePromise<ListValidatorDetailsResponse>;
183
+ /**
184
+ * List delegators
185
+ * Lists details for delegators.
186
+ * @returns ListDelegatorDetailsResponse
187
+ * @throws ApiError
188
+ */
189
+ listDelegators({ network, nodeId, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
190
+ /**
191
+ * Either mainnet or a testnet.
192
+ */
193
+ network: Network;
194
+ /**
195
+ * A primary network (P or X chain) nodeId.
196
+ */
197
+ nodeId: string;
603
198
  /**
604
199
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
605
200
  */
@@ -612,7 +207,19 @@ declare class PrimaryNetworkService {
612
207
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
613
208
  */
614
209
  sortOrder?: SortOrder;
615
- }): CancelablePromise<ListValidatorDetailsResponse>;
210
+ /**
211
+ * Delegation status of the node.
212
+ */
213
+ delegationStatus?: DelegationStatusType;
214
+ /**
215
+ * A comma separated list of reward addresses to filter by.
216
+ */
217
+ rewardAddresses?: string;
218
+ /**
219
+ * A comma separated list of node ids to filter by.
220
+ */
221
+ nodeIds?: string;
222
+ }): CancelablePromise<ListDelegatorDetailsResponse>;
616
223
  }
617
224
 
618
225
  export { PrimaryNetworkService };