@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.2efeb5b.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 (164) hide show
  1. package/dist/index.d.ts +1366 -457
  2. package/dist/index.js +578 -178
  3. package/esm/generated/Glacier.d.ts +8 -0
  4. package/esm/generated/Glacier.js +12 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  9. package/esm/generated/models/ActiveValidatorDetails.d.ts +13 -4
  10. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  11. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  12. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  13. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  14. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  15. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  16. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  17. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  18. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  19. package/esm/generated/models/ChainInfo.d.ts +2 -3
  20. package/esm/generated/models/ChainStatus.d.ts +3 -0
  21. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  22. package/esm/generated/models/CompletedValidatorDetails.d.ts +8 -1
  23. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  24. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  25. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  26. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  27. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  28. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  29. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  30. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  31. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  32. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  33. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  34. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  35. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  36. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  37. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  38. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  39. package/esm/generated/models/EVMInput.d.ts +3 -3
  40. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  41. package/esm/generated/models/EVMOperationType.js +6 -0
  42. package/esm/generated/models/EVMOutput.d.ts +3 -3
  43. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  44. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  45. package/esm/generated/models/EventType.d.ts +5 -0
  46. package/esm/generated/models/EventType.js +6 -0
  47. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  48. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  49. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  50. package/esm/generated/models/GlacierApiFeature.js +7 -0
  51. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  52. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  53. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  54. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  55. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  56. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  57. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  58. package/esm/generated/models/Method.d.ts +0 -3
  59. package/esm/generated/models/Money.d.ts +0 -3
  60. package/esm/generated/models/NextPageToken.d.ts +8 -0
  61. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  62. package/esm/generated/models/OperationType.d.ts +4 -2
  63. package/esm/generated/models/OperationType.js +3 -1
  64. package/esm/generated/models/PChainBalance.d.ts +15 -15
  65. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  66. package/esm/generated/models/PChainTransaction.d.ts +18 -7
  67. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  68. package/esm/generated/models/PChainTransactionType.js +8 -4
  69. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  70. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  71. package/esm/generated/models/PendingReward.d.ts +3 -3
  72. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  73. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  74. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -1
  75. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  76. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  77. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  78. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  79. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  80. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  81. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  82. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  83. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  84. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  85. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  86. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  87. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  88. package/esm/generated/models/RewardType.d.ts +2 -1
  89. package/esm/generated/models/RewardType.js +1 -0
  90. package/esm/generated/models/Rewards.d.ts +2 -0
  91. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  92. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  93. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  94. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  95. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  96. package/esm/generated/models/SortByOption.d.ts +9 -0
  97. package/esm/generated/models/SortByOption.js +10 -0
  98. package/esm/generated/models/Subnet.d.ts +17 -0
  99. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  100. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  101. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  102. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  103. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  104. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  105. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  106. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  107. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  108. package/esm/generated/models/Utxo.d.ts +30 -30
  109. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  110. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  111. package/esm/generated/models/ValidationStatusType.js +1 -0
  112. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  113. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  114. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  115. package/esm/generated/models/WebhookStatus.js +7 -0
  116. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  117. package/esm/generated/models/WebhookStatusType.js +7 -0
  118. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  119. package/esm/generated/models/XChainBalances.d.ts +3 -3
  120. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  121. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  122. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  123. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  124. package/esm/generated/models/XChainTransactionType.js +11 -0
  125. package/esm/generated/services/DefaultService.d.ts +14 -0
  126. package/esm/generated/services/DefaultService.js +13 -0
  127. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  128. package/esm/generated/services/EvmBalancesService.js +10 -8
  129. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  130. package/esm/generated/services/EvmBlocksService.js +4 -4
  131. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  132. package/esm/generated/services/EvmChainsService.js +4 -2
  133. package/esm/generated/services/EvmContractsService.d.ts +20 -1
  134. package/esm/generated/services/EvmContractsService.js +16 -0
  135. package/esm/generated/services/EvmTransactionsService.d.ts +90 -68
  136. package/esm/generated/services/EvmTransactionsService.js +33 -46
  137. package/esm/generated/services/NfTsService.d.ts +27 -2
  138. package/esm/generated/services/NfTsService.js +19 -0
  139. package/esm/generated/services/OperationsService.d.ts +11 -11
  140. package/esm/generated/services/OperationsService.js +10 -10
  141. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  142. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  143. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  144. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  145. package/esm/generated/services/PrimaryNetworkService.d.ts +70 -31
  146. package/esm/generated/services/PrimaryNetworkService.js +36 -18
  147. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  148. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  149. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  150. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  151. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  152. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  153. package/esm/generated/services/RpcService.d.ts +25 -0
  154. package/esm/generated/services/RpcService.js +24 -0
  155. package/esm/generated/services/TeleporterService.d.ts +62 -0
  156. package/esm/generated/services/TeleporterService.js +41 -0
  157. package/esm/generated/services/WebhooksService.d.ts +143 -0
  158. package/esm/generated/services/WebhooksService.js +125 -0
  159. package/esm/index.d.ts +49 -3
  160. package/esm/index.js +23 -2
  161. package/package.json +3 -3
  162. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  163. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  164. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,6 +54,19 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
