@avalabs/glacier-sdk 2.8.0-canary.c7d9a06.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 (125) hide show
  1. package/dist/index.d.ts +962 -410
  2. package/dist/index.js +372 -132
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  6. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  7. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  8. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  9. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  10. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  11. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  12. package/esm/generated/models/ChainInfo.d.ts +1 -3
  13. package/esm/generated/models/ChainStatus.d.ts +3 -0
  14. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  15. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  16. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  17. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  18. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  19. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  20. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  21. package/esm/generated/models/EVMInput.d.ts +3 -3
  22. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  23. package/esm/generated/models/EVMOperationType.js +6 -0
  24. package/esm/generated/models/EVMOutput.d.ts +3 -3
  25. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  26. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  27. package/esm/generated/models/EventType.d.ts +5 -0
  28. package/esm/generated/models/EventType.js +6 -0
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  30. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  31. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  32. package/esm/generated/models/GlacierApiFeature.js +6 -0
  33. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  34. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  35. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  36. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  37. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  38. package/esm/generated/models/Method.d.ts +0 -3
  39. package/esm/generated/models/Money.d.ts +0 -3
  40. package/esm/generated/models/NextPageToken.d.ts +8 -0
  41. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  42. package/esm/generated/models/OperationType.d.ts +4 -2
  43. package/esm/generated/models/OperationType.js +3 -1
  44. package/esm/generated/models/PChainBalance.d.ts +15 -15
  45. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  46. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  47. package/esm/generated/models/PChainTransactionType.d.ts +8 -5
  48. package/esm/generated/models/PChainTransactionType.js +8 -5
  49. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  50. package/esm/generated/models/PendingReward.d.ts +3 -3
  51. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  52. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  53. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  54. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  55. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  56. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  57. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  58. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  59. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  60. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
  61. package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
  62. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  63. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  64. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  65. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  66. package/esm/generated/models/Subnet.d.ts +17 -0
  67. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  68. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  69. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  70. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  71. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  72. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  73. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  74. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  75. package/esm/generated/models/Utxo.d.ts +30 -30
  76. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  77. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  78. package/esm/generated/models/ValidationStatusType.js +1 -0
  79. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  80. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  81. package/esm/generated/models/WebhookStatus.js +7 -0
  82. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  83. package/esm/generated/models/WebhookStatusType.js +7 -0
  84. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  85. package/esm/generated/models/XChainBalances.d.ts +3 -3
  86. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  87. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  88. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  89. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  90. package/esm/generated/models/XChainTransactionType.js +11 -0
  91. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  92. package/esm/generated/services/EvmBalancesService.js +8 -8
  93. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  94. package/esm/generated/services/EvmBlocksService.js +4 -4
  95. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  96. package/esm/generated/services/EvmChainsService.js +4 -2
  97. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  98. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  99. package/esm/generated/services/EvmTransactionsService.js +32 -32
  100. package/esm/generated/services/NfTsService.d.ts +27 -2
  101. package/esm/generated/services/NfTsService.js +19 -0
  102. package/esm/generated/services/OperationsService.d.ts +11 -11
  103. package/esm/generated/services/OperationsService.js +10 -10
  104. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  105. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  106. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  107. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  108. package/esm/generated/services/PrimaryNetworkService.d.ts +42 -42
  109. package/esm/generated/services/PrimaryNetworkService.js +20 -20
  110. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  111. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  112. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  113. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  114. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  115. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  116. package/esm/generated/services/TeleporterService.d.ts +57 -0
  117. package/esm/generated/services/TeleporterService.js +39 -0
  118. package/esm/generated/services/WebhooksService.d.ts +95 -0
  119. package/esm/generated/services/WebhooksService.js +80 -0
  120. package/esm/index.d.ts +31 -3
  121. package/esm/index.js +16 -2
  122. package/package.json +2 -2
  123. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  124. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  125. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -70,6 +70,9 @@ declare class DefaultService {
70
70
  mediaControllerUploadImage(): CancelablePromise<any>;
71
71
  }
72
72
 
73
+ /**
74
+ * ISO 4217 currency code.
75
+ */
73
76
  declare enum CurrencyCode {
74
77
  USD = "usd",
75
78
  EUR = "eur",
@@ -88,9 +91,6 @@ declare enum CurrencyCode {
88
91
  }
89
92
 
90
93
  type Money = {
91
- /**
92
- * ISO 4217 currency code.
93
- */
94
94
  currencyCode: CurrencyCode;
95
95
  /**
96
96
  * Monetary value in base 10 decimals.
@@ -140,6 +140,9 @@ type GetNativeBalanceResponse = {
140
140
  nativeTokenBalance: NativeTokenBalance;
141
141
  };
142
142
 
143
+ /**
144
+ * The metadata indexing status of the nft.
145
+ */
143
146
  declare enum NftTokenMetadataStatus {
144
147
  UNKNOWN = "UNKNOWN",
145
148
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -155,9 +158,6 @@ declare enum NftTokenMetadataStatus {
155
158
  }
156
159
 
157
160
  type Erc1155TokenMetadata = {
158
- /**
159
- * The metadata indexing status of the nft.
160
- */
161
161
  indexStatus: NftTokenMetadataStatus;
162
162
  metadataLastUpdatedTimestamp?: number;
163
163
  name?: string;
@@ -196,9 +196,6 @@ declare namespace Erc1155TokenBalance {
196
196
  }
197
197
 
198
198
  type Erc721TokenMetadata = {
199
- /**
200
- * The metadata indexing status of the nft.
201
- */
202
199
  indexStatus: NftTokenMetadataStatus;
203
200
  metadataLastUpdatedTimestamp?: number;
204
201
  name?: string;
@@ -345,7 +342,7 @@ declare class EvmBalancesService {
345
342
  */
346
343
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
347
344
  /**
348
- * 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.
349
346
  */
350
347
  chainId: string;
351
348
  /**
@@ -371,9 +368,9 @@ declare class EvmBalancesService {
371
368
  * @returns ListErc20BalancesResponse
372
369
  * @throws ApiError
373
370
  */
374
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
371
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
375
372
  /**
376
- * 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.
377
374
  */
378
375
  chainId: string;
379
376
  /**
@@ -384,14 +381,14 @@ declare class EvmBalancesService {
384
381
  * The block number, if not defined the block number will be the latest block.
385
382
  */
386
383
  blockNumber?: string;
387
- /**
388
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
389
- */
390
- pageSize?: number;
391
384
  /**
392
385
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
393
386
  */
394
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;
395
392
  /**
396
393
  * A comma separated list of contract addresses to filter by.
397
394
  */
@@ -409,23 +406,23 @@ declare class EvmBalancesService {
409
406
  * @returns ListErc721BalancesResponse
410
407
  * @throws ApiError
411
408
  */
412
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
409
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
413
410
  /**
414
- * 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.
415
412
  */
416
413
  chainId: string;
417
414
  /**
418
415
  * A wallet address.
419
416
  */
420
417
  address: string;
421
- /**
422
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
423
- */
424
- pageSize?: number;
425
418
  /**
426
419
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
427
420
  */
428
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;
429
426
  /**
430
427
  * A contract addresses to filter by.
431
428
  */
@@ -441,9 +438,9 @@ declare class EvmBalancesService {
441
438
  * @returns ListErc1155BalancesResponse
442
439
  * @throws ApiError
443
440
  */
444
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
441
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
445
442
  /**
446
- * 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.
447
444
  */
448
445
  chainId: string;
449
446
  /**
@@ -454,14 +451,14 @@ declare class EvmBalancesService {
454
451
  * The block number, if not defined the block number will be the latest block.
455
452
  */
456
453
  blockNumber?: string;
457
- /**
458
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
459
- */
460
- pageSize?: number;
461
454
  /**
462
455
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
463
456
  */
464
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;
465
462
  /**
466
463
  * A contract addresses to filter by.
467
464
  */
@@ -475,23 +472,23 @@ declare class EvmBalancesService {
475
472
  * @returns ListCollectibleBalancesResponse
476
473
  * @throws ApiError
477
474
  */
478
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
475
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
479
476
  /**
480
- * 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.
481
478
  */
482
479
  chainId: string;
483
480
  /**
484
481
  * A wallet address.
485
482
  */
486
483
  address: string;
487
- /**
488
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
489
- */
490
- pageSize?: number;
491
484
  /**
492
485
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
493
486
  */
494
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;
495
492
  /**
496
493
  * A contract addresses to filter by.
497
494
  */
@@ -604,19 +601,19 @@ declare class EvmBlocksService {
604
601
  * @returns ListEvmBlocksResponse
605
602
  * @throws ApiError
606
603
  */
607
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
604
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
608
605
  /**
609
- * 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.
610
607
  */
611
608
  chainId: string;
612
- /**
613
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
614
- */
615
- pageSize?: number;
616
609
  /**
617
610
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
618
611
  */
619
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;
620
617
  }): CancelablePromise<ListEvmBlocksResponse>;
621
618
  /**
622
619
  * Get block
@@ -626,7 +623,7 @@ declare class EvmBlocksService {
626
623
  */
627
624
  getBlock({ chainId, blockId, }: {
628
625
  /**
629
- * 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.
630
627
  */
631
628
  chainId: string;
632
629
  /**
@@ -636,6 +633,9 @@ declare class EvmBlocksService {
636
633
  }): CancelablePromise<GetEvmBlockResponse>;
637
634
  }
638
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
+ */
639
639
  declare enum ChainStatus {
640
640
  OK = "OK",
641
641
  UNAVAILABLE = "UNAVAILABLE"
@@ -673,9 +673,6 @@ declare enum VmName {
673
673
 
674
674
  type GetChainResponse = {
675
675
  chainId: string;
676
- /**
677
- * 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.
678
- */
679
676
  status: ChainStatus;
680
677
  chainName: string;
681
678
  description: string;
@@ -691,13 +688,15 @@ type GetChainResponse = {
691
688
  networkToken: NetworkToken;
692
689
  chainLogoUri?: string;
693
690
  private?: boolean;
691
+ enabledFeatures?: Array<'nftIndexing'>;
694
692
  };
695
693
 
694
+ declare enum GlacierApiFeature {
695
+ NFT_INDEXING = "nftIndexing"
696
+ }
697
+
696
698
  type ChainInfo = {
697
699
  chainId: string;
698
- /**
699
- * 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.
700
- */
701
700
  status: ChainStatus;
702
701
  chainName: string;
703
702
  description: string;
@@ -713,6 +712,7 @@ type ChainInfo = {
713
712
  networkToken: NetworkToken;
714
713
  chainLogoUri?: string;
715
714
  private?: boolean;
715
+ enabledFeatures?: Array<'nftIndexing'>;
716
716
  };
717
717
 
718
718
  type ListChainsResponse = {
@@ -733,11 +733,15 @@ declare class EvmChainsService {
733
733
  * @returns ListChainsResponse
734
734
  * @throws ApiError
735
735
  */
736
- supportedChains({ network, }: {
736
+ supportedChains({ network, feature, }: {
737
737
  /**
738
738
  * mainnet or testnet.
739
739
  */
740
740
  network?: NetworkType;
741
+ /**
742
+ * Filter by feature.
743
+ */
744
+ feature?: GlacierApiFeature;
741
745
  }): CancelablePromise<ListChainsResponse>;
742
746
  /**
743
747
  * Get chain information
@@ -747,7 +751,7 @@ declare class EvmChainsService {
747
751
  */
748
752
  getChainInfo({ chainId, }: {
749
753
  /**
750
- * 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.
751
755
  */
752
756
  chainId: string;
753
757
  }): CancelablePromise<GetChainResponse>;
@@ -1042,7 +1046,7 @@ declare class EvmContractsService {
1042
1046
  */
1043
1047
  getContractMetadata({ chainId, address, }: {
1044
1048
  /**
1045
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1046
1050
  */
1047
1051
  chainId: string;
1048
1052
  /**
@@ -1058,7 +1062,7 @@ declare class EvmContractsService {
1058
1062
  */
1059
1063
  updateContractInfo({ chainId, address, requestBody, }: {
1060
1064
  /**
1061
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1062
1066
  */
1063
1067
  chainId: string;
1064
1068
  /**
@@ -1192,6 +1196,9 @@ type Erc721TransferDetails = {
1192
1196
  erc721Token: Erc721Token;
1193
1197
  };
1194
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
+ */
1195
1202
  declare enum TransactionMethodType {
1196
1203
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1197
1204
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1199,9 +1206,6 @@ declare enum TransactionMethodType {
1199
1206
  }
1200
1207
 
1201
1208
  type Method = {
1202
- /**
1203
- * 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.
1204
- */
1205
1209
  callType: TransactionMethodType;
1206
1210
  /**
1207
1211
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1562,7 +1566,7 @@ type ListTransfersResponse = {
1562
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.
1563
1567
  */
1564
1568
  nextPageToken?: string;
1565
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1569
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1566
1570
  };
1567
1571
 
1568
1572
  declare enum SortOrder {
@@ -1586,7 +1590,7 @@ declare class EvmTransactionsService {
1586
1590
  */
1587
1591
  getDeploymentTransaction({ chainId, address, currency, }: {
1588
1592
  /**
1589
- * 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.
1590
1594
  */
1591
1595
  chainId: string;
1592
1596
  /**
@@ -1604,23 +1608,23 @@ declare class EvmTransactionsService {
1604
1608
  * @returns ListContractsResponse
1605
1609
  * @throws ApiError
1606
1610
  */
1607
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1611
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1608
1612
  /**
1609
- * 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.
1610
1614
  */
1611
1615
  chainId: string;
1612
1616
  /**
1613
1617
  * A wallet address.
1614
1618
  */
1615
1619
  address: string;
1616
- /**
1617
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1618
- */
1619
- pageSize?: number;
1620
1620
  /**
1621
1621
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1622
1622
  */
1623
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;
1624
1628
  }): CancelablePromise<ListContractsResponse>;
1625
1629
  /**
1626
1630
  * List ERC transfers
@@ -1628,25 +1632,31 @@ declare class EvmTransactionsService {
1628
1632
  * @returns ListTransfersResponse
1629
1633
  * @throws ApiError
1630
1634
  */
1631
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1635
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1632
1636
  /**
1633
- * 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.
1634
1638
  */
1635
1639
  chainId: string;
1636
1640
  /**
1637
1641
  * A wallet address.
1638
1642
  */
1639
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
+ */
1640
1647
  startBlock?: number;
1641
- endBlock?: number;
1642
1648
  /**
1643
- * 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.
1644
1650
  */
1645
- pageSize?: number;
1651
+ endBlock?: number;
1646
1652
  /**
1647
1653
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1648
1654
  */
1649
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;
1650
1660
  }): CancelablePromise<ListTransfersResponse>;
1651
1661
  /**
1652
1662
  * List transactions
@@ -1656,24 +1666,30 @@ declare class EvmTransactionsService {
1656
1666
  * @returns ListTransactionDetailsResponse
1657
1667
  * @throws ApiError
1658
1668
  */
1659
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1669
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1660
1670
  /**
1661
- * 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.
1662
1672
  */
1663
1673
  chainId: string;
1664
1674
  /**
1665
1675
  * A wallet address.
1666
1676
  */
1667
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;
1668
1682
  /**
1669
1683
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1670
1684
  */
1671
1685
  pageSize?: number;
1672
1686
  /**
1673
- * 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.
1674
1688
  */
1675
- pageToken?: string;
1676
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
+ */
1677
1693
  endBlock?: number;
1678
1694
  /**
1679
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.
@@ -1686,25 +1702,31 @@ declare class EvmTransactionsService {
1686
1702
  * @returns ListNativeTransactionsResponse
1687
1703
  * @throws ApiError
1688
1704
  */
1689
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1705
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1690
1706
  /**
1691
- * 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.
1692
1708
  */
1693
1709
  chainId: string;
1694
1710
  /**
1695
1711
  * A wallet address.
1696
1712
  */
1697
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
+ */
1698
1717
  startBlock?: number;
1699
- endBlock?: number;
1700
1718
  /**
1701
- * 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.
1702
1720
  */
1703
- pageSize?: number;
1721
+ endBlock?: number;
1704
1722
  /**
1705
1723
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1706
1724
  */
1707
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;
1708
1730
  }): CancelablePromise<ListNativeTransactionsResponse>;
1709
1731
  /**
1710
1732
  * List ERC-20 transfers
@@ -1712,25 +1734,31 @@ declare class EvmTransactionsService {
1712
1734
  * @returns ListErc20TransactionsResponse
1713
1735
  * @throws ApiError
1714
1736
  */
1715
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1737
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1716
1738
  /**
1717
- * 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.
1718
1740
  */
1719
1741
  chainId: string;
1720
1742
  /**
1721
1743
  * A wallet address.
1722
1744
  */
1723
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
+ */
1724
1749
  startBlock?: number;
1725
- endBlock?: number;
1726
1750
  /**
1727
- * 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.
1728
1752
  */
1729
- pageSize?: number;
1753
+ endBlock?: number;
1730
1754
  /**
1731
1755
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1732
1756
  */
1733
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;
1734
1762
  }): CancelablePromise<ListErc20TransactionsResponse>;
1735
1763
  /**
1736
1764
  * List ERC-721 transfers
@@ -1738,25 +1766,31 @@ declare class EvmTransactionsService {
1738
1766
  * @returns ListErc721TransactionsResponse
1739
1767
  * @throws ApiError
1740
1768
  */
1741
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1769
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1742
1770
  /**
1743
- * 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.
1744
1772
  */
1745
1773
  chainId: string;
1746
1774
  /**
1747
1775
  * A wallet address.
1748
1776
  */
1749
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
+ */
1750
1781
  startBlock?: number;
1751
- endBlock?: number;
1752
1782
  /**
1753
- * 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.
1754
1784
  */
1755
- pageSize?: number;
1785
+ endBlock?: number;
1756
1786
  /**
1757
1787
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1758
1788
  */
1759
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;
1760
1794
  }): CancelablePromise<ListErc721TransactionsResponse>;
1761
1795
  /**
1762
1796
  * List ERC-1155 transfers
@@ -1764,25 +1798,31 @@ declare class EvmTransactionsService {
1764
1798
  * @returns ListErc1155TransactionsResponse
1765
1799
  * @throws ApiError
1766
1800
  */
1767
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1801
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1768
1802
  /**
1769
- * 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.
1770
1804
  */
1771
1805
  chainId: string;
1772
1806
  /**
1773
1807
  * A wallet address.
1774
1808
  */
1775
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
+ */
1776
1813
  startBlock?: number;
1777
- endBlock?: number;
1778
1814
  /**
1779
- * 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.
1780
1816
  */
1781
- pageSize?: number;
1817
+ endBlock?: number;
1782
1818
  /**
1783
1819
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1784
1820
  */
1785
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;
1786
1826
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1787
1827
  /**
1788
1828
  * List internal transactions
@@ -1792,25 +1832,31 @@ declare class EvmTransactionsService {
1792
1832
  * @returns ListInternalTransactionsResponse
1793
1833
  * @throws ApiError
1794
1834
  */
1795
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1835
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1796
1836
  /**
1797
- * 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.
1798
1838
  */
1799
1839
  chainId: string;
1800
1840
  /**
1801
1841
  * A wallet address.
1802
1842
  */
1803
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
+ */
1804
1847
  startBlock?: number;
1805
- endBlock?: number;
1806
1848
  /**
1807
- * 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.
1808
1850
  */
1809
- pageSize?: number;
1851
+ endBlock?: number;
1810
1852
  /**
1811
1853
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1812
1854
  */
1813
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;
1814
1860
  }): CancelablePromise<ListInternalTransactionsResponse>;
1815
1861
  /**
1816
1862
  * Get transaction
@@ -1820,7 +1866,7 @@ declare class EvmTransactionsService {
1820
1866
  */
1821
1867
  getTransaction({ chainId, txHash, }: {
1822
1868
  /**
1823
- * 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.
1824
1870
  */
1825
1871
  chainId: string;
1826
1872
  /**
@@ -1836,7 +1882,7 @@ declare class EvmTransactionsService {
1836
1882
  */
1837
1883
  getTransactionsForBlock({ chainId, blockId, }: {
1838
1884
  /**
1839
- * 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.
1840
1886
  */
1841
1887
  chainId: string;
1842
1888
  /**
@@ -1850,19 +1896,19 @@ declare class EvmTransactionsService {
1850
1896
  * @returns ListNativeTransactionsResponse
1851
1897
  * @throws ApiError
1852
1898
  */
1853
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1899
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1854
1900
  /**
1855
- * 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.
1856
1902
  */
1857
1903
  chainId: string;
1858
- /**
1859
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1860
- */
1861
- pageSize?: number;
1862
1904
  /**
1863
1905
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1864
1906
  */
1865
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;
1866
1912
  /**
1867
1913
  * A status filter for listed transactions.
1868
1914
  */
@@ -1886,6 +1932,14 @@ declare class HealthCheckService {
1886
1932
  }>;
1887
1933
  }
1888
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
+
1889
1943
  declare class NfTsService {
1890
1944
  readonly httpRequest: BaseHttpRequest;
1891
1945
  constructor(httpRequest: BaseHttpRequest);
@@ -1897,7 +1951,7 @@ declare class NfTsService {
1897
1951
  */
1898
1952
  reindexNft({ chainId, address, tokenId, }: {
1899
1953
  /**
1900
- * 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.
1901
1955
  */
1902
1956
  chainId: string;
1903
1957
  /**
@@ -1909,6 +1963,30 @@ declare class NfTsService {
1909
1963
  */
1910
1964
  tokenId: string;
1911
1965
  }): CancelablePromise<any>;
1966
+ /**
1967
+ * List tokens
1968
+ * Lists tokens for an NFT contract.
1969
+ * @returns ListNftTokens
1970
+ * @throws ApiError
1971
+ */
1972
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1973
+ /**
1974
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1975
+ */
1976
+ chainId: string;
1977
+ /**
1978
+ * Contract address on the relevant chain.
1979
+ */
1980
+ address: string;
1981
+ /**
1982
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1983
+ */
1984
+ pageToken?: string;
1985
+ /**
1986
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1987
+ */
1988
+ pageSize?: number;
1989
+ }): CancelablePromise<ListNftTokens>;
1912
1990
  /**
1913
1991
  * Get token details
1914
1992
  * Gets token details for a specific token of an NFT contract.
@@ -1917,7 +1995,7 @@ declare class NfTsService {
1917
1995
  */
1918
1996
  getTokenDetails({ chainId, address, tokenId, }: {
1919
1997
  /**
1920
- * 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.
1921
1999
  */
1922
2000
  chainId: string;
1923
2001
  /**
@@ -1936,8 +2014,12 @@ type EvmNetworkOptions = {
1936
2014
  includeChains: Array<string>;
1937
2015
  };
1938
2016
 
2017
+ declare enum EVMOperationType {
2018
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2019
+ }
2020
+
1939
2021
  type CreateEvmTransactionExportRequest = {
1940
- type: CreateEvmTransactionExportRequest.type;
2022
+ type: EVMOperationType;
1941
2023
  firstDate: string;
1942
2024
  lastDate: string;
1943
2025
  /**
@@ -1950,10 +2032,11 @@ type CreateEvmTransactionExportRequest = {
1950
2032
  endDate: string;
1951
2033
  options: EvmNetworkOptions;
1952
2034
  };
1953
- declare namespace CreateEvmTransactionExportRequest {
1954
- enum type {
1955
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1956
- }
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"
1957
2040
  }
1958
2041
 
1959
2042
  type PrimaryNetworkOptions = {
@@ -1963,7 +2046,7 @@ type PrimaryNetworkOptions = {
1963
2046
  };
1964
2047
 
1965
2048
  type CreatePrimaryNetworkTransactionExportRequest = {
1966
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2049
+ type: PrimaryNetworkOperationType;
1967
2050
  firstDate: string;
1968
2051
  lastDate: string;
1969
2052
  /**
@@ -1976,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1976
2059
  endDate: string;
1977
2060
  options: PrimaryNetworkOptions;
1978
2061
  };
1979
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1980
- enum type {
1981
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1982
- }
1983
- }
1984
2062
 
1985
2063
  declare enum OperationStatus {
1986
2064
  RUNNING = "RUNNING",
@@ -1990,8 +2068,10 @@ declare enum OperationStatus {
1990
2068
  }
1991
2069
 
1992
2070
  declare enum OperationType {
1993
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1994
- 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"
1995
2075
  }
1996
2076
 
1997
2077
  declare enum OperationStatusCode {
@@ -2025,17 +2105,6 @@ type OperationStatusResponse = {
2025
2105
  declare class OperationsService {
2026
2106
  readonly httpRequest: BaseHttpRequest;
2027
2107
  constructor(httpRequest: BaseHttpRequest);
2028
- /**
2029
- * Create transaction export operation
2030
- * Trigger a transaction export operation with given parameters.
2031
- *
2032
- * 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.
2033
- * @returns OperationStatusResponse
2034
- * @throws ApiError
2035
- */
2036
- postTransactionExportJob({ requestBody, }: {
2037
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2038
- }): CancelablePromise<OperationStatusResponse>;
2039
2108
  /**
2040
2109
  * Get operation
2041
2110
  * Gets operation details for the given operation id.
@@ -2048,6 +2117,17 @@ declare class OperationsService {
2048
2117
  */
2049
2118
  operationId: string;
2050
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>;
2051
2131
  }
2052
2132
 
2053
2133
  declare enum BlockchainIds {
@@ -2183,13 +2263,44 @@ type BlockchainInfo = {
2183
2263
  blockchainId: string;
2184
2264
  };
2185
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
+
2186
2281
  type Subnet = {
2187
2282
  createBlockTimestamp: number;
2188
2283
  createBlockIndex: string;
2189
2284
  subnetId: string;
2285
+ /**
2286
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2287
+ * @deprecated
2288
+ */
2190
2289
  ownerAddresses: Array<string>;
2290
+ /**
2291
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2292
+ * @deprecated
2293
+ */
2191
2294
  threshold: number;
2295
+ /**
2296
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2297
+ * @deprecated
2298
+ */
2192
2299
  locktime: number;
2300
+ /**
2301
+ * Latest subnet owner details for this Subnet.
2302
+ */
2303
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2193
2304
  blockchains: Array<BlockchainInfo>;
2194
2305
  };
2195
2306
 
@@ -2285,6 +2396,24 @@ declare namespace PendingValidatorDetails {
2285
2396
  }
2286
2397
  }
2287
2398
 
2399
+ type RemovedValidatorDetails = {
2400
+ txHash: string;
2401
+ nodeId: string;
2402
+ subnetId: string;
2403
+ amountStaked: string;
2404
+ delegationFee?: string;
2405
+ startTimestamp: number;
2406
+ endTimestamp: number;
2407
+ removeTxHash: string;
2408
+ removeTimestamp: number;
2409
+ validationStatus: RemovedValidatorDetails.validationStatus;
2410
+ };
2411
+ declare namespace RemovedValidatorDetails {
2412
+ enum validationStatus {
2413
+ REMOVED = "removed"
2414
+ }
2415
+ }
2416
+
2288
2417
  type ListValidatorDetailsResponse = {
2289
2418
  /**
2290
2419
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -2293,7 +2422,7 @@ type ListValidatorDetailsResponse = {
2293
2422
  /**
2294
2423
  * The list of validator Details.
2295
2424
  */
2296
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2425
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2297
2426
  };
2298
2427
 
2299
2428
  declare enum Network {
@@ -2304,7 +2433,24 @@ declare enum Network {
2304
2433
  declare enum ValidationStatusType {
2305
2434
  COMPLETED = "completed",
2306
2435
  ACTIVE = "active",
2307
- PENDING = "pending"
2436
+ PENDING = "pending",
2437
+ REMOVED = "removed"
2438
+ }
2439
+
2440
+ /**
2441
+ * Cap represents if an asset is a variable or fixed cap asset.
2442
+ */
2443
+ declare enum PrimaryNetworkAssetCap {
2444
+ FIXED = "fixed",
2445
+ VARIABLE = "variable"
2446
+ }
2447
+
2448
+ /**
2449
+ * Type of asset like SECP256K1 or NFT.
2450
+ */
2451
+ declare enum PrimaryNetworkAssetType {
2452
+ SECP256K1 = "secp256k1",
2453
+ NFT = "nft"
2308
2454
  }
2309
2455
 
2310
2456
  type XChainAssetDetails = {
@@ -2324,18 +2470,12 @@ type XChainAssetDetails = {
2324
2470
  * Denomination of this asset to represent fungibility.
2325
2471
  */
2326
2472
  denomination: number;
2327
- /**
2328
- * Type of asset like SECP256K1 or NFT.
2329
- */
2330
- type: string;
2473
+ type: PrimaryNetworkAssetType;
2331
2474
  /**
2332
2475
  * Timestamp in seconds this asset was created on.
2333
2476
  */
2334
2477
  createdAtTimestamp: number;
2335
- /**
2336
- * Cap represents if an asset can be or is fixed cap.
2337
- */
2338
- cap: string;
2478
+ cap: PrimaryNetworkAssetCap;
2339
2479
  };
2340
2480
 
2341
2481
  declare enum XChainId {
@@ -2401,19 +2541,19 @@ declare class PrimaryNetworkService {
2401
2541
  * @returns ListBlockchainsResponse
2402
2542
  * @throws ApiError
2403
2543
  */
2404
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2544
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2405
2545
  /**
2406
2546
  * Either mainnet or a testnet.
2407
2547
  */
2408
2548
  network: Network;
2409
- /**
2410
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2411
- */
2412
- pageSize?: number;
2413
2549
  /**
2414
2550
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2415
2551
  */
2416
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;
2417
2557
  /**
2418
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.
2419
2559
  */
@@ -2425,19 +2565,19 @@ declare class PrimaryNetworkService {
2425
2565
  * @returns ListSubnetsResponse
2426
2566
  * @throws ApiError
2427
2567
  */
2428
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2568
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2429
2569
  /**
2430
2570
  * Either mainnet or a testnet.
2431
2571
  */
2432
2572
  network: Network;
2433
- /**
2434
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2435
- */
2436
- pageSize?: number;
2437
2573
  /**
2438
2574
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2439
2575
  */
2440
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;
2441
2581
  /**
2442
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.
2443
2583
  */
@@ -2449,59 +2589,59 @@ declare class PrimaryNetworkService {
2449
2589
  * @returns ListValidatorDetailsResponse
2450
2590
  * @throws ApiError
2451
2591
  */
2452
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2592
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2453
2593
  /**
2454
2594
  * Either mainnet or a testnet.
2455
2595
  */
2456
2596
  network: Network;
2457
- /**
2458
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2459
- */
2460
- pageSize?: number;
2461
2597
  /**
2462
2598
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2463
2599
  */
2464
2600
  pageToken?: string;
2465
2601
  /**
2466
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2602
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2467
2603
  */
2468
- minTimeRemaining?: any;
2604
+ pageSize?: number;
2469
2605
  /**
2470
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2606
+ * A comma separated list of node ids to filter by.
2471
2607
  */
2472
- maxTimeRemaining?: any;
2608
+ nodeIds?: string;
2473
2609
  /**
2474
- * 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
2610
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2475
2611
  */
2476
- minDelegationCapacity?: number;
2612
+ sortOrder?: SortOrder;
2477
2613
  /**
2478
- * 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.
2614
+ * Validation status of the node.
2479
2615
  */
2480
- maxDelegationCapacity?: number;
2616
+ validationStatus?: ValidationStatusType;
2481
2617
  /**
2482
- * 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.
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
2483
2619
  */
2484
- minFeePercentage?: any;
2620
+ minDelegationCapacity?: string;
2485
2621
  /**
2486
- * 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.
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.
2487
2623
  */
2488
- maxFeePercentage?: any;
2624
+ maxDelegationCapacity?: string;
2489
2625
  /**
2490
- * A comma separated list of node ids to filter by.
2626
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2491
2627
  */
2492
- nodeIds?: string;
2628
+ minTimeRemaining?: number;
2493
2629
  /**
2494
- * 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.
2630
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2495
2631
  */
2496
- sortOrder?: SortOrder;
2632
+ maxTimeRemaining?: number;
2497
2633
  /**
2498
- * Validation status of the node.
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.
2499
2635
  */
2500
- validationStatus?: ValidationStatusType;
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;
2501
2641
  /**
2502
2642
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2503
2643
  */
2504
- subnetId?: string;
2644
+ subnetId?: any;
2505
2645
  }): CancelablePromise<ListValidatorDetailsResponse>;
2506
2646
  /**
2507
2647
  * Get single validator details
@@ -2509,7 +2649,7 @@ declare class PrimaryNetworkService {
2509
2649
  * @returns ListValidatorDetailsResponse
2510
2650
  * @throws ApiError
2511
2651
  */
2512
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2652
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2513
2653
  /**
2514
2654
  * Either mainnet or a testnet.
2515
2655
  */
@@ -2518,14 +2658,14 @@ declare class PrimaryNetworkService {
2518
2658
  * A primary network (P or X chain) nodeId.
2519
2659
  */
2520
2660
  nodeId: string;
2521
- /**
2522
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2523
- */
2524
- pageSize?: number;
2525
2661
  /**
2526
2662
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2527
2663
  */
2528
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;
2529
2669
  /**
2530
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.
2531
2671
  */
@@ -2541,19 +2681,19 @@ declare class PrimaryNetworkService {
2541
2681
  * @returns ListDelegatorDetailsResponse
2542
2682
  * @throws ApiError
2543
2683
  */
2544
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2684
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2545
2685
  /**
2546
2686
  * Either mainnet or a testnet.
2547
2687
  */
2548
2688
  network: Network;
2549
- /**
2550
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2551
- */
2552
- pageSize?: number;
2553
2689
  /**
2554
2690
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2555
2691
  */
2556
2692
  pageToken?: string;
2693
+ /**
2694
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2695
+ */
2696
+ pageSize?: number;
2557
2697
  /**
2558
2698
  * A comma separated list of reward addresses to filter by.
2559
2699
  */
@@ -2601,10 +2741,7 @@ type CChainSharedAssetBalance = {
2601
2741
  * Denomination of this asset to represent fungibility.
2602
2742
  */
2603
2743
  denomination: number;
2604
- /**
2605
- * Type of asset like SECP256K1 or NFT.
2606
- */
2607
- type: string;
2744
+ type: PrimaryNetworkAssetType;
2608
2745
  /**
2609
2746
  * Amount of the asset.
2610
2747
  */
@@ -2639,49 +2776,89 @@ type ListCChainAtomicBalancesResponse = {
2639
2776
  chainInfo: PrimaryNetworkChainInfo;
2640
2777
  };
2641
2778
 
2642
- type PChainAsset = {
2779
+ type AggregatedAssetAmount = {
2780
+ /**
2781
+ * Unique ID for an asset.
2782
+ */
2643
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
+ */
2644
2800
  amount: string;
2801
+ utxoCount: number;
2645
2802
  };
2646
2803
 
2647
2804
  type PChainSharedAsset = {
2805
+ /**
2806
+ * Unique ID for an asset.
2807
+ */
2648
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
+ */
2649
2825
  amount: string;
2826
+ utxoCount: number;
2650
2827
  sharedWithChainId: string;
2651
2828
  status: string;
2652
2829
  };
2653
2830
 
2654
2831
  type PChainBalance = {
2655
2832
  /**
2656
- * 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.
2657
2834
  */
2658
- unlockedUnstaked: Array<PChainAsset>;
2835
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2659
2836
  /**
2660
- * 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.
2661
2838
  */
2662
- unlockedStaked: Array<PChainAsset>;
2839
+ unlockedStaked: Array<AggregatedAssetAmount>;
2663
2840
  /**
2664
- * 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.
2665
2842
  */
2666
- lockedPlatform: Array<PChainAsset>;
2843
+ lockedPlatform: Array<AggregatedAssetAmount>;
2667
2844
  /**
2668
- * 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.
2669
2846
  */
2670
- lockedStakeable: Array<PChainAsset>;
2847
+ lockedStakeable: Array<AggregatedAssetAmount>;
2671
2848
  /**
2672
- * 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.
2673
2850
  */
2674
- lockedStaked: Array<PChainAsset>;
2851
+ lockedStaked: Array<AggregatedAssetAmount>;
2675
2852
  /**
2676
- * 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.
2677
2854
  */
2678
- pendingStaked: Array<PChainAsset>;
2855
+ pendingStaked: Array<AggregatedAssetAmount>;
2679
2856
  /**
2680
- * 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.
2681
2858
  */
2682
2859
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2683
2860
  /**
2684
- * 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.
2685
2862
  */
2686
2863
  atomicMemoryLocked: Array<PChainSharedAsset>;
2687
2864
  };
@@ -2691,34 +2868,6 @@ type ListPChainBalancesResponse = {
2691
2868
  chainInfo: PrimaryNetworkChainInfo;
2692
2869
  };
2693
2870
 
2694
- type XChainAssetBalance = {
2695
- /**
2696
- * Unique ID for an asset.
2697
- */
2698
- assetId: string;
2699
- /**
2700
- * Name of this asset.
2701
- */
2702
- name: string;
2703
- /**
2704
- * Symbol for this asset (max 4 characters).
2705
- */
2706
- symbol: string;
2707
- /**
2708
- * Denomination of this asset to represent fungibility.
2709
- */
2710
- denomination: number;
2711
- /**
2712
- * Type of asset like SECP256K1 or NFT.
2713
- */
2714
- type: string;
2715
- /**
2716
- * Amount of the asset.
2717
- */
2718
- amount: string;
2719
- utxoCount: number;
2720
- };
2721
-
2722
2871
  type XChainSharedAssetBalance = {
2723
2872
  /**
2724
2873
  * Unique ID for an asset.
@@ -2736,10 +2885,7 @@ type XChainSharedAssetBalance = {
2736
2885
  * Denomination of this asset to represent fungibility.
2737
2886
  */
2738
2887
  denomination: number;
2739
- /**
2740
- * Type of asset like SECP256K1 or NFT.
2741
- */
2742
- type: string;
2888
+ type: PrimaryNetworkAssetType;
2743
2889
  /**
2744
2890
  * Amount of the asset.
2745
2891
  */
@@ -2752,11 +2898,11 @@ type XChainBalances = {
2752
2898
  /**
2753
2899
  * A list of objects containing X-chain Asset balance information.
2754
2900
  */
2755
- locked: Array<XChainAssetBalance>;
2901
+ locked: Array<AggregatedAssetAmount>;
2756
2902
  /**
2757
2903
  * A list of objects containing X-chain Asset balance information.
2758
2904
  */
2759
- unlocked: Array<XChainAssetBalance>;
2905
+ unlocked: Array<AggregatedAssetAmount>;
2760
2906
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2761
2907
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2762
2908
  };
@@ -2814,6 +2960,7 @@ type GetPrimaryNetworkBlockResponse = {
2814
2960
  txCount: number;
2815
2961
  transactions: Array<string>;
2816
2962
  blockSizeBytes: number;
2963
+ currentSupply?: string;
2817
2964
  proposerDetails?: ProposerDetails;
2818
2965
  };
2819
2966
 
@@ -2826,6 +2973,7 @@ type PrimaryNetworkBlock = {
2826
2973
  txCount: number;
2827
2974
  transactions: Array<string>;
2828
2975
  blockSizeBytes: number;
2976
+ currentSupply?: string;
2829
2977
  proposerDetails?: ProposerDetails;
2830
2978
  };
2831
2979
 
@@ -2867,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
2867
3015
  * @returns ListPrimaryNetworkBlocksResponse
2868
3016
  * @throws ApiError
2869
3017
  */
2870
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3018
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2871
3019
  /**
2872
3020
  * A primary network blockchain id or alias.
2873
3021
  */
@@ -2880,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
2880
3028
  * A primary network (P or X chain) nodeId.
2881
3029
  */
2882
3030
  nodeId: string;
2883
- /**
2884
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2885
- */
2886
- pageSize?: number;
2887
3031
  /**
2888
3032
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2889
3033
  */
2890
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;
2891
3039
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2892
3040
  /**
2893
3041
  * List latest blocks
@@ -2895,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
2895
3043
  * @returns ListPrimaryNetworkBlocksResponse
2896
3044
  * @throws ApiError
2897
3045
  */
2898
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3046
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2899
3047
  /**
2900
3048
  * A primary network blockchain id or alias.
2901
3049
  */
@@ -2904,17 +3052,45 @@ declare class PrimaryNetworkBlocksService {
2904
3052
  * Either mainnet or a testnet.
2905
3053
  */
2906
3054
  network: Network;
2907
- /**
2908
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2909
- */
2910
- pageSize?: number;
2911
3055
  /**
2912
3056
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2913
3057
  */
2914
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;
2915
3063
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2916
3064
  }
2917
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
+
2918
3094
  declare enum RewardType {
2919
3095
  VALIDATOR = "VALIDATOR",
2920
3096
  DELEGATOR = "DELEGATOR",
@@ -2934,10 +3110,7 @@ type HistoricalReward = {
2934
3110
  rewardType: RewardType;
2935
3111
  utxoId: string;
2936
3112
  outputIndex: number;
2937
- /**
2938
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2939
- */
2940
- reward: PChainAsset;
3113
+ reward: AssetWithPriceInfo;
2941
3114
  rewardTxHash: string;
2942
3115
  };
2943
3116
 
@@ -2949,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
2949
3122
  historicalRewards: Array<HistoricalReward>;
2950
3123
  };
2951
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
+
2952
3149
  type PendingReward = {
2953
3150
  /**
2954
3151
  * An array of P-Chain wallet addresses.
@@ -2962,9 +3159,9 @@ type PendingReward = {
2962
3159
  rewardType: RewardType;
2963
3160
  progress: number;
2964
3161
  /**
2965
- * 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.
2966
3163
  */
2967
- estimatedReward: PChainAsset;
3164
+ estimatedReward: AssetAmount;
2968
3165
  };
2969
3166
 
2970
3167
  type ListPendingRewardsResponse = {
@@ -2984,25 +3181,25 @@ declare class PrimaryNetworkRewardsService {
2984
3181
  * @returns ListPendingRewardsResponse
2985
3182
  * @throws ApiError
2986
3183
  */
2987
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3184
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2988
3185
  /**
2989
3186
  * Either mainnet or a testnet.
2990
3187
  */
2991
3188
  network: Network;
2992
3189
  /**
2993
- * 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.
2994
3191
  */
2995
3192
  addresses?: string;
2996
- /**
2997
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2998
- */
2999
- pageSize?: number;
3000
3193
  /**
3001
3194
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3002
3195
  */
3003
3196
  pageToken?: string;
3004
3197
  /**
3005
- * A comma separated list of node ids to filter by.
3198
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3199
+ */
3200
+ pageSize?: number;
3201
+ /**
3202
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3006
3203
  */
3007
3204
  nodeIds?: string;
3008
3205
  /**
@@ -3016,68 +3213,45 @@ declare class PrimaryNetworkRewardsService {
3016
3213
  * @returns ListHistoricalRewardsResponse
3017
3214
  * @throws ApiError
3018
3215
  */
3019
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3216
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3020
3217
  /**
3021
3218
  * Either mainnet or a testnet.
3022
3219
  */
3023
3220
  network: Network;
3024
3221
  /**
3025
- * 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.
3026
3223
  */
3027
3224
  addresses?: string;
3028
- /**
3029
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3030
- */
3031
- pageSize?: number;
3032
3225
  /**
3033
3226
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3034
3227
  */
3035
3228
  pageToken?: string;
3036
3229
  /**
3037
- * A comma separated list of node ids to filter by.
3230
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3231
+ */
3232
+ pageSize?: number;
3233
+ /**
3234
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3038
3235
  */
3039
3236
  nodeIds?: string;
3040
3237
  /**
3041
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.
3042
3239
  */
3043
3240
  sortOrder?: SortOrder;
3241
+ /**
3242
+ * The currency that return values should use. Defaults to USD.
3243
+ */
3244
+ currency?: CurrencyCode;
3044
3245
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3045
3246
  }
3046
3247
 
3047
- type Asset = {
3048
- /**
3049
- * Unique ID for an asset.
3050
- */
3051
- assetId: string;
3052
- /**
3053
- * Name of this asset.
3054
- */
3055
- name: string;
3056
- /**
3057
- * Symbol for this asset (max 4 characters).
3058
- */
3059
- symbol: string;
3060
- /**
3061
- * Denomination of this asset to represent fungibility.
3062
- */
3063
- denomination: number;
3064
- /**
3065
- * Type of asset like SECP256K1 or NFT.
3066
- */
3067
- type: string;
3068
- /**
3069
- * Amount of the asset.
3070
- */
3071
- amount: string;
3072
- };
3073
-
3074
3248
  type UtxoCredential = {
3075
3249
  /**
3076
- * Signature provided to consume the output
3250
+ * Signature provided to consume the output.
3077
3251
  */
3078
3252
  signature?: string;
3079
3253
  /**
3080
- * Public key associated with the signature
3254
+ * Public key associated with the signature.
3081
3255
  */
3082
3256
  publicKey?: string;
3083
3257
  };
@@ -3088,9 +3262,9 @@ type EVMInput = {
3088
3262
  */
3089
3263
  fromAddress: string;
3090
3264
  /**
3091
- * Asset details for the asset being transferred.
3265
+ * AssetAmount details for the asset being transferred.
3092
3266
  */
3093
- asset: Asset;
3267
+ asset: AssetAmount;
3094
3268
  /**
3095
3269
  * Credentials that signed this transaction.
3096
3270
  */
@@ -3099,66 +3273,66 @@ type EVMInput = {
3099
3273
 
3100
3274
  type Utxo = {
3101
3275
  /**
3102
- * UTXO ID for this output.
3276
+ * Addresses that are eligible to sign the consumption of this output.
3103
3277
  */
3104
- utxoId: string;
3105
- asset: Asset;
3278
+ addresses: Array<string>;
3279
+ asset: AssetAmount;
3106
3280
  /**
3107
- * Type of output.
3281
+ * Blockchain ID on which this output is consumed on.
3108
3282
  */
3109
- utxoType: string;
3283
+ consumedOnChainId: string;
3284
+ /**
3285
+ * Transaction ID that consumed this output.
3286
+ */
3287
+ consumingTxHash?: string;
3110
3288
  /**
3111
3289
  * Blockchain ID on which this output is created on.
3112
3290
  */
3113
3291
  createdOnChainId: string;
3114
3292
  /**
3115
- * Blockchain ID on which this output is consumed on.
3293
+ * UTXO ID for this output.
3116
3294
  */
3117
- consumedOnChainId: string;
3295
+ utxoId: string;
3296
+ /**
3297
+ * Unix timestamp in seconds at which this output was consumed.
3298
+ */
3299
+ consumingTxTimestamp?: number;
3118
3300
  /**
3119
3301
  * Transaction ID that created this output.
3120
3302
  */
3121
3303
  creationTxHash: string;
3122
3304
  /**
3123
- * Transaction ID that consumed this output.
3305
+ * Credentials that signed the transaction to consume this utxo
3124
3306
  */
3125
- consumingTxHash?: string;
3307
+ credentials?: Array<UtxoCredential>;
3126
3308
  /**
3127
- * Timestamp in seconds this output is consumed.
3309
+ * Index representing the minting set for the NFT mint output.
3128
3310
  */
3129
- consumingTxTimestamp?: number;
3311
+ groupId?: number;
3312
+ /**
3313
+ * Locktime in seconds after which this output can be consumed.
3314
+ */
3315
+ locktime: number;
3130
3316
  /**
3131
3317
  * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3132
3318
  */
3133
3319
  outputIndex: string;
3134
3320
  /**
3135
- * Timestamp in seconds this outptut is created on.
3321
+ * Hex encoded data for NFT assets.
3136
3322
  */
3137
- timestamp: number;
3323
+ payload?: string;
3138
3324
  /**
3139
- * Locktime in seconds after which this output can be consumed.
3140
- */
3141
- locktime: number;
3142
- /**
3143
- * Minimum number of signatures required to consume this output.
3325
+ * Minimum number of signatures required to consume this output.
3144
3326
  */
3145
3327
  threshold: number;
3146
3328
  /**
3147
- * Addresses that are eligible to sign the consumption of this output.
3148
- */
3149
- addresses: Array<string>;
3150
- /**
3151
- * Hex encoded data for NFT assets
3152
- */
3153
- payload?: string;
3154
- /**
3155
- * Index representing the minting set for the NFT mint output
3329
+ * Unix timestamp in seconds at which this outptut was created.
3156
3330
  */
3157
- groupId?: number;
3331
+ timestamp: number;
3158
3332
  /**
3159
- * Credentials that signed the transaction to consume this utxo
3333
+ * Type of output.
3160
3334
  */
3161
- credentials?: Array<UtxoCredential>;
3335
+ utxoType: string;
3162
3336
  };
3163
3337
 
3164
3338
  type CChainExportTransaction = {
@@ -3185,11 +3359,11 @@ type CChainExportTransaction = {
3185
3359
  /**
3186
3360
  * Assets unlocked by inputs of this transaction.
3187
3361
  */
3188
- amountUnlocked: Array<Asset>;
3362
+ amountUnlocked: Array<AssetAmount>;
3189
3363
  /**
3190
3364
  * Assets created by outputs of this transaction.
3191
3365
  */
3192
- amountCreated: Array<Asset>;
3366
+ amountCreated: Array<AssetAmount>;
3193
3367
  /**
3194
3368
  * Source chain for an atomic transaction.
3195
3369
  */
@@ -3220,9 +3394,9 @@ type EVMOutput = {
3220
3394
  */
3221
3395
  toAddress: string;
3222
3396
  /**
3223
- * Asset details for the asset being transferred.
3397
+ * AssetAmount details for the asset being transferred.
3224
3398
  */
3225
- asset: Asset;
3399
+ asset: AssetAmount;
3226
3400
  };
3227
3401
 
3228
3402
  type CChainImportTransaction = {
@@ -3249,11 +3423,11 @@ type CChainImportTransaction = {
3249
3423
  /**
3250
3424
  * Assets unlocked by inputs of this transaction.
3251
3425
  */
3252
- amountUnlocked: Array<Asset>;
3426
+ amountUnlocked: Array<AssetAmount>;
3253
3427
  /**
3254
3428
  * Assets created by outputs of this transaction.
3255
3429
  */
3256
- amountCreated: Array<Asset>;
3430
+ amountCreated: Array<AssetAmount>;
3257
3431
  /**
3258
3432
  * Source chain for an atomic transaction.
3259
3433
  */
@@ -3289,17 +3463,20 @@ type ListCChainAtomicTransactionsResponse = {
3289
3463
 
3290
3464
  declare enum PChainTransactionType {
3291
3465
  ADD_VALIDATOR_TX = "AddValidatorTx",
3292
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3293
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3294
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3295
3466
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3296
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3297
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3467
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3298
3468
  CREATE_CHAIN_TX = "CreateChainTx",
3299
3469
  CREATE_SUBNET_TX = "CreateSubnetTx",
3300
3470
  IMPORT_TX = "ImportTx",
3301
3471
  EXPORT_TX = "ExportTx",
3302
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",
3303
3480
  UNKNOWN = "UNKNOWN"
3304
3481
  }
3305
3482
 
@@ -3310,29 +3487,48 @@ declare enum UtxoType {
3310
3487
 
3311
3488
  type PChainUtxo = {
3312
3489
  /**
3313
- * An array of P-Chain wallet addresses.
3490
+ * Addresses that are eligible to sign the consumption of this output.
3314
3491
  */
3315
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
+ */
3316
3509
  utxoId: string;
3317
- txHash: string;
3318
- outputIndex: number;
3510
+ /**
3511
+ * @deprecated
3512
+ */
3513
+ amount: string;
3514
+ /**
3515
+ * @deprecated
3516
+ */
3517
+ assetId: string;
3319
3518
  blockNumber: string;
3320
3519
  blockTimestamp: number;
3321
- consumingTxHash?: string;
3322
- consumingBlockTimestamp?: number;
3323
3520
  consumingBlockNumber?: string;
3324
- assetId: string;
3325
- utxoType: UtxoType;
3326
- amount: string;
3327
- stakeableLocktime?: number;
3521
+ consumingBlockTimestamp?: number;
3328
3522
  platformLocktime?: number;
3329
- threshold?: number;
3330
- createdOnChainId: string;
3331
- consumedOnChainId: string;
3523
+ outputIndex: number;
3524
+ rewardType?: RewardType;
3525
+ stakeableLocktime?: number;
3332
3526
  staked?: boolean;
3333
- utxoStartTimestamp?: number;
3527
+ threshold?: number;
3528
+ txHash: string;
3334
3529
  utxoEndTimestamp?: number;
3335
- rewardType?: RewardType;
3530
+ utxoStartTimestamp?: number;
3531
+ utxoType: UtxoType;
3336
3532
  };
3337
3533
 
3338
3534
  type PChainTransaction = {
@@ -3358,17 +3554,17 @@ type PChainTransaction = {
3358
3554
  */
3359
3555
  destinationChain?: string;
3360
3556
  /**
3361
- * 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.
3362
3558
  */
3363
- value: Array<PChainAsset>;
3559
+ value: Array<AssetAmount>;
3364
3560
  /**
3365
- * 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.
3366
3562
  */
3367
- amountBurned: Array<PChainAsset>;
3563
+ amountBurned: Array<AssetAmount>;
3368
3564
  /**
3369
- * 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
3370
3566
  */
3371
- amountStaked: Array<PChainAsset>;
3567
+ amountStaked: Array<AssetAmount>;
3372
3568
  /**
3373
3569
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3374
3570
  */
@@ -3400,6 +3596,10 @@ type PChainTransaction = {
3400
3596
  * Present for RewardValidatorTx
3401
3597
  */
3402
3598
  stakingTxHash?: string;
3599
+ /**
3600
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3601
+ */
3602
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3403
3603
  };
3404
3604
 
3405
3605
  type ListPChainTransactionsResponse = {
@@ -3411,6 +3611,18 @@ type ListPChainTransactionsResponse = {
3411
3611
  chainInfo: PrimaryNetworkChainInfo;
3412
3612
  };
3413
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
+
3414
3626
  type XChainLinearTransaction = {
3415
3627
  /**
3416
3628
  * Unique ID for this transaction.
@@ -3424,10 +3636,7 @@ type XChainLinearTransaction = {
3424
3636
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3425
3637
  */
3426
3638
  timestamp: number;
3427
- /**
3428
- * Type of transaction.
3429
- */
3430
- txType: string;
3639
+ txType: XChainTransactionType;
3431
3640
  /**
3432
3641
  * Hex encoded memo bytes for this transaction.
3433
3642
  */
@@ -3437,11 +3646,11 @@ type XChainLinearTransaction = {
3437
3646
  /**
3438
3647
  * Assets unlocked by inputs of this transaction.
3439
3648
  */
3440
- amountUnlocked: Array<Asset>;
3649
+ amountUnlocked: Array<AssetAmount>;
3441
3650
  /**
3442
3651
  * Assets created by outputs of this transaction.
3443
3652
  */
3444
- amountCreated: Array<Asset>;
3653
+ amountCreated: Array<AssetAmount>;
3445
3654
  /**
3446
3655
  * Source chain for an atomic transaction.
3447
3656
  */
@@ -3451,7 +3660,7 @@ type XChainLinearTransaction = {
3451
3660
  */
3452
3661
  destinationChain?: string;
3453
3662
  /**
3454
- * Asset details of the asset created in CreateAssetTx
3663
+ * AssetAmount details of the asset created in CreateAssetTx
3455
3664
  */
3456
3665
  assetCreated?: XChainAssetDetails;
3457
3666
  /**
@@ -3501,10 +3710,7 @@ type XChainNonLinearTransaction = {
3501
3710
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3502
3711
  */
3503
3712
  timestamp: number;
3504
- /**
3505
- * Type of transaction.
3506
- */
3507
- txType: string;
3713
+ txType: XChainTransactionType;
3508
3714
  /**
3509
3715
  * Hex encoded memo bytes for this transaction.
3510
3716
  */
@@ -3514,11 +3720,11 @@ type XChainNonLinearTransaction = {
3514
3720
  /**
3515
3721
  * Assets unlocked by inputs of this transaction.
3516
3722
  */
3517
- amountUnlocked: Array<Asset>;
3723
+ amountUnlocked: Array<AssetAmount>;
3518
3724
  /**
3519
3725
  * Assets created by outputs of this transaction.
3520
3726
  */
3521
- amountCreated: Array<Asset>;
3727
+ amountCreated: Array<AssetAmount>;
3522
3728
  /**
3523
3729
  * Source chain for an atomic transaction.
3524
3730
  */
@@ -3528,7 +3734,7 @@ type XChainNonLinearTransaction = {
3528
3734
  */
3529
3735
  destinationChain?: string;
3530
3736
  /**
3531
- * Asset details of the asset created in CreateAssetTx
3737
+ * AssetAmount details of the asset created in CreateAssetTx
3532
3738
  */
3533
3739
  assetCreated?: XChainAssetDetails;
3534
3740
  /**
@@ -3562,19 +3768,21 @@ declare enum PChainId {
3562
3768
 
3563
3769
  declare enum PrimaryNetworkTxType {
3564
3770
  ADD_VALIDATOR_TX = "AddValidatorTx",
3565
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3566
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3567
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3568
3771
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3569
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3570
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3772
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3571
3773
  CREATE_CHAIN_TX = "CreateChainTx",
3572
3774
  CREATE_SUBNET_TX = "CreateSubnetTx",
3573
3775
  IMPORT_TX = "ImportTx",
3574
3776
  EXPORT_TX = "ExportTx",
3575
3777
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3576
- 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",
3577
3783
  BASE_TX = "BaseTx",
3784
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3785
+ UNKNOWN = "UNKNOWN",
3578
3786
  CREATE_ASSET_TX = "CreateAssetTx",
3579
3787
  OPERATION_TX = "OperationTx"
3580
3788
  }
@@ -3606,13 +3814,13 @@ declare class PrimaryNetworkTransactionsService {
3606
3814
  * List latest transactions
3607
3815
  * Lists the latest transactions on one of the Primary Network chains.
3608
3816
  *
3609
- * 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.
3610
3818
  *
3611
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.
3612
3820
  * @returns any
3613
3821
  * @throws ApiError
3614
3822
  */
3615
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3823
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3616
3824
  /**
3617
3825
  * A primary network blockchain id or alias.
3618
3826
  */
@@ -3637,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
3637
3845
  * Query param for retrieving items before a specific timestamp.
3638
3846
  */
3639
3847
  endTimestamp?: number;
3640
- /**
3641
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3642
- */
3643
- pageSize?: number;
3644
3848
  /**
3645
3849
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3646
3850
  */
3647
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;
3648
3856
  /**
3649
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.
3650
3858
  */
@@ -3656,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
3656
3864
  * @returns ListPChainTransactionsResponse
3657
3865
  * @throws ApiError
3658
3866
  */
3659
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3867
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3660
3868
  /**
3661
3869
  * A primary network blockchain id or alias.
3662
3870
  */
@@ -3681,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
3681
3889
  * Query param for retrieving items before a specific timestamp.
3682
3890
  */
3683
3891
  endTimestamp?: number;
3684
- /**
3685
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3686
- */
3687
- pageSize?: number;
3688
3892
  /**
3689
3893
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3690
3894
  */
3691
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;
3692
3900
  /**
3693
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.
3694
3902
  */
@@ -3700,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
3700
3908
  * @returns ListXChainTransactionsResponse
3701
3909
  * @throws ApiError
3702
3910
  */
3703
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3911
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3704
3912
  /**
3705
3913
  * A primary network blockchain id or alias.
3706
3914
  */
@@ -3725,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
3725
3933
  * Query param for retrieving items before a specific timestamp.
3726
3934
  */
3727
3935
  endTimestamp?: number;
3728
- /**
3729
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3730
- */
3731
- pageSize?: number;
3732
3936
  /**
3733
3937
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3734
3938
  */
3735
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;
3736
3944
  }): CancelablePromise<ListXChainTransactionsResponse>;
3737
3945
  }
3738
3946
 
@@ -3763,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
3763
3971
  * @returns any
3764
3972
  * @throws ApiError
3765
3973
  */
3766
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3974
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3767
3975
  /**
3768
3976
  * A primary network blockchain id or alias.
3769
3977
  */
@@ -3776,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
3776
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".
3777
3985
  */
3778
3986
  addresses?: string;
3779
- /**
3780
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3781
- */
3782
- pageSize?: number;
3783
3987
  /**
3784
3988
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3785
3989
  */
3786
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;
3787
3995
  /**
3788
3996
  * Asset ID for any asset (only applicable X-Chain)
3789
3997
  */
@@ -3828,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
3828
4036
  * @returns ListXChainVerticesResponse
3829
4037
  * @throws ApiError
3830
4038
  */
3831
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4039
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3832
4040
  /**
3833
4041
  * A primary network blockchain id or alias.
3834
4042
  */
@@ -3837,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
3837
4045
  * Either mainnet or a testnet.
3838
4046
  */
3839
4047
  network: Network;
3840
- /**
3841
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3842
- */
3843
- pageSize?: number;
3844
4048
  /**
3845
4049
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3846
4050
  */
3847
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;
3848
4056
  }): CancelablePromise<ListXChainVerticesResponse>;
3849
4057
  /**
3850
4058
  * Get vertex
@@ -3872,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
3872
4080
  * @returns ListXChainVerticesResponse
3873
4081
  * @throws ApiError
3874
4082
  */
3875
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4083
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3876
4084
  /**
3877
4085
  * The height of a vertex.
3878
4086
  */
@@ -3885,19 +4093,361 @@ declare class PrimaryNetworkVerticesService {
3885
4093
  * Either mainnet or a testnet.
3886
4094
  */
3887
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;
3888
4264
  /**
3889
4265
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3890
4266
  */
3891
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, }: {
3892
4387
  /**
3893
4388
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3894
4389
  */
3895
4390
  pageToken?: string;
3896
4391
  /**
3897
- * 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.
3898
4393
  */
3899
- sortOrder?: SortOrder;
3900
- }): 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>;
3901
4451
  }
3902
4452
 
3903
4453
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -3918,6 +4468,8 @@ declare class Glacier {
3918
4468
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3919
4469
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3920
4470
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4471
+ readonly teleporter: TeleporterService;
4472
+ readonly webhooks: WebhooksService;
3921
4473
  readonly request: BaseHttpRequest;
3922
4474
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3923
4475
  }
@@ -3939,4 +4491,4 @@ declare class ApiError extends Error {
3939
4491
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3940
4492
  }
3941
4493
 
3942
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, 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, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, 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 };