@avalabs/glacier-sdk 2.8.0-canary.1b2916c.0 → 2.8.0-canary.1b4678b.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 (148) hide show
  1. package/dist/index.d.ts +1165 -426
  2. package/dist/index.js +441 -136
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
  7. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  8. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  9. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  10. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  11. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  12. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  13. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  14. package/esm/generated/models/ChainInfo.d.ts +2 -3
  15. package/esm/generated/models/ChainStatus.d.ts +3 -0
  16. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  17. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  18. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  19. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  20. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  21. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  22. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  23. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  24. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  25. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  26. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  27. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  28. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  29. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  30. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  31. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  32. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  33. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  34. package/esm/generated/models/EVMInput.d.ts +3 -3
  35. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  36. package/esm/generated/models/EVMOperationType.js +6 -0
  37. package/esm/generated/models/EVMOutput.d.ts +3 -3
  38. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  39. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  40. package/esm/generated/models/EventType.d.ts +5 -0
  41. package/esm/generated/models/EventType.js +6 -0
  42. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  43. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  44. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  45. package/esm/generated/models/GlacierApiFeature.js +6 -0
  46. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  47. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  48. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  49. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  50. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  51. package/esm/generated/models/Method.d.ts +0 -3
  52. package/esm/generated/models/Money.d.ts +0 -3
  53. package/esm/generated/models/NextPageToken.d.ts +8 -0
  54. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  55. package/esm/generated/models/OperationType.d.ts +4 -2
  56. package/esm/generated/models/OperationType.js +3 -1
  57. package/esm/generated/models/PChainBalance.d.ts +15 -15
  58. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  59. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  60. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  61. package/esm/generated/models/PChainTransactionType.js +8 -4
  62. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  63. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  64. package/esm/generated/models/PendingReward.d.ts +3 -3
  65. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  66. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  67. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  68. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  69. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  70. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  71. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  72. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  73. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  74. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  75. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  76. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  77. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  78. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  79. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  80. package/esm/generated/models/RewardType.d.ts +2 -1
  81. package/esm/generated/models/RewardType.js +1 -0
  82. package/esm/generated/models/Rewards.d.ts +2 -0
  83. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  84. package/esm/generated/models/Subnet.d.ts +17 -0
  85. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  86. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  87. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  88. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  89. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  90. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  91. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  92. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  93. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  94. package/esm/generated/models/Utxo.d.ts +30 -30
  95. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  96. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  97. package/esm/generated/models/ValidationStatusType.js +1 -0
  98. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  99. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  100. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  101. package/esm/generated/models/WebhookStatus.js +7 -0
  102. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  103. package/esm/generated/models/WebhookStatusType.js +7 -0
  104. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  105. package/esm/generated/models/XChainBalances.d.ts +3 -3
  106. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  107. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  108. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  109. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  110. package/esm/generated/models/XChainTransactionType.js +11 -0
  111. package/esm/generated/services/DefaultService.d.ts +14 -0
  112. package/esm/generated/services/DefaultService.js +13 -0
  113. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  114. package/esm/generated/services/EvmBalancesService.js +8 -8
  115. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  116. package/esm/generated/services/EvmBlocksService.js +4 -4
  117. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  118. package/esm/generated/services/EvmChainsService.js +4 -2
  119. package/esm/generated/services/EvmContractsService.d.ts +20 -1
  120. package/esm/generated/services/EvmContractsService.js +16 -0
  121. package/esm/generated/services/EvmTransactionsService.d.ts +90 -68
  122. package/esm/generated/services/EvmTransactionsService.js +33 -46
  123. package/esm/generated/services/NfTsService.d.ts +27 -2
  124. package/esm/generated/services/NfTsService.js +19 -0
  125. package/esm/generated/services/OperationsService.d.ts +11 -11
  126. package/esm/generated/services/OperationsService.js +10 -10
  127. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  128. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  129. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  130. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  131. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  132. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  133. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  134. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  135. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  136. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  137. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  138. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  139. package/esm/generated/services/TeleporterService.d.ts +57 -0
  140. package/esm/generated/services/TeleporterService.js +39 -0
  141. package/esm/generated/services/WebhooksService.d.ts +95 -0
  142. package/esm/generated/services/WebhooksService.js +80 -0
  143. package/esm/index.d.ts +39 -3
  144. package/esm/index.js +21 -2
  145. package/package.json +2 -2
  146. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  147. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  148. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -60,6 +60,19 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