57
+ declare class DefaultService {
58
+ readonly httpRequest: BaseHttpRequest;
59
+ constructor(httpRequest: BaseHttpRequest);
60
+ /**
61
+ * @returns any
62
+ * @throws ApiError
63
+ */
64
+ mediaControllerUploadImage(): CancelablePromise<any>;
65
+ }
66
+
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
63
70
  declare enum CurrencyCode {
64
71
  USD = "usd",
65
72
  EUR = "eur",
@@ -78,9 +85,6 @@ declare enum CurrencyCode {
78
85
  }
79
86
 
80
87
  type Money = {
81
- /**
82
- * ISO 4217 currency code.
83
- */
84
88
  currencyCode: CurrencyCode;
85
89
  /**
86
90
  * Monetary value in base 10 decimals.
@@ -130,6 +134,9 @@ type GetNativeBalanceResponse = {
130
134
  nativeTokenBalance: NativeTokenBalance;
131
135
  };
132
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
133
140
  declare enum NftTokenMetadataStatus {
134
141
  UNKNOWN = "UNKNOWN",
135
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -145,9 +152,6 @@ declare enum NftTokenMetadataStatus {
145
152
  }
146
153
 
147
154
  type Erc1155TokenMetadata = {
148
- /**
149
- * The metadata indexing status of the nft.
150
- */
151
155
  indexStatus: NftTokenMetadataStatus;
152
156
  metadataLastUpdatedTimestamp?: number;
153
157
  name?: string;
@@ -186,9 +190,6 @@ declare namespace Erc1155TokenBalance {
186
190
  }
187
191
 
188
192
  type Erc721TokenMetadata = {
189
- /**
190
- * The metadata indexing status of the nft.
191
- */
192
193
  indexStatus: NftTokenMetadataStatus;
193
194
  metadataLastUpdatedTimestamp?: number;
194
195
  name?: string;
@@ -335,7 +336,7 @@ declare class EvmBalancesService {
335
336
  */
336
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
337
338
  /**
338
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
340
  */
340
341
  chainId: string;
341
342
  /**
@@ -361,9 +362,9 @@ declare class EvmBalancesService {
361
362
  * @returns ListErc20BalancesResponse
362
363
  * @throws ApiError
363
364
  */
364
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
365
366
  /**
366
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
368
  */
368
369
  chainId: string;
369
370
  /**
@@ -374,14 +375,18 @@ declare class EvmBalancesService {
374
375
  * The block number, if not defined the block number will be the latest block.
375
376
  */
376
377
  blockNumber?: string;
378
+ /**
379
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
380
+ */
381
+ pageToken?: string;
377
382
  /**
378
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
379
384
  */
380
385
  pageSize?: number;
381
386
  /**
382
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
387
+ * whether to filter out spam tokens from the response. Default is true.
383
388
  */
384
- pageToken?: string;
389
+ filterSpamTokens?: boolean;
385
390
  /**
386
391
  * A comma separated list of contract addresses to filter by.
387
392
  */
@@ -399,23 +404,23 @@ declare class EvmBalancesService {
399
404
  * @returns ListErc721BalancesResponse
400
405
  * @throws ApiError
401
406
  */
402
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
407
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
403
408
  /**
404
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
409
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
410
  */
406
411
  chainId: string;
407
412
  /**
408
413
  * A wallet address.
409
414
  */
410
415
  address: string;
411
- /**
412
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
413
- */
414
- pageSize?: number;
415
416
  /**
416
417
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
417
418
  */
418
419
  pageToken?: string;
420
+ /**
421
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
422
+ */
423
+ pageSize?: number;
419
424
  /**
420
425
  * A contract addresses to filter by.
421
426
  */
@@ -431,9 +436,9 @@ declare class EvmBalancesService {
431
436
  * @returns ListErc1155BalancesResponse
432
437
  * @throws ApiError
433
438
  */
434
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
439
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
435
440
  /**
436
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
441
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
442
  */
438
443
  chainId: string;
439
444
  /**
@@ -444,14 +449,14 @@ declare class EvmBalancesService {
444
449
  * The block number, if not defined the block number will be the latest block.
445
450
  */
446
451
  blockNumber?: string;
447
- /**
448
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
449
- */
450
- pageSize?: number;
451
452
  /**
452
453
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
453
454
  */
454
455
  pageToken?: string;
456
+ /**
457
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
458
+ */
459
+ pageSize?: number;
455
460
  /**
456
461
  * A contract addresses to filter by.
457
462
  */
@@ -465,23 +470,23 @@ declare class EvmBalancesService {
465
470
  * @returns ListCollectibleBalancesResponse
466
471
  * @throws ApiError
467
472
  */
468
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
473
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
469
474
  /**
470
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
475
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
476
  */
472
477
  chainId: string;
473
478
  /**
474
479
  * A wallet address.
475
480
  */
476
481
  address: string;
477
- /**
478
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
479
- */
480
- pageSize?: number;
481
482
  /**
482
483
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
483
484
  */
484
485
  pageToken?: string;
486
+ /**
487
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
488
+ */
489
+ pageSize?: number;
485
490
  /**
486
491
  * A contract addresses to filter by.
487
492
  */
@@ -594,19 +599,19 @@ declare class EvmBlocksService {
594
599
  * @returns ListEvmBlocksResponse
595
600
  * @throws ApiError
596
601
  */
597
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
602
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
598
603
  /**
599
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
604
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
605
  */
601
606
  chainId: string;
602
- /**
603
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
604
- */
605
- pageSize?: number;
606
607
  /**
607
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
608
609
  */
609
610
  pageToken?: string;
611
+ /**
612
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
613
+ */
614
+ pageSize?: number;
610
615
  }): CancelablePromise<ListEvmBlocksResponse>;
611
616
  /**
612
617
  * Get block
@@ -616,7 +621,7 @@ declare class EvmBlocksService {
616
621
  */
617
622
  getBlock({ chainId, blockId, }: {
618
623
  /**
619
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
624
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
625
  */
621
626
  chainId: string;
622
627
  /**
@@ -626,6 +631,9 @@ declare class EvmBlocksService {
626
631
  }): CancelablePromise<GetEvmBlockResponse>;
627
632
  }
628
633
 
634
+ /**
635
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
+ */
629
637
  declare enum ChainStatus {
630
638
  OK = "OK",
631
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -663,9 +671,6 @@ declare enum VmName {
663
671
 
664
672
  type GetChainResponse = {
665
673
  chainId: string;
666
- /**
667
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
668
- */
669
674
  status: ChainStatus;
670
675
  chainName: string;
671
676
  description: string;
@@ -680,13 +685,17 @@ type GetChainResponse = {
680
685
  utilityAddresses?: UtilityAddresses;
681
686
  networkToken: NetworkToken;
682
687
  chainLogoUri?: string;
688
+ private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
683
690
  };
684
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
685
697
  type ChainInfo = {
686
698
  chainId: string;
687
- /**
688
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
689
- */
690
699
  status: ChainStatus;
691
700
  chainName: string;
692
701
  description: string;
@@ -701,6 +710,8 @@ type ChainInfo = {
701
710
  utilityAddresses?: UtilityAddresses;
702
711
  networkToken: NetworkToken;
703
712
  chainLogoUri?: string;
713
+ private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
704
715
  };
705
716
 
706
717
  type ListChainsResponse = {
@@ -721,11 +732,15 @@ declare class EvmChainsService {
721
732
  * @returns ListChainsResponse
722
733
  * @throws ApiError
723
734
  */
724
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
725
736
  /**
726
737
  * mainnet or testnet.
727
738
  */
728
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
729
744
  }): CancelablePromise<ListChainsResponse>;
730
745
  /**
731
746
  * Get chain information
@@ -735,24 +750,12 @@ declare class EvmChainsService {
735
750
  */
736
751
  getChainInfo({ chainId, }: {
737
752
  /**
738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
753
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
739
754
  */
740
755
  chainId: string;
741
756
  }): CancelablePromise<GetChainResponse>;
742
757
  }
743
758
 
744
- type ContractDeploymentDetails = {
745
- txHash: string;
746
- /**
747
- * The address that initiated the transaction which deployed this contract.
748
- */
749
- deployerAddress: string;
750
- /**
751
- * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
752
- */
753
- deployerContractAddress?: string;
754
- };
755
-
756
759
  type ImageAsset = {
757
760
  assetId?: string;
758
761
  /**
@@ -791,6 +794,120 @@ type ResourceLink = {
791
794
  url: string;
792
795
  };
793
796
 
797
+ type ContractSubmissionErc1155 = {
798
+ description?: string;
799
+ officialSite?: string;
800
+ email?: string;
801
+ logoAsset?: ImageAsset;
802
+ bannerAsset?: ImageAsset;
803
+ color?: string;
804
+ resourceLinks?: Array<ResourceLink>;
805
+ tags?: Array<string>;
806
+ /**
807
+ * The contract name.
808
+ */
809
+ name: string;
810
+ ercType: ContractSubmissionErc1155.ercType;
811
+ /**
812
+ * The contract symbol.
813
+ */
814
+ symbol: string;
815
+ pricingProviders?: PricingProviders;
816
+ };
817
+ declare namespace ContractSubmissionErc1155 {
818
+ enum ercType {
819
+ ERC_1155 = "ERC-1155"
820
+ }
821
+ }
822
+
823
+ type ContractSubmissionErc20 = {
824
+ description?: string;
825
+ officialSite?: string;
826
+ email?: string;
827
+ logoAsset?: ImageAsset;
828
+ bannerAsset?: ImageAsset;
829
+ color?: string;
830
+ resourceLinks?: Array<ResourceLink>;
831
+ tags?: Array<string>;
832
+ /**
833
+ * The contract name.
834
+ */
835
+ name: string;
836
+ ercType: ContractSubmissionErc20.ercType;
837
+ /**
838
+ * The contract symbol.
839
+ */
840
+ symbol: string;
841
+ pricingProviders?: PricingProviders;
842
+ };
843
+ declare namespace ContractSubmissionErc20 {
844
+ enum ercType {
845
+ ERC_20 = "ERC-20"
846
+ }
847
+ }
848
+
849
+ type ContractSubmissionErc721 = {
850
+ description?: string;
851
+ officialSite?: string;
852
+ email?: string;
853
+ logoAsset?: ImageAsset;
854
+ bannerAsset?: ImageAsset;
855
+ color?: string;
856
+ resourceLinks?: Array<ResourceLink>;
857
+ tags?: Array<string>;
858
+ /**
859
+ * The contract name.
860
+ */
861
+ name: string;
862
+ ercType: ContractSubmissionErc721.ercType;
863
+ /**
864
+ * The contract symbol.
865
+ */
866
+ symbol: string;
867
+ };
868
+ declare namespace ContractSubmissionErc721 {
869
+ enum ercType {
870
+ ERC_721 = "ERC-721"
871
+ }
872
+ }
873
+
874
+ type ContractSubmissionUnknown = {
875
+ description?: string;
876
+ officialSite?: string;
877
+ email?: string;
878
+ logoAsset?: ImageAsset;
879
+ bannerAsset?: ImageAsset;
880
+ color?: string;
881
+ resourceLinks?: Array<ResourceLink>;
882
+ tags?: Array<string>;
883
+ /**
884
+ * The contract name.
885
+ */
886
+ name: string;
887
+ ercType: ContractSubmissionUnknown.ercType;
888
+ };
889
+ declare namespace ContractSubmissionUnknown {
890
+ enum ercType {
891
+ UNKNOWN = "UNKNOWN"
892
+ }
893
+ }
894
+
895
+ type ContractSubmissionBody = {
896
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
897
+ };
898
+
899
+ type ContractDeploymentDetails = {
900
+ txHash: string;
901
+ /**
902
+ * The address that initiated the transaction which deployed this contract.
903
+ */
904
+ deployerAddress: string;
905
+ /**
906
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
907
+ */
908
+ deployerContractAddress?: string;
909
+ };
910
+
794
911
  type Erc1155Contract = {
795
912
  /**
796
913
  * The contract name.
@@ -913,6 +1030,10 @@ declare namespace UnknownContract {
913
1030
  }
914
1031
  }
915
1032
 
1033
+ type UpdateContractResponse = {
1034
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1035
+ };
1036
+
916
1037
  declare class EvmContractsService {
917
1038
  readonly httpRequest: BaseHttpRequest;
918
1039
  constructor(httpRequest: BaseHttpRequest);
@@ -924,7 +1045,7 @@ declare class EvmContractsService {
924
1045
  */
925
1046
  getContractMetadata({ chainId, address, }: {
926
1047
  /**
927
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1048
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
928
1049
  */
929
1050
  chainId: string;
930
1051
  /**
@@ -932,6 +1053,23 @@ declare class EvmContractsService {
932
1053
  */
933
1054
  address: string;
934
1055
  }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1056
+ /**
1057
+ * Update contract information
1058
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
+ * @returns UpdateContractResponse
1060
+ * @throws ApiError
1061
+ */
1062
+ updateContractInfo({ chainId, address, requestBody, }: {
1063
+ /**
1064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
+ */
1066
+ chainId: string;
1067
+ /**
1068
+ * Contract address on the relevant chain.
1069
+ */
1070
+ address: string;
1071
+ requestBody: ContractSubmissionBody;
1072
+ }): CancelablePromise<UpdateContractResponse>;
935
1073
  }
936
1074
 
937
1075
  type Erc1155Token = {
@@ -1057,6 +1195,9 @@ type Erc721TransferDetails = {
1057
1195
  erc721Token: Erc721Token;
1058
1196
  };
1059
1197
 
1198
+ /**
1199
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
+ */
1060
1201
  declare enum TransactionMethodType {
1061
1202
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1062
1203
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1064,9 +1205,6 @@ declare enum TransactionMethodType {
1064
1205
  }
1065
1206
 
1066
1207
  type Method = {
1067
- /**
1068
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1069
- */
1070
1208
  callType: TransactionMethodType;
1071
1209
  /**
1072
1210
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1427,7 +1565,7 @@ type ListTransfersResponse = {
1427
1565
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1428
1566
  */
1429
1567
  nextPageToken?: string;
1430
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1431
1569
  };
1432
1570
 
1433
1571
  declare enum SortOrder {
@@ -1451,7 +1589,7 @@ declare class EvmTransactionsService {
1451
1589
  */
1452
1590
  getDeploymentTransaction({ chainId, address, currency, }: {
1453
1591
  /**
1454
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1592
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1455
1593
  */
1456
1594
  chainId: string;
1457
1595
  /**
@@ -1469,65 +1607,55 @@ declare class EvmTransactionsService {
1469
1607
  * @returns ListContractsResponse
1470
1608
  * @throws ApiError
1471
1609
  */
1472
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1610
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1473
1611
  /**
1474
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1612
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1475
1613
  */
1476
1614
  chainId: string;
1477
1615
  /**
1478
1616
  * A wallet address.
1479
1617
  */
1480
1618
  address: string;
1481
- /**
1482
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1483
- */
1484
- pageSize?: number;
1485
1619
  /**
1486
1620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1487
1621
  */
1488
1622
  pageToken?: string;
1489
- }): CancelablePromise<ListContractsResponse>;
1490
- /**
1491
- * Get contract metadata
1492
- * Gets metadata about the contract at the given address.
1493
- * @returns any
1494
- * @throws ApiError
1495
- */
1496
- getContractMetadata({ chainId, address, }: {
1497
- /**
1498
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1499
- */
1500
- chainId: string;
1501
1623
  /**
1502
- * Contract address on the relevant chain.
1624
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1503
1625
  */
1504
- address: string;
1505
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1626
+ pageSize?: number;
1627
+ }): CancelablePromise<ListContractsResponse>;
1506
1628
  /**
1507
1629
  * List ERC transfers
1508
1630
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1509
1631
  * @returns ListTransfersResponse
1510
1632
  * @throws ApiError
1511
1633
  */
1512
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1513
1635
  /**
1514
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1636
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1515
1637
  */
1516
1638
  chainId: string;
1517
1639
  /**
1518
1640
  * A wallet address.
1519
1641
  */
1520
1642
  address: string;
1643
+ /**
1644
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1645
+ */
1521
1646
  startBlock?: number;
1522
- endBlock?: number;
1523
1647
  /**
1524
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1648
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1525
1649
  */
1526
- pageSize?: number;
1650
+ endBlock?: number;
1527
1651
  /**
1528
1652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1529
1653
  */
1530
1654
  pageToken?: string;
1655
+ /**
1656
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1657
+ */
1658
+ pageSize?: number;
1531
1659
  }): CancelablePromise<ListTransfersResponse>;
1532
1660
  /**
1533
1661
  * List transactions
@@ -1537,24 +1665,30 @@ declare class EvmTransactionsService {
1537
1665
  * @returns ListTransactionDetailsResponse
1538
1666
  * @throws ApiError
1539
1667
  */
1540
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1668
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1541
1669
  /**
1542
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1670
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1543
1671
  */
1544
1672
  chainId: string;
1545
1673
  /**
1546
1674
  * A wallet address.
1547
1675
  */
1548
1676
  address: string;
1677
+ /**
1678
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1679
+ */
1680
+ pageToken?: string;
1549
1681
  /**
1550
1682
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1551
1683
  */
1552
1684
  pageSize?: number;
1553
1685
  /**
1554
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1686
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1555
1687
  */
1556
- pageToken?: string;
1557
1688
  startBlock?: number;
1689
+ /**
1690
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1691
+ */
1558
1692
  endBlock?: number;
1559
1693
  /**
1560
1694
  * 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.
@@ -1567,25 +1701,31 @@ declare class EvmTransactionsService {
1567
1701
  * @returns ListNativeTransactionsResponse
1568
1702
  * @throws ApiError
1569
1703
  */
1570
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1704
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1571
1705
  /**
1572
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1706
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1573
1707
  */
1574
1708
  chainId: string;
1575
1709
  /**
1576
1710
  * A wallet address.
1577
1711
  */
1578
1712
  address: string;
1713
+ /**
1714
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1715
+ */
1579
1716
  startBlock?: number;
1580
- endBlock?: number;
1581
1717
  /**
1582
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1718
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1583
1719
  */
1584
- pageSize?: number;
1720
+ endBlock?: number;
1585
1721
  /**
1586
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1587
1723
  */
1588
1724
  pageToken?: string;
1725
+ /**
1726
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
+ */
1728
+ pageSize?: number;
1589
1729
  }): CancelablePromise<ListNativeTransactionsResponse>;
1590
1730
  /**
1591
1731
  * List ERC-20 transfers
@@ -1593,25 +1733,31 @@ declare class EvmTransactionsService {
1593
1733
  * @returns ListErc20TransactionsResponse
1594
1734
  * @throws ApiError
1595
1735
  */
1596
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1597
1737
  /**
1598
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1738
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1599
1739
  */
1600
1740
  chainId: string;
1601
1741
  /**
1602
1742
  * A wallet address.
1603
1743
  */
1604
1744
  address: string;
1745
+ /**
1746
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1747
+ */
1605
1748
  startBlock?: number;
1606
- endBlock?: number;
1607
1749
  /**
1608
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1750
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1609
1751
  */
1610
- pageSize?: number;
1752
+ endBlock?: number;
1611
1753
  /**
1612
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1613
1755
  */
1614
1756
  pageToken?: string;
1757
+ /**
1758
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
+ */
1760
+ pageSize?: number;
1615
1761
  }): CancelablePromise<ListErc20TransactionsResponse>;
1616
1762
  /**
1617
1763
  * List ERC-721 transfers
@@ -1619,25 +1765,31 @@ declare class EvmTransactionsService {
1619
1765
  * @returns ListErc721TransactionsResponse
1620
1766
  * @throws ApiError
1621
1767
  */
1622
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1623
1769
  /**
1624
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1625
1771
  */
1626
1772
  chainId: string;
1627
1773
  /**
1628
1774
  * A wallet address.
1629
1775
  */
1630
1776
  address: string;
1777
+ /**
1778
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1779
+ */
1631
1780
  startBlock?: number;
1632
- endBlock?: number;
1633
1781
  /**
1634
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1782
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1635
1783
  */
1636
- pageSize?: number;
1784
+ endBlock?: number;
1637
1785
  /**
1638
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1639
1787
  */
1640
1788
  pageToken?: string;
1789
+ /**
1790
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1791
+ */
1792
+ pageSize?: number;
1641
1793
  }): CancelablePromise<ListErc721TransactionsResponse>;
1642
1794
  /**
1643
1795
  * List ERC-1155 transfers
@@ -1645,25 +1797,31 @@ declare class EvmTransactionsService {
1645
1797
  * @returns ListErc1155TransactionsResponse
1646
1798
  * @throws ApiError
1647
1799
  */
1648
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1800
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1649
1801
  /**
1650
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1802
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1651
1803
  */
1652
1804
  chainId: string;
1653
1805
  /**
1654
1806
  * A wallet address.
1655
1807
  */
1656
1808
  address: string;
1657
- startBlock?: number;
1658
- endBlock?: number;
1659
1809
  /**
1660
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1810
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1661
1811
  */
1662
- pageSize?: number;
1812
+ startBlock?: number;
1813
+ /**
1814
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1815
+ */
1816
+ endBlock?: number;
1663
1817
  /**
1664
1818
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1665
1819
  */
1666
1820
  pageToken?: string;
1821
+ /**
1822
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
+ */
1824
+ pageSize?: number;
1667
1825
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1668
1826
  /**
1669
1827
  * List internal transactions
@@ -1673,25 +1831,31 @@ declare class EvmTransactionsService {
1673
1831
  * @returns ListInternalTransactionsResponse
1674
1832
  * @throws ApiError
1675
1833
  */
1676
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1834
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1677
1835
  /**
1678
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1836
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1679
1837
  */
1680
1838
  chainId: string;
1681
1839
  /**
1682
1840
  * A wallet address.
1683
1841
  */
1684
1842
  address: string;
1843
+ /**
1844
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1845
+ */
1685
1846
  startBlock?: number;
1686
- endBlock?: number;
1687
1847
  /**
1688
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1848
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1689
1849
  */
1690
- pageSize?: number;
1850
+ endBlock?: number;
1691
1851
  /**
1692
1852
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1693
1853
  */
1694
1854
  pageToken?: string;
1855
+ /**
1856
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
+ */
1858
+ pageSize?: number;
1695
1859
  }): CancelablePromise<ListInternalTransactionsResponse>;
1696
1860
  /**
1697
1861
  * Get transaction
@@ -1701,7 +1865,7 @@ declare class EvmTransactionsService {
1701
1865
  */
1702
1866
  getTransaction({ chainId, txHash, }: {
1703
1867
  /**
1704
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1868
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1705
1869
  */
1706
1870
  chainId: string;
1707
1871
  /**
@@ -1717,7 +1881,7 @@ declare class EvmTransactionsService {
1717
1881
  */
1718
1882
  getTransactionsForBlock({ chainId, blockId, }: {
1719
1883
  /**
1720
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1884
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1721
1885
  */
1722
1886
  chainId: string;
1723
1887
  /**
@@ -1731,19 +1895,19 @@ declare class EvmTransactionsService {
1731
1895
  * @returns ListNativeTransactionsResponse
1732
1896
  * @throws ApiError
1733
1897
  */
1734
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1898
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1735
1899
  /**
1736
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1900
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1737
1901
  */
1738
1902
  chainId: string;
1739
- /**
1740
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1741
- */
1742
- pageSize?: number;
1743
1903
  /**
1744
1904
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1745
1905
  */
1746
1906
  pageToken?: string;
1907
+ /**
1908
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1909
+ */
1910
+ pageSize?: number;
1747
1911
  /**
1748
1912
  * A status filter for listed transactions.
1749
1913
  */
@@ -1767,6 +1931,14 @@ declare class HealthCheckService {
1767
1931
  }>;
1768
1932
  }
1769
1933
 
1934
+ type ListNftTokens = {
1935
+ /**
1936
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1937
+ */
1938
+ nextPageToken?: string;
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
1940
+ };
1941
+
1770
1942
  declare class NfTsService {
1771
1943
  readonly httpRequest: BaseHttpRequest;
1772
1944
  constructor(httpRequest: BaseHttpRequest);
@@ -1778,7 +1950,7 @@ declare class NfTsService {
1778
1950
  */
1779
1951
  reindexNft({ chainId, address, tokenId, }: {
1780
1952
  /**
1781
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1953
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1782
1954
  */
1783
1955
  chainId: string;
1784
1956
  /**
@@ -1790,6 +1962,30 @@ declare class NfTsService {
1790
1962
  */
1791
1963
  tokenId: string;
1792
1964
  }): CancelablePromise<any>;
1965
+ /**
1966
+ * List tokens
1967
+ * Lists tokens for an NFT contract.
1968
+ * @returns ListNftTokens
1969
+ * @throws ApiError
1970
+ */
1971
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1972
+ /**
1973
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1974
+ */
1975
+ chainId: string;
1976
+ /**
1977
+ * Contract address on the relevant chain.
1978
+ */
1979
+ address: string;
1980
+ /**
1981
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1982
+ */
1983
+ pageToken?: string;
1984
+ /**
1985
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1986
+ */
1987
+ pageSize?: number;
1988
+ }): CancelablePromise<ListNftTokens>;
1793
1989
  /**
1794
1990
  * Get token details
1795
1991
  * Gets token details for a specific token of an NFT contract.
@@ -1798,7 +1994,7 @@ declare class NfTsService {
1798
1994
  */
1799
1995
  getTokenDetails({ chainId, address, tokenId, }: {
1800
1996
  /**
1801
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1997
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1802
1998
  */
1803
1999
  chainId: string;
1804
2000
  /**
@@ -1817,8 +2013,12 @@ type EvmNetworkOptions = {
1817
2013
  includeChains: Array<string>;
1818
2014
  };
1819
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
1820
2020
  type CreateEvmTransactionExportRequest = {
1821
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
1822
2022
  firstDate: string;
1823
2023
  lastDate: string;
1824
2024
  /**
@@ -1831,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
1831
2031
  endDate: string;
1832
2032
  options: EvmNetworkOptions;
1833
2033
  };
1834
- declare namespace CreateEvmTransactionExportRequest {
1835
- enum type {
1836
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1837
- }
2034
+
2035
+ declare enum PrimaryNetworkOperationType {
2036
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
1838
2039
  }
1839
2040
 
1840
2041
  type PrimaryNetworkOptions = {
1841
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
1842
2043
  cChainEvmAddresses?: Array<string>;
1843
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
1844
2045
  };
1845
2046
 
1846
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
1847
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
1848
2049
  firstDate: string;
1849
2050
  lastDate: string;
1850
2051
  /**
@@ -1857,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1857
2058
  endDate: string;
1858
2059
  options: PrimaryNetworkOptions;
1859
2060
  };
1860
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1861
- enum type {
1862
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1863
- }
1864
- }
1865
2061
 
1866
2062
  declare enum OperationStatus {
1867
2063
  RUNNING = "RUNNING",
@@ -1871,8 +2067,10 @@ declare enum OperationStatus {
1871
2067
  }
1872
2068
 
1873
2069
  declare enum OperationType {
1874
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1875
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2070
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2073
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1876
2074
  }
1877
2075
 
1878
2076
  declare enum OperationStatusCode {
@@ -1906,17 +2104,6 @@ type OperationStatusResponse = {
1906
2104
  declare class OperationsService {
1907
2105
  readonly httpRequest: BaseHttpRequest;
1908
2106
  constructor(httpRequest: BaseHttpRequest);
1909
- /**
1910
- * Create transaction export operation
1911
- * Trigger a transaction export operation with given parameters.
1912
- *
1913
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
1914
- * @returns OperationStatusResponse
1915
- * @throws ApiError
1916
- */
1917
- postTransactionExportJob({ requestBody, }: {
1918
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1919
- }): CancelablePromise<OperationStatusResponse>;
1920
2107
  /**
1921
2108
  * Get operation
1922
2109
  * Gets operation details for the given operation id.
@@ -1929,6 +2116,17 @@ declare class OperationsService {
1929
2116
  */
1930
2117
  operationId: string;
1931
2118
  }): CancelablePromise<OperationStatusResponse>;
2119
+ /**
2120
+ * Create transaction export operation
2121
+ * Trigger a transaction export operation with given parameters.
2122
+ *
2123
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2124
+ * @returns OperationStatusResponse
2125
+ * @throws ApiError
2126
+ */
2127
+ postTransactionExportJob({ requestBody, }: {
2128
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2129
+ }): CancelablePromise<OperationStatusResponse>;
1932
2130
  }
1933
2131
 
1934
2132
  declare enum BlockchainIds {
@@ -1997,6 +2195,7 @@ type ListBlockchainsResponse = {
1997
2195
 
1998
2196
  type ActiveDelegatorDetails = {
1999
2197
  txHash: string;
2198
+ nodeId: string;
2000
2199
  rewardAddresses: Array<string>;
2001
2200
  amountDelegated: string;
2002
2201
  delegationFee: string;
@@ -2014,6 +2213,7 @@ declare namespace ActiveDelegatorDetails {
2014
2213
 
2015
2214
  type CompletedDelegatorDetails = {
2016
2215
  txHash: string;
2216
+ nodeId: string;
2017
2217
  rewardAddresses: Array<string>;
2018
2218
  amountDelegated: string;
2019
2219
  delegationFee: string;
@@ -2031,6 +2231,7 @@ declare namespace CompletedDelegatorDetails {
2031
2231
 
2032
2232
  type PendingDelegatorDetails = {
2033
2233
  txHash: string;
2234
+ nodeId: string;
2034
2235
  rewardAddresses: Array<string>;
2035
2236
  amountDelegated: string;
2036
2237
  delegationFee: string;
@@ -2061,13 +2262,44 @@ type BlockchainInfo = {
2061
2262
  blockchainId: string;
2062
2263
  };
2063
2264
 
2265
+ type SubnetOwnershipInfo = {
2266
+ /**
2267
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2268
+ */
2269
+ locktime: number;
2270
+ /**
2271
+ * Minimum number of signatures required to sign the Subnet update transactions.
2272
+ */
2273
+ threshold: number;
2274
+ /**
2275
+ * Addresses that are eligible to sign the Subnet update transactions.
2276
+ */
2277
+ addresses: Array<string>;
2278
+ };
2279
+
2064
2280
  type Subnet = {
2065
2281
  createBlockTimestamp: number;
2066
2282
  createBlockIndex: string;
2067
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2068
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2069
2293
  threshold: number;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2070
2298
  locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2071
2303
  blockchains: Array<BlockchainInfo>;
2072
2304
  };
2073
2305
 
@@ -2079,25 +2311,58 @@ type ListSubnetsResponse = {
2079
2311
  subnets: Array<Subnet>;
2080
2312
  };
2081
2313
 
2314
+ type BlsCredentials = {
2315
+ publicKey: string;
2316
+ proofOfPossession: string;
2317
+ };
2318
+
2082
2319
  type Rewards = {
2083
2320
  validationRewardAmount: string;
2084
2321
  delegationRewardAmount: string;
2322
+ rewardAddresses?: Array<string>;
2323
+ rewardTxHash?: string;
2324
+ };
2325
+
2326
+ type ValidatorHealthDetails = {
2327
+ /**
2328
+ * Percent of requests responded to in last polling.
2329
+ */
2330
+ reachabilityPercent: number;
2331
+ /**
2332
+ * Percent of requests benched on the P-Chain in last polling.
2333
+ */
2334
+ benchedPChainRequestsPercent: number;
2335
+ /**
2336
+ * Percentage of requests benched on the X-Chain in last polling.
2337
+ */
2338
+ benchedXChainRequestsPercent: number;
2339
+ /**
2340
+ * Percentage of requests benched on the C-Chain in last polling.
2341
+ */
2342
+ benchedCChainRequestsPercent: number;
2085
2343
  };
2086
2344
 
2087
2345
  type ActiveValidatorDetails = {
2346
+ txHash: string;
2088
2347
  nodeId: string;
2348
+ subnetId: string;
2089
2349
  amountStaked: string;
2090
- delegationFee: string;
2350
+ delegationFee?: string;
2091
2351
  startTimestamp: number;
2092
2352
  endTimestamp: number;
2353
+ /**
2354
+ * Present for AddPermissionlessValidatorTx
2355
+ */
2356
+ blsCredentials?: BlsCredentials;
2093
2357
  stakePercentage: number;
2094
2358
  delegatorCount: number;
2095
- amountDelegated: string;
2359
+ amountDelegated?: string;
2096
2360
  uptimePerformance: number;
2097
- avalancheGoVersion: string;
2098
- delegationCapacity: string;
2361
+ avalancheGoVersion?: string;
2362
+ delegationCapacity?: string;
2099
2363
  potentialRewards: Rewards;
2100
2364
  validationStatus: ActiveValidatorDetails.validationStatus;
2365
+ validatorHealth: ValidatorHealthDetails;
2101
2366
  };
2102
2367
  declare namespace ActiveValidatorDetails {
2103
2368
  enum validationStatus {
@@ -2106,11 +2371,17 @@ declare namespace ActiveValidatorDetails {
2106
2371
  }
2107
2372
 
2108
2373
  type CompletedValidatorDetails = {
2374
+ txHash: string;
2109
2375
  nodeId: string;
2376
+ subnetId: string;
2110
2377
  amountStaked: string;
2111
- delegationFee: string;
2378
+ delegationFee?: string;
2112
2379
  startTimestamp: number;
2113
2380
  endTimestamp: number;
2381
+ /**
2382
+ * Present for AddPermissionlessValidatorTx
2383
+ */
2384
+ blsCredentials?: BlsCredentials;
2114
2385
  delegatorCount: number;
2115
2386
  rewards: Rewards;
2116
2387
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -2122,11 +2393,17 @@ declare namespace CompletedValidatorDetails {
2122
2393
  }
2123
2394
 
2124
2395
  type PendingValidatorDetails = {
2396
+ txHash: string;
2125
2397
  nodeId: string;
2398
+ subnetId: string;
2126
2399
  amountStaked: string;
2127
- delegationFee: string;
2400
+ delegationFee?: string;
2128
2401
  startTimestamp: number;
2129
2402
  endTimestamp: number;
2403
+ /**
2404
+ * Present for AddPermissionlessValidatorTx
2405
+ */
2406
+ blsCredentials?: BlsCredentials;
2130
2407
  validationStatus: PendingValidatorDetails.validationStatus;
2131
2408
  };
2132
2409
  declare namespace PendingValidatorDetails {
@@ -2135,15 +2412,37 @@ declare namespace PendingValidatorDetails {
2135
2412
  }
2136
2413
  }
2137
2414
 
2415
+ type RemovedValidatorDetails = {
2416
+ txHash: string;
2417
+ nodeId: string;
2418
+ subnetId: string;
2419
+ amountStaked: string;
2420
+ delegationFee?: string;
2421
+ startTimestamp: number;
2422
+ endTimestamp: number;
2423
+ /**
2424
+ * Present for AddPermissionlessValidatorTx
2425
+ */
2426
+ blsCredentials?: BlsCredentials;
2427
+ removeTxHash: string;
2428
+ removeTimestamp: number;
2429
+ validationStatus: RemovedValidatorDetails.validationStatus;
2430
+ };
2431
+ declare namespace RemovedValidatorDetails {
2432
+ enum validationStatus {
2433
+ REMOVED = "removed"
2434
+ }
2435
+ }
2436
+
2138
2437
  type ListValidatorDetailsResponse = {
2139
2438
  /**
2140
2439
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2141
2440
  */
2142
2441
  nextPageToken?: string;
2143
2442
  /**
2144
- * The list of Validator Details.
2443
+ * The list of validator Details.
2145
2444
  */
2146
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2445
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2147
2446
  };
2148
2447
 
2149
2448
  declare enum Network {
@@ -2151,10 +2450,35 @@ declare enum Network {
2151
2450
  FUJI = "fuji"
2152
2451
  }
2153
2452
 
2453
+ declare enum SortByOption {
2454
+ BLOCK_INDEX = "blockIndex",
2455
+ DELEGATION_CAPACITY = "delegationCapacity",
2456
+ TIME_REMAINING = "timeRemaining",
2457
+ DELEGATION_FEE = "delegationFee",
2458
+ UPTIME_PERFORMANCE = "uptimePerformance"
2459
+ }
2460
+
2154
2461
  declare enum ValidationStatusType {
2155
2462
  COMPLETED = "completed",
2156
2463
  ACTIVE = "active",
2157
- PENDING = "pending"
2464
+ PENDING = "pending",
2465
+ REMOVED = "removed"
2466
+ }
2467
+
2468
+ /**
2469
+ * Cap represents if an asset is a variable or fixed cap asset.
2470
+ */
2471
+ declare enum PrimaryNetworkAssetCap {
2472
+ FIXED = "fixed",
2473
+ VARIABLE = "variable"
2474
+ }
2475
+
2476
+ /**
2477
+ * Type of asset like SECP256K1 or NFT.
2478
+ */
2479
+ declare enum PrimaryNetworkAssetType {
2480
+ SECP256K1 = "secp256k1",
2481
+ NFT = "nft"
2158
2482
  }
2159
2483
 
2160
2484
  type XChainAssetDetails = {
@@ -2174,18 +2498,12 @@ type XChainAssetDetails = {
2174
2498
  * Denomination of this asset to represent fungibility.
2175
2499
  */
2176
2500
  denomination: number;
2177
- /**
2178
- * Type of asset like SECP256K1 or NFT.
2179
- */
2180
- type: string;
2501
+ type: PrimaryNetworkAssetType;
2181
2502
  /**
2182
2503
  * Timestamp in seconds this asset was created on.
2183
2504
  */
2184
2505
  createdAtTimestamp: number;
2185
- /**
2186
- * Cap represents if an asset can be or is fixed cap.
2187
- */
2188
- cap: string;
2506
+ cap: PrimaryNetworkAssetCap;
2189
2507
  };
2190
2508
 
2191
2509
  declare enum XChainId {
@@ -2251,19 +2569,19 @@ declare class PrimaryNetworkService {
2251
2569
  * @returns ListBlockchainsResponse
2252
2570
  * @throws ApiError
2253
2571
  */
2254
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2572
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2255
2573
  /**
2256
2574
  * Either mainnet or a testnet.
2257
2575
  */
2258
2576
  network: Network;
2259
- /**
2260
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2261
- */
2262
- pageSize?: number;
2263
2577
  /**
2264
2578
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2265
2579
  */
2266
2580
  pageToken?: string;
2581
+ /**
2582
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2583
+ */
2584
+ pageSize?: number;
2267
2585
  /**
2268
2586
  * 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.
2269
2587
  */
@@ -2275,19 +2593,19 @@ declare class PrimaryNetworkService {
2275
2593
  * @returns ListSubnetsResponse
2276
2594
  * @throws ApiError
2277
2595
  */
2278
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2596
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2279
2597
  /**
2280
2598
  * Either mainnet or a testnet.
2281
2599
  */
2282
2600
  network: Network;
2283
- /**
2284
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2285
- */
2286
- pageSize?: number;
2287
2601
  /**
2288
2602
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2289
2603
  */
2290
2604
  pageToken?: string;
2605
+ /**
2606
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2607
+ */
2608
+ pageSize?: number;
2291
2609
  /**
2292
2610
  * 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.
2293
2611
  */
@@ -2299,23 +2617,29 @@ declare class PrimaryNetworkService {
2299
2617
  * @returns ListValidatorDetailsResponse
2300
2618
  * @throws ApiError
2301
2619
  */
2302
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2620
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2303
2621
  /**
2304
2622
  * Either mainnet or a testnet.
2305
2623
  */
2306
2624
  network: Network;
2307
- /**
2308
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2309
- */
2310
- pageSize?: number;
2311
2625
  /**
2312
2626
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2313
2627
  */
2314
2628
  pageToken?: string;
2629
+ /**
2630
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2631
+ */
2632
+ pageSize?: number;
2315
2633
  /**
2316
2634
  * A comma separated list of node ids to filter by.
2317
2635
  */
2318
2636
  nodeIds?: string;
2637
+ /**
2638
+ * Which property to sort by, in conjunction with sortOrder.
2639
+ *
2640
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2641
+ */
2642
+ sortBy?: SortByOption;
2319
2643
  /**
2320
2644
  * 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.
2321
2645
  */
@@ -2325,9 +2649,41 @@ declare class PrimaryNetworkService {
2325
2649
  */
2326
2650
  validationStatus?: ValidationStatusType;
2327
2651
  /**
2328
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2652
+ * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2653
+ */
2654
+ minDelegationCapacity?: string;
2655
+ /**
2656
+ * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2657
+ */
2658
+ maxDelegationCapacity?: string;
2659
+ /**
2660
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2661
+ */
2662
+ minTimeRemaining?: number;
2663
+ /**
2664
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2329
2665
  */
2330
- minDelegationCapacity?: any;
2666
+ maxTimeRemaining?: number;
2667
+ /**
2668
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2669
+ */
2670
+ minFeePercentage?: number;
2671
+ /**
2672
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
2673
+ */
2674
+ maxFeePercentage?: number;
2675
+ /**
2676
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2677
+ */
2678
+ minUptimePerformance?: number;
2679
+ /**
2680
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2681
+ */
2682
+ maxUptimePerformance?: number;
2683
+ /**
2684
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2685
+ */
2686
+ subnetId?: any;
2331
2687
  }): CancelablePromise<ListValidatorDetailsResponse>;
2332
2688
  /**
2333
2689
  * Get single validator details
@@ -2335,7 +2691,7 @@ declare class PrimaryNetworkService {
2335
2691
  * @returns ListValidatorDetailsResponse
2336
2692
  * @throws ApiError
2337
2693
  */
2338
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2694
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2339
2695
  /**
2340
2696
  * Either mainnet or a testnet.
2341
2697
  */
@@ -2344,22 +2700,22 @@ declare class PrimaryNetworkService {
2344
2700
  * A primary network (P or X chain) nodeId.
2345
2701
  */
2346
2702
  nodeId: string;
2347
- /**
2348
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2349
- */
2350
- pageSize?: number;
2351
2703
  /**
2352
2704
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2353
2705
  */
2354
2706
  pageToken?: string;
2355
2707
  /**
2356
- * 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.
2708
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2357
2709
  */
2358
- sortOrder?: SortOrder;
2710
+ pageSize?: number;
2359
2711
  /**
2360
2712
  * Validation status of the node.
2361
2713
  */
2362
2714
  validationStatus?: ValidationStatusType;
2715
+ /**
2716
+ * 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.
2717
+ */
2718
+ sortOrder?: SortOrder;
2363
2719
  }): CancelablePromise<ListValidatorDetailsResponse>;
2364
2720
  /**
2365
2721
  * List delegators
@@ -2367,19 +2723,23 @@ declare class PrimaryNetworkService {
2367
2723
  * @returns ListDelegatorDetailsResponse
2368
2724
  * @throws ApiError
2369
2725
  */
2370
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2726
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2371
2727
  /**
2372
2728
  * Either mainnet or a testnet.
2373
2729
  */
2374
2730
  network: Network;
2731
+ /**
2732
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2733
+ */
2734
+ pageToken?: string;
2375
2735
  /**
2376
2736
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2377
2737
  */
2378
2738
  pageSize?: number;
2379
2739
  /**
2380
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2740
+ * A comma separated list of reward addresses to filter by.
2381
2741
  */
2382
- pageToken?: string;
2742
+ rewardAddresses?: string;
2383
2743
  /**
2384
2744
  * 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.
2385
2745
  */
@@ -2388,10 +2748,6 @@ declare class PrimaryNetworkService {
2388
2748
  * Delegation status of the node.
2389
2749
  */
2390
2750
  delegationStatus?: DelegationStatusType;
2391
- /**
2392
- * A comma separated list of reward addresses to filter by.
2393
- */
2394
- rewardAddresses?: string;
2395
2751
  /**
2396
2752
  * A comma separated list of node ids to filter by.
2397
2753
  */
@@ -2427,10 +2783,7 @@ type CChainSharedAssetBalance = {
2427
2783
  * Denomination of this asset to represent fungibility.
2428
2784
  */
2429
2785
  denomination: number;
2430
- /**
2431
- * Type of asset like SECP256K1 or NFT.
2432
- */
2433
- type: string;
2786
+ type: PrimaryNetworkAssetType;
2434
2787
  /**
2435
2788
  * Amount of the asset.
2436
2789
  */
@@ -2465,84 +2818,96 @@ type ListCChainAtomicBalancesResponse = {
2465
2818
  chainInfo: PrimaryNetworkChainInfo;
2466
2819
  };
2467
2820
 
2468
- type PChainAsset = {
2469
- assetId: string;
2470
- amount: string;
2471
- };
2472
-
2473
- type PChainSharedAsset = {
2474
- assetId: string;
2475
- amount: string;
2476
- sharedWithChainId: string;
2477
- status: string;
2478
- };
2479
-
2480
- type PChainBalance = {
2821
+ type AggregatedAssetAmount = {
2481
2822
  /**
2482
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2823
+ * Unique ID for an asset.
2483
2824
  */
2484
- unlockedUnstaked: Array<PChainAsset>;
2825
+ assetId: string;
2485
2826
  /**
2486
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2827
+ * Name of this asset.
2487
2828
  */
2488
- unlockedStaked: Array<PChainAsset>;
2829
+ name: string;
2489
2830
  /**
2490
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2831
+ * Symbol for this asset (max 4 characters).
2491
2832
  */
2492
- lockedPlatform: Array<PChainAsset>;
2833
+ symbol: string;
2493
2834
  /**
2494
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2835
+ * Denomination of this asset to represent fungibility.
2495
2836
  */
2496
- lockedStakeable: Array<PChainAsset>;
2837
+ denomination: number;
2838
+ type: PrimaryNetworkAssetType;
2497
2839
  /**
2498
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2840
+ * Amount of the asset.
2499
2841
  */
2500
- lockedStaked: Array<PChainAsset>;
2842
+ amount: string;
2843
+ utxoCount: number;
2844
+ };
2845
+
2846
+ type PChainSharedAsset = {
2501
2847
  /**
2502
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2848
+ * Unique ID for an asset.
2503
2849
  */
2504
- pendingStaked: Array<PChainAsset>;
2850
+ assetId: string;
2505
2851
  /**
2506
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2852
+ * Name of this asset.
2507
2853
  */
2508
- atomicMemoryUnlocked: Array<PChainSharedAsset>;
2854
+ name: string;
2509
2855
  /**
2510
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2856
+ * Symbol for this asset (max 4 characters).
2511
2857
  */
2512
- atomicMemoryLocked: Array<PChainSharedAsset>;
2513
- };
2514
-
2515
- type ListPChainBalancesResponse = {
2516
- balances: PChainBalance;
2517
- chainInfo: PrimaryNetworkChainInfo;
2858
+ symbol: string;
2859
+ /**
2860
+ * Denomination of this asset to represent fungibility.
2861
+ */
2862
+ denomination: number;
2863
+ type: PrimaryNetworkAssetType;
2864
+ /**
2865
+ * Amount of the asset.
2866
+ */
2867
+ amount: string;
2868
+ utxoCount: number;
2869
+ sharedWithChainId: string;
2870
+ status: string;
2518
2871
  };
2519
2872
 
2520
- type XChainAssetBalance = {
2873
+ type PChainBalance = {
2521
2874
  /**
2522
- * Unique ID for an asset.
2875
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2523
2876
  */
2524
- assetId: string;
2877
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2525
2878
  /**
2526
- * Name of this asset.
2879
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2527
2880
  */
2528
- name: string;
2881
+ unlockedStaked: Array<AggregatedAssetAmount>;
2529
2882
  /**
2530
- * Symbol for this asset (max 4 characters).
2883
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2531
2884
  */
2532
- symbol: string;
2885
+ lockedPlatform: Array<AggregatedAssetAmount>;
2533
2886
  /**
2534
- * Denomination of this asset to represent fungibility.
2887
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2535
2888
  */
2536
- denomination: number;
2889
+ lockedStakeable: Array<AggregatedAssetAmount>;
2537
2890
  /**
2538
- * Type of asset like SECP256K1 or NFT.
2891
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2539
2892
  */
2540
- type: string;
2893
+ lockedStaked: Array<AggregatedAssetAmount>;
2541
2894
  /**
2542
- * Amount of the asset.
2895
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2543
2896
  */
2544
- amount: string;
2545
- utxoCount: number;
2897
+ pendingStaked: Array<AggregatedAssetAmount>;
2898
+ /**
2899
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2900
+ */
2901
+ atomicMemoryUnlocked: Array<PChainSharedAsset>;
2902
+ /**
2903
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2904
+ */
2905
+ atomicMemoryLocked: Array<PChainSharedAsset>;
2906
+ };
2907
+
2908
+ type ListPChainBalancesResponse = {
2909
+ balances: PChainBalance;
2910
+ chainInfo: PrimaryNetworkChainInfo;
2546
2911
  };
2547
2912
 
2548
2913
  type XChainSharedAssetBalance = {
@@ -2562,10 +2927,7 @@ type XChainSharedAssetBalance = {
2562
2927
  * Denomination of this asset to represent fungibility.
2563
2928
  */
2564
2929
  denomination: number;
2565
- /**
2566
- * Type of asset like SECP256K1 or NFT.
2567
- */
2568
- type: string;
2930
+ type: PrimaryNetworkAssetType;
2569
2931
  /**
2570
2932
  * Amount of the asset.
2571
2933
  */
@@ -2578,11 +2940,11 @@ type XChainBalances = {
2578
2940
  /**
2579
2941
  * A list of objects containing X-chain Asset balance information.
2580
2942
  */
2581
- locked: Array<XChainAssetBalance>;
2943
+ locked: Array<AggregatedAssetAmount>;
2582
2944
  /**
2583
2945
  * A list of objects containing X-chain Asset balance information.
2584
2946
  */
2585
- unlocked: Array<XChainAssetBalance>;
2947
+ unlocked: Array<AggregatedAssetAmount>;
2586
2948
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2587
2949
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2588
2950
  };
@@ -2640,6 +3002,7 @@ type GetPrimaryNetworkBlockResponse = {
2640
3002
  txCount: number;
2641
3003
  transactions: Array<string>;
2642
3004
  blockSizeBytes: number;
3005
+ currentSupply?: string;
2643
3006
  proposerDetails?: ProposerDetails;
2644
3007
  };
2645
3008
 
@@ -2652,6 +3015,7 @@ type PrimaryNetworkBlock = {
2652
3015
  txCount: number;
2653
3016
  transactions: Array<string>;
2654
3017
  blockSizeBytes: number;
3018
+ currentSupply?: string;
2655
3019
  proposerDetails?: ProposerDetails;
2656
3020
  };
2657
3021
 
@@ -2693,7 +3057,7 @@ declare class PrimaryNetworkBlocksService {
2693
3057
  * @returns ListPrimaryNetworkBlocksResponse
2694
3058
  * @throws ApiError
2695
3059
  */
2696
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3060
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2697
3061
  /**
2698
3062
  * A primary network blockchain id or alias.
2699
3063
  */
@@ -2706,14 +3070,14 @@ declare class PrimaryNetworkBlocksService {
2706
3070
  * A primary network (P or X chain) nodeId.
2707
3071
  */
2708
3072
  nodeId: string;
2709
- /**
2710
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2711
- */
2712
- pageSize?: number;
2713
3073
  /**
2714
3074
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2715
3075
  */
2716
3076
  pageToken?: string;
3077
+ /**
3078
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3079
+ */
3080
+ pageSize?: number;
2717
3081
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2718
3082
  /**
2719
3083
  * List latest blocks
@@ -2721,7 +3085,7 @@ declare class PrimaryNetworkBlocksService {
2721
3085
  * @returns ListPrimaryNetworkBlocksResponse
2722
3086
  * @throws ApiError
2723
3087
  */
2724
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3088
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2725
3089
  /**
2726
3090
  * A primary network blockchain id or alias.
2727
3091
  */
@@ -2730,20 +3094,49 @@ declare class PrimaryNetworkBlocksService {
2730
3094
  * Either mainnet or a testnet.
2731
3095
  */
2732
3096
  network: Network;
2733
- /**
2734
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2735
- */
2736
- pageSize?: number;
2737
3097
  /**
2738
3098
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2739
3099
  */
2740
3100
  pageToken?: string;
3101
+ /**
3102
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3103
+ */
3104
+ pageSize?: number;
2741
3105
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2742
3106
  }
2743
3107
 
3108
+ type AssetWithPriceInfo = {
3109
+ /**
3110
+ * Unique ID for an asset.
3111
+ */
3112
+ assetId: string;
3113
+ /**
3114
+ * Name of this asset.
3115
+ */
3116
+ name: string;
3117
+ /**
3118
+ * Symbol for this asset (max 4 characters).
3119
+ */
3120
+ symbol: string;
3121
+ /**
3122
+ * Denomination of this asset to represent fungibility.
3123
+ */
3124
+ denomination: number;
3125
+ type: PrimaryNetworkAssetType;
3126
+ /**
3127
+ * Amount of the asset.
3128
+ */
3129
+ amount: string;
3130
+ /**
3131
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3132
+ */
3133
+ historicalPrice?: Money;
3134
+ };
3135
+
2744
3136
  declare enum RewardType {
2745
3137
  VALIDATOR = "VALIDATOR",
2746
- DELEGATOR = "DELEGATOR"
3138
+ DELEGATOR = "DELEGATOR",
3139
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2747
3140
  }
2748
3141
 
2749
3142
  type HistoricalReward = {
@@ -2759,10 +3152,7 @@ type HistoricalReward = {
2759
3152
  rewardType: RewardType;
2760
3153
  utxoId: string;
2761
3154
  outputIndex: number;
2762
- /**
2763
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2764
- */
2765
- reward: PChainAsset;
3155
+ reward: AssetWithPriceInfo;
2766
3156
  rewardTxHash: string;
2767
3157
  };
2768
3158
 
@@ -2774,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
2774
3164
  historicalRewards: Array<HistoricalReward>;
2775
3165
  };
2776
3166
 
3167
+ type AssetAmount = {
3168
+ /**
3169
+ * Unique ID for an asset.
3170
+ */
3171
+ assetId: string;
3172
+ /**
3173
+ * Name of this asset.
3174
+ */
3175
+ name: string;
3176
+ /**
3177
+ * Symbol for this asset (max 4 characters).
3178
+ */
3179
+ symbol: string;
3180
+ /**
3181
+ * Denomination of this asset to represent fungibility.
3182
+ */
3183
+ denomination: number;
3184
+ type: PrimaryNetworkAssetType;
3185
+ /**
3186
+ * Amount of the asset.
3187
+ */
3188
+ amount: string;
3189
+ };
3190
+
2777
3191
  type PendingReward = {
2778
3192
  /**
2779
3193
  * An array of P-Chain wallet addresses.
@@ -2787,9 +3201,9 @@ type PendingReward = {
2787
3201
  rewardType: RewardType;
2788
3202
  progress: number;
2789
3203
  /**
2790
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3204
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
2791
3205
  */
2792
- estimatedReward: PChainAsset;
3206
+ estimatedReward: AssetAmount;
2793
3207
  };
2794
3208
 
2795
3209
  type ListPendingRewardsResponse = {
@@ -2809,23 +3223,27 @@ declare class PrimaryNetworkRewardsService {
2809
3223
  * @returns ListPendingRewardsResponse
2810
3224
  * @throws ApiError
2811
3225
  */
2812
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3226
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2813
3227
  /**
2814
3228
  * Either mainnet or a testnet.
2815
3229
  */
2816
3230
  network: Network;
2817
3231
  /**
2818
- * 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".
3232
+ * 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". One of addresses or nodeIds is required.
2819
3233
  */
2820
3234
  addresses?: string;
3235
+ /**
3236
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3237
+ */
3238
+ pageToken?: string;
2821
3239
  /**
2822
3240
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2823
3241
  */
2824
3242
  pageSize?: number;
2825
3243
  /**
2826
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3244
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
2827
3245
  */
2828
- pageToken?: string;
3246
+ nodeIds?: string;
2829
3247
  /**
2830
3248
  * 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.
2831
3249
  */
@@ -2837,64 +3255,45 @@ declare class PrimaryNetworkRewardsService {
2837
3255
  * @returns ListHistoricalRewardsResponse
2838
3256
  * @throws ApiError
2839
3257
  */
2840
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3258
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2841
3259
  /**
2842
3260
  * Either mainnet or a testnet.
2843
3261
  */
2844
3262
  network: Network;
2845
3263
  /**
2846
- * 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".
3264
+ * 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". Optional, but at least one of addresses or nodeIds is required.
2847
3265
  */
2848
3266
  addresses?: string;
3267
+ /**
3268
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3269
+ */
3270
+ pageToken?: string;
2849
3271
  /**
2850
3272
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2851
3273
  */
2852
3274
  pageSize?: number;
2853
3275
  /**
2854
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3276
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2855
3277
  */
2856
- pageToken?: string;
3278
+ nodeIds?: string;
2857
3279
  /**
2858
3280
  * 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.
2859
3281
  */
2860
3282
  sortOrder?: SortOrder;
3283
+ /**
3284
+ * The currency that return values should use. Defaults to USD.
3285
+ */
3286
+ currency?: CurrencyCode;
2861
3287
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2862
3288
  }
2863
3289
 
2864
- type Asset = {
2865
- /**
2866
- * Unique ID for an asset.
2867
- */
2868
- assetId: string;
2869
- /**
2870
- * Name of this asset.
2871
- */
2872
- name: string;
2873
- /**
2874
- * Symbol for this asset (max 4 characters).
2875
- */
2876
- symbol: string;
2877
- /**
2878
- * Denomination of this asset to represent fungibility.
2879
- */
2880
- denomination: number;
2881
- /**
2882
- * Type of asset like SECP256K1 or NFT.
2883
- */
2884
- type: string;
2885
- /**
2886
- * Amount of the asset.
2887
- */
2888
- amount: string;
2889
- };
2890
-
2891
3290
  type UtxoCredential = {
2892
3291
  /**
2893
- * Signature provided to consume the output
3292
+ * Signature provided to consume the output.
2894
3293
  */
2895
3294
  signature?: string;
2896
3295
  /**
2897
- * Public key associated with the signature
3296
+ * Public key associated with the signature.
2898
3297
  */
2899
3298
  publicKey?: string;
2900
3299
  };
@@ -2905,9 +3304,9 @@ type EVMInput = {
2905
3304
  */
2906
3305
  fromAddress: string;
2907
3306
  /**
2908
- * Asset details for the asset being transferred.
3307
+ * AssetAmount details for the asset being transferred.
2909
3308
  */
2910
- asset: Asset;
3309
+ asset: AssetAmount;
2911
3310
  /**
2912
3311
  * Credentials that signed this transaction.
2913
3312
  */
@@ -2916,66 +3315,66 @@ type EVMInput = {
2916
3315
 
2917
3316
  type Utxo = {
2918
3317
  /**
2919
- * UTXO ID for this output.
3318
+ * Addresses that are eligible to sign the consumption of this output.
2920
3319
  */
2921
- utxoId: string;
2922
- asset: Asset;
3320
+ addresses: Array<string>;
3321
+ asset: AssetAmount;
2923
3322
  /**
2924
- * Type of output.
3323
+ * Blockchain ID on which this output is consumed on.
2925
3324
  */
2926
- utxoType: string;
3325
+ consumedOnChainId: string;
2927
3326
  /**
2928
- * Blockchain ID on which this output is created on.
3327
+ * Transaction ID that consumed this output.
2929
3328
  */
2930
- createdOnChainId: string;
3329
+ consumingTxHash?: string;
2931
3330
  /**
2932
- * Blockchain ID on which this output is consumed on.
3331
+ * Blockchain ID on which this output is created on.
2933
3332
  */
2934
- consumedOnChainId: string;
3333
+ createdOnChainId: string;
2935
3334
  /**
2936
- * Transaction ID that created this output.
3335
+ * UTXO ID for this output.
2937
3336
  */
2938
- creationTxHash: string;
3337
+ utxoId: string;
2939
3338
  /**
2940
- * Transaction ID that consumed this output.
3339
+ * Unix timestamp in seconds at which this output was consumed.
2941
3340
  */
2942
- consumingTxHash?: string;
3341
+ consumingTxTimestamp?: number;
2943
3342
  /**
2944
- * Timestamp in seconds this output is consumed.
3343
+ * Transaction ID that created this output.
2945
3344
  */
2946
- consumingTxTimestamp?: number;
3345
+ creationTxHash: string;
2947
3346
  /**
2948
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3347
+ * Credentials that signed the transaction to consume this utxo
2949
3348
  */
2950
- outputIndex: string;
3349
+ credentials?: Array<UtxoCredential>;
2951
3350
  /**
2952
- * Timestamp in seconds this outptut is created on.
3351
+ * Index representing the minting set for the NFT mint output.
2953
3352
  */
2954
- timestamp: number;
3353
+ groupId?: number;
2955
3354
  /**
2956
3355
  * Locktime in seconds after which this output can be consumed.
2957
3356
  */
2958
3357
  locktime: number;
2959
3358
  /**
2960
- * Minimum number of signatures required to consume this output.
3359
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2961
3360
  */
2962
- threshold: number;
3361
+ outputIndex: string;
2963
3362
  /**
2964
- * Addresses that are eligible to sign the consumption of this output.
3363
+ * Hex encoded data for NFT assets.
2965
3364
  */
2966
- addresses: Array<string>;
3365
+ payload?: string;
2967
3366
  /**
2968
- * Hex encoded data for NFT assets
3367
+ * Minimum number of signatures required to consume this output.
2969
3368
  */
2970
- payload?: string;
3369
+ threshold: number;
2971
3370
  /**
2972
- * Index representing the minting set for the NFT mint output
3371
+ * Unix timestamp in seconds at which this outptut was created.
2973
3372
  */
2974
- groupId?: number;
3373
+ timestamp: number;
2975
3374
  /**
2976
- * Credentials that signed the transaction to consume this utxo
3375
+ * Type of output.
2977
3376
  */
2978
- credentials?: Array<UtxoCredential>;
3377
+ utxoType: string;
2979
3378
  };
2980
3379
 
2981
3380
  type CChainExportTransaction = {
@@ -3002,11 +3401,11 @@ type CChainExportTransaction = {
3002
3401
  /**
3003
3402
  * Assets unlocked by inputs of this transaction.
3004
3403
  */
3005
- amountUnlocked: Array<Asset>;
3404
+ amountUnlocked: Array<AssetAmount>;
3006
3405
  /**
3007
3406
  * Assets created by outputs of this transaction.
3008
3407
  */
3009
- amountCreated: Array<Asset>;
3408
+ amountCreated: Array<AssetAmount>;
3010
3409
  /**
3011
3410
  * Source chain for an atomic transaction.
3012
3411
  */
@@ -3037,9 +3436,9 @@ type EVMOutput = {
3037
3436
  */
3038
3437
  toAddress: string;
3039
3438
  /**
3040
- * Asset details for the asset being transferred.
3439
+ * AssetAmount details for the asset being transferred.
3041
3440
  */
3042
- asset: Asset;
3441
+ asset: AssetAmount;
3043
3442
  };
3044
3443
 
3045
3444
  type CChainImportTransaction = {
@@ -3066,11 +3465,11 @@ type CChainImportTransaction = {
3066
3465
  /**
3067
3466
  * Assets unlocked by inputs of this transaction.
3068
3467
  */
3069
- amountUnlocked: Array<Asset>;
3468
+ amountUnlocked: Array<AssetAmount>;
3070
3469
  /**
3071
3470
  * Assets created by outputs of this transaction.
3072
3471
  */
3073
- amountCreated: Array<Asset>;
3472
+ amountCreated: Array<AssetAmount>;
3074
3473
  /**
3075
3474
  * Source chain for an atomic transaction.
3076
3475
  */
@@ -3106,16 +3505,20 @@ type ListCChainAtomicTransactionsResponse = {
3106
3505
 
3107
3506
  declare enum PChainTransactionType {
3108
3507
  ADD_VALIDATOR_TX = "AddValidatorTx",
3109
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3110
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3111
3508
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3112
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3113
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3509
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3114
3510
  CREATE_CHAIN_TX = "CreateChainTx",
3115
3511
  CREATE_SUBNET_TX = "CreateSubnetTx",
3116
3512
  IMPORT_TX = "ImportTx",
3117
3513
  EXPORT_TX = "ExportTx",
3118
3514
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3515
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3516
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3517
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3518
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3519
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3520
+ BASE_TX = "BaseTx",
3521
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3119
3522
  UNKNOWN = "UNKNOWN"
3120
3523
  }
3121
3524
 
@@ -3126,65 +3529,84 @@ declare enum UtxoType {
3126
3529
 
3127
3530
  type PChainUtxo = {
3128
3531
  /**
3129
- * An array of P-Chain wallet addresses.
3532
+ * Addresses that are eligible to sign the consumption of this output.
3130
3533
  */
3131
3534
  addresses: Array<string>;
3132
- utxoId: string;
3133
- txHash: string;
3134
- outputIndex: number;
3135
- blockNumber: string;
3136
- blockTimestamp: number;
3137
- consumingTxHash?: string;
3138
- consumingBlockTimestamp?: number;
3139
- consumingBlockNumber?: string;
3140
- assetId: string;
3141
- utxoType: UtxoType;
3142
- amount: string;
3143
- stakeableLocktime?: number;
3144
- platformLocktime?: number;
3145
- threshold?: number;
3146
- createdOnChainId: string;
3147
- consumedOnChainId: string;
3148
- staked?: boolean;
3149
- utxoStartTimestamp?: number;
3150
- utxoEndTimestamp?: number;
3151
- rewardType?: RewardType;
3152
- };
3153
-
3154
- type PChainTransaction = {
3535
+ asset: AssetAmount;
3155
3536
  /**
3156
- * A P-Chain transaction hash.
3537
+ * Blockchain ID on which this output is consumed on.
3157
3538
  */
3158
- txHash: string;
3159
- txType: PChainTransactionType;
3539
+ consumedOnChainId: string;
3160
3540
  /**
3161
- * The block finality timestamp.
3541
+ * Transaction ID that consumed this output.
3162
3542
  */
3163
- blockTimestamp: number;
3164
- blockNumber: string;
3165
- blockHash: string;
3166
- consumedUtxos: Array<PChainUtxo>;
3167
- emittedUtxos: Array<PChainUtxo>;
3543
+ consumingTxHash?: string;
3168
3544
  /**
3169
- * Source chain for an atomic transaction.
3545
+ * Blockchain ID on which this output is created on.
3170
3546
  */
3171
- sourceChain?: string;
3547
+ createdOnChainId: string;
3172
3548
  /**
3173
- * Destination chain for an atomic transaction.
3549
+ * UTXO ID for this output.
3550
+ */
3551
+ utxoId: string;
3552
+ /**
3553
+ * @deprecated
3554
+ */
3555
+ amount: string;
3556
+ /**
3557
+ * @deprecated
3558
+ */
3559
+ assetId: string;
3560
+ blockNumber: string;
3561
+ blockTimestamp: number;
3562
+ consumingBlockNumber?: string;
3563
+ consumingBlockTimestamp?: number;
3564
+ platformLocktime?: number;
3565
+ outputIndex: number;
3566
+ rewardType?: RewardType;
3567
+ stakeableLocktime?: number;
3568
+ staked?: boolean;
3569
+ threshold?: number;
3570
+ txHash: string;
3571
+ utxoEndTimestamp?: number;
3572
+ utxoStartTimestamp?: number;
3573
+ utxoType: UtxoType;
3574
+ };
3575
+
3576
+ type PChainTransaction = {
3577
+ /**
3578
+ * A P-Chain transaction hash.
3579
+ */
3580
+ txHash: string;
3581
+ txType: PChainTransactionType;
3582
+ /**
3583
+ * The block finality timestamp.
3584
+ */
3585
+ blockTimestamp: number;
3586
+ blockNumber: string;
3587
+ blockHash: string;
3588
+ consumedUtxos: Array<PChainUtxo>;
3589
+ emittedUtxos: Array<PChainUtxo>;
3590
+ /**
3591
+ * Source chain for an atomic transaction.
3592
+ */
3593
+ sourceChain?: string;
3594
+ /**
3595
+ * Destination chain for an atomic transaction.
3174
3596
  */
3175
3597
  destinationChain?: string;
3176
3598
  /**
3177
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3599
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3178
3600
  */
3179
- value: Array<PChainAsset>;
3601
+ value: Array<AssetAmount>;
3180
3602
  /**
3181
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3603
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3182
3604
  */
3183
- amountBurned: Array<PChainAsset>;
3605
+ amountBurned: Array<AssetAmount>;
3184
3606
  /**
3185
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3607
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3186
3608
  */
3187
- amountStaked: Array<PChainAsset>;
3609
+ amountStaked: Array<AssetAmount>;
3188
3610
  /**
3189
3611
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3190
3612
  */
@@ -3210,11 +3632,20 @@ type PChainTransaction = {
3210
3632
  */
3211
3633
  estimatedReward?: string;
3212
3634
  rewardTxHash?: string;
3635
+ rewardAddresses?: Array<string>;
3213
3636
  memo?: string;
3214
3637
  /**
3215
3638
  * Present for RewardValidatorTx
3216
3639
  */
3217
3640
  stakingTxHash?: string;
3641
+ /**
3642
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3643
+ */
3644
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3645
+ /**
3646
+ * Present for AddPermissionlessValidatorTx
3647
+ */
3648
+ blsCredentials?: BlsCredentials;
3218
3649
  };
3219
3650
 
3220
3651
  type ListPChainTransactionsResponse = {
@@ -3226,6 +3657,18 @@ type ListPChainTransactionsResponse = {
3226
3657
  chainInfo: PrimaryNetworkChainInfo;
3227
3658
  };
3228
3659
 
3660
+ /**
3661
+ * Type of transaction.
3662
+ */
3663
+ declare enum XChainTransactionType {
3664
+ BASE_TX = "BaseTx",
3665
+ CREATE_ASSET_TX = "CreateAssetTx",
3666
+ OPERATION_TX = "OperationTx",
3667
+ IMPORT_TX = "ImportTx",
3668
+ EXPORT_TX = "ExportTx",
3669
+ UNKNOWN = "UNKNOWN"
3670
+ }
3671
+
3229
3672
  type XChainLinearTransaction = {
3230
3673
  /**
3231
3674
  * Unique ID for this transaction.
@@ -3239,10 +3682,7 @@ type XChainLinearTransaction = {
3239
3682
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3240
3683
  */
3241
3684
  timestamp: number;
3242
- /**
3243
- * Type of transaction.
3244
- */
3245
- txType: string;
3685
+ txType: XChainTransactionType;
3246
3686
  /**
3247
3687
  * Hex encoded memo bytes for this transaction.
3248
3688
  */
@@ -3252,11 +3692,11 @@ type XChainLinearTransaction = {
3252
3692
  /**
3253
3693
  * Assets unlocked by inputs of this transaction.
3254
3694
  */
3255
- amountUnlocked: Array<Asset>;
3695
+ amountUnlocked: Array<AssetAmount>;
3256
3696
  /**
3257
3697
  * Assets created by outputs of this transaction.
3258
3698
  */
3259
- amountCreated: Array<Asset>;
3699
+ amountCreated: Array<AssetAmount>;
3260
3700
  /**
3261
3701
  * Source chain for an atomic transaction.
3262
3702
  */
@@ -3266,7 +3706,7 @@ type XChainLinearTransaction = {
3266
3706
  */
3267
3707
  destinationChain?: string;
3268
3708
  /**
3269
- * Asset details of the asset created in CreateAssetTx
3709
+ * AssetAmount details of the asset created in CreateAssetTx
3270
3710
  */
3271
3711
  assetCreated?: XChainAssetDetails;
3272
3712
  /**
@@ -3316,10 +3756,7 @@ type XChainNonLinearTransaction = {
3316
3756
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3317
3757
  */
3318
3758
  timestamp: number;
3319
- /**
3320
- * Type of transaction.
3321
- */
3322
- txType: string;
3759
+ txType: XChainTransactionType;
3323
3760
  /**
3324
3761
  * Hex encoded memo bytes for this transaction.
3325
3762
  */
@@ -3329,11 +3766,11 @@ type XChainNonLinearTransaction = {
3329
3766
  /**
3330
3767
  * Assets unlocked by inputs of this transaction.
3331
3768
  */
3332
- amountUnlocked: Array<Asset>;
3769
+ amountUnlocked: Array<AssetAmount>;
3333
3770
  /**
3334
3771
  * Assets created by outputs of this transaction.
3335
3772
  */
3336
- amountCreated: Array<Asset>;
3773
+ amountCreated: Array<AssetAmount>;
3337
3774
  /**
3338
3775
  * Source chain for an atomic transaction.
3339
3776
  */
@@ -3343,7 +3780,7 @@ type XChainNonLinearTransaction = {
3343
3780
  */
3344
3781
  destinationChain?: string;
3345
3782
  /**
3346
- * Asset details of the asset created in CreateAssetTx
3783
+ * AssetAmount details of the asset created in CreateAssetTx
3347
3784
  */
3348
3785
  assetCreated?: XChainAssetDetails;
3349
3786
  /**
@@ -3377,18 +3814,21 @@ declare enum PChainId {
3377
3814
 
3378
3815
  declare enum PrimaryNetworkTxType {
3379
3816
  ADD_VALIDATOR_TX = "AddValidatorTx",
3380
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3381
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3382
3817
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3383
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3384
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3818
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3385
3819
  CREATE_CHAIN_TX = "CreateChainTx",
3386
3820
  CREATE_SUBNET_TX = "CreateSubnetTx",
3387
3821
  IMPORT_TX = "ImportTx",
3388
3822
  EXPORT_TX = "ExportTx",
3389
3823
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3390
- UNKNOWN = "UNKNOWN",
3824
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3825
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3826
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3827
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3828
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3391
3829
  BASE_TX = "BaseTx",
3830
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3831
+ UNKNOWN = "UNKNOWN",
3392
3832
  CREATE_ASSET_TX = "CreateAssetTx",
3393
3833
  OPERATION_TX = "OperationTx"
3394
3834
  }
@@ -3420,13 +3860,13 @@ declare class PrimaryNetworkTransactionsService {
3420
3860
  * List latest transactions
3421
3861
  * Lists the latest transactions on one of the Primary Network chains.
3422
3862
  *
3423
- * Transactions are filterable by addresses.
3863
+ * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3424
3864
  *
3425
3865
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3426
3866
  * @returns any
3427
3867
  * @throws ApiError
3428
3868
  */
3429
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3869
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3430
3870
  /**
3431
3871
  * A primary network blockchain id or alias.
3432
3872
  */
@@ -3451,14 +3891,14 @@ declare class PrimaryNetworkTransactionsService {
3451
3891
  * Query param for retrieving items before a specific timestamp.
3452
3892
  */
3453
3893
  endTimestamp?: number;
3454
- /**
3455
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3456
- */
3457
- pageSize?: number;
3458
3894
  /**
3459
3895
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3460
3896
  */
3461
3897
  pageToken?: string;
3898
+ /**
3899
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3900
+ */
3901
+ pageSize?: number;
3462
3902
  /**
3463
3903
  * 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.
3464
3904
  */
@@ -3470,7 +3910,7 @@ declare class PrimaryNetworkTransactionsService {
3470
3910
  * @returns ListPChainTransactionsResponse
3471
3911
  * @throws ApiError
3472
3912
  */
3473
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3913
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3474
3914
  /**
3475
3915
  * A primary network blockchain id or alias.
3476
3916
  */
@@ -3495,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
3495
3935
  * Query param for retrieving items before a specific timestamp.
3496
3936
  */
3497
3937
  endTimestamp?: number;
3498
- /**
3499
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3500
- */
3501
- pageSize?: number;
3502
3938
  /**
3503
3939
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3504
3940
  */
3505
3941
  pageToken?: string;
3942
+ /**
3943
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3944
+ */
3945
+ pageSize?: number;
3506
3946
  /**
3507
3947
  * 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.
3508
3948
  */
@@ -3514,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
3514
3954
  * @returns ListXChainTransactionsResponse
3515
3955
  * @throws ApiError
3516
3956
  */
3517
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3957
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3518
3958
  /**
3519
3959
  * A primary network blockchain id or alias.
3520
3960
  */
@@ -3539,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
3539
3979
  * Query param for retrieving items before a specific timestamp.
3540
3980
  */
3541
3981
  endTimestamp?: number;
3542
- /**
3543
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3544
- */
3545
- pageSize?: number;
3546
3982
  /**
3547
3983
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3548
3984
  */
3549
3985
  pageToken?: string;
3986
+ /**
3987
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3988
+ */
3989
+ pageSize?: number;
3550
3990
  }): CancelablePromise<ListXChainTransactionsResponse>;
3551
3991
  }
3552
3992
 
@@ -3577,7 +4017,7 @@ declare class PrimaryNetworkUtxOsService {
3577
4017
  * @returns any
3578
4018
  * @throws ApiError
3579
4019
  */
3580
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4020
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3581
4021
  /**
3582
4022
  * A primary network blockchain id or alias.
3583
4023
  */
@@ -3590,14 +4030,14 @@ declare class PrimaryNetworkUtxOsService {
3590
4030
  * 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".
3591
4031
  */
3592
4032
  addresses?: string;
3593
- /**
3594
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3595
- */
3596
- pageSize?: number;
3597
4033
  /**
3598
4034
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3599
4035
  */
3600
4036
  pageToken?: string;
4037
+ /**
4038
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4039
+ */
4040
+ pageSize?: number;
3601
4041
  /**
3602
4042
  * Asset ID for any asset (only applicable X-Chain)
3603
4043
  */
@@ -3642,7 +4082,7 @@ declare class PrimaryNetworkVerticesService {
3642
4082
  * @returns ListXChainVerticesResponse
3643
4083
  * @throws ApiError
3644
4084
  */
3645
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4085
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3646
4086
  /**
3647
4087
  * A primary network blockchain id or alias.
3648
4088
  */
@@ -3651,14 +4091,14 @@ declare class PrimaryNetworkVerticesService {
3651
4091
  * Either mainnet or a testnet.
3652
4092
  */
3653
4093
  network: Network;
3654
- /**
3655
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3656
- */
3657
- pageSize?: number;
3658
4094
  /**
3659
4095
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3660
4096
  */
3661
4097
  pageToken?: string;
4098
+ /**
4099
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4100
+ */
4101
+ pageSize?: number;
3662
4102
  }): CancelablePromise<ListXChainVerticesResponse>;
3663
4103
  /**
3664
4104
  * Get vertex
@@ -3686,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
3686
4126
  * @returns ListXChainVerticesResponse
3687
4127
  * @throws ApiError
3688
4128
  */
3689
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4129
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3690
4130
  /**
3691
4131
  * The height of a vertex.
3692
4132
  */
@@ -3699,23 +4139,482 @@ declare class PrimaryNetworkVerticesService {
3699
4139
  * Either mainnet or a testnet.
3700
4140
  */
3701
4141
  network: Network;
4142
+ /**
4143
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4144
+ */
4145
+ pageToken?: string;
3702
4146
  /**
3703
4147
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3704
4148
  */
3705
4149
  pageSize?: number;
4150
+ /**
4151
+ * 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.
4152
+ */
4153
+ sortOrder?: SortOrder;
4154
+ }): CancelablePromise<ListXChainVerticesResponse>;
4155
+ }
4156
+
4157
+ type RpcErrorDto = {
4158
+ code: number;
4159
+ message: string;
4160
+ data?: Record<string, any>;
4161
+ };
4162
+
4163
+ type RpcErrorResponseDto = {
4164
+ jsonrpc: string;
4165
+ id?: (string | number);
4166
+ error: RpcErrorDto;
4167
+ };
4168
+
4169
+ type RpcRequestBodyDto = {
4170
+ method: string;
4171
+ params?: Record<string, any>;
4172
+ id?: (string | number);
4173
+ jsonrpc?: string;
4174
+ };
4175
+
4176
+ type RpcSuccessResponseDto = {
4177
+ jsonrpc: string;
4178
+ id?: (string | number);
4179
+ result: Record<string, any>;
4180
+ };
4181
+
4182
+ declare class RpcService {
4183
+ readonly httpRequest: BaseHttpRequest;
4184
+ constructor(httpRequest: BaseHttpRequest);
4185
+ /**
4186
+ * Calls JSON-RPC method
4187
+ * Calls JSON-RPC method.
4188
+ * @returns any
4189
+ * @throws ApiError
4190
+ */
4191
+ rpc({ chainId, requestBody, }: {
4192
+ /**
4193
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4194
+ */
4195
+ chainId: string;
4196
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4197
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4198
+ }
4199
+
4200
+ type TeleporterDestinationTransaction = {
4201
+ txHash: string;
4202
+ timestamp: number;
4203
+ gasSpent: string;
4204
+ rewardRedeemer: string;
4205
+ delivererAddress: string;
4206
+ };
4207
+
4208
+ type TeleporterReceipt = {
4209
+ receivedMessageNonce: string;
4210
+ relayerRewardAddress: string;
4211
+ };
4212
+
4213
+ type TeleporterRewardDetails = {
4214
+ /**
4215
+ * A wallet or contract address in mixed-case checksum encoding.
4216
+ */
4217
+ address: string;
4218
+ /**
4219
+ * The contract name.
4220
+ */
4221
+ name: string;
4222
+ /**
4223
+ * The contract symbol.
4224
+ */
4225
+ symbol: string;
4226
+ /**
4227
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4228
+ */
4229
+ decimals: number;
4230
+ /**
4231
+ * The logo uri for the address.
4232
+ */
4233
+ logoUri?: string;
4234
+ ercType: TeleporterRewardDetails.ercType;
4235
+ /**
4236
+ * The token price, if available.
4237
+ */
4238
+ price?: Money;
4239
+ value: string;
4240
+ };
4241
+ declare namespace TeleporterRewardDetails {
4242
+ enum ercType {
4243
+ ERC_20 = "ERC-20"
4244
+ }
4245
+ }
4246
+
4247
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4248
+ messageId: string;
4249
+ teleporterContractAddress: string;
4250
+ sourceBlockchainId: string;
4251
+ destinationBlockchainId: string;
4252
+ sourceEvmChainId: string;
4253
+ destinationEvmChainId: string;
4254
+ messageNonce: string;
4255
+ from: string;
4256
+ to: string;
4257
+ data?: string;
4258
+ messageExecuted: boolean;
4259
+ receipts: Array<TeleporterReceipt>;
4260
+ receiptDelivered: boolean;
4261
+ rewardDetails: TeleporterRewardDetails;
4262
+ destinationTransaction: TeleporterDestinationTransaction;
4263
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4264
+ };
4265
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4266
+ enum status {
4267
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4268
+ }
4269
+ }
4270
+
4271
+ type TeleporterSourceTransaction = {
4272
+ txHash: string;
4273
+ timestamp: number;
4274
+ gasSpent: string;
4275
+ };
4276
+
4277
+ type DeliveredTeleporterMessage = {
4278
+ messageId: string;
4279
+ teleporterContractAddress: string;
4280
+ sourceBlockchainId: string;
4281
+ destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4284
+ messageNonce: string;
4285
+ from: string;
4286
+ to: string;
4287
+ data?: string;
4288
+ messageExecuted: boolean;
4289
+ receipts: Array<TeleporterReceipt>;
4290
+ receiptDelivered: boolean;
4291
+ rewardDetails: TeleporterRewardDetails;
4292
+ sourceTransaction: TeleporterSourceTransaction;
4293
+ destinationTransaction: TeleporterDestinationTransaction;
4294
+ status: DeliveredTeleporterMessage.status;
4295
+ };
4296
+ declare namespace DeliveredTeleporterMessage {
4297
+ enum status {
4298
+ DELIVERED = "delivered"
4299
+ }
4300
+ }
4301
+
4302
+ type PendingTeleporterMessage = {
4303
+ messageId: string;
4304
+ teleporterContractAddress: string;
4305
+ sourceBlockchainId: string;
4306
+ destinationBlockchainId: string;
4307
+ sourceEvmChainId: string;
4308
+ destinationEvmChainId: string;
4309
+ messageNonce: string;
4310
+ from: string;
4311
+ to: string;
4312
+ data?: string;
4313
+ messageExecuted: boolean;
4314
+ receipts: Array<TeleporterReceipt>;
4315
+ receiptDelivered: boolean;
4316
+ rewardDetails: TeleporterRewardDetails;
4317
+ sourceTransaction: TeleporterSourceTransaction;
4318
+ status: PendingTeleporterMessage.status;
4319
+ };
4320
+ declare namespace PendingTeleporterMessage {
4321
+ enum status {
4322
+ PENDING = "pending"
4323
+ }
4324
+ }
4325
+
4326
+ type ListTeleporterMessagesResponse = {
4327
+ /**
4328
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4329
+ */
4330
+ nextPageToken?: string;
4331
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4332
+ };
4333
+
4334
+ declare class TeleporterService {
4335
+ readonly httpRequest: BaseHttpRequest;
4336
+ constructor(httpRequest: BaseHttpRequest);
4337
+ /**
4338
+ * Get a teleporter message
4339
+ * Gets a teleporter message by message ID.
4340
+ * @returns any
4341
+ * @throws ApiError
4342
+ */
4343
+ getTeleporterMessage({ messageId, }: {
4344
+ /**
4345
+ * The message ID of the teleporter message.
4346
+ */
4347
+ messageId: string;
4348
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4349
+ /**
4350
+ * List teleporter messages
4351
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4352
+ * @returns ListTeleporterMessagesResponse
4353
+ * @throws ApiError
4354
+ */
4355
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
3706
4356
  /**
3707
4357
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3708
4358
  */
3709
4359
  pageToken?: string;
3710
4360
  /**
3711
- * 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.
4361
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3712
4362
  */
3713
- sortOrder?: SortOrder;
3714
- }): CancelablePromise<ListXChainVerticesResponse>;
4363
+ pageSize?: number;
4364
+ /**
4365
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4366
+ */
4367
+ sourceBlockchainId?: string;
4368
+ /**
4369
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4370
+ */
4371
+ destinationBlockchainId?: string;
4372
+ /**
4373
+ * The address of the recipient of the teleporter message.
4374
+ */
4375
+ to?: string;
4376
+ /**
4377
+ * The address of the sender of the teleporter message.
4378
+ */
4379
+ from?: string;
4380
+ /**
4381
+ * mainnet or testnet.
4382
+ */
4383
+ network?: NetworkType;
4384
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4385
+ }
4386
+
4387
+ type AddressesChangeRequest = {
4388
+ /**
4389
+ * Ethereum address(es) for the address_activity event type
4390
+ */
4391
+ addresses: Array<any[]>;
4392
+ };
4393
+
4394
+ type ListWebhookAddressesResponse = {
4395
+ /**
4396
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4397
+ */
4398
+ nextPageToken?: string;
4399
+ addresses: Array<string>;
4400
+ totalAddresses: number;
4401
+ };
4402
+
4403
+ type AddressActivityMetadata = {
4404
+ /**
4405
+ * Ethereum address(es) for the address_activity event type
4406
+ */
4407
+ addresses: Array<any[]>;
4408
+ /**
4409
+ * Array of hexadecimal strings of the event signatures.
4410
+ */
4411
+ eventSignatures?: Array<string>;
4412
+ };
4413
+
4414
+ declare enum EventType {
4415
+ ADDRESS_ACTIVITY = "address_activity"
4416
+ }
4417
+
4418
+ declare enum WebhookStatusType {
4419
+ ACTIVE = "active",
4420
+ INACTIVE = "inactive"
4421
+ }
4422
+
4423
+ type WebhookResponse = {
4424
+ id: string;
4425
+ eventType: EventType;
4426
+ metadata: AddressActivityMetadata;
4427
+ /**
4428
+ * Whether to include traces in the webhook payload.
4429
+ */
4430
+ includeInternalTxs?: boolean;
4431
+ /**
4432
+ * Whether to include logs in the webhook payload.
4433
+ */
4434
+ includeLogs?: boolean;
4435
+ url: string;
4436
+ chainId: string;
4437
+ status: WebhookStatusType;
4438
+ createdAt: number;
4439
+ name: string;
4440
+ description: string;
4441
+ };
4442
+
4443
+ type ListWebhooksResponse = {
4444
+ /**
4445
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4446
+ */
4447
+ nextPageToken?: string;
4448
+ webhooks: Array<WebhookResponse>;
4449
+ };
4450
+
4451
+ type RegisterWebhookRequest = {
4452
+ url: string;
4453
+ chainId: string;
4454
+ eventType: EventType;
4455
+ metadata: AddressActivityMetadata;
4456
+ /**
4457
+ * Whether to include traces in the webhook payload.
4458
+ */
4459
+ includeInternalTxs?: boolean;
4460
+ /**
4461
+ * Whether to include logs in the webhook payload.
4462
+ */
4463
+ includeLogs?: boolean;
4464
+ };
4465
+
4466
+ type SharedSecretsResponse = {
4467
+ secret: string;
4468
+ };
4469
+
4470
+ type UpdateWebhookRequest = {
4471
+ name?: string;
4472
+ description?: string;
4473
+ url?: string;
4474
+ status?: WebhookStatusType;
4475
+ includeInternalTxs?: boolean;
4476
+ includeLogs?: boolean;
4477
+ };
4478
+
4479
+ declare enum WebhookStatus {
4480
+ ACTIVE = "active",
4481
+ INACTIVE = "inactive"
4482
+ }
4483
+
4484
+ declare class WebhooksService {
4485
+ readonly httpRequest: BaseHttpRequest;
4486
+ constructor(httpRequest: BaseHttpRequest);
4487
+ /**
4488
+ * Create a webhook
4489
+ * Create a new webhook.
4490
+ * @returns WebhookResponse
4491
+ * @throws ApiError
4492
+ */
4493
+ registerWebhook({ requestBody, }: {
4494
+ requestBody: RegisterWebhookRequest;
4495
+ }): CancelablePromise<WebhookResponse>;
4496
+ /**
4497
+ * List webhooks
4498
+ * Lists webhooks for the user.
4499
+ * @returns ListWebhooksResponse
4500
+ * @throws ApiError
4501
+ */
4502
+ listWebhooks({ pageToken, pageSize, status, }: {
4503
+ /**
4504
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4505
+ */
4506
+ pageToken?: string;
4507
+ /**
4508
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4509
+ */
4510
+ pageSize?: number;
4511
+ /**
4512
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
4513
+ */
4514
+ status?: WebhookStatus;
4515
+ }): CancelablePromise<ListWebhooksResponse>;
4516
+ /**
4517
+ * Get a webhook by ID
4518
+ * Retrieves a webhook by ID.
4519
+ * @returns WebhookResponse
4520
+ * @throws ApiError
4521
+ */
4522
+ getWebhook({ id, }: {
4523
+ /**
4524
+ * The webhook identifier.
4525
+ */
4526
+ id: string;
4527
+ }): CancelablePromise<WebhookResponse>;
4528
+ /**
4529
+ * Deactivate a webhook
4530
+ * Deactivates a webhook by ID.
4531
+ * @returns WebhookResponse
4532
+ * @throws ApiError
4533
+ */
4534
+ deactivateWebhook({ id, }: {
4535
+ /**
4536
+ * The webhook identifier.
4537
+ */
4538
+ id: string;
4539
+ }): CancelablePromise<WebhookResponse>;
4540
+ /**
4541
+ * Update a webhook
4542
+ * Updates an existing webhook.
4543
+ * @returns WebhookResponse
4544
+ * @throws ApiError
4545
+ */
4546
+ updateWebhook({ id, requestBody, }: {
4547
+ /**
4548
+ * The webhook identifier.
4549
+ */
4550
+ id: string;
4551
+ requestBody: UpdateWebhookRequest;
4552
+ }): CancelablePromise<WebhookResponse>;
4553
+ /**
4554
+ * Generate a shared secret
4555
+ * Generates a new shared secret.
4556
+ * @returns SharedSecretsResponse
4557
+ * @throws ApiError
4558
+ */
4559
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4560
+ /**
4561
+ * Get a shared secret
4562
+ * Get a previously generated shared secret.
4563
+ * @returns SharedSecretsResponse
4564
+ * @throws ApiError
4565
+ */
4566
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4567
+ /**
4568
+ * Add addresses to webhook
4569
+ * Add addresses to webhook.
4570
+ * @returns WebhookResponse
4571
+ * @throws ApiError
4572
+ */
4573
+ addAddressesToWebhook({ id, requestBody, }: {
4574
+ /**
4575
+ * The webhook identifier.
4576
+ */
4577
+ id: string;
4578
+ requestBody: AddressesChangeRequest;
4579
+ }): CancelablePromise<WebhookResponse>;
4580
+ /**
4581
+ * Remove addresses from webhook
4582
+ * Remove addresses from webhook.
4583
+ * @returns WebhookResponse
4584
+ * @throws ApiError
4585
+ */
4586
+ removeAddressesFromWebhook({ id, requestBody, }: {
4587
+ /**
4588
+ * The webhook identifier.
4589
+ */
4590
+ id: string;
4591
+ requestBody: AddressesChangeRequest;
4592
+ }): CancelablePromise<WebhookResponse>;
4593
+ /**
4594
+ * List adresses by webhook
4595
+ * List adresses by webhook.
4596
+ * @returns ListWebhookAddressesResponse
4597
+ * @throws ApiError
4598
+ */
4599
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4600
+ /**
4601
+ * The webhook identifier.
4602
+ */
4603
+ id: string;
4604
+ /**
4605
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4606
+ */
4607
+ pageToken?: string;
4608
+ /**
4609
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4610
+ */
4611
+ pageSize?: number;
4612
+ }): CancelablePromise<ListWebhookAddressesResponse>;
3715
4613
  }
3716
4614
 
3717
4615
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3718
4616
  declare class Glacier {
4617
+ readonly default: DefaultService;
3719
4618
  readonly evmBalances: EvmBalancesService;
3720
4619
  readonly evmBlocks: EvmBlocksService;
3721
4620
  readonly evmChains: EvmChainsService;
@@ -3731,6 +4630,9 @@ declare class Glacier {
3731
4630
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3732
4631
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3733
4632
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4633
+ readonly rpc: RpcService;
4634
+ readonly teleporter: TeleporterService;
4635
+ readonly webhooks: WebhooksService;
3734
4636
  readonly request: BaseHttpRequest;
3735
4637
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3736
4638
  }
@@ -3752,4 +4654,11 @@ declare class ApiError extends Error {
3752
4654
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3753
4655
  }
3754
4656
 
3755
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
4657
+ type NextPageToken = {
4658
+ /**
4659
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4660
+ */
4661
+ nextPageToken?: string;
4662
+ };
4663
+
4664
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };