@avalabs/glacier-sdk 2.8.0-canary.c83789f.0 → 2.8.0-canary.c8536ea.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 (156) hide show
  1. package/dist/index.d.ts +1465 -674
  2. package/dist/index.js +501 -132
  3. package/esm/generated/Glacier.d.ts +8 -0
  4. package/esm/generated/Glacier.js +12 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  6. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  8. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +2 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  19. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  20. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  21. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  22. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  23. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  24. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  25. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  26. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  27. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  28. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  29. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  30. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  31. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  32. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  33. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  34. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  35. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  36. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  37. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  38. package/esm/generated/models/EVMInput.d.ts +3 -3
  39. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  40. package/esm/generated/models/EVMOperationType.js +6 -0
  41. package/esm/generated/models/EVMOutput.d.ts +3 -3
  42. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  43. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  44. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  45. package/esm/generated/models/EventType.d.ts +5 -0
  46. package/esm/generated/models/EventType.js +6 -0
  47. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  48. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  49. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  50. package/esm/generated/models/GlacierApiFeature.js +6 -0
  51. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  52. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  53. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  54. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  55. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  56. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  57. package/esm/generated/models/Method.d.ts +0 -3
  58. package/esm/generated/models/Money.d.ts +0 -3
  59. package/esm/generated/models/NextPageToken.d.ts +8 -0
  60. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  61. package/esm/generated/models/OperationType.d.ts +4 -2
  62. package/esm/generated/models/OperationType.js +3 -1
  63. package/esm/generated/models/PChainBalance.d.ts +15 -15
  64. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  65. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  66. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  67. package/esm/generated/models/PChainTransactionType.js +8 -4
  68. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  69. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  70. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  71. package/esm/generated/models/PendingReward.d.ts +3 -3
  72. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  73. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  74. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  75. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  76. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  77. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  78. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  79. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  80. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  81. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  82. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  83. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  84. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  85. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  86. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  87. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  88. package/esm/generated/models/RewardType.d.ts +2 -1
  89. package/esm/generated/models/RewardType.js +1 -0
  90. package/esm/generated/models/Rewards.d.ts +2 -0
  91. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  92. package/esm/generated/models/Subnet.d.ts +17 -0
  93. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  94. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  95. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  96. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  97. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  98. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  99. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  100. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  101. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  102. package/esm/generated/models/Utxo.d.ts +30 -30
  103. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  104. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  105. package/esm/generated/models/ValidationStatusType.js +1 -0
  106. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  107. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  108. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  109. package/esm/generated/models/WebhookStatus.js +7 -0
  110. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  111. package/esm/generated/models/WebhookStatusType.js +7 -0
  112. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  113. package/esm/generated/models/XChainBalances.d.ts +3 -3
  114. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  115. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  116. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  117. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  118. package/esm/generated/models/XChainTransactionType.js +11 -0
  119. package/esm/generated/services/DefaultService.d.ts +14 -0
  120. package/esm/generated/services/DefaultService.js +13 -0
  121. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  122. package/esm/generated/services/EvmBalancesService.js +8 -8
  123. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  124. package/esm/generated/services/EvmBlocksService.js +4 -4
  125. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  126. package/esm/generated/services/EvmChainsService.js +4 -2
  127. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  128. package/esm/generated/services/EvmContractsService.js +36 -0
  129. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  130. package/esm/generated/services/EvmTransactionsService.js +33 -33
  131. package/esm/generated/services/NfTsService.d.ts +23 -16
  132. package/esm/generated/services/NfTsService.js +15 -9
  133. package/esm/generated/services/OperationsService.d.ts +11 -11
  134. package/esm/generated/services/OperationsService.js +10 -10
  135. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  136. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  137. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  138. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  139. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  140. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  141. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  142. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  143. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  144. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  145. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  146. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  147. package/esm/generated/services/TeleporterService.d.ts +57 -0
  148. package/esm/generated/services/TeleporterService.js +39 -0
  149. package/esm/generated/services/WebhooksService.d.ts +95 -0
  150. package/esm/generated/services/WebhooksService.js +80 -0
  151. package/esm/index.d.ts +40 -3
  152. package/esm/index.js +28 -2
  153. package/package.json +2 -2
  154. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  155. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  156. 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,323 +751,167 @@ 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 Erc1155Token = {
760
+ type ImageAsset = {
761
+ assetId?: string;
745
762
  /**
746
- * A wallet or contract address in mixed-case checksum encoding.
763
+ * OUTPUT ONLY
747
764
  */
748
- address: string;
749
- ercType: Erc1155Token.ercType;
750
- tokenId: string;
751
- tokenUri: string;
752
- metadata: Erc1155TokenMetadata;
765
+ imageUri?: string;
753
766
  };
754
- declare namespace Erc1155Token {
755
- enum ercType {
756
- ERC_1155 = "ERC-1155"
757
- }
767
+
768
+ type PricingProviders = {
769
+ coingeckoCoinId?: string;
770
+ };
771
+
772
+ declare enum ResourceLinkType {
773
+ BLOG = "Blog",
774
+ COIN_GECKO = "CoinGecko",
775
+ COIN_MARKET_CAP = "CoinMarketCap",
776
+ DISCORD = "Discord",
777
+ DOCUMENTATION = "Documentation",
778
+ FACEBOOK = "Facebook",
779
+ GITHUB = "Github",
780
+ INSTAGRAM = "Instagram",
781
+ LINKED_IN = "LinkedIn",
782
+ MEDIUM = "Medium",
783
+ REDDIT = "Reddit",
784
+ SUPPORT = "Support",
785
+ TELEGRAM = "Telegram",
786
+ TIK_TOK = "TikTok",
787
+ TWITTER = "Twitter",
788
+ WEBSITE = "Website",
789
+ WHITEPAPER = "Whitepaper",
790
+ YOUTUBE = "Youtube"
758
791
  }
759
792
 
760
- type RichAddress = {
793
+ type ResourceLink = {
794
+ type: ResourceLinkType;
795
+ url: string;
796
+ };
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>;
761
807
  /**
762
808
  * The contract name.
763
809
  */
764
- name?: string;
810
+ name: string;
811
+ ercType: ContractSubmissionErc1155.ercType;
765
812
  /**
766
813
  * The contract symbol.
767
814
  */
768
- symbol?: string;
769
- /**
770
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
771
- */
772
- decimals?: number;
773
- /**
774
- * The logo uri for the address.
775
- */
776
- logoUri?: string;
777
- /**
778
- * A wallet or contract address in mixed-case checksum encoding.
779
- */
780
- address: string;
781
- };
782
-
783
- type Erc1155TransferDetails = {
784
- from: RichAddress;
785
- to: RichAddress;
786
- logIndex: number;
787
- value: string;
788
- erc1155Token: Erc1155Token;
815
+ symbol: string;
816
+ pricingProviders?: PricingProviders;
789
817
  };
818
+ declare namespace ContractSubmissionErc1155 {
819
+ enum ercType {
820
+ ERC_1155 = "ERC-1155"
821
+ }
822
+ }
790
823
 
791
- type Erc20Token = {
792
- /**
793
- * A wallet or contract address in mixed-case checksum encoding.
794
- */
795
- address: string;
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>;
796
833
  /**
797
834
  * The contract name.
798
835
  */
799
836
  name: string;
837
+ ercType: ContractSubmissionErc20.ercType;
800
838
  /**
801
839
  * The contract symbol.
802
840
  */
803
841
  symbol: string;
804
- /**
805
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
806
- */
807
- decimals: number;
808
- /**
809
- * The logo uri for the address.
810
- */
811
- logoUri?: string;
812
- ercType: Erc20Token.ercType;
813
- /**
814
- * The token price, if available.
815
- */
816
- price?: Money;
842
+ pricingProviders?: PricingProviders;
817
843
  };
818
- declare namespace Erc20Token {
844
+ declare namespace ContractSubmissionErc20 {
819
845
  enum ercType {
820
846
  ERC_20 = "ERC-20"
821
847
  }
822
848
  }
823
849
 
824
- type Erc20TransferDetails = {
825
- from: RichAddress;
826
- to: RichAddress;
827
- logIndex: number;
828
- value: string;
829
- erc20Token: Erc20Token;
830
- };
831
-
832
- type Erc721Token = {
833
- /**
834
- * A wallet or contract address in mixed-case checksum encoding.
835
- */
836
- address: string;
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>;
837
859
  /**
838
860
  * The contract name.
839
861
  */
840
862
  name: string;
863
+ ercType: ContractSubmissionErc721.ercType;
841
864
  /**
842
865
  * The contract symbol.
843
866
  */
844
867
  symbol: string;
845
- ercType: Erc721Token.ercType;
846
- tokenId: string;
847
- tokenUri: string;
848
- metadata: Erc721TokenMetadata;
849
- /**
850
- * A wallet or contract address in mixed-case checksum encoding.
851
- */
852
- ownerAddress?: string;
853
868
  };
854
- declare namespace Erc721Token {
869
+ declare namespace ContractSubmissionErc721 {
855
870
  enum ercType {
856
871
  ERC_721 = "ERC-721"
857
872
  }
858
873
  }
859
874
 
860
- type Erc721TransferDetails = {
861
- from: RichAddress;
862
- to: RichAddress;
863
- logIndex: number;
864
- erc721Token: Erc721Token;
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;
865
889
  };
866
-
867
- declare enum TransactionMethodType {
868
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
869
- CONTRACT_CALL = "CONTRACT_CALL",
870
- CONTRACT_CREATION = "CONTRACT_CREATION"
890
+ declare namespace ContractSubmissionUnknown {
891
+ enum ercType {
892
+ UNKNOWN = "UNKNOWN"
893
+ }
871
894
  }
872
895
 
873
- type Method = {
874
- /**
875
- * 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.
876
- */
877
- callType: TransactionMethodType;
878
- /**
879
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
880
- */
881
- methodHash: string;
882
- /**
883
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
884
- */
885
- methodName?: string;
896
+ type ContractSubmissionBody = {
897
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
886
898
  };
887
899
 
888
- type FullNativeTransactionDetails = {
900
+ type ContractDeploymentDetails = {
901
+ txHash: string;
889
902
  /**
890
- * The block number on the chain.
903
+ * The address that initiated the transaction which deployed this contract.
891
904
  */
892
- blockNumber: string;
905
+ deployerAddress: string;
893
906
  /**
894
- * The block finality timestamp.
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.
895
908
  */
896
- blockTimestamp: number;
909
+ deployerContractAddress?: string;
910
+ };
911
+
912
+ type Erc1155Contract = {
897
913
  /**
898
- * The block hash identifier.
899
- */
900
- blockHash: string;
901
- /**
902
- * The index at which the transaction occured in the block (0-indexed).
903
- */
904
- blockIndex: number;
905
- /**
906
- * The transaction hash identifier.
907
- */
908
- txHash: string;
909
- /**
910
- * The transaction status, which is either 0 (failed) or 1 (successful).
911
- */
912
- txStatus: string;
913
- /**
914
- * The transaction type.
915
- */
916
- txType: number;
917
- /**
918
- * The gas limit set for the transaction.
919
- */
920
- gasLimit: string;
921
- /**
922
- * The amount of gas used.
923
- */
924
- gasUsed: string;
925
- /**
926
- * The gas price denominated by the number of decimals of the native token.
927
- */
928
- gasPrice: string;
929
- /**
930
- * The nonce used by the sender of the transaction.
931
- */
932
- nonce: string;
933
- from: RichAddress;
934
- to: RichAddress;
935
- method?: Method;
936
- value: string;
937
- /**
938
- * The data sent for the transaction.
939
- */
940
- input: string;
941
- baseFeePerGas: string;
942
- maxFeePerGas?: string;
943
- maxPriorityFeePerGas?: string;
944
- };
945
-
946
- declare enum InternalTransactionOpCall {
947
- UNKNOWN = "UNKNOWN",
948
- CALL = "CALL",
949
- CREATE = "CREATE",
950
- CREATE2 = "CREATE2",
951
- CALLCODE = "CALLCODE",
952
- DELEGATECALL = "DELEGATECALL",
953
- STATICCALL = "STATICCALL"
954
- }
955
-
956
- type InternalTransactionDetails = {
957
- from: RichAddress;
958
- to: RichAddress;
959
- internalTxType: InternalTransactionOpCall;
960
- value: string;
961
- /**
962
- * True if the internal transaction was reverted.
963
- */
964
- isReverted: boolean;
965
- gasUsed: string;
966
- gasLimit: string;
967
- };
968
-
969
- type NetworkTokenDetails = {
970
- networkToken: NetworkToken;
971
- /**
972
- * The current token price, if available.
973
- */
974
- currentPrice?: Money;
975
- /**
976
- * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
977
- */
978
- historicalPrice?: Money;
979
- };
980
-
981
- type GetTransactionResponse = {
982
- /**
983
- * The list of ERC-20 transfers.
984
- */
985
- erc20Transfers?: Array<Erc20TransferDetails>;
986
- /**
987
- * The list of ERC-721 transfers.
988
- */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
990
- /**
991
- * The list of ERC-1155 transfers.
992
- */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
994
- /**
995
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
996
- */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1000
- };
1001
-
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1004
- /**
1005
- * The address that initiated the transaction which deployed this contract.
1006
- */
1007
- deployerAddress: string;
1008
- /**
1009
- * 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.
1010
- */
1011
- deployerContractAddress?: string;
1012
- };
1013
-
1014
- type ImageAsset = {
1015
- assetId?: string;
1016
- /**
1017
- * OUTPUT ONLY
1018
- */
1019
- imageUri?: string;
1020
- };
1021
-
1022
- type PricingProviders = {
1023
- coingeckoCoinId?: string;
1024
- };
1025
-
1026
- declare enum ResourceLinkType {
1027
- BLOG = "Blog",
1028
- COIN_GECKO = "CoinGecko",
1029
- COIN_MARKET_CAP = "CoinMarketCap",
1030
- DISCORD = "Discord",
1031
- DOCUMENTATION = "Documentation",
1032
- FACEBOOK = "Facebook",
1033
- GITHUB = "Github",
1034
- INSTAGRAM = "Instagram",
1035
- LINKED_IN = "LinkedIn",
1036
- MEDIUM = "Medium",
1037
- REDDIT = "Reddit",
1038
- SUPPORT = "Support",
1039
- TELEGRAM = "Telegram",
1040
- TIK_TOK = "TikTok",
1041
- TWITTER = "Twitter",
1042
- WEBSITE = "Website",
1043
- WHITEPAPER = "Whitepaper",
1044
- YOUTUBE = "Youtube"
1045
- }
1046
-
1047
- type ResourceLink = {
1048
- type: ResourceLinkType;
1049
- url: string;
1050
- };
1051
-
1052
- type Erc1155Contract = {
1053
- /**
1054
- * The contract name.
914
+ * The contract name.
1055
915
  */
1056
916
  name?: string;
1057
917
  description?: string;
@@ -1107,7 +967,7 @@ type Erc20Contract = {
1107
967
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1108
968
  */
1109
969
  decimals: number;
1110
- pricingProviders: PricingProviders;
970
+ pricingProviders?: PricingProviders;
1111
971
  };
1112
972
  declare namespace Erc20Contract {
1113
973
  enum ercType {
@@ -1171,12 +1031,312 @@ declare namespace UnknownContract {
1171
1031
  }
1172
1032
  }
1173
1033
 
1034
+ type UpdateContractResponse = {
1035
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1036
+ };
1037
+
1038
+ declare class EvmContractsService {
1039
+ readonly httpRequest: BaseHttpRequest;
1040
+ constructor(httpRequest: BaseHttpRequest);
1041
+ /**
1042
+ * Get contract metadata
1043
+ * Gets metadata about the contract at the given address.
1044
+ * @returns any
1045
+ * @throws ApiError
1046
+ */
1047
+ getContractMetadata({ chainId, address, }: {
1048
+ /**
1049
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1050
+ */
1051
+ chainId: string;
1052
+ /**
1053
+ * Contract address on the relevant chain.
1054
+ */
1055
+ address: string;
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>;
1074
+ }
1075
+
1076
+ type Erc1155Token = {
1077
+ /**
1078
+ * A wallet or contract address in mixed-case checksum encoding.
1079
+ */
1080
+ address: string;
1081
+ ercType: Erc1155Token.ercType;
1082
+ tokenId: string;
1083
+ tokenUri: string;
1084
+ metadata: Erc1155TokenMetadata;
1085
+ };
1086
+ declare namespace Erc1155Token {
1087
+ enum ercType {
1088
+ ERC_1155 = "ERC-1155"
1089
+ }
1090
+ }
1091
+
1092
+ type RichAddress = {
1093
+ /**
1094
+ * The contract name.
1095
+ */
1096
+ name?: string;
1097
+ /**
1098
+ * The contract symbol.
1099
+ */
1100
+ symbol?: string;
1101
+ /**
1102
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1103
+ */
1104
+ decimals?: number;
1105
+ /**
1106
+ * The logo uri for the address.
1107
+ */
1108
+ logoUri?: string;
1109
+ /**
1110
+ * A wallet or contract address in mixed-case checksum encoding.
1111
+ */
1112
+ address: string;
1113
+ };
1114
+
1115
+ type Erc1155TransferDetails = {
1116
+ from: RichAddress;
1117
+ to: RichAddress;
1118
+ logIndex: number;
1119
+ value: string;
1120
+ erc1155Token: Erc1155Token;
1121
+ };
1122
+
1123
+ type Erc20Token = {
1124
+ /**
1125
+ * A wallet or contract address in mixed-case checksum encoding.
1126
+ */
1127
+ address: string;
1128
+ /**
1129
+ * The contract name.
1130
+ */
1131
+ name: string;
1132
+ /**
1133
+ * The contract symbol.
1134
+ */
1135
+ symbol: string;
1136
+ /**
1137
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1138
+ */
1139
+ decimals: number;
1140
+ /**
1141
+ * The logo uri for the address.
1142
+ */
1143
+ logoUri?: string;
1144
+ ercType: Erc20Token.ercType;
1145
+ /**
1146
+ * The token price, if available.
1147
+ */
1148
+ price?: Money;
1149
+ };
1150
+ declare namespace Erc20Token {
1151
+ enum ercType {
1152
+ ERC_20 = "ERC-20"
1153
+ }
1154
+ }
1155
+
1156
+ type Erc20TransferDetails = {
1157
+ from: RichAddress;
1158
+ to: RichAddress;
1159
+ logIndex: number;
1160
+ value: string;
1161
+ erc20Token: Erc20Token;
1162
+ };
1163
+
1164
+ type Erc721Token = {
1165
+ /**
1166
+ * A wallet or contract address in mixed-case checksum encoding.
1167
+ */
1168
+ address: string;
1169
+ /**
1170
+ * The contract name.
1171
+ */
1172
+ name: string;
1173
+ /**
1174
+ * The contract symbol.
1175
+ */
1176
+ symbol: string;
1177
+ ercType: Erc721Token.ercType;
1178
+ tokenId: string;
1179
+ tokenUri: string;
1180
+ metadata: Erc721TokenMetadata;
1181
+ /**
1182
+ * A wallet or contract address in mixed-case checksum encoding.
1183
+ */
1184
+ ownerAddress?: string;
1185
+ };
1186
+ declare namespace Erc721Token {
1187
+ enum ercType {
1188
+ ERC_721 = "ERC-721"
1189
+ }
1190
+ }
1191
+
1192
+ type Erc721TransferDetails = {
1193
+ from: RichAddress;
1194
+ to: RichAddress;
1195
+ logIndex: number;
1196
+ erc721Token: Erc721Token;
1197
+ };
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
+ */
1202
+ declare enum TransactionMethodType {
1203
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1204
+ CONTRACT_CALL = "CONTRACT_CALL",
1205
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1206
+ }
1207
+
1208
+ type Method = {
1209
+ callType: TransactionMethodType;
1210
+ /**
1211
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1212
+ */
1213
+ methodHash: string;
1214
+ /**
1215
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1216
+ */
1217
+ methodName?: string;
1218
+ };
1219
+
1220
+ type FullNativeTransactionDetails = {
1221
+ /**
1222
+ * The block number on the chain.
1223
+ */
1224
+ blockNumber: string;
1225
+ /**
1226
+ * The block finality timestamp.
1227
+ */
1228
+ blockTimestamp: number;
1229
+ /**
1230
+ * The block hash identifier.
1231
+ */
1232
+ blockHash: string;
1233
+ /**
1234
+ * The index at which the transaction occured in the block (0-indexed).
1235
+ */
1236
+ blockIndex: number;
1237
+ /**
1238
+ * The transaction hash identifier.
1239
+ */
1240
+ txHash: string;
1241
+ /**
1242
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1243
+ */
1244
+ txStatus: string;
1245
+ /**
1246
+ * The transaction type.
1247
+ */
1248
+ txType: number;
1249
+ /**
1250
+ * The gas limit set for the transaction.
1251
+ */
1252
+ gasLimit: string;
1253
+ /**
1254
+ * The amount of gas used.
1255
+ */
1256
+ gasUsed: string;
1257
+ /**
1258
+ * The gas price denominated by the number of decimals of the native token.
1259
+ */
1260
+ gasPrice: string;
1261
+ /**
1262
+ * The nonce used by the sender of the transaction.
1263
+ */
1264
+ nonce: string;
1265
+ from: RichAddress;
1266
+ to: RichAddress;
1267
+ method?: Method;
1268
+ value: string;
1269
+ /**
1270
+ * The data sent for the transaction.
1271
+ */
1272
+ input: string;
1273
+ baseFeePerGas: string;
1274
+ maxFeePerGas?: string;
1275
+ maxPriorityFeePerGas?: string;
1276
+ };
1277
+
1278
+ declare enum InternalTransactionOpCall {
1279
+ UNKNOWN = "UNKNOWN",
1280
+ CALL = "CALL",
1281
+ CREATE = "CREATE",
1282
+ CREATE2 = "CREATE2",
1283
+ CALLCODE = "CALLCODE",
1284
+ DELEGATECALL = "DELEGATECALL",
1285
+ STATICCALL = "STATICCALL"
1286
+ }
1287
+
1288
+ type InternalTransactionDetails = {
1289
+ from: RichAddress;
1290
+ to: RichAddress;
1291
+ internalTxType: InternalTransactionOpCall;
1292
+ value: string;
1293
+ /**
1294
+ * True if the internal transaction was reverted.
1295
+ */
1296
+ isReverted: boolean;
1297
+ gasUsed: string;
1298
+ gasLimit: string;
1299
+ };
1300
+
1301
+ type NetworkTokenDetails = {
1302
+ networkToken: NetworkToken;
1303
+ /**
1304
+ * The current token price, if available.
1305
+ */
1306
+ currentPrice?: Money;
1307
+ /**
1308
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1309
+ */
1310
+ historicalPrice?: Money;
1311
+ };
1312
+
1313
+ type GetTransactionResponse = {
1314
+ /**
1315
+ * The list of ERC-20 transfers.
1316
+ */
1317
+ erc20Transfers?: Array<Erc20TransferDetails>;
1318
+ /**
1319
+ * The list of ERC-721 transfers.
1320
+ */
1321
+ erc721Transfers?: Array<Erc721TransferDetails>;
1322
+ /**
1323
+ * The list of ERC-1155 transfers.
1324
+ */
1325
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1326
+ /**
1327
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1328
+ */
1329
+ internalTransactions?: Array<InternalTransactionDetails>;
1330
+ networkTokenDetails: NetworkTokenDetails;
1331
+ nativeTransaction: FullNativeTransactionDetails;
1332
+ };
1333
+
1174
1334
  type ListContractsResponse = {
1175
1335
  /**
1176
1336
  * 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.
1177
1337
  */
1178
1338
  nextPageToken?: string;
1179
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1339
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1180
1340
  };
1181
1341
 
1182
1342
  type Erc1155Transfer = {
@@ -1406,7 +1566,7 @@ type ListTransfersResponse = {
1406
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.
1407
1567
  */
1408
1568
  nextPageToken?: string;
1409
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1569
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1410
1570
  };
1411
1571
 
1412
1572
  declare enum SortOrder {
@@ -1430,7 +1590,7 @@ declare class EvmTransactionsService {
1430
1590
  */
1431
1591
  getDeploymentTransaction({ chainId, address, currency, }: {
1432
1592
  /**
1433
- * 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.
1434
1594
  */
1435
1595
  chainId: string;
1436
1596
  /**
@@ -1448,23 +1608,23 @@ declare class EvmTransactionsService {
1448
1608
  * @returns ListContractsResponse
1449
1609
  * @throws ApiError
1450
1610
  */
1451
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1611
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1452
1612
  /**
1453
- * 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.
1454
1614
  */
1455
1615
  chainId: string;
1456
1616
  /**
1457
1617
  * A wallet address.
1458
1618
  */
1459
1619
  address: string;
1460
- /**
1461
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1462
- */
1463
- pageSize?: number;
1464
1620
  /**
1465
1621
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1466
1622
  */
1467
1623
  pageToken?: string;
1624
+ /**
1625
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1626
+ */
1627
+ pageSize?: number;
1468
1628
  }): CancelablePromise<ListContractsResponse>;
1469
1629
  /**
1470
1630
  * List ERC transfers
@@ -1472,25 +1632,31 @@ declare class EvmTransactionsService {
1472
1632
  * @returns ListTransfersResponse
1473
1633
  * @throws ApiError
1474
1634
  */
1475
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1635
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1476
1636
  /**
1477
- * 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.
1478
1638
  */
1479
1639
  chainId: string;
1480
1640
  /**
1481
1641
  * A wallet address.
1482
1642
  */
1483
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
+ */
1484
1647
  startBlock?: number;
1485
- endBlock?: number;
1486
1648
  /**
1487
- * 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.
1488
1650
  */
1489
- pageSize?: number;
1651
+ endBlock?: number;
1490
1652
  /**
1491
1653
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1492
1654
  */
1493
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;
1494
1660
  }): CancelablePromise<ListTransfersResponse>;
1495
1661
  /**
1496
1662
  * List transactions
@@ -1500,24 +1666,30 @@ declare class EvmTransactionsService {
1500
1666
  * @returns ListTransactionDetailsResponse
1501
1667
  * @throws ApiError
1502
1668
  */
1503
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1669
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1504
1670
  /**
1505
- * 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.
1506
1672
  */
1507
1673
  chainId: string;
1508
1674
  /**
1509
1675
  * A wallet address.
1510
1676
  */
1511
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;
1512
1682
  /**
1513
1683
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1514
1684
  */
1515
1685
  pageSize?: number;
1516
1686
  /**
1517
- * 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.
1518
1688
  */
1519
- pageToken?: string;
1520
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
+ */
1521
1693
  endBlock?: number;
1522
1694
  /**
1523
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.
@@ -1530,25 +1702,31 @@ declare class EvmTransactionsService {
1530
1702
  * @returns ListNativeTransactionsResponse
1531
1703
  * @throws ApiError
1532
1704
  */
1533
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1705
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1534
1706
  /**
1535
- * 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.
1536
1708
  */
1537
1709
  chainId: string;
1538
1710
  /**
1539
1711
  * A wallet address.
1540
1712
  */
1541
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
+ */
1542
1717
  startBlock?: number;
1543
- endBlock?: number;
1544
1718
  /**
1545
- * 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.
1546
1720
  */
1547
- pageSize?: number;
1721
+ endBlock?: number;
1548
1722
  /**
1549
1723
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1550
1724
  */
1551
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;
1552
1730
  }): CancelablePromise<ListNativeTransactionsResponse>;
1553
1731
  /**
1554
1732
  * List ERC-20 transfers
@@ -1556,25 +1734,31 @@ declare class EvmTransactionsService {
1556
1734
  * @returns ListErc20TransactionsResponse
1557
1735
  * @throws ApiError
1558
1736
  */
1559
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1737
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1560
1738
  /**
1561
- * 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.
1562
1740
  */
1563
1741
  chainId: string;
1564
1742
  /**
1565
1743
  * A wallet address.
1566
1744
  */
1567
- address: string;
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
+ */
1568
1749
  startBlock?: number;
1569
- endBlock?: number;
1570
1750
  /**
1571
- * 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.
1572
1752
  */
1573
- pageSize?: number;
1753
+ endBlock?: number;
1574
1754
  /**
1575
1755
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1576
1756
  */
1577
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;
1578
1762
  }): CancelablePromise<ListErc20TransactionsResponse>;
1579
1763
  /**
1580
1764
  * List ERC-721 transfers
@@ -1582,25 +1766,31 @@ declare class EvmTransactionsService {
1582
1766
  * @returns ListErc721TransactionsResponse
1583
1767
  * @throws ApiError
1584
1768
  */
1585
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1769
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1586
1770
  /**
1587
- * 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.
1588
1772
  */
1589
1773
  chainId: string;
1590
1774
  /**
1591
1775
  * A wallet address.
1592
1776
  */
1593
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
+ */
1594
1781
  startBlock?: number;
1595
- endBlock?: number;
1596
1782
  /**
1597
- * 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.
1598
1784
  */
1599
- pageSize?: number;
1785
+ endBlock?: number;
1600
1786
  /**
1601
1787
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1602
1788
  */
1603
1789
  pageToken?: string;
1790
+ /**
1791
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1792
+ */
1793
+ pageSize?: number;
1604
1794
  }): CancelablePromise<ListErc721TransactionsResponse>;
1605
1795
  /**
1606
1796
  * List ERC-1155 transfers
@@ -1608,25 +1798,31 @@ declare class EvmTransactionsService {
1608
1798
  * @returns ListErc1155TransactionsResponse
1609
1799
  * @throws ApiError
1610
1800
  */
1611
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1801
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1612
1802
  /**
1613
- * 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.
1614
1804
  */
1615
1805
  chainId: string;
1616
1806
  /**
1617
1807
  * A wallet address.
1618
1808
  */
1619
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
+ */
1620
1813
  startBlock?: number;
1621
- endBlock?: number;
1622
1814
  /**
1623
- * 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.
1624
1816
  */
1625
- pageSize?: number;
1817
+ endBlock?: number;
1626
1818
  /**
1627
1819
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1628
1820
  */
1629
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;
1630
1826
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1631
1827
  /**
1632
1828
  * List internal transactions
@@ -1636,25 +1832,31 @@ declare class EvmTransactionsService {
1636
1832
  * @returns ListInternalTransactionsResponse
1637
1833
  * @throws ApiError
1638
1834
  */
1639
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1835
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1640
1836
  /**
1641
- * 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.
1642
1838
  */
1643
1839
  chainId: string;
1644
1840
  /**
1645
1841
  * A wallet address.
1646
1842
  */
1647
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
+ */
1648
1847
  startBlock?: number;
1649
- endBlock?: number;
1650
1848
  /**
1651
- * 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.
1652
1850
  */
1653
- pageSize?: number;
1851
+ endBlock?: number;
1654
1852
  /**
1655
1853
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1656
1854
  */
1657
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;
1658
1860
  }): CancelablePromise<ListInternalTransactionsResponse>;
1659
1861
  /**
1660
1862
  * Get transaction
@@ -1664,7 +1866,7 @@ declare class EvmTransactionsService {
1664
1866
  */
1665
1867
  getTransaction({ chainId, txHash, }: {
1666
1868
  /**
1667
- * 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.
1668
1870
  */
1669
1871
  chainId: string;
1670
1872
  /**
@@ -1680,7 +1882,7 @@ declare class EvmTransactionsService {
1680
1882
  */
1681
1883
  getTransactionsForBlock({ chainId, blockId, }: {
1682
1884
  /**
1683
- * 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.
1684
1886
  */
1685
1887
  chainId: string;
1686
1888
  /**
@@ -1694,19 +1896,19 @@ declare class EvmTransactionsService {
1694
1896
  * @returns ListNativeTransactionsResponse
1695
1897
  * @throws ApiError
1696
1898
  */
1697
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1899
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1698
1900
  /**
1699
- * 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.
1700
1902
  */
1701
1903
  chainId: string;
1702
- /**
1703
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1704
- */
1705
- pageSize?: number;
1706
1904
  /**
1707
1905
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1708
1906
  */
1709
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;
1710
1912
  /**
1711
1913
  * A status filter for listed transactions.
1712
1914
  */
@@ -1730,6 +1932,14 @@ declare class HealthCheckService {
1730
1932
  }>;
1731
1933
  }
1732
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
+
1733
1943
  declare class NfTsService {
1734
1944
  readonly httpRequest: BaseHttpRequest;
1735
1945
  constructor(httpRequest: BaseHttpRequest);
@@ -1741,7 +1951,7 @@ declare class NfTsService {
1741
1951
  */
1742
1952
  reindexNft({ chainId, address, tokenId, }: {
1743
1953
  /**
1744
- * 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.
1745
1955
  */
1746
1956
  chainId: string;
1747
1957
  /**
@@ -1754,14 +1964,14 @@ declare class NfTsService {
1754
1964
  tokenId: string;
1755
1965
  }): CancelablePromise<any>;
1756
1966
  /**
1757
- * Get token details
1758
- * Gets token details for a specific token of an NFT contract.
1759
- * @returns any
1967
+ * List tokens
1968
+ * Lists tokens for an NFT contract.
1969
+ * @returns ListNftTokens
1760
1970
  * @throws ApiError
1761
1971
  */
1762
- getTokenDetails({ chainId, address, tokenId, }: {
1972
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1763
1973
  /**
1764
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1974
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1765
1975
  */
1766
1976
  chainId: string;
1767
1977
  /**
@@ -1769,26 +1979,34 @@ declare class NfTsService {
1769
1979
  */
1770
1980
  address: string;
1771
1981
  /**
1772
- * TokenId on the contract
1982
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1773
1983
  */
1774
- tokenId: string;
1775
- }): CancelablePromise<(Erc721Token | Erc1155Token)>;
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>;
1776
1990
  /**
1777
- * Get collection details
1778
- * Gets collection details for a NFT contract.
1991
+ * Get token details
1992
+ * Gets token details for a specific token of an NFT contract.
1779
1993
  * @returns any
1780
1994
  * @throws ApiError
1781
1995
  */
1782
- getCollection({ chainId, address, }: {
1996
+ getTokenDetails({ chainId, address, tokenId, }: {
1783
1997
  /**
1784
- * 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.
1785
1999
  */
1786
2000
  chainId: string;
1787
2001
  /**
1788
2002
  * Contract address on the relevant chain.
1789
2003
  */
1790
2004
  address: string;
1791
- }): CancelablePromise<(Erc721Contract | Erc1155Contract)>;
2005
+ /**
2006
+ * TokenId on the contract
2007
+ */
2008
+ tokenId: string;
2009
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1792
2010
  }
1793
2011
 
1794
2012
  type EvmNetworkOptions = {
@@ -1796,8 +2014,12 @@ type EvmNetworkOptions = {
1796
2014
  includeChains: Array<string>;
1797
2015
  };
1798
2016
 
2017
+ declare enum EVMOperationType {
2018
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2019
+ }
2020
+
1799
2021
  type CreateEvmTransactionExportRequest = {
1800
- type: CreateEvmTransactionExportRequest.type;
2022
+ type: EVMOperationType;
1801
2023
  firstDate: string;
1802
2024
  lastDate: string;
1803
2025
  /**
@@ -1810,10 +2032,11 @@ type CreateEvmTransactionExportRequest = {
1810
2032
  endDate: string;
1811
2033
  options: EvmNetworkOptions;
1812
2034
  };
1813
- declare namespace CreateEvmTransactionExportRequest {
1814
- enum type {
1815
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1816
- }
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"
1817
2040
  }
1818
2041
 
1819
2042
  type PrimaryNetworkOptions = {
@@ -1823,7 +2046,7 @@ type PrimaryNetworkOptions = {
1823
2046
  };
1824
2047
 
1825
2048
  type CreatePrimaryNetworkTransactionExportRequest = {
1826
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2049
+ type: PrimaryNetworkOperationType;
1827
2050
  firstDate: string;
1828
2051
  lastDate: string;
1829
2052
  /**
@@ -1836,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1836
2059
  endDate: string;
1837
2060
  options: PrimaryNetworkOptions;
1838
2061
  };
1839
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1840
- enum type {
1841
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1842
- }
1843
- }
1844
2062
 
1845
2063
  declare enum OperationStatus {
1846
2064
  RUNNING = "RUNNING",
@@ -1850,8 +2068,10 @@ declare enum OperationStatus {
1850
2068
  }
1851
2069
 
1852
2070
  declare enum OperationType {
1853
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1854
- 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"
1855
2075
  }
1856
2076
 
1857
2077
  declare enum OperationStatusCode {
@@ -1885,17 +2105,6 @@ type OperationStatusResponse = {
1885
2105
  declare class OperationsService {
1886
2106
  readonly httpRequest: BaseHttpRequest;
1887
2107
  constructor(httpRequest: BaseHttpRequest);
1888
- /**
1889
- * Create transaction export operation
1890
- * Trigger a transaction export operation with given parameters.
1891
- *
1892
- * 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.
1893
- * @returns OperationStatusResponse
1894
- * @throws ApiError
1895
- */
1896
- postTransactionExportJob({ requestBody, }: {
1897
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1898
- }): CancelablePromise<OperationStatusResponse>;
1899
2108
  /**
1900
2109
  * Get operation
1901
2110
  * Gets operation details for the given operation id.
@@ -1908,6 +2117,17 @@ declare class OperationsService {
1908
2117
  */
1909
2118
  operationId: string;
1910
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>;
1911
2131
  }
1912
2132
 
1913
2133
  declare enum BlockchainIds {
@@ -1976,39 +2196,57 @@ type ListBlockchainsResponse = {
1976
2196
 
1977
2197
  type ActiveDelegatorDetails = {
1978
2198
  txHash: string;
2199
+ nodeId: string;
1979
2200
  rewardAddresses: Array<string>;
1980
2201
  amountDelegated: string;
1981
2202
  delegationFee: string;
1982
2203
  startTimestamp: number;
1983
2204
  endTimestamp: number;
1984
- delegationStatus: DelegationStatusType;
1985
2205
  estimatedGrossReward: string;
1986
2206
  estimatedNetReward: string;
2207
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1987
2208
  };
2209
+ declare namespace ActiveDelegatorDetails {
2210
+ enum delegationStatus {
2211
+ ACTIVE = "active"
2212
+ }
2213
+ }
1988
2214
 
1989
2215
  type CompletedDelegatorDetails = {
1990
2216
  txHash: string;
2217
+ nodeId: string;
1991
2218
  rewardAddresses: Array<string>;
1992
2219
  amountDelegated: string;
1993
2220
  delegationFee: string;
1994
2221
  startTimestamp: number;
1995
2222
  endTimestamp: number;
1996
- delegationStatus: DelegationStatusType;
1997
2223
  grossReward: string;
1998
2224
  netReward: string;
2225
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1999
2226
  };
2227
+ declare namespace CompletedDelegatorDetails {
2228
+ enum delegationStatus {
2229
+ COMPLETED = "completed"
2230
+ }
2231
+ }
2000
2232
 
2001
2233
  type PendingDelegatorDetails = {
2002
2234
  txHash: string;
2235
+ nodeId: string;
2003
2236
  rewardAddresses: Array<string>;
2004
2237
  amountDelegated: string;
2005
2238
  delegationFee: string;
2006
2239
  startTimestamp: number;
2007
2240
  endTimestamp: number;
2008
- delegationStatus: DelegationStatusType;
2009
2241
  estimatedGrossReward: string;
2010
2242
  estimatedNetReward: string;
2243
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
2011
2244
  };
2245
+ declare namespace PendingDelegatorDetails {
2246
+ enum delegationStatus {
2247
+ PENDING = "pending"
2248
+ }
2249
+ }
2012
2250
 
2013
2251
  type ListDelegatorDetailsResponse = {
2014
2252
  /**
@@ -2025,13 +2263,44 @@ type BlockchainInfo = {
2025
2263
  blockchainId: string;
2026
2264
  };
2027
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
+
2028
2281
  type Subnet = {
2029
2282
  createBlockTimestamp: number;
2030
2283
  createBlockIndex: string;
2031
2284
  subnetId: string;
2285
+ /**
2286
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2287
+ * @deprecated
2288
+ */
2032
2289
  ownerAddresses: Array<string>;
2290
+ /**
2291
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2292
+ * @deprecated
2293
+ */
2033
2294
  threshold: number;
2295
+ /**
2296
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2297
+ * @deprecated
2298
+ */
2034
2299
  locktime: number;
2300
+ /**
2301
+ * Latest subnet owner details for this Subnet.
2302
+ */
2303
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2035
2304
  blockchains: Array<BlockchainInfo>;
2036
2305
  };
2037
2306
 
@@ -2046,49 +2315,104 @@ type ListSubnetsResponse = {
2046
2315
  type Rewards = {
2047
2316
  validationRewardAmount: string;
2048
2317
  delegationRewardAmount: string;
2318
+ rewardAddresses?: Array<string>;
2319
+ rewardTxHash?: string;
2049
2320
  };
2050
2321
 
2051
- declare enum ValidationStatusType {
2052
- COMPLETED = "completed",
2053
- ACTIVE = "active",
2054
- PENDING = "pending"
2055
- }
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;
2339
+ };
2056
2340
 
2057
2341
  type ActiveValidatorDetails = {
2342
+ txHash: string;
2058
2343
  nodeId: string;
2344
+ subnetId: string;
2059
2345
  amountStaked: string;
2060
- delegationFee: string;
2346
+ delegationFee?: string;
2061
2347
  startTimestamp: number;
2062
2348
  endTimestamp: number;
2063
- validationStatus: ValidationStatusType;
2064
2349
  stakePercentage: number;
2065
2350
  delegatorCount: number;
2066
- amountDelegated: string;
2351
+ amountDelegated?: string;
2067
2352
  uptimePerformance: number;
2068
- avalancheGoVersion: string;
2069
- delegationCapacity: string;
2353
+ avalancheGoVersion?: string;
2354
+ delegationCapacity?: string;
2070
2355
  potentialRewards: Rewards;
2356
+ validationStatus: ActiveValidatorDetails.validationStatus;
2357
+ validatorHealth: ValidatorHealthDetails;
2071
2358
  };
2359
+ declare namespace ActiveValidatorDetails {
2360
+ enum validationStatus {
2361
+ ACTIVE = "active"
2362
+ }
2363
+ }
2072
2364
 
2073
2365
  type CompletedValidatorDetails = {
2366
+ txHash: string;
2074
2367
  nodeId: string;
2368
+ subnetId: string;
2075
2369
  amountStaked: string;
2076
- delegationFee: string;
2370
+ delegationFee?: string;
2077
2371
  startTimestamp: number;
2078
2372
  endTimestamp: number;
2079
- validationStatus: ValidationStatusType;
2080
2373
  delegatorCount: number;
2081
2374
  rewards: Rewards;
2375
+ validationStatus: CompletedValidatorDetails.validationStatus;
2082
2376
  };
2377
+ declare namespace CompletedValidatorDetails {
2378
+ enum validationStatus {
2379
+ COMPLETED = "completed"
2380
+ }
2381
+ }
2083
2382
 
2084
2383
  type PendingValidatorDetails = {
2384
+ txHash: string;
2085
2385
  nodeId: string;
2386
+ subnetId: string;
2086
2387
  amountStaked: string;
2087
- delegationFee: string;
2388
+ delegationFee?: string;
2389
+ startTimestamp: number;
2390
+ endTimestamp: number;
2391
+ validationStatus: PendingValidatorDetails.validationStatus;
2392
+ };
2393
+ declare namespace PendingValidatorDetails {
2394
+ enum validationStatus {
2395
+ PENDING = "pending"
2396
+ }
2397
+ }
2398
+
2399
+ type RemovedValidatorDetails = {
2400
+ txHash: string;
2401
+ nodeId: string;
2402
+ subnetId: string;
2403
+ amountStaked: string;
2404
+ delegationFee?: string;
2088
2405
  startTimestamp: number;
2089
2406
  endTimestamp: number;
2090
- validationStatus: ValidationStatusType;
2407
+ removeTxHash: string;
2408
+ removeTimestamp: number;
2409
+ validationStatus: RemovedValidatorDetails.validationStatus;
2091
2410
  };
2411
+ declare namespace RemovedValidatorDetails {
2412
+ enum validationStatus {
2413
+ REMOVED = "removed"
2414
+ }
2415
+ }
2092
2416
 
2093
2417
  type ListValidatorDetailsResponse = {
2094
2418
  /**
@@ -2096,9 +2420,9 @@ type ListValidatorDetailsResponse = {
2096
2420
  */
2097
2421
  nextPageToken?: string;
2098
2422
  /**
2099
- * The list of Validator Details.
2423
+ * The list of validator Details.
2100
2424
  */
2101
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2425
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2102
2426
  };
2103
2427
 
2104
2428
  declare enum Network {
@@ -2106,6 +2430,29 @@ declare enum Network {
2106
2430
  FUJI = "fuji"
2107
2431
  }
2108
2432
 
2433
+ declare enum ValidationStatusType {
2434
+ COMPLETED = "completed",
2435
+ ACTIVE = "active",
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"
2454
+ }
2455
+
2109
2456
  type XChainAssetDetails = {
2110
2457
  /**
2111
2458
  * Unique ID for an asset.
@@ -2123,18 +2470,12 @@ type XChainAssetDetails = {
2123
2470
  * Denomination of this asset to represent fungibility.
2124
2471
  */
2125
2472
  denomination: number;
2126
- /**
2127
- * Type of asset like SECP256K1 or NFT.
2128
- */
2129
- type: string;
2473
+ type: PrimaryNetworkAssetType;
2130
2474
  /**
2131
2475
  * Timestamp in seconds this asset was created on.
2132
2476
  */
2133
2477
  createdAtTimestamp: number;
2134
- /**
2135
- * Cap represents if an asset can be or is fixed cap.
2136
- */
2137
- cap: string;
2478
+ cap: PrimaryNetworkAssetCap;
2138
2479
  };
2139
2480
 
2140
2481
  declare enum XChainId {
@@ -2200,19 +2541,19 @@ declare class PrimaryNetworkService {
2200
2541
  * @returns ListBlockchainsResponse
2201
2542
  * @throws ApiError
2202
2543
  */
2203
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2544
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2204
2545
  /**
2205
2546
  * Either mainnet or a testnet.
2206
2547
  */
2207
2548
  network: Network;
2208
- /**
2209
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2210
- */
2211
- pageSize?: number;
2212
2549
  /**
2213
2550
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2214
2551
  */
2215
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;
2216
2557
  /**
2217
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.
2218
2559
  */
@@ -2224,19 +2565,19 @@ declare class PrimaryNetworkService {
2224
2565
  * @returns ListSubnetsResponse
2225
2566
  * @throws ApiError
2226
2567
  */
2227
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2568
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2228
2569
  /**
2229
2570
  * Either mainnet or a testnet.
2230
2571
  */
2231
2572
  network: Network;
2232
- /**
2233
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2234
- */
2235
- pageSize?: number;
2236
2573
  /**
2237
2574
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2238
2575
  */
2239
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;
2240
2581
  /**
2241
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.
2242
2583
  */
@@ -2248,19 +2589,19 @@ declare class PrimaryNetworkService {
2248
2589
  * @returns ListValidatorDetailsResponse
2249
2590
  * @throws ApiError
2250
2591
  */
2251
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2592
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2252
2593
  /**
2253
2594
  * Either mainnet or a testnet.
2254
2595
  */
2255
2596
  network: Network;
2256
- /**
2257
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2258
- */
2259
- pageSize?: number;
2260
2597
  /**
2261
2598
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2262
2599
  */
2263
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;
2264
2605
  /**
2265
2606
  * A comma separated list of node ids to filter by.
2266
2607
  */
@@ -2274,9 +2615,33 @@ declare class PrimaryNetworkService {
2274
2615
  */
2275
2616
  validationStatus?: ValidationStatusType;
2276
2617
  /**
2277
- * 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.
2278
2643
  */
2279
- minDelegationCapacity?: any;
2644
+ subnetId?: any;
2280
2645
  }): CancelablePromise<ListValidatorDetailsResponse>;
2281
2646
  /**
2282
2647
  * Get single validator details
@@ -2284,7 +2649,7 @@ declare class PrimaryNetworkService {
2284
2649
  * @returns ListValidatorDetailsResponse
2285
2650
  * @throws ApiError
2286
2651
  */
2287
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2652
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2288
2653
  /**
2289
2654
  * Either mainnet or a testnet.
2290
2655
  */
@@ -2293,14 +2658,14 @@ declare class PrimaryNetworkService {
2293
2658
  * A primary network (P or X chain) nodeId.
2294
2659
  */
2295
2660
  nodeId: string;
2296
- /**
2297
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2298
- */
2299
- pageSize?: number;
2300
2661
  /**
2301
2662
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2302
2663
  */
2303
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;
2304
2669
  /**
2305
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.
2306
2671
  */
@@ -2316,19 +2681,23 @@ declare class PrimaryNetworkService {
2316
2681
  * @returns ListDelegatorDetailsResponse
2317
2682
  * @throws ApiError
2318
2683
  */
2319
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2684
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2320
2685
  /**
2321
2686
  * Either mainnet or a testnet.
2322
2687
  */
2323
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;
2324
2693
  /**
2325
2694
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2326
2695
  */
2327
2696
  pageSize?: number;
2328
2697
  /**
2329
- * 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.
2330
2699
  */
2331
- pageToken?: string;
2700
+ rewardAddresses?: string;
2332
2701
  /**
2333
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.
2334
2703
  */
@@ -2337,10 +2706,6 @@ declare class PrimaryNetworkService {
2337
2706
  * Delegation status of the node.
2338
2707
  */
2339
2708
  delegationStatus?: DelegationStatusType;
2340
- /**
2341
- * A comma separated list of reward addresses to filter by.
2342
- */
2343
- rewardAddresses?: string;
2344
2709
  /**
2345
2710
  * A comma separated list of node ids to filter by.
2346
2711
  */
@@ -2376,10 +2741,7 @@ type CChainSharedAssetBalance = {
2376
2741
  * Denomination of this asset to represent fungibility.
2377
2742
  */
2378
2743
  denomination: number;
2379
- /**
2380
- * Type of asset like SECP256K1 or NFT.
2381
- */
2382
- type: string;
2744
+ type: PrimaryNetworkAssetType;
2383
2745
  /**
2384
2746
  * Amount of the asset.
2385
2747
  */
@@ -2414,49 +2776,89 @@ type ListCChainAtomicBalancesResponse = {
2414
2776
  chainInfo: PrimaryNetworkChainInfo;
2415
2777
  };
2416
2778
 
2417
- type PChainAsset = {
2779
+ type AggregatedAssetAmount = {
2780
+ /**
2781
+ * Unique ID for an asset.
2782
+ */
2418
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
+ */
2419
2800
  amount: string;
2801
+ utxoCount: number;
2420
2802
  };
2421
2803
 
2422
2804
  type PChainSharedAsset = {
2805
+ /**
2806
+ * Unique ID for an asset.
2807
+ */
2423
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
+ */
2424
2825
  amount: string;
2826
+ utxoCount: number;
2425
2827
  sharedWithChainId: string;
2426
2828
  status: string;
2427
2829
  };
2428
2830
 
2429
2831
  type PChainBalance = {
2430
2832
  /**
2431
- * 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.
2432
2834
  */
2433
- unlockedUnstaked: Array<PChainAsset>;
2835
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2434
2836
  /**
2435
- * 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.
2436
2838
  */
2437
- unlockedStaked: Array<PChainAsset>;
2839
+ unlockedStaked: Array<AggregatedAssetAmount>;
2438
2840
  /**
2439
- * 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.
2440
2842
  */
2441
- lockedPlatform: Array<PChainAsset>;
2843
+ lockedPlatform: Array<AggregatedAssetAmount>;
2442
2844
  /**
2443
- * 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.
2444
2846
  */
2445
- lockedStakeable: Array<PChainAsset>;
2847
+ lockedStakeable: Array<AggregatedAssetAmount>;
2446
2848
  /**
2447
- * 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.
2448
2850
  */
2449
- lockedStaked: Array<PChainAsset>;
2851
+ lockedStaked: Array<AggregatedAssetAmount>;
2450
2852
  /**
2451
- * 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.
2452
2854
  */
2453
- pendingStaked: Array<PChainAsset>;
2855
+ pendingStaked: Array<AggregatedAssetAmount>;
2454
2856
  /**
2455
- * 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.
2456
2858
  */
2457
2859
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2458
2860
  /**
2459
- * 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.
2460
2862
  */
2461
2863
  atomicMemoryLocked: Array<PChainSharedAsset>;
2462
2864
  };
@@ -2466,34 +2868,6 @@ type ListPChainBalancesResponse = {
2466
2868
  chainInfo: PrimaryNetworkChainInfo;
2467
2869
  };
2468
2870
 
2469
- type XChainAssetBalance = {
2470
- /**
2471
- * Unique ID for an asset.
2472
- */
2473
- assetId: string;
2474
- /**
2475
- * Name of this asset.
2476
- */
2477
- name: string;
2478
- /**
2479
- * Symbol for this asset (max 4 characters).
2480
- */
2481
- symbol: string;
2482
- /**
2483
- * Denomination of this asset to represent fungibility.
2484
- */
2485
- denomination: number;
2486
- /**
2487
- * Type of asset like SECP256K1 or NFT.
2488
- */
2489
- type: string;
2490
- /**
2491
- * Amount of the asset.
2492
- */
2493
- amount: string;
2494
- utxoCount: number;
2495
- };
2496
-
2497
2871
  type XChainSharedAssetBalance = {
2498
2872
  /**
2499
2873
  * Unique ID for an asset.
@@ -2511,10 +2885,7 @@ type XChainSharedAssetBalance = {
2511
2885
  * Denomination of this asset to represent fungibility.
2512
2886
  */
2513
2887
  denomination: number;
2514
- /**
2515
- * Type of asset like SECP256K1 or NFT.
2516
- */
2517
- type: string;
2888
+ type: PrimaryNetworkAssetType;
2518
2889
  /**
2519
2890
  * Amount of the asset.
2520
2891
  */
@@ -2527,11 +2898,11 @@ type XChainBalances = {
2527
2898
  /**
2528
2899
  * A list of objects containing X-chain Asset balance information.
2529
2900
  */
2530
- locked: Array<XChainAssetBalance>;
2901
+ locked: Array<AggregatedAssetAmount>;
2531
2902
  /**
2532
2903
  * A list of objects containing X-chain Asset balance information.
2533
2904
  */
2534
- unlocked: Array<XChainAssetBalance>;
2905
+ unlocked: Array<AggregatedAssetAmount>;
2535
2906
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2536
2907
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2537
2908
  };
@@ -2589,6 +2960,7 @@ type GetPrimaryNetworkBlockResponse = {
2589
2960
  txCount: number;
2590
2961
  transactions: Array<string>;
2591
2962
  blockSizeBytes: number;
2963
+ currentSupply?: string;
2592
2964
  proposerDetails?: ProposerDetails;
2593
2965
  };
2594
2966
 
@@ -2601,6 +2973,7 @@ type PrimaryNetworkBlock = {
2601
2973
  txCount: number;
2602
2974
  transactions: Array<string>;
2603
2975
  blockSizeBytes: number;
2976
+ currentSupply?: string;
2604
2977
  proposerDetails?: ProposerDetails;
2605
2978
  };
2606
2979
 
@@ -2642,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
2642
3015
  * @returns ListPrimaryNetworkBlocksResponse
2643
3016
  * @throws ApiError
2644
3017
  */
2645
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3018
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2646
3019
  /**
2647
3020
  * A primary network blockchain id or alias.
2648
3021
  */
@@ -2655,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
2655
3028
  * A primary network (P or X chain) nodeId.
2656
3029
  */
2657
3030
  nodeId: string;
2658
- /**
2659
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2660
- */
2661
- pageSize?: number;
2662
3031
  /**
2663
3032
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2664
3033
  */
2665
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;
2666
3039
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2667
3040
  /**
2668
3041
  * List latest blocks
@@ -2670,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
2670
3043
  * @returns ListPrimaryNetworkBlocksResponse
2671
3044
  * @throws ApiError
2672
3045
  */
2673
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3046
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2674
3047
  /**
2675
3048
  * A primary network blockchain id or alias.
2676
3049
  */
@@ -2679,20 +3052,49 @@ declare class PrimaryNetworkBlocksService {
2679
3052
  * Either mainnet or a testnet.
2680
3053
  */
2681
3054
  network: Network;
2682
- /**
2683
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2684
- */
2685
- pageSize?: number;
2686
3055
  /**
2687
3056
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2688
3057
  */
2689
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;
2690
3063
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2691
3064
  }
2692
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
+
2693
3094
  declare enum RewardType {
2694
3095
  VALIDATOR = "VALIDATOR",
2695
- DELEGATOR = "DELEGATOR"
3096
+ DELEGATOR = "DELEGATOR",
3097
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2696
3098
  }
2697
3099
 
2698
3100
  type HistoricalReward = {
@@ -2708,10 +3110,7 @@ type HistoricalReward = {
2708
3110
  rewardType: RewardType;
2709
3111
  utxoId: string;
2710
3112
  outputIndex: number;
2711
- /**
2712
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2713
- */
2714
- reward: PChainAsset;
3113
+ reward: AssetWithPriceInfo;
2715
3114
  rewardTxHash: string;
2716
3115
  };
2717
3116
 
@@ -2723,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
2723
3122
  historicalRewards: Array<HistoricalReward>;
2724
3123
  };
2725
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
+
2726
3149
  type PendingReward = {
2727
3150
  /**
2728
3151
  * An array of P-Chain wallet addresses.
@@ -2736,9 +3159,9 @@ type PendingReward = {
2736
3159
  rewardType: RewardType;
2737
3160
  progress: number;
2738
3161
  /**
2739
- * 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.
2740
3163
  */
2741
- estimatedReward: PChainAsset;
3164
+ estimatedReward: AssetAmount;
2742
3165
  };
2743
3166
 
2744
3167
  type ListPendingRewardsResponse = {
@@ -2758,23 +3181,27 @@ declare class PrimaryNetworkRewardsService {
2758
3181
  * @returns ListPendingRewardsResponse
2759
3182
  * @throws ApiError
2760
3183
  */
2761
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3184
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2762
3185
  /**
2763
3186
  * Either mainnet or a testnet.
2764
3187
  */
2765
3188
  network: Network;
2766
3189
  /**
2767
- * 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.
2768
3191
  */
2769
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;
2770
3197
  /**
2771
3198
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2772
3199
  */
2773
3200
  pageSize?: number;
2774
3201
  /**
2775
- * 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.
2776
3203
  */
2777
- pageToken?: string;
3204
+ nodeIds?: string;
2778
3205
  /**
2779
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.
2780
3207
  */
@@ -2786,64 +3213,45 @@ declare class PrimaryNetworkRewardsService {
2786
3213
  * @returns ListHistoricalRewardsResponse
2787
3214
  * @throws ApiError
2788
3215
  */
2789
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3216
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2790
3217
  /**
2791
3218
  * Either mainnet or a testnet.
2792
3219
  */
2793
3220
  network: Network;
2794
3221
  /**
2795
- * 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.
2796
3223
  */
2797
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;
2798
3229
  /**
2799
3230
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2800
3231
  */
2801
3232
  pageSize?: number;
2802
3233
  /**
2803
- * 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.
2804
3235
  */
2805
- pageToken?: string;
3236
+ nodeIds?: string;
2806
3237
  /**
2807
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.
2808
3239
  */
2809
3240
  sortOrder?: SortOrder;
3241
+ /**
3242
+ * The currency that return values should use. Defaults to USD.
3243
+ */
3244
+ currency?: CurrencyCode;
2810
3245
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2811
3246
  }
2812
3247
 
2813
- type Asset = {
2814
- /**
2815
- * Unique ID for an asset.
2816
- */
2817
- assetId: string;
2818
- /**
2819
- * Name of this asset.
2820
- */
2821
- name: string;
2822
- /**
2823
- * Symbol for this asset (max 4 characters).
2824
- */
2825
- symbol: string;
2826
- /**
2827
- * Denomination of this asset to represent fungibility.
2828
- */
2829
- denomination: number;
2830
- /**
2831
- * Type of asset like SECP256K1 or NFT.
2832
- */
2833
- type: string;
2834
- /**
2835
- * Amount of the asset.
2836
- */
2837
- amount: string;
2838
- };
2839
-
2840
3248
  type UtxoCredential = {
2841
3249
  /**
2842
- * Signature provided to consume the output
3250
+ * Signature provided to consume the output.
2843
3251
  */
2844
3252
  signature?: string;
2845
3253
  /**
2846
- * Public key associated with the signature
3254
+ * Public key associated with the signature.
2847
3255
  */
2848
3256
  publicKey?: string;
2849
3257
  };
@@ -2854,9 +3262,9 @@ type EVMInput = {
2854
3262
  */
2855
3263
  fromAddress: string;
2856
3264
  /**
2857
- * Asset details for the asset being transferred.
3265
+ * AssetAmount details for the asset being transferred.
2858
3266
  */
2859
- asset: Asset;
3267
+ asset: AssetAmount;
2860
3268
  /**
2861
3269
  * Credentials that signed this transaction.
2862
3270
  */
@@ -2865,66 +3273,66 @@ type EVMInput = {
2865
3273
 
2866
3274
  type Utxo = {
2867
3275
  /**
2868
- * UTXO ID for this output.
3276
+ * Addresses that are eligible to sign the consumption of this output.
2869
3277
  */
2870
- utxoId: string;
2871
- asset: Asset;
3278
+ addresses: Array<string>;
3279
+ asset: AssetAmount;
2872
3280
  /**
2873
- * Type of output.
3281
+ * Blockchain ID on which this output is consumed on.
2874
3282
  */
2875
- utxoType: string;
3283
+ consumedOnChainId: string;
2876
3284
  /**
2877
- * Blockchain ID on which this output is created on.
3285
+ * Transaction ID that consumed this output.
2878
3286
  */
2879
- createdOnChainId: string;
3287
+ consumingTxHash?: string;
2880
3288
  /**
2881
- * Blockchain ID on which this output is consumed on.
3289
+ * Blockchain ID on which this output is created on.
2882
3290
  */
2883
- consumedOnChainId: string;
3291
+ createdOnChainId: string;
2884
3292
  /**
2885
- * Transaction ID that created this output.
3293
+ * UTXO ID for this output.
2886
3294
  */
2887
- creationTxHash: string;
3295
+ utxoId: string;
2888
3296
  /**
2889
- * Transaction ID that consumed this output.
3297
+ * Unix timestamp in seconds at which this output was consumed.
2890
3298
  */
2891
- consumingTxHash?: string;
3299
+ consumingTxTimestamp?: number;
2892
3300
  /**
2893
- * Timestamp in seconds this output is consumed.
3301
+ * Transaction ID that created this output.
2894
3302
  */
2895
- consumingTxTimestamp?: number;
3303
+ creationTxHash: string;
2896
3304
  /**
2897
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3305
+ * Credentials that signed the transaction to consume this utxo
2898
3306
  */
2899
- outputIndex: string;
3307
+ credentials?: Array<UtxoCredential>;
2900
3308
  /**
2901
- * Timestamp in seconds this outptut is created on.
3309
+ * Index representing the minting set for the NFT mint output.
2902
3310
  */
2903
- timestamp: number;
3311
+ groupId?: number;
2904
3312
  /**
2905
3313
  * Locktime in seconds after which this output can be consumed.
2906
3314
  */
2907
3315
  locktime: number;
2908
3316
  /**
2909
- * Minimum number of signatures required to consume this output.
3317
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2910
3318
  */
2911
- threshold: number;
3319
+ outputIndex: string;
2912
3320
  /**
2913
- * Addresses that are eligible to sign the consumption of this output.
3321
+ * Hex encoded data for NFT assets.
2914
3322
  */
2915
- addresses: Array<string>;
3323
+ payload?: string;
2916
3324
  /**
2917
- * Hex encoded data for NFT assets
3325
+ * Minimum number of signatures required to consume this output.
2918
3326
  */
2919
- payload?: string;
3327
+ threshold: number;
2920
3328
  /**
2921
- * Index representing the minting set for the NFT mint output
3329
+ * Unix timestamp in seconds at which this outptut was created.
2922
3330
  */
2923
- groupId?: number;
3331
+ timestamp: number;
2924
3332
  /**
2925
- * Credentials that signed the transaction to consume this utxo
3333
+ * Type of output.
2926
3334
  */
2927
- credentials?: Array<UtxoCredential>;
3335
+ utxoType: string;
2928
3336
  };
2929
3337
 
2930
3338
  type CChainExportTransaction = {
@@ -2951,11 +3359,11 @@ type CChainExportTransaction = {
2951
3359
  /**
2952
3360
  * Assets unlocked by inputs of this transaction.
2953
3361
  */
2954
- amountUnlocked: Array<Asset>;
3362
+ amountUnlocked: Array<AssetAmount>;
2955
3363
  /**
2956
3364
  * Assets created by outputs of this transaction.
2957
3365
  */
2958
- amountCreated: Array<Asset>;
3366
+ amountCreated: Array<AssetAmount>;
2959
3367
  /**
2960
3368
  * Source chain for an atomic transaction.
2961
3369
  */
@@ -2986,9 +3394,9 @@ type EVMOutput = {
2986
3394
  */
2987
3395
  toAddress: string;
2988
3396
  /**
2989
- * Asset details for the asset being transferred.
3397
+ * AssetAmount details for the asset being transferred.
2990
3398
  */
2991
- asset: Asset;
3399
+ asset: AssetAmount;
2992
3400
  };
2993
3401
 
2994
3402
  type CChainImportTransaction = {
@@ -3015,11 +3423,11 @@ type CChainImportTransaction = {
3015
3423
  /**
3016
3424
  * Assets unlocked by inputs of this transaction.
3017
3425
  */
3018
- amountUnlocked: Array<Asset>;
3426
+ amountUnlocked: Array<AssetAmount>;
3019
3427
  /**
3020
3428
  * Assets created by outputs of this transaction.
3021
3429
  */
3022
- amountCreated: Array<Asset>;
3430
+ amountCreated: Array<AssetAmount>;
3023
3431
  /**
3024
3432
  * Source chain for an atomic transaction.
3025
3433
  */
@@ -3055,16 +3463,20 @@ type ListCChainAtomicTransactionsResponse = {
3055
3463
 
3056
3464
  declare enum PChainTransactionType {
3057
3465
  ADD_VALIDATOR_TX = "AddValidatorTx",
3058
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3059
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3060
3466
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3061
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3062
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3467
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3063
3468
  CREATE_CHAIN_TX = "CreateChainTx",
3064
3469
  CREATE_SUBNET_TX = "CreateSubnetTx",
3065
3470
  IMPORT_TX = "ImportTx",
3066
3471
  EXPORT_TX = "ExportTx",
3067
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",
3068
3480
  UNKNOWN = "UNKNOWN"
3069
3481
  }
3070
3482
 
@@ -3075,29 +3487,48 @@ declare enum UtxoType {
3075
3487
 
3076
3488
  type PChainUtxo = {
3077
3489
  /**
3078
- * An array of P-Chain wallet addresses.
3490
+ * Addresses that are eligible to sign the consumption of this output.
3079
3491
  */
3080
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
+ */
3081
3509
  utxoId: string;
3082
- txHash: string;
3083
- outputIndex: number;
3510
+ /**
3511
+ * @deprecated
3512
+ */
3513
+ amount: string;
3514
+ /**
3515
+ * @deprecated
3516
+ */
3517
+ assetId: string;
3084
3518
  blockNumber: string;
3085
3519
  blockTimestamp: number;
3086
- consumingTxHash?: string;
3087
- consumingBlockTimestamp?: number;
3088
3520
  consumingBlockNumber?: string;
3089
- assetId: string;
3090
- utxoType: UtxoType;
3091
- amount: string;
3521
+ consumingBlockTimestamp?: number;
3522
+ platformLocktime?: number;
3523
+ outputIndex: number;
3524
+ rewardType?: RewardType;
3092
3525
  stakeableLocktime?: number;
3093
- platformLocktime?: number;
3094
- threshold?: number;
3095
- createdOnChainId: string;
3096
- consumedOnChainId: string;
3097
3526
  staked?: boolean;
3098
- utxoStartTimestamp?: number;
3527
+ threshold?: number;
3528
+ txHash: string;
3099
3529
  utxoEndTimestamp?: number;
3100
- rewardType?: RewardType;
3530
+ utxoStartTimestamp?: number;
3531
+ utxoType: UtxoType;
3101
3532
  };
3102
3533
 
3103
3534
  type PChainTransaction = {
@@ -3123,17 +3554,17 @@ type PChainTransaction = {
3123
3554
  */
3124
3555
  destinationChain?: string;
3125
3556
  /**
3126
- * 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.
3127
3558
  */
3128
- value: Array<PChainAsset>;
3559
+ value: Array<AssetAmount>;
3129
3560
  /**
3130
- * 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.
3131
3562
  */
3132
- amountBurned: Array<PChainAsset>;
3563
+ amountBurned: Array<AssetAmount>;
3133
3564
  /**
3134
- * 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
3135
3566
  */
3136
- amountStaked: Array<PChainAsset>;
3567
+ amountStaked: Array<AssetAmount>;
3137
3568
  /**
3138
3569
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3139
3570
  */
@@ -3159,11 +3590,16 @@ type PChainTransaction = {
3159
3590
  */
3160
3591
  estimatedReward?: string;
3161
3592
  rewardTxHash?: string;
3593
+ rewardAddresses?: Array<string>;
3162
3594
  memo?: string;
3163
3595
  /**
3164
3596
  * Present for RewardValidatorTx
3165
3597
  */
3166
3598
  stakingTxHash?: string;
3599
+ /**
3600
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3601
+ */
3602
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3167
3603
  };
3168
3604
 
3169
3605
  type ListPChainTransactionsResponse = {
@@ -3175,6 +3611,18 @@ type ListPChainTransactionsResponse = {
3175
3611
  chainInfo: PrimaryNetworkChainInfo;
3176
3612
  };
3177
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
+
3178
3626
  type XChainLinearTransaction = {
3179
3627
  /**
3180
3628
  * Unique ID for this transaction.
@@ -3188,10 +3636,7 @@ type XChainLinearTransaction = {
3188
3636
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3189
3637
  */
3190
3638
  timestamp: number;
3191
- /**
3192
- * Type of transaction.
3193
- */
3194
- txType: string;
3639
+ txType: XChainTransactionType;
3195
3640
  /**
3196
3641
  * Hex encoded memo bytes for this transaction.
3197
3642
  */
@@ -3201,11 +3646,11 @@ type XChainLinearTransaction = {
3201
3646
  /**
3202
3647
  * Assets unlocked by inputs of this transaction.
3203
3648
  */
3204
- amountUnlocked: Array<Asset>;
3649
+ amountUnlocked: Array<AssetAmount>;
3205
3650
  /**
3206
3651
  * Assets created by outputs of this transaction.
3207
3652
  */
3208
- amountCreated: Array<Asset>;
3653
+ amountCreated: Array<AssetAmount>;
3209
3654
  /**
3210
3655
  * Source chain for an atomic transaction.
3211
3656
  */
@@ -3215,7 +3660,7 @@ type XChainLinearTransaction = {
3215
3660
  */
3216
3661
  destinationChain?: string;
3217
3662
  /**
3218
- * Asset details of the asset created in CreateAssetTx
3663
+ * AssetAmount details of the asset created in CreateAssetTx
3219
3664
  */
3220
3665
  assetCreated?: XChainAssetDetails;
3221
3666
  /**
@@ -3265,10 +3710,7 @@ type XChainNonLinearTransaction = {
3265
3710
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3266
3711
  */
3267
3712
  timestamp: number;
3268
- /**
3269
- * Type of transaction.
3270
- */
3271
- txType: string;
3713
+ txType: XChainTransactionType;
3272
3714
  /**
3273
3715
  * Hex encoded memo bytes for this transaction.
3274
3716
  */
@@ -3278,11 +3720,11 @@ type XChainNonLinearTransaction = {
3278
3720
  /**
3279
3721
  * Assets unlocked by inputs of this transaction.
3280
3722
  */
3281
- amountUnlocked: Array<Asset>;
3723
+ amountUnlocked: Array<AssetAmount>;
3282
3724
  /**
3283
3725
  * Assets created by outputs of this transaction.
3284
3726
  */
3285
- amountCreated: Array<Asset>;
3727
+ amountCreated: Array<AssetAmount>;
3286
3728
  /**
3287
3729
  * Source chain for an atomic transaction.
3288
3730
  */
@@ -3292,7 +3734,7 @@ type XChainNonLinearTransaction = {
3292
3734
  */
3293
3735
  destinationChain?: string;
3294
3736
  /**
3295
- * Asset details of the asset created in CreateAssetTx
3737
+ * AssetAmount details of the asset created in CreateAssetTx
3296
3738
  */
3297
3739
  assetCreated?: XChainAssetDetails;
3298
3740
  /**
@@ -3326,18 +3768,21 @@ declare enum PChainId {
3326
3768
 
3327
3769
  declare enum PrimaryNetworkTxType {
3328
3770
  ADD_VALIDATOR_TX = "AddValidatorTx",
3329
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3330
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3331
3771
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3332
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3333
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3772
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3334
3773
  CREATE_CHAIN_TX = "CreateChainTx",
3335
3774
  CREATE_SUBNET_TX = "CreateSubnetTx",
3336
3775
  IMPORT_TX = "ImportTx",
3337
3776
  EXPORT_TX = "ExportTx",
3338
3777
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3339
- 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",
3340
3783
  BASE_TX = "BaseTx",
3784
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3785
+ UNKNOWN = "UNKNOWN",
3341
3786
  CREATE_ASSET_TX = "CreateAssetTx",
3342
3787
  OPERATION_TX = "OperationTx"
3343
3788
  }
@@ -3369,13 +3814,13 @@ declare class PrimaryNetworkTransactionsService {
3369
3814
  * List latest transactions
3370
3815
  * Lists the latest transactions on one of the Primary Network chains.
3371
3816
  *
3372
- * 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.
3373
3818
  *
3374
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.
3375
3820
  * @returns any
3376
3821
  * @throws ApiError
3377
3822
  */
3378
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3823
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3379
3824
  /**
3380
3825
  * A primary network blockchain id or alias.
3381
3826
  */
@@ -3400,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
3400
3845
  * Query param for retrieving items before a specific timestamp.
3401
3846
  */
3402
3847
  endTimestamp?: number;
3403
- /**
3404
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3405
- */
3406
- pageSize?: number;
3407
3848
  /**
3408
3849
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3409
3850
  */
3410
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;
3411
3856
  /**
3412
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.
3413
3858
  */
@@ -3419,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
3419
3864
  * @returns ListPChainTransactionsResponse
3420
3865
  * @throws ApiError
3421
3866
  */
3422
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3867
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3423
3868
  /**
3424
3869
  * A primary network blockchain id or alias.
3425
3870
  */
@@ -3444,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
3444
3889
  * Query param for retrieving items before a specific timestamp.
3445
3890
  */
3446
3891
  endTimestamp?: number;
3447
- /**
3448
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3449
- */
3450
- pageSize?: number;
3451
3892
  /**
3452
3893
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3453
3894
  */
3454
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;
3455
3900
  /**
3456
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.
3457
3902
  */
@@ -3463,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
3463
3908
  * @returns ListXChainTransactionsResponse
3464
3909
  * @throws ApiError
3465
3910
  */
3466
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3911
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3467
3912
  /**
3468
3913
  * A primary network blockchain id or alias.
3469
3914
  */
@@ -3488,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
3488
3933
  * Query param for retrieving items before a specific timestamp.
3489
3934
  */
3490
3935
  endTimestamp?: number;
3491
- /**
3492
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3493
- */
3494
- pageSize?: number;
3495
3936
  /**
3496
3937
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3497
3938
  */
3498
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;
3499
3944
  }): CancelablePromise<ListXChainTransactionsResponse>;
3500
3945
  }
3501
3946
 
@@ -3526,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
3526
3971
  * @returns any
3527
3972
  * @throws ApiError
3528
3973
  */
3529
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3974
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3530
3975
  /**
3531
3976
  * A primary network blockchain id or alias.
3532
3977
  */
@@ -3539,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
3539
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".
3540
3985
  */
3541
3986
  addresses?: string;
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
3987
  /**
3547
3988
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3548
3989
  */
3549
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;
3550
3995
  /**
3551
3996
  * Asset ID for any asset (only applicable X-Chain)
3552
3997
  */
@@ -3591,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
3591
4036
  * @returns ListXChainVerticesResponse
3592
4037
  * @throws ApiError
3593
4038
  */
3594
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4039
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3595
4040
  /**
3596
4041
  * A primary network blockchain id or alias.
3597
4042
  */
@@ -3600,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
3600
4045
  * Either mainnet or a testnet.
3601
4046
  */
3602
4047
  network: Network;
3603
- /**
3604
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3605
- */
3606
- pageSize?: number;
3607
4048
  /**
3608
4049
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3609
4050
  */
3610
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;
3611
4056
  }): CancelablePromise<ListXChainVerticesResponse>;
3612
4057
  /**
3613
4058
  * Get vertex
@@ -3635,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
3635
4080
  * @returns ListXChainVerticesResponse
3636
4081
  * @throws ApiError
3637
4082
  */
3638
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4083
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3639
4084
  /**
3640
4085
  * The height of a vertex.
3641
4086
  */
@@ -3648,26 +4093,370 @@ declare class PrimaryNetworkVerticesService {
3648
4093
  * Either mainnet or a testnet.
3649
4094
  */
3650
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;
3651
4264
  /**
3652
4265
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3653
4266
  */
3654
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, }: {
3655
4387
  /**
3656
4388
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3657
4389
  */
3658
4390
  pageToken?: string;
3659
4391
  /**
3660
- * 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.
3661
4393
  */
3662
- sortOrder?: SortOrder;
3663
- }): 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>;
3664
4451
  }
3665
4452
 
3666
4453
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3667
4454
  declare class Glacier {
4455
+ readonly default: DefaultService;
3668
4456
  readonly evmBalances: EvmBalancesService;
3669
4457
  readonly evmBlocks: EvmBlocksService;
3670
4458
  readonly evmChains: EvmChainsService;
4459
+ readonly evmContracts: EvmContractsService;
3671
4460
  readonly evmTransactions: EvmTransactionsService;
3672
4461
  readonly healthCheck: HealthCheckService;
3673
4462
  readonly nfTs: NfTsService;
@@ -3679,6 +4468,8 @@ declare class Glacier {
3679
4468
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3680
4469
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3681
4470
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4471
+ readonly teleporter: TeleporterService;
4472
+ readonly webhooks: WebhooksService;
3682
4473
  readonly request: BaseHttpRequest;
3683
4474
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3684
4475
  }
@@ -3700,4 +4491,4 @@ declare class ApiError extends Error {
3700
4491
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3701
4492
  }
3702
4493
 
3703
- 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, 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 };