+ declare class DefaultService {
64
+ readonly httpRequest: BaseHttpRequest;
65
+ constructor(httpRequest: BaseHttpRequest);
66
+ /**
67
+ * @returns any
68
+ * @throws ApiError
69
+ */
70
+ mediaControllerUploadImage(): CancelablePromise<any>;
71
+ }
72
+
73
+ /**
74
+ * ISO 4217 currency code.
75
+ */
63
76
  declare enum CurrencyCode {
64
77
  USD = "usd",
65
78
  EUR = "eur",
@@ -78,9 +91,6 @@ declare enum CurrencyCode {
78
91
  }
79
92
 
80
93
  type Money = {
81
- /**
82
- * ISO 4217 currency code.
83
- */
84
94
  currencyCode: CurrencyCode;
85
95
  /**
86
96
  * Monetary value in base 10 decimals.
@@ -130,6 +140,9 @@ type GetNativeBalanceResponse = {
130
140
  nativeTokenBalance: NativeTokenBalance;
131
141
  };
132
142
 
143
+ /**
144
+ * The metadata indexing status of the nft.
145
+ */
133
146
  declare enum NftTokenMetadataStatus {
134
147
  UNKNOWN = "UNKNOWN",
135
148
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -145,9 +158,6 @@ declare enum NftTokenMetadataStatus {
145
158
  }
146
159
 
147
160
  type Erc1155TokenMetadata = {
148
- /**
149
- * The metadata indexing status of the nft.
150
- */
151
161
  indexStatus: NftTokenMetadataStatus;
152
162
  metadataLastUpdatedTimestamp?: number;
153
163
  name?: string;
@@ -186,9 +196,6 @@ declare namespace Erc1155TokenBalance {
186
196
  }
187
197
 
188
198
  type Erc721TokenMetadata = {
189
- /**
190
- * The metadata indexing status of the nft.
191
- */
192
199
  indexStatus: NftTokenMetadataStatus;
193
200
  metadataLastUpdatedTimestamp?: number;
194
201
  name?: string;
@@ -335,7 +342,7 @@ declare class EvmBalancesService {
335
342
  */
336
343
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
337
344
  /**
338
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
345
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
346
  */
340
347
  chainId: string;
341
348
  /**
@@ -361,9 +368,9 @@ declare class EvmBalancesService {
361
368
  * @returns ListErc20BalancesResponse
362
369
  * @throws ApiError
363
370
  */
364
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
371
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
372
  /**
366
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
373
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
374
  */
368
375
  chainId: string;
369
376
  /**
@@ -374,14 +381,14 @@ declare class EvmBalancesService {
374
381
  * The block number, if not defined the block number will be the latest block.
375
382
  */
376
383
  blockNumber?: string;
377
- /**
378
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
379
- */
380
- pageSize?: number;
381
384
  /**
382
385
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
383
386
  */
384
387
  pageToken?: string;
388
+ /**
389
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
390
+ */
391
+ pageSize?: number;
385
392
  /**
386
393
  * A comma separated list of contract addresses to filter by.
387
394
  */
@@ -399,23 +406,23 @@ declare class EvmBalancesService {
399
406
  * @returns ListErc721BalancesResponse
400
407
  * @throws ApiError
401
408
  */
402
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
409
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
403
410
  /**
404
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
411
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
412
  */
406
413
  chainId: string;
407
414
  /**
408
415
  * A wallet address.
409
416
  */
410
417
  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
418
  /**
416
419
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
417
420
  */
418
421
  pageToken?: string;
422
+ /**
423
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
424
+ */
425
+ pageSize?: number;
419
426
  /**
420
427
  * A contract addresses to filter by.
421
428
  */
@@ -431,9 +438,9 @@ declare class EvmBalancesService {
431
438
  * @returns ListErc1155BalancesResponse
432
439
  * @throws ApiError
433
440
  */
434
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
441
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
435
442
  /**
436
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
443
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
444
  */
438
445
  chainId: string;
439
446
  /**
@@ -444,14 +451,14 @@ declare class EvmBalancesService {
444
451
  * The block number, if not defined the block number will be the latest block.
445
452
  */
446
453
  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
454
  /**
452
455
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
453
456
  */
454
457
  pageToken?: string;
458
+ /**
459
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
460
+ */
461
+ pageSize?: number;
455
462
  /**
456
463
  * A contract addresses to filter by.
457
464
  */
@@ -465,23 +472,23 @@ declare class EvmBalancesService {
465
472
  * @returns ListCollectibleBalancesResponse
466
473
  * @throws ApiError
467
474
  */
468
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
475
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
469
476
  /**
470
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
477
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
478
  */
472
479
  chainId: string;
473
480
  /**
474
481
  * A wallet address.
475
482
  */
476
483
  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
484
  /**
482
485
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
483
486
  */
484
487
  pageToken?: string;
488
+ /**
489
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
490
+ */
491
+ pageSize?: number;
485
492
  /**
486
493
  * A contract addresses to filter by.
487
494
  */
@@ -594,19 +601,19 @@ declare class EvmBlocksService {
594
601
  * @returns ListEvmBlocksResponse
595
602
  * @throws ApiError
596
603
  */
597
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
604
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
598
605
  /**
599
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
606
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
607
  */
601
608
  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
609
  /**
607
610
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
608
611
  */
609
612
  pageToken?: string;
613
+ /**
614
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
615
+ */
616
+ pageSize?: number;
610
617
  }): CancelablePromise<ListEvmBlocksResponse>;
611
618
  /**
612
619
  * Get block
@@ -616,7 +623,7 @@ declare class EvmBlocksService {
616
623
  */
617
624
  getBlock({ chainId, blockId, }: {
618
625
  /**
619
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
626
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
627
  */
621
628
  chainId: string;
622
629
  /**
@@ -626,6 +633,9 @@ declare class EvmBlocksService {
626
633
  }): CancelablePromise<GetEvmBlockResponse>;
627
634
  }
628
635
 
636
+ /**
637
+ * 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.
638
+ */
629
639
  declare enum ChainStatus {
630
640
  OK = "OK",
631
641
  UNAVAILABLE = "UNAVAILABLE"
@@ -663,9 +673,6 @@ declare enum VmName {
663
673
 
664
674
  type GetChainResponse = {
665
675
  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
676
  status: ChainStatus;
670
677
  chainName: string;
671
678
  description: string;
@@ -680,13 +687,16 @@ type GetChainResponse = {
680
687
  utilityAddresses?: UtilityAddresses;
681
688
  networkToken: NetworkToken;
682
689
  chainLogoUri?: string;
690
+ private?: boolean;
691
+ enabledFeatures?: Array<'nftIndexing'>;
683
692
  };
684
693
 
694
+ declare enum GlacierApiFeature {
695
+ NFT_INDEXING = "nftIndexing"
696
+ }
697
+
685
698
  type ChainInfo = {
686
699
  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
700
  status: ChainStatus;
691
701
  chainName: string;
692
702
  description: string;
@@ -701,6 +711,8 @@ type ChainInfo = {
701
711
  utilityAddresses?: UtilityAddresses;
702
712
  networkToken: NetworkToken;
703
713
  chainLogoUri?: string;
714
+ private?: boolean;
715
+ enabledFeatures?: Array<'nftIndexing'>;
704
716
  };
705
717
 
706
718
  type ListChainsResponse = {
@@ -721,11 +733,15 @@ declare class EvmChainsService {
721
733
  * @returns ListChainsResponse
722
734
  * @throws ApiError
723
735
  */
724
- supportedChains({ network, }: {
736
+ supportedChains({ network, feature, }: {
725
737
  /**
726
738
  * mainnet or testnet.
727
739
  */
728
740
  network?: NetworkType;
741
+ /**
742
+ * Filter by feature.
743
+ */
744
+ feature?: GlacierApiFeature;
729
745
  }): CancelablePromise<ListChainsResponse>;
730
746
  /**
731
747
  * Get chain information
@@ -735,24 +751,12 @@ declare class EvmChainsService {
735
751
  */
736
752
  getChainInfo({ chainId, }: {
737
753
  /**
738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
739
755
  */
740
756
  chainId: string;
741
757
  }): CancelablePromise<GetChainResponse>;
742
758
  }
743
759
 
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
760
  type ImageAsset = {
757
761
  assetId?: string;
758
762
  /**
@@ -791,6 +795,120 @@ type ResourceLink = {
791
795
  url: string;
792
796
  };
793
797
 
798
+ type ContractSubmissionErc1155 = {
799
+ description?: string;
800
+ officialSite?: string;
801
+ email?: string;
802
+ logoAsset?: ImageAsset;
803
+ bannerAsset?: ImageAsset;
804
+ color?: string;
805
+ resourceLinks?: Array<ResourceLink>;
806
+ tags?: Array<string>;
807
+ /**
808
+ * The contract name.
809
+ */
810
+ name: string;
811
+ ercType: ContractSubmissionErc1155.ercType;
812
+ /**
813
+ * The contract symbol.
814
+ */
815
+ symbol: string;
816
+ pricingProviders?: PricingProviders;
817
+ };
818
+ declare namespace ContractSubmissionErc1155 {
819
+ enum ercType {
820
+ ERC_1155 = "ERC-1155"
821
+ }
822
+ }
823
+
824
+ type ContractSubmissionErc20 = {
825
+ description?: string;
826
+ officialSite?: string;
827
+ email?: string;
828
+ logoAsset?: ImageAsset;
829
+ bannerAsset?: ImageAsset;
830
+ color?: string;
831
+ resourceLinks?: Array<ResourceLink>;
832
+ tags?: Array<string>;
833
+ /**
834
+ * The contract name.
835
+ */
836
+ name: string;
837
+ ercType: ContractSubmissionErc20.ercType;
838
+ /**
839
+ * The contract symbol.
840
+ */
841
+ symbol: string;
842
+ pricingProviders?: PricingProviders;
843
+ };
844
+ declare namespace ContractSubmissionErc20 {
845
+ enum ercType {
846
+ ERC_20 = "ERC-20"
847
+ }
848
+ }
849
+
850
+ type ContractSubmissionErc721 = {
851
+ description?: string;
852
+ officialSite?: string;
853
+ email?: string;
854
+ logoAsset?: ImageAsset;
855
+ bannerAsset?: ImageAsset;
856
+ color?: string;
857
+ resourceLinks?: Array<ResourceLink>;
858
+ tags?: Array<string>;
859
+ /**
860
+ * The contract name.
861
+ */
862
+ name: string;
863
+ ercType: ContractSubmissionErc721.ercType;
864
+ /**
865
+ * The contract symbol.
866
+ */
867
+ symbol: string;
868
+ };
869
+ declare namespace ContractSubmissionErc721 {
870
+ enum ercType {
871
+ ERC_721 = "ERC-721"
872
+ }
873
+ }
874
+
875
+ type ContractSubmissionUnknown = {
876
+ description?: string;
877
+ officialSite?: string;
878
+ email?: string;
879
+ logoAsset?: ImageAsset;
880
+ bannerAsset?: ImageAsset;
881
+ color?: string;
882
+ resourceLinks?: Array<ResourceLink>;
883
+ tags?: Array<string>;
884
+ /**
885
+ * The contract name.
886
+ */
887
+ name: string;
888
+ ercType: ContractSubmissionUnknown.ercType;
889
+ };
890
+ declare namespace ContractSubmissionUnknown {
891
+ enum ercType {
892
+ UNKNOWN = "UNKNOWN"
893
+ }
894
+ }
895
+
896
+ type ContractSubmissionBody = {
897
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
898
+ };
899
+
900
+ type ContractDeploymentDetails = {
901
+ txHash: string;
902
+ /**
903
+ * The address that initiated the transaction which deployed this contract.
904
+ */
905
+ deployerAddress: string;
906
+ /**
907
+ * 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.
908
+ */
909
+ deployerContractAddress?: string;
910
+ };
911
+
794
912
  type Erc1155Contract = {
795
913
  /**
796
914
  * The contract name.
@@ -913,6 +1031,10 @@ declare namespace UnknownContract {
913
1031
  }
914
1032
  }
915
1033
 
1034
+ type UpdateContractResponse = {
1035
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1036
+ };
1037
+
916
1038
  declare class EvmContractsService {
917
1039
  readonly httpRequest: BaseHttpRequest;
918
1040
  constructor(httpRequest: BaseHttpRequest);
@@ -924,7 +1046,7 @@ declare class EvmContractsService {
924
1046
  */
925
1047
  getContractMetadata({ chainId, address, }: {
926
1048
  /**
927
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
928
1050
  */
929
1051
  chainId: string;
930
1052
  /**
@@ -932,6 +1054,23 @@ declare class EvmContractsService {
932
1054
  */
933
1055
  address: string;
934
1056
  }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1057
+ /**
1058
+ * Update contract information
1059
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1060
+ * @returns UpdateContractResponse
1061
+ * @throws ApiError
1062
+ */
1063
+ updateContractInfo({ chainId, address, requestBody, }: {
1064
+ /**
1065
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1066
+ */
1067
+ chainId: string;
1068
+ /**
1069
+ * Contract address on the relevant chain.
1070
+ */
1071
+ address: string;
1072
+ requestBody: ContractSubmissionBody;
1073
+ }): CancelablePromise<UpdateContractResponse>;
935
1074
  }
936
1075
 
937
1076
  type Erc1155Token = {
@@ -1057,6 +1196,9 @@ type Erc721TransferDetails = {
1057
1196
  erc721Token: Erc721Token;
1058
1197
  };
1059
1198
 
1199
+ /**
1200
+ * 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.
1201
+ */
1060
1202
  declare enum TransactionMethodType {
1061
1203
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1062
1204
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1064,9 +1206,6 @@ declare enum TransactionMethodType {
1064
1206
  }
1065
1207
 
1066
1208
  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
1209
  callType: TransactionMethodType;
1071
1210
  /**
1072
1211
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1427,7 +1566,7 @@ type ListTransfersResponse = {
1427
1566
  * 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
1567
  */
1429
1568
  nextPageToken?: string;
1430
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1569
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1431
1570
  };
1432
1571
 
1433
1572
  declare enum SortOrder {
@@ -1451,7 +1590,7 @@ declare class EvmTransactionsService {
1451
1590
  */
1452
1591
  getDeploymentTransaction({ chainId, address, currency, }: {
1453
1592
  /**
1454
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1455
1594
  */
1456
1595
  chainId: string;
1457
1596
  /**
@@ -1469,65 +1608,55 @@ declare class EvmTransactionsService {
1469
1608
  * @returns ListContractsResponse
1470
1609
  * @throws ApiError
1471
1610
  */
1472
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1611
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1473
1612
  /**
1474
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1475
1614
  */
1476
1615
  chainId: string;
1477
1616
  /**
1478
1617
  * A wallet address.
1479
1618
  */
1480
1619
  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
1620
  /**
1486
1621
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1487
1622
  */
1488
1623
  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
1624
  /**
1498
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1499
- */
1500
- chainId: string;
1501
- /**
1502
- * Contract address on the relevant chain.
1625
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1503
1626
  */
1504
- address: string;
1505
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1627
+ pageSize?: number;
1628
+ }): CancelablePromise<ListContractsResponse>;
1506
1629
  /**
1507
1630
  * List ERC transfers
1508
1631
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1509
1632
  * @returns ListTransfersResponse
1510
1633
  * @throws ApiError
1511
1634
  */
1512
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1635
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1513
1636
  /**
1514
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1515
1638
  */
1516
1639
  chainId: string;
1517
1640
  /**
1518
1641
  * A wallet address.
1519
1642
  */
1520
1643
  address: string;
1644
+ /**
1645
+ * 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.
1646
+ */
1521
1647
  startBlock?: number;
1522
- endBlock?: number;
1523
1648
  /**
1524
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1649
+ * 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
1650
  */
1526
- pageSize?: number;
1651
+ endBlock?: number;
1527
1652
  /**
1528
1653
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1529
1654
  */
1530
1655
  pageToken?: string;
1656
+ /**
1657
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1658
+ */
1659
+ pageSize?: number;
1531
1660
  }): CancelablePromise<ListTransfersResponse>;
1532
1661
  /**
1533
1662
  * List transactions
@@ -1537,24 +1666,30 @@ declare class EvmTransactionsService {
1537
1666
  * @returns ListTransactionDetailsResponse
1538
1667
  * @throws ApiError
1539
1668
  */
1540
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1669
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1541
1670
  /**
1542
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1543
1672
  */
1544
1673
  chainId: string;
1545
1674
  /**
1546
1675
  * A wallet address.
1547
1676
  */
1548
1677
  address: string;
1678
+ /**
1679
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1680
+ */
1681
+ pageToken?: string;
1549
1682
  /**
1550
1683
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1551
1684
  */
1552
1685
  pageSize?: number;
1553
1686
  /**
1554
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1687
+ * 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
1688
  */
1556
- pageToken?: string;
1557
1689
  startBlock?: number;
1690
+ /**
1691
+ * 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.
1692
+ */
1558
1693
  endBlock?: number;
1559
1694
  /**
1560
1695
  * 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 +1702,31 @@ declare class EvmTransactionsService {
1567
1702
  * @returns ListNativeTransactionsResponse
1568
1703
  * @throws ApiError
1569
1704
  */
1570
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1705
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1571
1706
  /**
1572
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1573
1708
  */
1574
1709
  chainId: string;
1575
1710
  /**
1576
1711
  * A wallet address.
1577
1712
  */
1578
1713
  address: string;
1714
+ /**
1715
+ * 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.
1716
+ */
1579
1717
  startBlock?: number;
1580
- endBlock?: number;
1581
1718
  /**
1582
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1719
+ * 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
1720
  */
1584
- pageSize?: number;
1721
+ endBlock?: number;
1585
1722
  /**
1586
1723
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1587
1724
  */
1588
1725
  pageToken?: string;
1726
+ /**
1727
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1728
+ */
1729
+ pageSize?: number;
1589
1730
  }): CancelablePromise<ListNativeTransactionsResponse>;
1590
1731
  /**
1591
1732
  * List ERC-20 transfers
@@ -1593,25 +1734,31 @@ declare class EvmTransactionsService {
1593
1734
  * @returns ListErc20TransactionsResponse
1594
1735
  * @throws ApiError
1595
1736
  */
1596
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1737
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1597
1738
  /**
1598
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1599
1740
  */
1600
1741
  chainId: string;
1601
1742
  /**
1602
1743
  * A wallet address.
1603
1744
  */
1604
1745
  address: string;
1746
+ /**
1747
+ * 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.
1748
+ */
1605
1749
  startBlock?: number;
1606
- endBlock?: number;
1607
1750
  /**
1608
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1751
+ * 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
1752
  */
1610
- pageSize?: number;
1753
+ endBlock?: number;
1611
1754
  /**
1612
1755
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1613
1756
  */
1614
1757
  pageToken?: string;
1758
+ /**
1759
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1760
+ */
1761
+ pageSize?: number;
1615
1762
  }): CancelablePromise<ListErc20TransactionsResponse>;
1616
1763
  /**
1617
1764
  * List ERC-721 transfers
@@ -1619,51 +1766,63 @@ declare class EvmTransactionsService {
1619
1766
  * @returns ListErc721TransactionsResponse
1620
1767
  * @throws ApiError
1621
1768
  */
1622
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1769
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1623
1770
  /**
1624
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1625
1772
  */
1626
1773
  chainId: string;
1627
1774
  /**
1628
1775
  * A wallet address.
1629
1776
  */
1630
1777
  address: string;
1778
+ /**
1779
+ * 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.
1780
+ */
1631
1781
  startBlock?: number;
1632
- endBlock?: number;
1633
1782
  /**
1634
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1783
+ * 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
1784
  */
1636
- pageSize?: number;
1785
+ endBlock?: number;
1637
1786
  /**
1638
1787
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1639
1788
  */
1640
1789
  pageToken?: string;
1641
- }): CancelablePromise<ListErc721TransactionsResponse>;
1642
- /**
1643
- * List ERC-1155 transfers
1790
+ /**
1791
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1792
+ */
1793
+ pageSize?: number;
1794
+ }): CancelablePromise<ListErc721TransactionsResponse>;
1795
+ /**
1796
+ * List ERC-1155 transfers
1644
1797
  * Lists ERC-1155 transfers for an address. Filterable by block range.
1645
1798
  * @returns ListErc1155TransactionsResponse
1646
1799
  * @throws ApiError
1647
1800
  */
1648
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1801
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1649
1802
  /**
1650
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1651
1804
  */
1652
1805
  chainId: string;
1653
1806
  /**
1654
1807
  * A wallet address.
1655
1808
  */
1656
1809
  address: string;
1810
+ /**
1811
+ * 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.
1812
+ */
1657
1813
  startBlock?: number;
1658
- endBlock?: number;
1659
1814
  /**
1660
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1815
+ * 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.
1661
1816
  */
1662
- pageSize?: number;
1817
+ endBlock?: number;
1663
1818
  /**
1664
1819
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1665
1820
  */
1666
1821
  pageToken?: string;
1822
+ /**
1823
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1824
+ */
1825
+ pageSize?: number;
1667
1826
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1668
1827
  /**
1669
1828
  * List internal transactions
@@ -1673,25 +1832,31 @@ declare class EvmTransactionsService {
1673
1832
  * @returns ListInternalTransactionsResponse
1674
1833
  * @throws ApiError
1675
1834
  */
1676
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1835
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1677
1836
  /**
1678
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1679
1838
  */
1680
1839
  chainId: string;
1681
1840
  /**
1682
1841
  * A wallet address.
1683
1842
  */
1684
1843
  address: string;
1844
+ /**
1845
+ * 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.
1846
+ */
1685
1847
  startBlock?: number;
1686
- endBlock?: number;
1687
1848
  /**
1688
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1849
+ * 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
1850
  */
1690
- pageSize?: number;
1851
+ endBlock?: number;
1691
1852
  /**
1692
1853
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1693
1854
  */
1694
1855
  pageToken?: string;
1856
+ /**
1857
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1858
+ */
1859
+ pageSize?: number;
1695
1860
  }): CancelablePromise<ListInternalTransactionsResponse>;
1696
1861
  /**
1697
1862
  * Get transaction
@@ -1701,7 +1866,7 @@ declare class EvmTransactionsService {
1701
1866
  */
1702
1867
  getTransaction({ chainId, txHash, }: {
1703
1868
  /**
1704
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1869
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1705
1870
  */
1706
1871
  chainId: string;
1707
1872
  /**
@@ -1717,7 +1882,7 @@ declare class EvmTransactionsService {
1717
1882
  */
1718
1883
  getTransactionsForBlock({ chainId, blockId, }: {
1719
1884
  /**
1720
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1885
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1721
1886
  */
1722
1887
  chainId: string;
1723
1888
  /**
@@ -1731,19 +1896,19 @@ declare class EvmTransactionsService {
1731
1896
  * @returns ListNativeTransactionsResponse
1732
1897
  * @throws ApiError
1733
1898
  */
1734
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1899
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1735
1900
  /**
1736
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1901
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1737
1902
  */
1738
1903
  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
1904
  /**
1744
1905
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1745
1906
  */
1746
1907
  pageToken?: string;
1908
+ /**
1909
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1910
+ */
1911
+ pageSize?: number;
1747
1912
  /**
1748
1913
  * A status filter for listed transactions.
1749
1914
  */
@@ -1767,6 +1932,14 @@ declare class HealthCheckService {
1767
1932
  }>;
1768
1933
  }
1769
1934
 
1935
+ type ListNftTokens = {
1936
+ /**
1937
+ * 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.
1938
+ */
1939
+ nextPageToken?: string;
1940
+ tokens: Array<(Erc721Token | Erc1155Token)>;
1941
+ };
1942
+
1770
1943
  declare class NfTsService {
1771
1944
  readonly httpRequest: BaseHttpRequest;
1772
1945
  constructor(httpRequest: BaseHttpRequest);
@@ -1778,7 +1951,7 @@ declare class NfTsService {
1778
1951
  */
1779
1952
  reindexNft({ chainId, address, tokenId, }: {
1780
1953
  /**
1781
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1954
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1782
1955
  */
1783
1956
  chainId: string;
1784
1957
  /**
@@ -1790,6 +1963,30 @@ declare class NfTsService {
1790
1963
  */
1791
1964
  tokenId: string;
1792
1965
  }): CancelablePromise<any>;
1966
+ /**
1967
+ * List tokens
1968
+ * Lists tokens for an NFT contract.
1969
+ * @returns ListNftTokens
1970
+ * @throws ApiError
1971
+ */
1972
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1973
+ /**
1974
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1975
+ */
1976
+ chainId: string;
1977
+ /**
1978
+ * Contract address on the relevant chain.
1979
+ */
1980
+ address: string;
1981
+ /**
1982
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1983
+ */
1984
+ pageToken?: string;
1985
+ /**
1986
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1987
+ */
1988
+ pageSize?: number;
1989
+ }): CancelablePromise<ListNftTokens>;
1793
1990
  /**
1794
1991
  * Get token details
1795
1992
  * Gets token details for a specific token of an NFT contract.
@@ -1798,7 +1995,7 @@ declare class NfTsService {
1798
1995
  */
1799
1996
  getTokenDetails({ chainId, address, tokenId, }: {
1800
1997
  /**
1801
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1998
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1802
1999
  */
1803
2000
  chainId: string;
1804
2001
  /**
@@ -1817,8 +2014,12 @@ type EvmNetworkOptions = {
1817
2014
  includeChains: Array<string>;
1818
2015
  };
1819
2016
 
2017
+ declare enum EVMOperationType {
2018
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2019
+ }
2020
+
1820
2021
  type CreateEvmTransactionExportRequest = {
1821
- type: CreateEvmTransactionExportRequest.type;
2022
+ type: EVMOperationType;
1822
2023
  firstDate: string;
1823
2024
  lastDate: string;
1824
2025
  /**
@@ -1831,10 +2032,11 @@ type CreateEvmTransactionExportRequest = {
1831
2032
  endDate: string;
1832
2033
  options: EvmNetworkOptions;
1833
2034
  };
1834
- declare namespace CreateEvmTransactionExportRequest {
1835
- enum type {
1836
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1837
- }
2035
+
2036
+ declare enum PrimaryNetworkOperationType {
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2039
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
1838
2040
  }
1839
2041
 
1840
2042
  type PrimaryNetworkOptions = {
@@ -1844,7 +2046,7 @@ type PrimaryNetworkOptions = {
1844
2046
  };
1845
2047
 
1846
2048
  type CreatePrimaryNetworkTransactionExportRequest = {
1847
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2049
+ type: PrimaryNetworkOperationType;
1848
2050
  firstDate: string;
1849
2051
  lastDate: string;
1850
2052
  /**
@@ -1857,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1857
2059
  endDate: string;
1858
2060
  options: PrimaryNetworkOptions;
1859
2061
  };
1860
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1861
- enum type {
1862
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1863
- }
1864
- }
1865
2062
 
1866
2063
  declare enum OperationStatus {
1867
2064
  RUNNING = "RUNNING",
@@ -1871,8 +2068,10 @@ declare enum OperationStatus {
1871
2068
  }
1872
2069
 
1873
2070
  declare enum OperationType {
1874
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1875
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2073
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2074
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1876
2075
  }
1877
2076
 
1878
2077
  declare enum OperationStatusCode {
@@ -1906,17 +2105,6 @@ type OperationStatusResponse = {
1906
2105
  declare class OperationsService {
1907
2106
  readonly httpRequest: BaseHttpRequest;
1908
2107
  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
2108
  /**
1921
2109
  * Get operation
1922
2110
  * Gets operation details for the given operation id.
@@ -1929,6 +2117,17 @@ declare class OperationsService {
1929
2117
  */
1930
2118
  operationId: string;
1931
2119
  }): CancelablePromise<OperationStatusResponse>;
2120
+ /**
2121
+ * Create transaction export operation
2122
+ * Trigger a transaction export operation with given parameters.
2123
+ *
2124
+ * 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.
2125
+ * @returns OperationStatusResponse
2126
+ * @throws ApiError
2127
+ */
2128
+ postTransactionExportJob({ requestBody, }: {
2129
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2130
+ }): CancelablePromise<OperationStatusResponse>;
1932
2131
  }
1933
2132
 
1934
2133
  declare enum BlockchainIds {
@@ -1997,6 +2196,7 @@ type ListBlockchainsResponse = {
1997
2196
 
1998
2197
  type ActiveDelegatorDetails = {
1999
2198
  txHash: string;
2199
+ nodeId: string;
2000
2200
  rewardAddresses: Array<string>;
2001
2201
  amountDelegated: string;
2002
2202
  delegationFee: string;
@@ -2014,6 +2214,7 @@ declare namespace ActiveDelegatorDetails {
2014
2214
 
2015
2215
  type CompletedDelegatorDetails = {
2016
2216
  txHash: string;
2217
+ nodeId: string;
2017
2218
  rewardAddresses: Array<string>;
2018
2219
  amountDelegated: string;
2019
2220
  delegationFee: string;
@@ -2031,6 +2232,7 @@ declare namespace CompletedDelegatorDetails {
2031
2232
 
2032
2233
  type PendingDelegatorDetails = {
2033
2234
  txHash: string;
2235
+ nodeId: string;
2034
2236
  rewardAddresses: Array<string>;
2035
2237
  amountDelegated: string;
2036
2238
  delegationFee: string;
@@ -2061,13 +2263,44 @@ type BlockchainInfo = {
2061
2263
  blockchainId: string;
2062
2264
  };
2063
2265
 
2266
+ type SubnetOwnershipInfo = {
2267
+ /**
2268
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2269
+ */
2270
+ locktime: number;
2271
+ /**
2272
+ * Minimum number of signatures required to sign the Subnet update transactions.
2273
+ */
2274
+ threshold: number;
2275
+ /**
2276
+ * Addresses that are eligible to sign the Subnet update transactions.
2277
+ */
2278
+ addresses: Array<string>;
2279
+ };
2280
+
2064
2281
  type Subnet = {
2065
2282
  createBlockTimestamp: number;
2066
2283
  createBlockIndex: string;
2067
2284
  subnetId: string;
2285
+ /**
2286
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2287
+ * @deprecated
2288
+ */
2068
2289
  ownerAddresses: Array<string>;
2290
+ /**
2291
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2292
+ * @deprecated
2293
+ */
2069
2294
  threshold: number;
2295
+ /**
2296
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2297
+ * @deprecated
2298
+ */
2070
2299
  locktime: number;
2300
+ /**
2301
+ * Latest subnet owner details for this Subnet.
2302
+ */
2303
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2071
2304
  blockchains: Array<BlockchainInfo>;
2072
2305
  };
2073
2306
 
@@ -2082,22 +2315,46 @@ type ListSubnetsResponse = {
2082
2315
  type Rewards = {
2083
2316
  validationRewardAmount: string;
2084
2317
  delegationRewardAmount: string;
2318
+ rewardAddresses?: Array<string>;
2319
+ rewardTxHash?: string;
2320
+ };
2321
+
2322
+ type ValidatorHealthDetails = {
2323
+ /**
2324
+ * Percent of requests responded to in last polling.
2325
+ */
2326
+ reachabilityPercent: number;
2327
+ /**
2328
+ * Percent of requests benched on the P-Chain in last polling.
2329
+ */
2330
+ benchedPChainRequestsPercent: number;
2331
+ /**
2332
+ * Percentage of requests benched on the X-Chain in last polling.
2333
+ */
2334
+ benchedXChainRequestsPercent: number;
2335
+ /**
2336
+ * Percentage of requests benched on the C-Chain in last polling.
2337
+ */
2338
+ benchedCChainRequestsPercent: number;
2085
2339
  };
2086
2340
 
2087
2341
  type ActiveValidatorDetails = {
2342
+ txHash: string;
2088
2343
  nodeId: string;
2344
+ subnetId: string;
2089
2345
  amountStaked: string;
2090
- delegationFee: string;
2346
+ delegationFee?: string;
2091
2347
  startTimestamp: number;
2092
2348
  endTimestamp: number;
2093
2349
  stakePercentage: number;
2094
2350
  delegatorCount: number;
2095
- amountDelegated: string;
2351
+ amountDelegated?: string;
2096
2352
  uptimePerformance: number;
2097
- avalancheGoVersion: string;
2098
- delegationCapacity: string;
2353
+ avalancheGoVersion?: string;
2354
+ delegationCapacity?: string;
2099
2355
  potentialRewards: Rewards;
2100
2356
  validationStatus: ActiveValidatorDetails.validationStatus;
2357
+ validatorHealth: ValidatorHealthDetails;
2101
2358
  };
2102
2359
  declare namespace ActiveValidatorDetails {
2103
2360
  enum validationStatus {
@@ -2106,9 +2363,11 @@ declare namespace ActiveValidatorDetails {
2106
2363
  }
2107
2364
 
2108
2365
  type CompletedValidatorDetails = {
2366
+ txHash: string;
2109
2367
  nodeId: string;
2368
+ subnetId: string;
2110
2369
  amountStaked: string;
2111
- delegationFee: string;
2370
+ delegationFee?: string;
2112
2371
  startTimestamp: number;
2113
2372
  endTimestamp: number;
2114
2373
  delegatorCount: number;
@@ -2122,9 +2381,11 @@ declare namespace CompletedValidatorDetails {
2122
2381
  }
2123
2382
 
2124
2383
  type PendingValidatorDetails = {
2384
+ txHash: string;
2125
2385
  nodeId: string;
2386
+ subnetId: string;
2126
2387
  amountStaked: string;
2127
- delegationFee: string;
2388
+ delegationFee?: string;
2128
2389
  startTimestamp: number;
2129
2390
  endTimestamp: number;
2130
2391
  validationStatus: PendingValidatorDetails.validationStatus;
@@ -2135,15 +2396,33 @@ declare namespace PendingValidatorDetails {
2135
2396
  }
2136
2397
  }
2137
2398
 
2399
+ type RemovedValidatorDetails = {
2400
+ txHash: string;
2401
+ nodeId: string;
2402
+ subnetId: string;
2403
+ amountStaked: string;
2404
+ delegationFee?: string;
2405
+ startTimestamp: number;
2406
+ endTimestamp: number;
2407
+ removeTxHash: string;
2408
+ removeTimestamp: number;
2409
+ validationStatus: RemovedValidatorDetails.validationStatus;
2410
+ };
2411
+ declare namespace RemovedValidatorDetails {
2412
+ enum validationStatus {
2413
+ REMOVED = "removed"
2414
+ }
2415
+ }
2416
+
2138
2417
  type ListValidatorDetailsResponse = {
2139
2418
  /**
2140
2419
  * 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
2420
  */
2142
2421
  nextPageToken?: string;
2143
2422
  /**
2144
- * The list of Validator Details.
2423
+ * The list of validator Details.
2145
2424
  */
2146
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2425
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2147
2426
  };
2148
2427
 
2149
2428
  declare enum Network {
@@ -2154,7 +2433,24 @@ declare enum Network {
2154
2433
  declare enum ValidationStatusType {
2155
2434
  COMPLETED = "completed",
2156
2435
  ACTIVE = "active",
2157
- PENDING = "pending"
2436
+ PENDING = "pending",
2437
+ REMOVED = "removed"
2438
+ }
2439
+
2440
+ /**
2441
+ * Cap represents if an asset is a variable or fixed cap asset.
2442
+ */
2443
+ declare enum PrimaryNetworkAssetCap {
2444
+ FIXED = "fixed",
2445
+ VARIABLE = "variable"
2446
+ }
2447
+
2448
+ /**
2449
+ * Type of asset like SECP256K1 or NFT.
2450
+ */
2451
+ declare enum PrimaryNetworkAssetType {
2452
+ SECP256K1 = "secp256k1",
2453
+ NFT = "nft"
2158
2454
  }
2159
2455
 
2160
2456
  type XChainAssetDetails = {
@@ -2174,18 +2470,12 @@ type XChainAssetDetails = {
2174
2470
  * Denomination of this asset to represent fungibility.
2175
2471
  */
2176
2472
  denomination: number;
2177
- /**
2178
- * Type of asset like SECP256K1 or NFT.
2179
- */
2180
- type: string;
2473
+ type: PrimaryNetworkAssetType;
2181
2474
  /**
2182
2475
  * Timestamp in seconds this asset was created on.
2183
2476
  */
2184
2477
  createdAtTimestamp: number;
2185
- /**
2186
- * Cap represents if an asset can be or is fixed cap.
2187
- */
2188
- cap: string;
2478
+ cap: PrimaryNetworkAssetCap;
2189
2479
  };
2190
2480
 
2191
2481
  declare enum XChainId {
@@ -2251,19 +2541,19 @@ declare class PrimaryNetworkService {
2251
2541
  * @returns ListBlockchainsResponse
2252
2542
  * @throws ApiError
2253
2543
  */
2254
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2544
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2255
2545
  /**
2256
2546
  * Either mainnet or a testnet.
2257
2547
  */
2258
2548
  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
2549
  /**
2264
2550
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2265
2551
  */
2266
2552
  pageToken?: string;
2553
+ /**
2554
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2555
+ */
2556
+ pageSize?: number;
2267
2557
  /**
2268
2558
  * 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
2559
  */
@@ -2275,19 +2565,19 @@ declare class PrimaryNetworkService {
2275
2565
  * @returns ListSubnetsResponse
2276
2566
  * @throws ApiError
2277
2567
  */
2278
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2568
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2279
2569
  /**
2280
2570
  * Either mainnet or a testnet.
2281
2571
  */
2282
2572
  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
2573
  /**
2288
2574
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2289
2575
  */
2290
2576
  pageToken?: string;
2577
+ /**
2578
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2579
+ */
2580
+ pageSize?: number;
2291
2581
  /**
2292
2582
  * 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
2583
  */
@@ -2299,19 +2589,19 @@ declare class PrimaryNetworkService {
2299
2589
  * @returns ListValidatorDetailsResponse
2300
2590
  * @throws ApiError
2301
2591
  */
2302
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2592
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2303
2593
  /**
2304
2594
  * Either mainnet or a testnet.
2305
2595
  */
2306
2596
  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
2597
  /**
2312
2598
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2313
2599
  */
2314
2600
  pageToken?: string;
2601
+ /**
2602
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2603
+ */
2604
+ pageSize?: number;
2315
2605
  /**
2316
2606
  * A comma separated list of node ids to filter by.
2317
2607
  */
@@ -2325,9 +2615,33 @@ declare class PrimaryNetworkService {
2325
2615
  */
2326
2616
  validationStatus?: ValidationStatusType;
2327
2617
  /**
2328
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2618
+ * 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
2619
+ */
2620
+ minDelegationCapacity?: string;
2621
+ /**
2622
+ * 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.
2623
+ */
2624
+ maxDelegationCapacity?: string;
2625
+ /**
2626
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2627
+ */
2628
+ minTimeRemaining?: number;
2629
+ /**
2630
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2631
+ */
2632
+ maxTimeRemaining?: number;
2633
+ /**
2634
+ * 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, as per the Avalanche spec.
2635
+ */
2636
+ minFeePercentage?: number;
2637
+ /**
2638
+ * 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.
2639
+ */
2640
+ maxFeePercentage?: number;
2641
+ /**
2642
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2329
2643
  */
2330
- minDelegationCapacity?: any;
2644
+ subnetId?: any;
2331
2645
  }): CancelablePromise<ListValidatorDetailsResponse>;
2332
2646
  /**
2333
2647
  * Get single validator details
@@ -2335,7 +2649,7 @@ declare class PrimaryNetworkService {
2335
2649
  * @returns ListValidatorDetailsResponse
2336
2650
  * @throws ApiError
2337
2651
  */
2338
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2652
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2339
2653
  /**
2340
2654
  * Either mainnet or a testnet.
2341
2655
  */
@@ -2344,14 +2658,14 @@ declare class PrimaryNetworkService {
2344
2658
  * A primary network (P or X chain) nodeId.
2345
2659
  */
2346
2660
  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
2661
  /**
2352
2662
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2353
2663
  */
2354
2664
  pageToken?: string;
2665
+ /**
2666
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2667
+ */
2668
+ pageSize?: number;
2355
2669
  /**
2356
2670
  * 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.
2357
2671
  */
@@ -2367,19 +2681,23 @@ declare class PrimaryNetworkService {
2367
2681
  * @returns ListDelegatorDetailsResponse
2368
2682
  * @throws ApiError
2369
2683
  */
2370
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2684
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2371
2685
  /**
2372
2686
  * Either mainnet or a testnet.
2373
2687
  */
2374
2688
  network: Network;
2689
+ /**
2690
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2691
+ */
2692
+ pageToken?: string;
2375
2693
  /**
2376
2694
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2377
2695
  */
2378
2696
  pageSize?: number;
2379
2697
  /**
2380
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2698
+ * A comma separated list of reward addresses to filter by.
2381
2699
  */
2382
- pageToken?: string;
2700
+ rewardAddresses?: string;
2383
2701
  /**
2384
2702
  * 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
2703
  */
@@ -2388,10 +2706,6 @@ declare class PrimaryNetworkService {
2388
2706
  * Delegation status of the node.
2389
2707
  */
2390
2708
  delegationStatus?: DelegationStatusType;
2391
- /**
2392
- * A comma separated list of reward addresses to filter by.
2393
- */
2394
- rewardAddresses?: string;
2395
2709
  /**
2396
2710
  * A comma separated list of node ids to filter by.
2397
2711
  */
@@ -2427,10 +2741,7 @@ type CChainSharedAssetBalance = {
2427
2741
  * Denomination of this asset to represent fungibility.
2428
2742
  */
2429
2743
  denomination: number;
2430
- /**
2431
- * Type of asset like SECP256K1 or NFT.
2432
- */
2433
- type: string;
2744
+ type: PrimaryNetworkAssetType;
2434
2745
  /**
2435
2746
  * Amount of the asset.
2436
2747
  */
@@ -2465,49 +2776,89 @@ type ListCChainAtomicBalancesResponse = {
2465
2776
  chainInfo: PrimaryNetworkChainInfo;
2466
2777
  };
2467
2778
 
2468
- type PChainAsset = {
2779
+ type AggregatedAssetAmount = {
2780
+ /**
2781
+ * Unique ID for an asset.
2782
+ */
2469
2783
  assetId: string;
2784
+ /**
2785
+ * Name of this asset.
2786
+ */
2787
+ name: string;
2788
+ /**
2789
+ * Symbol for this asset (max 4 characters).
2790
+ */
2791
+ symbol: string;
2792
+ /**
2793
+ * Denomination of this asset to represent fungibility.
2794
+ */
2795
+ denomination: number;
2796
+ type: PrimaryNetworkAssetType;
2797
+ /**
2798
+ * Amount of the asset.
2799
+ */
2470
2800
  amount: string;
2801
+ utxoCount: number;
2471
2802
  };
2472
2803
 
2473
2804
  type PChainSharedAsset = {
2805
+ /**
2806
+ * Unique ID for an asset.
2807
+ */
2474
2808
  assetId: string;
2809
+ /**
2810
+ * Name of this asset.
2811
+ */
2812
+ name: string;
2813
+ /**
2814
+ * Symbol for this asset (max 4 characters).
2815
+ */
2816
+ symbol: string;
2817
+ /**
2818
+ * Denomination of this asset to represent fungibility.
2819
+ */
2820
+ denomination: number;
2821
+ type: PrimaryNetworkAssetType;
2822
+ /**
2823
+ * Amount of the asset.
2824
+ */
2475
2825
  amount: string;
2826
+ utxoCount: number;
2476
2827
  sharedWithChainId: string;
2477
2828
  status: string;
2478
2829
  };
2479
2830
 
2480
2831
  type PChainBalance = {
2481
2832
  /**
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.
2833
+ * 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.
2483
2834
  */
2484
- unlockedUnstaked: Array<PChainAsset>;
2835
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2485
2836
  /**
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.
2837
+ * 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.
2487
2838
  */
2488
- unlockedStaked: Array<PChainAsset>;
2839
+ unlockedStaked: Array<AggregatedAssetAmount>;
2489
2840
  /**
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.
2841
+ * 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.
2491
2842
  */
2492
- lockedPlatform: Array<PChainAsset>;
2843
+ lockedPlatform: Array<AggregatedAssetAmount>;
2493
2844
  /**
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.
2845
+ * 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.
2495
2846
  */
2496
- lockedStakeable: Array<PChainAsset>;
2847
+ lockedStakeable: Array<AggregatedAssetAmount>;
2497
2848
  /**
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.
2849
+ * 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.
2499
2850
  */
2500
- lockedStaked: Array<PChainAsset>;
2851
+ lockedStaked: Array<AggregatedAssetAmount>;
2501
2852
  /**
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.
2853
+ * 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.
2503
2854
  */
2504
- pendingStaked: Array<PChainAsset>;
2855
+ pendingStaked: Array<AggregatedAssetAmount>;
2505
2856
  /**
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.
2857
+ * 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.
2507
2858
  */
2508
2859
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2509
2860
  /**
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.
2861
+ * 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.
2511
2862
  */
2512
2863
  atomicMemoryLocked: Array<PChainSharedAsset>;
2513
2864
  };
@@ -2517,7 +2868,7 @@ type ListPChainBalancesResponse = {
2517
2868
  chainInfo: PrimaryNetworkChainInfo;
2518
2869
  };
2519
2870
 
2520
- type XChainAssetBalance = {
2871
+ type XChainSharedAssetBalance = {
2521
2872
  /**
2522
2873
  * Unique ID for an asset.
2523
2874
  */
@@ -2534,55 +2885,24 @@ type XChainAssetBalance = {
2534
2885
  * Denomination of this asset to represent fungibility.
2535
2886
  */
2536
2887
  denomination: number;
2537
- /**
2538
- * Type of asset like SECP256K1 or NFT.
2539
- */
2540
- type: string;
2888
+ type: PrimaryNetworkAssetType;
2541
2889
  /**
2542
2890
  * Amount of the asset.
2543
2891
  */
2544
2892
  amount: string;
2545
2893
  utxoCount: number;
2894
+ sharedWithChainId: string;
2546
2895
  };
2547
2896
 
2548
- type XChainSharedAssetBalance = {
2549
- /**
2550
- * Unique ID for an asset.
2551
- */
2552
- assetId: string;
2553
- /**
2554
- * Name of this asset.
2555
- */
2556
- name: string;
2557
- /**
2558
- * Symbol for this asset (max 4 characters).
2559
- */
2560
- symbol: string;
2561
- /**
2562
- * Denomination of this asset to represent fungibility.
2563
- */
2564
- denomination: number;
2565
- /**
2566
- * Type of asset like SECP256K1 or NFT.
2567
- */
2568
- type: string;
2569
- /**
2570
- * Amount of the asset.
2571
- */
2572
- amount: string;
2573
- utxoCount: number;
2574
- sharedWithChainId: string;
2575
- };
2576
-
2577
- type XChainBalances = {
2897
+ type XChainBalances = {
2578
2898
  /**
2579
2899
  * A list of objects containing X-chain Asset balance information.
2580
2900
  */
2581
- locked: Array<XChainAssetBalance>;
2901
+ locked: Array<AggregatedAssetAmount>;
2582
2902
  /**
2583
2903
  * A list of objects containing X-chain Asset balance information.
2584
2904
  */
2585
- unlocked: Array<XChainAssetBalance>;
2905
+ unlocked: Array<AggregatedAssetAmount>;
2586
2906
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2587
2907
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2588
2908
  };
@@ -2640,6 +2960,7 @@ type GetPrimaryNetworkBlockResponse = {
2640
2960
  txCount: number;
2641
2961
  transactions: Array<string>;
2642
2962
  blockSizeBytes: number;
2963
+ currentSupply?: string;
2643
2964
  proposerDetails?: ProposerDetails;
2644
2965
  };
2645
2966
 
@@ -2652,6 +2973,7 @@ type PrimaryNetworkBlock = {
2652
2973
  txCount: number;
2653
2974
  transactions: Array<string>;
2654
2975
  blockSizeBytes: number;
2976
+ currentSupply?: string;
2655
2977
  proposerDetails?: ProposerDetails;
2656
2978
  };
2657
2979
 
@@ -2693,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
2693
3015
  * @returns ListPrimaryNetworkBlocksResponse
2694
3016
  * @throws ApiError
2695
3017
  */
2696
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3018
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2697
3019
  /**
2698
3020
  * A primary network blockchain id or alias.
2699
3021
  */
@@ -2706,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
2706
3028
  * A primary network (P or X chain) nodeId.
2707
3029
  */
2708
3030
  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
3031
  /**
2714
3032
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2715
3033
  */
2716
3034
  pageToken?: string;
3035
+ /**
3036
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3037
+ */
3038
+ pageSize?: number;
2717
3039
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2718
3040
  /**
2719
3041
  * List latest blocks
@@ -2721,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
2721
3043
  * @returns ListPrimaryNetworkBlocksResponse
2722
3044
  * @throws ApiError
2723
3045
  */
2724
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3046
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2725
3047
  /**
2726
3048
  * A primary network blockchain id or alias.
2727
3049
  */
@@ -2730,20 +3052,49 @@ declare class PrimaryNetworkBlocksService {
2730
3052
  * Either mainnet or a testnet.
2731
3053
  */
2732
3054
  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
3055
  /**
2738
3056
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2739
3057
  */
2740
3058
  pageToken?: string;
3059
+ /**
3060
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3061
+ */
3062
+ pageSize?: number;
2741
3063
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2742
3064
  }
2743
3065
 
3066
+ type AssetWithPriceInfo = {
3067
+ /**
3068
+ * Unique ID for an asset.
3069
+ */
3070
+ assetId: string;
3071
+ /**
3072
+ * Name of this asset.
3073
+ */
3074
+ name: string;
3075
+ /**
3076
+ * Symbol for this asset (max 4 characters).
3077
+ */
3078
+ symbol: string;
3079
+ /**
3080
+ * Denomination of this asset to represent fungibility.
3081
+ */
3082
+ denomination: number;
3083
+ type: PrimaryNetworkAssetType;
3084
+ /**
3085
+ * Amount of the asset.
3086
+ */
3087
+ amount: string;
3088
+ /**
3089
+ * 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.
3090
+ */
3091
+ historicalPrice?: Money;
3092
+ };
3093
+
2744
3094
  declare enum RewardType {
2745
3095
  VALIDATOR = "VALIDATOR",
2746
- DELEGATOR = "DELEGATOR"
3096
+ DELEGATOR = "DELEGATOR",
3097
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2747
3098
  }
2748
3099
 
2749
3100
  type HistoricalReward = {
@@ -2759,10 +3110,7 @@ type HistoricalReward = {
2759
3110
  rewardType: RewardType;
2760
3111
  utxoId: string;
2761
3112
  outputIndex: number;
2762
- /**
2763
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2764
- */
2765
- reward: PChainAsset;
3113
+ reward: AssetWithPriceInfo;
2766
3114
  rewardTxHash: string;
2767
3115
  };
2768
3116
 
@@ -2774,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
2774
3122
  historicalRewards: Array<HistoricalReward>;
2775
3123
  };
2776
3124
 
3125
+ type AssetAmount = {
3126
+ /**
3127
+ * Unique ID for an asset.
3128
+ */
3129
+ assetId: string;
3130
+ /**
3131
+ * Name of this asset.
3132
+ */
3133
+ name: string;
3134
+ /**
3135
+ * Symbol for this asset (max 4 characters).
3136
+ */
3137
+ symbol: string;
3138
+ /**
3139
+ * Denomination of this asset to represent fungibility.
3140
+ */
3141
+ denomination: number;
3142
+ type: PrimaryNetworkAssetType;
3143
+ /**
3144
+ * Amount of the asset.
3145
+ */
3146
+ amount: string;
3147
+ };
3148
+
2777
3149
  type PendingReward = {
2778
3150
  /**
2779
3151
  * An array of P-Chain wallet addresses.
@@ -2787,9 +3159,9 @@ type PendingReward = {
2787
3159
  rewardType: RewardType;
2788
3160
  progress: number;
2789
3161
  /**
2790
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3162
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
2791
3163
  */
2792
- estimatedReward: PChainAsset;
3164
+ estimatedReward: AssetAmount;
2793
3165
  };
2794
3166
 
2795
3167
  type ListPendingRewardsResponse = {
@@ -2809,23 +3181,27 @@ declare class PrimaryNetworkRewardsService {
2809
3181
  * @returns ListPendingRewardsResponse
2810
3182
  * @throws ApiError
2811
3183
  */
2812
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3184
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2813
3185
  /**
2814
3186
  * Either mainnet or a testnet.
2815
3187
  */
2816
3188
  network: Network;
2817
3189
  /**
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".
3190
+ * 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
3191
  */
2820
3192
  addresses?: string;
3193
+ /**
3194
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3195
+ */
3196
+ pageToken?: string;
2821
3197
  /**
2822
3198
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2823
3199
  */
2824
3200
  pageSize?: number;
2825
3201
  /**
2826
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3202
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
2827
3203
  */
2828
- pageToken?: string;
3204
+ nodeIds?: string;
2829
3205
  /**
2830
3206
  * 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
3207
  */
@@ -2837,64 +3213,45 @@ declare class PrimaryNetworkRewardsService {
2837
3213
  * @returns ListHistoricalRewardsResponse
2838
3214
  * @throws ApiError
2839
3215
  */
2840
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3216
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2841
3217
  /**
2842
3218
  * Either mainnet or a testnet.
2843
3219
  */
2844
3220
  network: Network;
2845
3221
  /**
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".
3222
+ * 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
3223
  */
2848
3224
  addresses?: string;
3225
+ /**
3226
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3227
+ */
3228
+ pageToken?: string;
2849
3229
  /**
2850
3230
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2851
3231
  */
2852
3232
  pageSize?: number;
2853
3233
  /**
2854
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3234
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2855
3235
  */
2856
- pageToken?: string;
3236
+ nodeIds?: string;
2857
3237
  /**
2858
3238
  * 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
3239
  */
2860
3240
  sortOrder?: SortOrder;
3241
+ /**
3242
+ * The currency that return values should use. Defaults to USD.
3243
+ */
3244
+ currency?: CurrencyCode;
2861
3245
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2862
3246
  }
2863
3247
 
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
3248
  type UtxoCredential = {
2892
3249
  /**
2893
- * Signature provided to consume the output
3250
+ * Signature provided to consume the output.
2894
3251
  */
2895
3252
  signature?: string;
2896
3253
  /**
2897
- * Public key associated with the signature
3254
+ * Public key associated with the signature.
2898
3255
  */
2899
3256
  publicKey?: string;
2900
3257
  };
@@ -2905,9 +3262,9 @@ type EVMInput = {
2905
3262
  */
2906
3263
  fromAddress: string;
2907
3264
  /**
2908
- * Asset details for the asset being transferred.
3265
+ * AssetAmount details for the asset being transferred.
2909
3266
  */
2910
- asset: Asset;
3267
+ asset: AssetAmount;
2911
3268
  /**
2912
3269
  * Credentials that signed this transaction.
2913
3270
  */
@@ -2916,66 +3273,66 @@ type EVMInput = {
2916
3273
 
2917
3274
  type Utxo = {
2918
3275
  /**
2919
- * UTXO ID for this output.
3276
+ * Addresses that are eligible to sign the consumption of this output.
2920
3277
  */
2921
- utxoId: string;
2922
- asset: Asset;
3278
+ addresses: Array<string>;
3279
+ asset: AssetAmount;
2923
3280
  /**
2924
- * Type of output.
3281
+ * Blockchain ID on which this output is consumed on.
2925
3282
  */
2926
- utxoType: string;
3283
+ consumedOnChainId: string;
2927
3284
  /**
2928
- * Blockchain ID on which this output is created on.
3285
+ * Transaction ID that consumed this output.
2929
3286
  */
2930
- createdOnChainId: string;
3287
+ consumingTxHash?: string;
2931
3288
  /**
2932
- * Blockchain ID on which this output is consumed on.
3289
+ * Blockchain ID on which this output is created on.
2933
3290
  */
2934
- consumedOnChainId: string;
3291
+ createdOnChainId: string;
2935
3292
  /**
2936
- * Transaction ID that created this output.
3293
+ * UTXO ID for this output.
2937
3294
  */
2938
- creationTxHash: string;
3295
+ utxoId: string;
2939
3296
  /**
2940
- * Transaction ID that consumed this output.
3297
+ * Unix timestamp in seconds at which this output was consumed.
2941
3298
  */
2942
- consumingTxHash?: string;
3299
+ consumingTxTimestamp?: number;
2943
3300
  /**
2944
- * Timestamp in seconds this output is consumed.
3301
+ * Transaction ID that created this output.
2945
3302
  */
2946
- consumingTxTimestamp?: number;
3303
+ creationTxHash: string;
2947
3304
  /**
2948
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3305
+ * Credentials that signed the transaction to consume this utxo
2949
3306
  */
2950
- outputIndex: string;
3307
+ credentials?: Array<UtxoCredential>;
2951
3308
  /**
2952
- * Timestamp in seconds this outptut is created on.
3309
+ * Index representing the minting set for the NFT mint output.
2953
3310
  */
2954
- timestamp: number;
3311
+ groupId?: number;
2955
3312
  /**
2956
3313
  * Locktime in seconds after which this output can be consumed.
2957
3314
  */
2958
3315
  locktime: number;
2959
3316
  /**
2960
- * Minimum number of signatures required to consume this output.
3317
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2961
3318
  */
2962
- threshold: number;
3319
+ outputIndex: string;
2963
3320
  /**
2964
- * Addresses that are eligible to sign the consumption of this output.
3321
+ * Hex encoded data for NFT assets.
2965
3322
  */
2966
- addresses: Array<string>;
3323
+ payload?: string;
2967
3324
  /**
2968
- * Hex encoded data for NFT assets
3325
+ * Minimum number of signatures required to consume this output.
2969
3326
  */
2970
- payload?: string;
3327
+ threshold: number;
2971
3328
  /**
2972
- * Index representing the minting set for the NFT mint output
3329
+ * Unix timestamp in seconds at which this outptut was created.
2973
3330
  */
2974
- groupId?: number;
3331
+ timestamp: number;
2975
3332
  /**
2976
- * Credentials that signed the transaction to consume this utxo
3333
+ * Type of output.
2977
3334
  */
2978
- credentials?: Array<UtxoCredential>;
3335
+ utxoType: string;
2979
3336
  };
2980
3337
 
2981
3338
  type CChainExportTransaction = {
@@ -3002,11 +3359,11 @@ type CChainExportTransaction = {
3002
3359
  /**
3003
3360
  * Assets unlocked by inputs of this transaction.
3004
3361
  */
3005
- amountUnlocked: Array<Asset>;
3362
+ amountUnlocked: Array<AssetAmount>;
3006
3363
  /**
3007
3364
  * Assets created by outputs of this transaction.
3008
3365
  */
3009
- amountCreated: Array<Asset>;
3366
+ amountCreated: Array<AssetAmount>;
3010
3367
  /**
3011
3368
  * Source chain for an atomic transaction.
3012
3369
  */
@@ -3037,9 +3394,9 @@ type EVMOutput = {
3037
3394
  */
3038
3395
  toAddress: string;
3039
3396
  /**
3040
- * Asset details for the asset being transferred.
3397
+ * AssetAmount details for the asset being transferred.
3041
3398
  */
3042
- asset: Asset;
3399
+ asset: AssetAmount;
3043
3400
  };
3044
3401
 
3045
3402
  type CChainImportTransaction = {
@@ -3066,11 +3423,11 @@ type CChainImportTransaction = {
3066
3423
  /**
3067
3424
  * Assets unlocked by inputs of this transaction.
3068
3425
  */
3069
- amountUnlocked: Array<Asset>;
3426
+ amountUnlocked: Array<AssetAmount>;
3070
3427
  /**
3071
3428
  * Assets created by outputs of this transaction.
3072
3429
  */
3073
- amountCreated: Array<Asset>;
3430
+ amountCreated: Array<AssetAmount>;
3074
3431
  /**
3075
3432
  * Source chain for an atomic transaction.
3076
3433
  */
@@ -3106,16 +3463,20 @@ type ListCChainAtomicTransactionsResponse = {
3106
3463
 
3107
3464
  declare enum PChainTransactionType {
3108
3465
  ADD_VALIDATOR_TX = "AddValidatorTx",
3109
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3110
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3111
3466
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3112
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3113
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3467
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3114
3468
  CREATE_CHAIN_TX = "CreateChainTx",
3115
3469
  CREATE_SUBNET_TX = "CreateSubnetTx",
3116
3470
  IMPORT_TX = "ImportTx",
3117
3471
  EXPORT_TX = "ExportTx",
3118
3472
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3473
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3474
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3475
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3476
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3477
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3478
+ BASE_TX = "BaseTx",
3479
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3119
3480
  UNKNOWN = "UNKNOWN"
3120
3481
  }
3121
3482
 
@@ -3126,29 +3487,48 @@ declare enum UtxoType {
3126
3487
 
3127
3488
  type PChainUtxo = {
3128
3489
  /**
3129
- * An array of P-Chain wallet addresses.
3490
+ * Addresses that are eligible to sign the consumption of this output.
3130
3491
  */
3131
3492
  addresses: Array<string>;
3493
+ asset: AssetAmount;
3494
+ /**
3495
+ * Blockchain ID on which this output is consumed on.
3496
+ */
3497
+ consumedOnChainId: string;
3498
+ /**
3499
+ * Transaction ID that consumed this output.
3500
+ */
3501
+ consumingTxHash?: string;
3502
+ /**
3503
+ * Blockchain ID on which this output is created on.
3504
+ */
3505
+ createdOnChainId: string;
3506
+ /**
3507
+ * UTXO ID for this output.
3508
+ */
3132
3509
  utxoId: string;
3133
- txHash: string;
3134
- outputIndex: number;
3510
+ /**
3511
+ * @deprecated
3512
+ */
3513
+ amount: string;
3514
+ /**
3515
+ * @deprecated
3516
+ */
3517
+ assetId: string;
3135
3518
  blockNumber: string;
3136
3519
  blockTimestamp: number;
3137
- consumingTxHash?: string;
3138
- consumingBlockTimestamp?: number;
3139
3520
  consumingBlockNumber?: string;
3140
- assetId: string;
3141
- utxoType: UtxoType;
3142
- amount: string;
3143
- stakeableLocktime?: number;
3521
+ consumingBlockTimestamp?: number;
3144
3522
  platformLocktime?: number;
3145
- threshold?: number;
3146
- createdOnChainId: string;
3147
- consumedOnChainId: string;
3523
+ outputIndex: number;
3524
+ rewardType?: RewardType;
3525
+ stakeableLocktime?: number;
3148
3526
  staked?: boolean;
3149
- utxoStartTimestamp?: number;
3527
+ threshold?: number;
3528
+ txHash: string;
3150
3529
  utxoEndTimestamp?: number;
3151
- rewardType?: RewardType;
3530
+ utxoStartTimestamp?: number;
3531
+ utxoType: UtxoType;
3152
3532
  };
3153
3533
 
3154
3534
  type PChainTransaction = {
@@ -3174,17 +3554,17 @@ type PChainTransaction = {
3174
3554
  */
3175
3555
  destinationChain?: string;
3176
3556
  /**
3177
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3557
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3178
3558
  */
3179
- value: Array<PChainAsset>;
3559
+ value: Array<AssetAmount>;
3180
3560
  /**
3181
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3561
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3182
3562
  */
3183
- amountBurned: Array<PChainAsset>;
3563
+ amountBurned: Array<AssetAmount>;
3184
3564
  /**
3185
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3565
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3186
3566
  */
3187
- amountStaked: Array<PChainAsset>;
3567
+ amountStaked: Array<AssetAmount>;
3188
3568
  /**
3189
3569
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3190
3570
  */
@@ -3210,11 +3590,16 @@ type PChainTransaction = {
3210
3590
  */
3211
3591
  estimatedReward?: string;
3212
3592
  rewardTxHash?: string;
3593
+ rewardAddresses?: Array<string>;
3213
3594
  memo?: string;
3214
3595
  /**
3215
3596
  * Present for RewardValidatorTx
3216
3597
  */
3217
3598
  stakingTxHash?: string;
3599
+ /**
3600
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3601
+ */
3602
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3218
3603
  };
3219
3604
 
3220
3605
  type ListPChainTransactionsResponse = {
@@ -3226,6 +3611,18 @@ type ListPChainTransactionsResponse = {
3226
3611
  chainInfo: PrimaryNetworkChainInfo;
3227
3612
  };
3228
3613
 
3614
+ /**
3615
+ * Type of transaction.
3616
+ */
3617
+ declare enum XChainTransactionType {
3618
+ BASE_TX = "BaseTx",
3619
+ CREATE_ASSET_TX = "CreateAssetTx",
3620
+ OPERATION_TX = "OperationTx",
3621
+ IMPORT_TX = "ImportTx",
3622
+ EXPORT_TX = "ExportTx",
3623
+ UNKNOWN = "UNKNOWN"
3624
+ }
3625
+
3229
3626
  type XChainLinearTransaction = {
3230
3627
  /**
3231
3628
  * Unique ID for this transaction.
@@ -3239,10 +3636,7 @@ type XChainLinearTransaction = {
3239
3636
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3240
3637
  */
3241
3638
  timestamp: number;
3242
- /**
3243
- * Type of transaction.
3244
- */
3245
- txType: string;
3639
+ txType: XChainTransactionType;
3246
3640
  /**
3247
3641
  * Hex encoded memo bytes for this transaction.
3248
3642
  */
@@ -3252,11 +3646,11 @@ type XChainLinearTransaction = {
3252
3646
  /**
3253
3647
  * Assets unlocked by inputs of this transaction.
3254
3648
  */
3255
- amountUnlocked: Array<Asset>;
3649
+ amountUnlocked: Array<AssetAmount>;
3256
3650
  /**
3257
3651
  * Assets created by outputs of this transaction.
3258
3652
  */
3259
- amountCreated: Array<Asset>;
3653
+ amountCreated: Array<AssetAmount>;
3260
3654
  /**
3261
3655
  * Source chain for an atomic transaction.
3262
3656
  */
@@ -3266,7 +3660,7 @@ type XChainLinearTransaction = {
3266
3660
  */
3267
3661
  destinationChain?: string;
3268
3662
  /**
3269
- * Asset details of the asset created in CreateAssetTx
3663
+ * AssetAmount details of the asset created in CreateAssetTx
3270
3664
  */
3271
3665
  assetCreated?: XChainAssetDetails;
3272
3666
  /**
@@ -3316,10 +3710,7 @@ type XChainNonLinearTransaction = {
3316
3710
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3317
3711
  */
3318
3712
  timestamp: number;
3319
- /**
3320
- * Type of transaction.
3321
- */
3322
- txType: string;
3713
+ txType: XChainTransactionType;
3323
3714
  /**
3324
3715
  * Hex encoded memo bytes for this transaction.
3325
3716
  */
@@ -3329,11 +3720,11 @@ type XChainNonLinearTransaction = {
3329
3720
  /**
3330
3721
  * Assets unlocked by inputs of this transaction.
3331
3722
  */
3332
- amountUnlocked: Array<Asset>;
3723
+ amountUnlocked: Array<AssetAmount>;
3333
3724
  /**
3334
3725
  * Assets created by outputs of this transaction.
3335
3726
  */
3336
- amountCreated: Array<Asset>;
3727
+ amountCreated: Array<AssetAmount>;
3337
3728
  /**
3338
3729
  * Source chain for an atomic transaction.
3339
3730
  */
@@ -3343,7 +3734,7 @@ type XChainNonLinearTransaction = {
3343
3734
  */
3344
3735
  destinationChain?: string;
3345
3736
  /**
3346
- * Asset details of the asset created in CreateAssetTx
3737
+ * AssetAmount details of the asset created in CreateAssetTx
3347
3738
  */
3348
3739
  assetCreated?: XChainAssetDetails;
3349
3740
  /**
@@ -3377,18 +3768,21 @@ declare enum PChainId {
3377
3768
 
3378
3769
  declare enum PrimaryNetworkTxType {
3379
3770
  ADD_VALIDATOR_TX = "AddValidatorTx",
3380
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3381
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3382
3771
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3383
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3384
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3772
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3385
3773
  CREATE_CHAIN_TX = "CreateChainTx",
3386
3774
  CREATE_SUBNET_TX = "CreateSubnetTx",
3387
3775
  IMPORT_TX = "ImportTx",
3388
3776
  EXPORT_TX = "ExportTx",
3389
3777
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3390
- UNKNOWN = "UNKNOWN",
3778
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3779
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3780
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3781
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3782
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3391
3783
  BASE_TX = "BaseTx",
3784
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3785
+ UNKNOWN = "UNKNOWN",
3392
3786
  CREATE_ASSET_TX = "CreateAssetTx",
3393
3787
  OPERATION_TX = "OperationTx"
3394
3788
  }
@@ -3420,13 +3814,13 @@ declare class PrimaryNetworkTransactionsService {
3420
3814
  * List latest transactions
3421
3815
  * Lists the latest transactions on one of the Primary Network chains.
3422
3816
  *
3423
- * Transactions are filterable by addresses.
3817
+ * 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
3818
  *
3425
3819
  * 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
3820
  * @returns any
3427
3821
  * @throws ApiError
3428
3822
  */
3429
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3823
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3430
3824
  /**
3431
3825
  * A primary network blockchain id or alias.
3432
3826
  */
@@ -3451,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
3451
3845
  * Query param for retrieving items before a specific timestamp.
3452
3846
  */
3453
3847
  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
3848
  /**
3459
3849
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3460
3850
  */
3461
3851
  pageToken?: string;
3852
+ /**
3853
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3854
+ */
3855
+ pageSize?: number;
3462
3856
  /**
3463
3857
  * 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
3858
  */
@@ -3470,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
3470
3864
  * @returns ListPChainTransactionsResponse
3471
3865
  * @throws ApiError
3472
3866
  */
3473
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3867
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3474
3868
  /**
3475
3869
  * A primary network blockchain id or alias.
3476
3870
  */
@@ -3495,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
3495
3889
  * Query param for retrieving items before a specific timestamp.
3496
3890
  */
3497
3891
  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
3892
  /**
3503
3893
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3504
3894
  */
3505
3895
  pageToken?: string;
3896
+ /**
3897
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3898
+ */
3899
+ pageSize?: number;
3506
3900
  /**
3507
3901
  * 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
3902
  */
@@ -3514,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
3514
3908
  * @returns ListXChainTransactionsResponse
3515
3909
  * @throws ApiError
3516
3910
  */
3517
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3911
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3518
3912
  /**
3519
3913
  * A primary network blockchain id or alias.
3520
3914
  */
@@ -3539,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
3539
3933
  * Query param for retrieving items before a specific timestamp.
3540
3934
  */
3541
3935
  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
3936
  /**
3547
3937
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3548
3938
  */
3549
3939
  pageToken?: string;
3940
+ /**
3941
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3942
+ */
3943
+ pageSize?: number;
3550
3944
  }): CancelablePromise<ListXChainTransactionsResponse>;
3551
3945
  }
3552
3946
 
@@ -3577,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
3577
3971
  * @returns any
3578
3972
  * @throws ApiError
3579
3973
  */
3580
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3974
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3581
3975
  /**
3582
3976
  * A primary network blockchain id or alias.
3583
3977
  */
@@ -3590,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
3590
3984
  * 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
3985
  */
3592
3986
  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
3987
  /**
3598
3988
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3599
3989
  */
3600
3990
  pageToken?: string;
3991
+ /**
3992
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3993
+ */
3994
+ pageSize?: number;
3601
3995
  /**
3602
3996
  * Asset ID for any asset (only applicable X-Chain)
3603
3997
  */
@@ -3642,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
3642
4036
  * @returns ListXChainVerticesResponse
3643
4037
  * @throws ApiError
3644
4038
  */
3645
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4039
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3646
4040
  /**
3647
4041
  * A primary network blockchain id or alias.
3648
4042
  */
@@ -3651,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
3651
4045
  * Either mainnet or a testnet.
3652
4046
  */
3653
4047
  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
4048
  /**
3659
4049
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3660
4050
  */
3661
4051
  pageToken?: string;
4052
+ /**
4053
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4054
+ */
4055
+ pageSize?: number;
3662
4056
  }): CancelablePromise<ListXChainVerticesResponse>;
3663
4057
  /**
3664
4058
  * Get vertex
@@ -3686,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
3686
4080
  * @returns ListXChainVerticesResponse
3687
4081
  * @throws ApiError
3688
4082
  */
3689
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4083
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3690
4084
  /**
3691
4085
  * The height of a vertex.
3692
4086
  */
@@ -3699,23 +4093,366 @@ declare class PrimaryNetworkVerticesService {
3699
4093
  * Either mainnet or a testnet.
3700
4094
  */
3701
4095
  network: Network;
4096
+ /**
4097
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4098
+ */
4099
+ pageToken?: string;
4100
+ /**
4101
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4102
+ */
4103
+ pageSize?: number;
4104
+ /**
4105
+ * 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.
4106
+ */
4107
+ sortOrder?: SortOrder;
4108
+ }): CancelablePromise<ListXChainVerticesResponse>;
4109
+ }
4110
+
4111
+ type TeleporterDestinationTransaction = {
4112
+ txHash: string;
4113
+ timestamp: number;
4114
+ gasSpent: string;
4115
+ rewardRedeemer: string;
4116
+ delivererAddress: string;
4117
+ };
4118
+
4119
+ type TeleporterReceipt = {
4120
+ receivedMessageNonce: string;
4121
+ relayerRewardAddress: string;
4122
+ };
4123
+
4124
+ type TeleporterRewardDetails = {
4125
+ /**
4126
+ * A wallet or contract address in mixed-case checksum encoding.
4127
+ */
4128
+ address: string;
4129
+ /**
4130
+ * The contract name.
4131
+ */
4132
+ name: string;
4133
+ /**
4134
+ * The contract symbol.
4135
+ */
4136
+ symbol: string;
4137
+ /**
4138
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4139
+ */
4140
+ decimals: number;
4141
+ /**
4142
+ * The logo uri for the address.
4143
+ */
4144
+ logoUri?: string;
4145
+ ercType: TeleporterRewardDetails.ercType;
4146
+ /**
4147
+ * The token price, if available.
4148
+ */
4149
+ price?: Money;
4150
+ value: string;
4151
+ };
4152
+ declare namespace TeleporterRewardDetails {
4153
+ enum ercType {
4154
+ ERC_20 = "ERC-20"
4155
+ }
4156
+ }
4157
+
4158
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4159
+ messageId: string;
4160
+ teleporterContractAddress: string;
4161
+ sourceBlockchainId: string;
4162
+ destinationBlockchainId: string;
4163
+ messageNonce: string;
4164
+ from: string;
4165
+ to: string;
4166
+ data?: string;
4167
+ messageExecuted: boolean;
4168
+ receipts: Array<TeleporterReceipt>;
4169
+ receiptDelivered: boolean;
4170
+ rewardDetails: TeleporterRewardDetails;
4171
+ destinationTransaction: TeleporterDestinationTransaction;
4172
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4173
+ };
4174
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4175
+ enum status {
4176
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4177
+ }
4178
+ }
4179
+
4180
+ type TeleporterSourceTransaction = {
4181
+ txHash: string;
4182
+ timestamp: number;
4183
+ gasSpent: string;
4184
+ };
4185
+
4186
+ type DeliveredTeleporterMessage = {
4187
+ messageId: string;
4188
+ teleporterContractAddress: string;
4189
+ sourceBlockchainId: string;
4190
+ destinationBlockchainId: string;
4191
+ messageNonce: string;
4192
+ from: string;
4193
+ to: string;
4194
+ data?: string;
4195
+ messageExecuted: boolean;
4196
+ receipts: Array<TeleporterReceipt>;
4197
+ receiptDelivered: boolean;
4198
+ rewardDetails: TeleporterRewardDetails;
4199
+ sourceTransaction: TeleporterSourceTransaction;
4200
+ destinationTransaction: TeleporterDestinationTransaction;
4201
+ status: DeliveredTeleporterMessage.status;
4202
+ };
4203
+ declare namespace DeliveredTeleporterMessage {
4204
+ enum status {
4205
+ DELIVERED = "delivered"
4206
+ }
4207
+ }
4208
+
4209
+ type NextPageToken = {
4210
+ /**
4211
+ * 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.
4212
+ */
4213
+ nextPageToken?: string;
4214
+ };
4215
+
4216
+ type PendingTeleporterMessage = {
4217
+ messageId: string;
4218
+ teleporterContractAddress: string;
4219
+ sourceBlockchainId: string;
4220
+ destinationBlockchainId: string;
4221
+ messageNonce: string;
4222
+ from: string;
4223
+ to: string;
4224
+ data?: string;
4225
+ messageExecuted: boolean;
4226
+ receipts: Array<TeleporterReceipt>;
4227
+ receiptDelivered: boolean;
4228
+ rewardDetails: TeleporterRewardDetails;
4229
+ sourceTransaction: TeleporterSourceTransaction;
4230
+ status: PendingTeleporterMessage.status;
4231
+ };
4232
+ declare namespace PendingTeleporterMessage {
4233
+ enum status {
4234
+ PENDING = "pending"
4235
+ }
4236
+ }
4237
+
4238
+ declare class TeleporterService {
4239
+ readonly httpRequest: BaseHttpRequest;
4240
+ constructor(httpRequest: BaseHttpRequest);
4241
+ /**
4242
+ * Get a teleporter message
4243
+ * Gets a teleporter message by message ID.
4244
+ * @returns any
4245
+ * @throws ApiError
4246
+ */
4247
+ getTeleporterMessage({ messageId, }: {
4248
+ /**
4249
+ * The message ID of the teleporter message.
4250
+ */
4251
+ messageId: string;
4252
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4253
+ /**
4254
+ * List teleporter messages
4255
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4256
+ * @returns any
4257
+ * @throws ApiError
4258
+ */
4259
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4260
+ /**
4261
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4262
+ */
4263
+ pageToken?: string;
3702
4264
  /**
3703
4265
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3704
4266
  */
3705
4267
  pageSize?: number;
4268
+ /**
4269
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4270
+ */
4271
+ sourceBlockchainId?: string;
4272
+ /**
4273
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4274
+ */
4275
+ destinationBlockchainId?: string;
4276
+ /**
4277
+ * The address of the recipient of the teleporter message.
4278
+ */
4279
+ to?: string;
4280
+ /**
4281
+ * The address of the sender of the teleporter message.
4282
+ */
4283
+ from?: string;
4284
+ }): CancelablePromise<NextPageToken>;
4285
+ }
4286
+
4287
+ type AddressActivityMetadata = {
4288
+ /**
4289
+ * Ethereum address for the address_activity event type
4290
+ */
4291
+ address: string;
4292
+ /**
4293
+ * Array of hexadecimal strings of the event signatures.
4294
+ */
4295
+ eventSignatures?: Array<string>;
4296
+ };
4297
+
4298
+ declare enum EventType {
4299
+ ADDRESS_ACTIVITY = "address_activity"
4300
+ }
4301
+
4302
+ declare enum WebhookStatusType {
4303
+ ACTIVE = "active",
4304
+ INACTIVE = "inactive"
4305
+ }
4306
+
4307
+ type WebhookResponse = {
4308
+ id: string;
4309
+ eventType: EventType;
4310
+ metadata: AddressActivityMetadata;
4311
+ /**
4312
+ * Whether to include traces in the webhook payload.
4313
+ */
4314
+ includeTraces?: boolean;
4315
+ /**
4316
+ * Whether to include logs in the webhook payload.
4317
+ */
4318
+ includeLogs?: boolean;
4319
+ url: string;
4320
+ chainId: string;
4321
+ status: WebhookStatusType;
4322
+ createdAt: number;
4323
+ name: string;
4324
+ description: string;
4325
+ };
4326
+
4327
+ type ListWebhooksResponse = {
4328
+ /**
4329
+ * 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.
4330
+ */
4331
+ nextPageToken?: string;
4332
+ webhooks: Array<WebhookResponse>;
4333
+ };
4334
+
4335
+ type RegisterWebhookRequest = {
4336
+ url: string;
4337
+ chainId: string;
4338
+ eventType: EventType;
4339
+ metadata: AddressActivityMetadata;
4340
+ /**
4341
+ * Whether to include traces in the webhook payload.
4342
+ */
4343
+ includeTraces?: boolean;
4344
+ /**
4345
+ * Whether to include logs in the webhook payload.
4346
+ */
4347
+ includeLogs?: boolean;
4348
+ };
4349
+
4350
+ type SharedSecretsResponse = {
4351
+ secret: string;
4352
+ };
4353
+
4354
+ type UpdateWebhookRequest = {
4355
+ name?: string;
4356
+ description?: string;
4357
+ url?: string;
4358
+ status?: WebhookStatusType;
4359
+ includeTraces?: boolean;
4360
+ includeLogs?: boolean;
4361
+ };
4362
+
4363
+ declare enum WebhookStatus {
4364
+ ACTIVE = "active",
4365
+ INACTIVE = "inactive"
4366
+ }
4367
+
4368
+ declare class WebhooksService {
4369
+ readonly httpRequest: BaseHttpRequest;
4370
+ constructor(httpRequest: BaseHttpRequest);
4371
+ /**
4372
+ * Register a webhook
4373
+ * Registers a new webhook.
4374
+ * @returns WebhookResponse
4375
+ * @throws ApiError
4376
+ */
4377
+ registerWebhook({ requestBody, }: {
4378
+ requestBody: RegisterWebhookRequest;
4379
+ }): CancelablePromise<WebhookResponse>;
4380
+ /**
4381
+ * List webhooks
4382
+ * Lists webhooks for the user.
4383
+ * @returns ListWebhooksResponse
4384
+ * @throws ApiError
4385
+ */
4386
+ listWebhooks({ pageToken, pageSize, status, }: {
3706
4387
  /**
3707
4388
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3708
4389
  */
3709
4390
  pageToken?: string;
3710
4391
  /**
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.
4392
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3712
4393
  */
3713
- sortOrder?: SortOrder;
3714
- }): CancelablePromise<ListXChainVerticesResponse>;
4394
+ pageSize?: number;
4395
+ /**
4396
+ * 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.
4397
+ */
4398
+ status?: WebhookStatus;
4399
+ }): CancelablePromise<ListWebhooksResponse>;
4400
+ /**
4401
+ * Get a webhook by ID
4402
+ * Retrieves a webhook by ID.
4403
+ * @returns WebhookResponse
4404
+ * @throws ApiError
4405
+ */
4406
+ getWebhook({ id, }: {
4407
+ /**
4408
+ * The webhook identifier.
4409
+ */
4410
+ id: string;
4411
+ }): CancelablePromise<WebhookResponse>;
4412
+ /**
4413
+ * Deactivate a webhook
4414
+ * Deactivates a webhook by ID.
4415
+ * @returns WebhookResponse
4416
+ * @throws ApiError
4417
+ */
4418
+ deactivateWebhook({ id, }: {
4419
+ /**
4420
+ * The webhook identifier.
4421
+ */
4422
+ id: string;
4423
+ }): CancelablePromise<WebhookResponse>;
4424
+ /**
4425
+ * Update a webhook
4426
+ * Updates an existing webhook.
4427
+ * @returns WebhookResponse
4428
+ * @throws ApiError
4429
+ */
4430
+ updateWebhook({ id, requestBody, }: {
4431
+ /**
4432
+ * The webhook identifier.
4433
+ */
4434
+ id: string;
4435
+ requestBody: UpdateWebhookRequest;
4436
+ }): CancelablePromise<WebhookResponse>;
4437
+ /**
4438
+ * Generate a shared secret
4439
+ * Generates a new shared secret.
4440
+ * @returns SharedSecretsResponse
4441
+ * @throws ApiError
4442
+ */
4443
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4444
+ /**
4445
+ * Get a shared secret
4446
+ * Get a previously generated shared secret.
4447
+ * @returns SharedSecretsResponse
4448
+ * @throws ApiError
4449
+ */
4450
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
3715
4451
  }
3716
4452
 
3717
4453
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3718
4454
  declare class Glacier {
4455
+ readonly default: DefaultService;
3719
4456
  readonly evmBalances: EvmBalancesService;
3720
4457
  readonly evmBlocks: EvmBlocksService;
3721
4458
  readonly evmChains: EvmChainsService;
@@ -3731,6 +4468,8 @@ declare class Glacier {
3731
4468
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3732
4469
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3733
4470
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4471
+ readonly teleporter: TeleporterService;
4472
+ readonly webhooks: WebhooksService;
3734
4473
  readonly request: BaseHttpRequest;
3735
4474
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3736
4475
  }
@@ -3752,4 +4491,4 @@ declare class ApiError extends Error {
3752
4491
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3753
4492
  }
3754
4493
 
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 };
4494
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, 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, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, 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, SharedSecretsResponse, 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 };