@avalabs/glacier-sdk 2.8.0-canary.1c410fd.0 → 2.8.0-canary.1f2a4ee.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 (172) hide show
  1. package/dist/index.d.ts +1648 -712
  2. package/dist/index.js +681 -210
  3. package/esm/generated/Glacier.d.ts +10 -0
  4. package/esm/generated/Glacier.js +39 -10
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  7. package/esm/generated/core/CancelablePromise.js +38 -31
  8. package/esm/generated/core/request.js +17 -33
  9. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  10. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  11. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  12. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  13. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  14. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  15. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  16. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  17. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  18. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  19. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  20. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  21. package/esm/generated/models/ChainInfo.d.ts +2 -3
  22. package/esm/generated/models/ChainStatus.d.ts +3 -0
  23. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  24. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  25. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  26. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  27. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  28. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  29. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  30. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  31. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  32. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  33. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  34. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  35. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  36. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  37. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  38. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  39. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  40. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  41. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  42. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  43. package/esm/generated/models/EVMInput.d.ts +3 -3
  44. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  45. package/esm/generated/models/EVMOperationType.js +6 -0
  46. package/esm/generated/models/EVMOutput.d.ts +3 -3
  47. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  48. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  49. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  50. package/esm/generated/models/EventType.d.ts +5 -0
  51. package/esm/generated/models/EventType.js +6 -0
  52. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  53. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  54. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  55. package/esm/generated/models/GlacierApiFeature.js +7 -0
  56. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  57. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  58. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  59. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  60. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  61. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  62. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  63. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  64. package/esm/generated/models/Method.d.ts +0 -3
  65. package/esm/generated/models/Money.d.ts +0 -3
  66. package/esm/generated/models/NextPageToken.d.ts +8 -0
  67. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  68. package/esm/generated/models/OperationType.d.ts +4 -2
  69. package/esm/generated/models/OperationType.js +3 -1
  70. package/esm/generated/models/PChainBalance.d.ts +15 -15
  71. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  72. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  73. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  74. package/esm/generated/models/PChainTransactionType.js +8 -4
  75. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  76. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  77. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  78. package/esm/generated/models/PendingReward.d.ts +3 -3
  79. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  80. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  81. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  82. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  83. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  84. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  85. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  86. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  87. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  88. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  89. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  90. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  91. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  92. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  93. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  94. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  95. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  96. package/esm/generated/models/RewardType.d.ts +2 -1
  97. package/esm/generated/models/RewardType.js +1 -0
  98. package/esm/generated/models/Rewards.d.ts +2 -0
  99. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  100. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  101. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  102. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  103. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  104. package/esm/generated/models/SortByOption.d.ts +9 -0
  105. package/esm/generated/models/SortByOption.js +10 -0
  106. package/esm/generated/models/Subnet.d.ts +17 -0
  107. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  108. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  109. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  110. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  111. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  112. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  113. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  114. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  115. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  116. package/esm/generated/models/Utxo.d.ts +30 -30
  117. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  118. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  119. package/esm/generated/models/ValidationStatusType.js +1 -0
  120. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  121. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  122. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  123. package/esm/generated/models/WebhookStatus.js +7 -0
  124. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  125. package/esm/generated/models/WebhookStatusType.js +7 -0
  126. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  127. package/esm/generated/models/XChainBalances.d.ts +3 -3
  128. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  129. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  130. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  131. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  132. package/esm/generated/models/XChainTransactionType.js +11 -0
  133. package/esm/generated/services/DefaultService.d.ts +14 -0
  134. package/esm/generated/services/DefaultService.js +13 -0
  135. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  136. package/esm/generated/services/EvmBalancesService.js +10 -8
  137. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  138. package/esm/generated/services/EvmBlocksService.js +4 -4
  139. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  140. package/esm/generated/services/EvmChainsService.js +4 -2
  141. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  142. package/esm/generated/services/EvmContractsService.js +36 -0
  143. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  144. package/esm/generated/services/EvmTransactionsService.js +33 -33
  145. package/esm/generated/services/NfTsService.d.ts +23 -16
  146. package/esm/generated/services/NfTsService.js +15 -9
  147. package/esm/generated/services/OperationsService.d.ts +11 -11
  148. package/esm/generated/services/OperationsService.js +10 -10
  149. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  150. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  151. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  152. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  153. package/esm/generated/services/PrimaryNetworkService.d.ts +70 -31
  154. package/esm/generated/services/PrimaryNetworkService.js +36 -18
  155. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  156. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  157. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  158. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  159. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  160. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  161. package/esm/generated/services/RpcService.d.ts +25 -0
  162. package/esm/generated/services/RpcService.js +24 -0
  163. package/esm/generated/services/TeleporterService.d.ts +62 -0
  164. package/esm/generated/services/TeleporterService.js +41 -0
  165. package/esm/generated/services/WebhooksService.d.ts +143 -0
  166. package/esm/generated/services/WebhooksService.js +125 -0
  167. package/esm/index.d.ts +49 -3
  168. package/esm/index.js +30 -2
  169. package/package.json +3 -3
  170. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  171. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  172. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,6 +54,19 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
57
+ declare class DefaultService {
58
+ readonly httpRequest: BaseHttpRequest;
59
+ constructor(httpRequest: BaseHttpRequest);
60
+ /**
61
+ * @returns any
62
+ * @throws ApiError
63
+ */
64
+ mediaControllerUploadImage(): CancelablePromise<any>;
65
+ }
66
+
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
63
70
  declare enum CurrencyCode {
64
71
  USD = "usd",
65
72
  EUR = "eur",
@@ -78,9 +85,6 @@ declare enum CurrencyCode {
78
85
  }
79
86
 
80
87
  type Money = {
81
- /**
82
- * ISO 4217 currency code.
83
- */
84
88
  currencyCode: CurrencyCode;
85
89
  /**
86
90
  * Monetary value in base 10 decimals.
@@ -130,6 +134,9 @@ type GetNativeBalanceResponse = {
130
134
  nativeTokenBalance: NativeTokenBalance;
131
135
  };
132
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
133
140
  declare enum NftTokenMetadataStatus {
134
141
  UNKNOWN = "UNKNOWN",
135
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -145,9 +152,6 @@ declare enum NftTokenMetadataStatus {
145
152
  }
146
153
 
147
154
  type Erc1155TokenMetadata = {
148
- /**
149
- * The metadata indexing status of the nft.
150
- */
151
155
  indexStatus: NftTokenMetadataStatus;
152
156
  metadataLastUpdatedTimestamp?: number;
153
157
  name?: string;
@@ -186,9 +190,6 @@ declare namespace Erc1155TokenBalance {
186
190
  }
187
191
 
188
192
  type Erc721TokenMetadata = {
189
- /**
190
- * The metadata indexing status of the nft.
191
- */
192
193
  indexStatus: NftTokenMetadataStatus;
193
194
  metadataLastUpdatedTimestamp?: number;
194
195
  name?: string;
@@ -335,7 +336,7 @@ declare class EvmBalancesService {
335
336
  */
336
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
337
338
  /**
338
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
340
  */
340
341
  chainId: string;
341
342
  /**
@@ -361,9 +362,9 @@ declare class EvmBalancesService {
361
362
  * @returns ListErc20BalancesResponse
362
363
  * @throws ApiError
363
364
  */
364
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
365
366
  /**
366
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
368
  */
368
369
  chainId: string;
369
370
  /**
@@ -374,14 +375,18 @@ declare class EvmBalancesService {
374
375
  * The block number, if not defined the block number will be the latest block.
375
376
  */
376
377
  blockNumber?: string;
378
+ /**
379
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
380
+ */
381
+ pageToken?: string;
377
382
  /**
378
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
379
384
  */
380
385
  pageSize?: number;
381
386
  /**
382
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
387
+ * whether to filter out spam tokens from the response. Default is true.
383
388
  */
384
- pageToken?: string;
389
+ filterSpamTokens?: boolean;
385
390
  /**
386
391
  * A comma separated list of contract addresses to filter by.
387
392
  */
@@ -399,23 +404,23 @@ declare class EvmBalancesService {
399
404
  * @returns ListErc721BalancesResponse
400
405
  * @throws ApiError
401
406
  */
402
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
407
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
403
408
  /**
404
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
409
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
410
  */
406
411
  chainId: string;
407
412
  /**
408
413
  * A wallet address.
409
414
  */
410
415
  address: string;
411
- /**
412
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
413
- */
414
- pageSize?: number;
415
416
  /**
416
417
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
417
418
  */
418
419
  pageToken?: string;
420
+ /**
421
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
422
+ */
423
+ pageSize?: number;
419
424
  /**
420
425
  * A contract addresses to filter by.
421
426
  */
@@ -431,9 +436,9 @@ declare class EvmBalancesService {
431
436
  * @returns ListErc1155BalancesResponse
432
437
  * @throws ApiError
433
438
  */
434
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
439
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
435
440
  /**
436
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
441
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
442
  */
438
443
  chainId: string;
439
444
  /**
@@ -444,14 +449,14 @@ declare class EvmBalancesService {
444
449
  * The block number, if not defined the block number will be the latest block.
445
450
  */
446
451
  blockNumber?: string;
447
- /**
448
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
449
- */
450
- pageSize?: number;
451
452
  /**
452
453
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
453
454
  */
454
455
  pageToken?: string;
456
+ /**
457
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
458
+ */
459
+ pageSize?: number;
455
460
  /**
456
461
  * A contract addresses to filter by.
457
462
  */
@@ -465,23 +470,23 @@ declare class EvmBalancesService {
465
470
  * @returns ListCollectibleBalancesResponse
466
471
  * @throws ApiError
467
472
  */
468
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
473
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
469
474
  /**
470
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
475
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
476
  */
472
477
  chainId: string;
473
478
  /**
474
479
  * A wallet address.
475
480
  */
476
481
  address: string;
477
- /**
478
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
479
- */
480
- pageSize?: number;
481
482
  /**
482
483
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
483
484
  */
484
485
  pageToken?: string;
486
+ /**
487
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
488
+ */
489
+ pageSize?: number;
485
490
  /**
486
491
  * A contract addresses to filter by.
487
492
  */
@@ -594,19 +599,19 @@ declare class EvmBlocksService {
594
599
  * @returns ListEvmBlocksResponse
595
600
  * @throws ApiError
596
601
  */
597
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
602
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
598
603
  /**
599
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
604
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
605
  */
601
606
  chainId: string;
602
- /**
603
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
604
- */
605
- pageSize?: number;
606
607
  /**
607
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
608
609
  */
609
610
  pageToken?: string;
611
+ /**
612
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
613
+ */
614
+ pageSize?: number;
610
615
  }): CancelablePromise<ListEvmBlocksResponse>;
611
616
  /**
612
617
  * Get block
@@ -616,7 +621,7 @@ declare class EvmBlocksService {
616
621
  */
617
622
  getBlock({ chainId, blockId, }: {
618
623
  /**
619
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
624
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
625
  */
621
626
  chainId: string;
622
627
  /**
@@ -626,6 +631,9 @@ declare class EvmBlocksService {
626
631
  }): CancelablePromise<GetEvmBlockResponse>;
627
632
  }
628
633
 
634
+ /**
635
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
+ */
629
637
  declare enum ChainStatus {
630
638
  OK = "OK",
631
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -663,9 +671,6 @@ declare enum VmName {
663
671
 
664
672
  type GetChainResponse = {
665
673
  chainId: string;
666
- /**
667
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
668
- */
669
674
  status: ChainStatus;
670
675
  chainName: string;
671
676
  description: string;
@@ -680,13 +685,17 @@ type GetChainResponse = {
680
685
  utilityAddresses?: UtilityAddresses;
681
686
  networkToken: NetworkToken;
682
687
  chainLogoUri?: string;
688
+ private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
683
690
  };
684
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
685
697
  type ChainInfo = {
686
698
  chainId: string;
687
- /**
688
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
689
- */
690
699
  status: ChainStatus;
691
700
  chainName: string;
692
701
  description: string;
@@ -701,6 +710,8 @@ type ChainInfo = {
701
710
  utilityAddresses?: UtilityAddresses;
702
711
  networkToken: NetworkToken;
703
712
  chainLogoUri?: string;
713
+ private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
704
715
  };
705
716
 
706
717
  type ListChainsResponse = {
@@ -721,11 +732,15 @@ declare class EvmChainsService {
721
732
  * @returns ListChainsResponse
722
733
  * @throws ApiError
723
734
  */
724
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
725
736
  /**
726
737
  * mainnet or testnet.
727
738
  */
728
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
729
744
  }): CancelablePromise<ListChainsResponse>;
730
745
  /**
731
746
  * Get chain information
@@ -735,448 +750,592 @@ declare class EvmChainsService {
735
750
  */
736
751
  getChainInfo({ chainId, }: {
737
752
  /**
738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
753
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
739
754
  */
740
755
  chainId: string;
741
756
  }): CancelablePromise<GetChainResponse>;
742
757
  }
743
758
 
744
- type Erc1155Token = {
759
+ type ImageAsset = {
760
+ assetId?: string;
745
761
  /**
746
- * A wallet or contract address in mixed-case checksum encoding.
762
+ * OUTPUT ONLY
747
763
  */
748
- address: string;
749
- ercType: Erc1155Token.ercType;
750
- tokenId: string;
751
- tokenUri: string;
752
- metadata: Erc1155TokenMetadata;
764
+ imageUri?: string;
753
765
  };
754
- declare namespace Erc1155Token {
755
- enum ercType {
756
- ERC_1155 = "ERC-1155"
757
- }
766
+
767
+ type PricingProviders = {
768
+ coingeckoCoinId?: string;
769
+ };
770
+
771
+ declare enum ResourceLinkType {
772
+ BLOG = "Blog",
773
+ COIN_GECKO = "CoinGecko",
774
+ COIN_MARKET_CAP = "CoinMarketCap",
775
+ DISCORD = "Discord",
776
+ DOCUMENTATION = "Documentation",
777
+ FACEBOOK = "Facebook",
778
+ GITHUB = "Github",
779
+ INSTAGRAM = "Instagram",
780
+ LINKED_IN = "LinkedIn",
781
+ MEDIUM = "Medium",
782
+ REDDIT = "Reddit",
783
+ SUPPORT = "Support",
784
+ TELEGRAM = "Telegram",
785
+ TIK_TOK = "TikTok",
786
+ TWITTER = "Twitter",
787
+ WEBSITE = "Website",
788
+ WHITEPAPER = "Whitepaper",
789
+ YOUTUBE = "Youtube"
758
790
  }
759
791
 
760
- type RichAddress = {
792
+ type ResourceLink = {
793
+ type: ResourceLinkType;
794
+ url: string;
795
+ };
796
+
797
+ type ContractSubmissionErc1155 = {
798
+ description?: string;
799
+ officialSite?: string;
800
+ email?: string;
801
+ logoAsset?: ImageAsset;
802
+ bannerAsset?: ImageAsset;
803
+ color?: string;
804
+ resourceLinks?: Array<ResourceLink>;
805
+ tags?: Array<string>;
761
806
  /**
762
807
  * The contract name.
763
808
  */
764
- name?: string;
809
+ name: string;
810
+ ercType: ContractSubmissionErc1155.ercType;
765
811
  /**
766
812
  * The contract symbol.
767
813
  */
768
- symbol?: string;
769
- /**
770
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
771
- */
772
- decimals?: number;
773
- /**
774
- * The logo uri for the address.
775
- */
776
- logoUri?: string;
777
- /**
778
- * A wallet or contract address in mixed-case checksum encoding.
779
- */
780
- address: string;
781
- };
782
-
783
- type Erc1155TransferDetails = {
784
- from: RichAddress;
785
- to: RichAddress;
786
- logIndex: number;
787
- value: string;
788
- erc1155Token: Erc1155Token;
814
+ symbol: string;
815
+ pricingProviders?: PricingProviders;
789
816
  };
817
+ declare namespace ContractSubmissionErc1155 {
818
+ enum ercType {
819
+ ERC_1155 = "ERC-1155"
820
+ }
821
+ }
790
822
 
791
- type Erc20Token = {
792
- /**
793
- * A wallet or contract address in mixed-case checksum encoding.
794
- */
795
- address: string;
823
+ type ContractSubmissionErc20 = {
824
+ description?: string;
825
+ officialSite?: string;
826
+ email?: string;
827
+ logoAsset?: ImageAsset;
828
+ bannerAsset?: ImageAsset;
829
+ color?: string;
830
+ resourceLinks?: Array<ResourceLink>;
831
+ tags?: Array<string>;
796
832
  /**
797
833
  * The contract name.
798
834
  */
799
835
  name: string;
836
+ ercType: ContractSubmissionErc20.ercType;
800
837
  /**
801
838
  * The contract symbol.
802
839
  */
803
840
  symbol: string;
804
- /**
805
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
806
- */
807
- decimals: number;
808
- /**
809
- * The logo uri for the address.
810
- */
811
- logoUri?: string;
812
- ercType: Erc20Token.ercType;
813
- /**
814
- * The token price, if available.
815
- */
816
- price?: Money;
841
+ pricingProviders?: PricingProviders;
817
842
  };
818
- declare namespace Erc20Token {
843
+ declare namespace ContractSubmissionErc20 {
819
844
  enum ercType {
820
845
  ERC_20 = "ERC-20"
821
846
  }
822
847
  }
823
848
 
824
- type Erc20TransferDetails = {
825
- from: RichAddress;
826
- to: RichAddress;
827
- logIndex: number;
828
- value: string;
829
- erc20Token: Erc20Token;
830
- };
831
-
832
- type Erc721Token = {
833
- /**
834
- * A wallet or contract address in mixed-case checksum encoding.
835
- */
836
- address: string;
849
+ type ContractSubmissionErc721 = {
850
+ description?: string;
851
+ officialSite?: string;
852
+ email?: string;
853
+ logoAsset?: ImageAsset;
854
+ bannerAsset?: ImageAsset;
855
+ color?: string;
856
+ resourceLinks?: Array<ResourceLink>;
857
+ tags?: Array<string>;
837
858
  /**
838
859
  * The contract name.
839
860
  */
840
861
  name: string;
862
+ ercType: ContractSubmissionErc721.ercType;
841
863
  /**
842
864
  * The contract symbol.
843
865
  */
844
866
  symbol: string;
845
- ercType: Erc721Token.ercType;
846
- tokenId: string;
847
- tokenUri: string;
848
- metadata: Erc721TokenMetadata;
849
- /**
850
- * A wallet or contract address in mixed-case checksum encoding.
851
- */
852
- ownerAddress?: string;
853
867
  };
854
- declare namespace Erc721Token {
868
+ declare namespace ContractSubmissionErc721 {
855
869
  enum ercType {
856
870
  ERC_721 = "ERC-721"
857
871
  }
858
872
  }
859
873
 
860
- type Erc721TransferDetails = {
861
- from: RichAddress;
862
- to: RichAddress;
863
- logIndex: number;
864
- erc721Token: Erc721Token;
874
+ type ContractSubmissionUnknown = {
875
+ description?: string;
876
+ officialSite?: string;
877
+ email?: string;
878
+ logoAsset?: ImageAsset;
879
+ bannerAsset?: ImageAsset;
880
+ color?: string;
881
+ resourceLinks?: Array<ResourceLink>;
882
+ tags?: Array<string>;
883
+ /**
884
+ * The contract name.
885
+ */
886
+ name: string;
887
+ ercType: ContractSubmissionUnknown.ercType;
865
888
  };
866
-
867
- declare enum TransactionMethodType {
868
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
869
- CONTRACT_CALL = "CONTRACT_CALL",
870
- CONTRACT_CREATION = "CONTRACT_CREATION"
889
+ declare namespace ContractSubmissionUnknown {
890
+ enum ercType {
891
+ UNKNOWN = "UNKNOWN"
892
+ }
871
893
  }
872
894
 
873
- type Method = {
874
- /**
875
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
876
- */
877
- callType: TransactionMethodType;
895
+ type ContractSubmissionBody = {
896
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
897
+ };
898
+
899
+ type ContractDeploymentDetails = {
900
+ txHash: string;
878
901
  /**
879
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
902
+ * The address that initiated the transaction which deployed this contract.
880
903
  */
881
- methodHash: string;
904
+ deployerAddress: string;
882
905
  /**
883
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
906
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
884
907
  */
885
- methodName?: string;
908
+ deployerContractAddress?: string;
886
909
  };
887
910
 
888
- type FullNativeTransactionDetails = {
911
+ type Erc1155Contract = {
889
912
  /**
890
- * The block number on the chain.
913
+ * The contract name.
891
914
  */
892
- blockNumber: string;
915
+ name?: string;
916
+ description?: string;
917
+ officialSite?: string;
918
+ email?: string;
919
+ logoAsset?: ImageAsset;
920
+ bannerAsset?: ImageAsset;
921
+ color?: string;
922
+ resourceLinks?: Array<ResourceLink>;
923
+ tags?: Array<string>;
893
924
  /**
894
- * The block finality timestamp.
925
+ * A wallet or contract address in mixed-case checksum encoding.
895
926
  */
896
- blockTimestamp: number;
927
+ address: string;
928
+ deploymentDetails: ContractDeploymentDetails;
929
+ ercType: Erc1155Contract.ercType;
897
930
  /**
898
- * The block hash identifier.
931
+ * The contract symbol.
899
932
  */
900
- blockHash: string;
933
+ symbol?: string;
934
+ pricingProviders?: PricingProviders;
935
+ };
936
+ declare namespace Erc1155Contract {
937
+ enum ercType {
938
+ ERC_1155 = "ERC-1155"
939
+ }
940
+ }
941
+
942
+ type Erc20Contract = {
901
943
  /**
902
- * The index at which the transaction occured in the block (0-indexed).
944
+ * The contract name.
903
945
  */
904
- blockIndex: number;
946
+ name?: string;
947
+ description?: string;
948
+ officialSite?: string;
949
+ email?: string;
950
+ logoAsset?: ImageAsset;
951
+ bannerAsset?: ImageAsset;
952
+ color?: string;
953
+ resourceLinks?: Array<ResourceLink>;
954
+ tags?: Array<string>;
905
955
  /**
906
- * The transaction hash identifier.
956
+ * A wallet or contract address in mixed-case checksum encoding.
907
957
  */
908
- txHash: string;
958
+ address: string;
959
+ deploymentDetails: ContractDeploymentDetails;
960
+ ercType: Erc20Contract.ercType;
909
961
  /**
910
- * The transaction status, which is either 0 (failed) or 1 (successful).
962
+ * The contract symbol.
911
963
  */
912
- txStatus: string;
964
+ symbol?: string;
913
965
  /**
914
- * The transaction type.
966
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
915
967
  */
916
- txType: number;
968
+ decimals: number;
969
+ pricingProviders?: PricingProviders;
970
+ };
971
+ declare namespace Erc20Contract {
972
+ enum ercType {
973
+ ERC_20 = "ERC-20"
974
+ }
975
+ }
976
+
977
+ type Erc721Contract = {
917
978
  /**
918
- * The gas limit set for the transaction.
979
+ * The contract name.
919
980
  */
920
- gasLimit: string;
981
+ name?: string;
982
+ description?: string;
983
+ officialSite?: string;
984
+ email?: string;
985
+ logoAsset?: ImageAsset;
986
+ bannerAsset?: ImageAsset;
987
+ color?: string;
988
+ resourceLinks?: Array<ResourceLink>;
989
+ tags?: Array<string>;
921
990
  /**
922
- * The amount of gas used.
991
+ * A wallet or contract address in mixed-case checksum encoding.
923
992
  */
924
- gasUsed: string;
993
+ address: string;
994
+ deploymentDetails: ContractDeploymentDetails;
995
+ ercType: Erc721Contract.ercType;
925
996
  /**
926
- * The gas price denominated by the number of decimals of the native token.
997
+ * The contract symbol.
927
998
  */
928
- gasPrice: string;
999
+ symbol?: string;
1000
+ };
1001
+ declare namespace Erc721Contract {
1002
+ enum ercType {
1003
+ ERC_721 = "ERC-721"
1004
+ }
1005
+ }
1006
+
1007
+ type UnknownContract = {
929
1008
  /**
930
- * The nonce used by the sender of the transaction.
1009
+ * The contract name.
931
1010
  */
932
- nonce: string;
933
- from: RichAddress;
934
- to: RichAddress;
935
- method?: Method;
936
- value: string;
1011
+ name?: string;
1012
+ description?: string;
1013
+ officialSite?: string;
1014
+ email?: string;
1015
+ logoAsset?: ImageAsset;
1016
+ bannerAsset?: ImageAsset;
1017
+ color?: string;
1018
+ resourceLinks?: Array<ResourceLink>;
1019
+ tags?: Array<string>;
937
1020
  /**
938
- * The data sent for the transaction.
1021
+ * A wallet or contract address in mixed-case checksum encoding.
939
1022
  */
940
- input: string;
941
- baseFeePerGas: string;
942
- maxFeePerGas?: string;
943
- maxPriorityFeePerGas?: string;
1023
+ address: string;
1024
+ deploymentDetails: ContractDeploymentDetails;
1025
+ ercType: UnknownContract.ercType;
1026
+ };
1027
+ declare namespace UnknownContract {
1028
+ enum ercType {
1029
+ UNKNOWN = "UNKNOWN"
1030
+ }
1031
+ }
1032
+
1033
+ type UpdateContractResponse = {
1034
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
944
1035
  };
945
1036
 
946
- declare enum InternalTransactionOpCall {
947
- UNKNOWN = "UNKNOWN",
948
- CALL = "CALL",
949
- CREATE = "CREATE",
950
- CREATE2 = "CREATE2",
951
- CALLCODE = "CALLCODE",
952
- DELEGATECALL = "DELEGATECALL",
953
- STATICCALL = "STATICCALL"
1037
+ declare class EvmContractsService {
1038
+ readonly httpRequest: BaseHttpRequest;
1039
+ constructor(httpRequest: BaseHttpRequest);
1040
+ /**
1041
+ * Get contract metadata
1042
+ * Gets metadata about the contract at the given address.
1043
+ * @returns any
1044
+ * @throws ApiError
1045
+ */
1046
+ getContractMetadata({ chainId, address, }: {
1047
+ /**
1048
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
+ */
1050
+ chainId: string;
1051
+ /**
1052
+ * Contract address on the relevant chain.
1053
+ */
1054
+ address: string;
1055
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1056
+ /**
1057
+ * Update contract information
1058
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
+ * @returns UpdateContractResponse
1060
+ * @throws ApiError
1061
+ */
1062
+ updateContractInfo({ chainId, address, requestBody, }: {
1063
+ /**
1064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
+ */
1066
+ chainId: string;
1067
+ /**
1068
+ * Contract address on the relevant chain.
1069
+ */
1070
+ address: string;
1071
+ requestBody: ContractSubmissionBody;
1072
+ }): CancelablePromise<UpdateContractResponse>;
954
1073
  }
955
1074
 
956
- type InternalTransactionDetails = {
957
- from: RichAddress;
958
- to: RichAddress;
959
- internalTxType: InternalTransactionOpCall;
960
- value: string;
1075
+ type Erc1155Token = {
961
1076
  /**
962
- * True if the internal transaction was reverted.
1077
+ * A wallet or contract address in mixed-case checksum encoding.
963
1078
  */
964
- isReverted: boolean;
965
- gasUsed: string;
966
- gasLimit: string;
1079
+ address: string;
1080
+ ercType: Erc1155Token.ercType;
1081
+ tokenId: string;
1082
+ tokenUri: string;
1083
+ metadata: Erc1155TokenMetadata;
967
1084
  };
1085
+ declare namespace Erc1155Token {
1086
+ enum ercType {
1087
+ ERC_1155 = "ERC-1155"
1088
+ }
1089
+ }
968
1090
 
969
- type NetworkTokenDetails = {
970
- networkToken: NetworkToken;
1091
+ type RichAddress = {
971
1092
  /**
972
- * The current token price, if available.
1093
+ * The contract name.
973
1094
  */
974
- currentPrice?: Money;
1095
+ name?: string;
975
1096
  /**
976
- * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1097
+ * The contract symbol.
977
1098
  */
978
- historicalPrice?: Money;
1099
+ symbol?: string;
1100
+ /**
1101
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1102
+ */
1103
+ decimals?: number;
1104
+ /**
1105
+ * The logo uri for the address.
1106
+ */
1107
+ logoUri?: string;
1108
+ /**
1109
+ * A wallet or contract address in mixed-case checksum encoding.
1110
+ */
1111
+ address: string;
979
1112
  };
980
1113
 
981
- type GetTransactionResponse = {
1114
+ type Erc1155TransferDetails = {
1115
+ from: RichAddress;
1116
+ to: RichAddress;
1117
+ logIndex: number;
1118
+ value: string;
1119
+ erc1155Token: Erc1155Token;
1120
+ };
1121
+
1122
+ type Erc20Token = {
982
1123
  /**
983
- * The list of ERC-20 transfers.
1124
+ * A wallet or contract address in mixed-case checksum encoding.
984
1125
  */
985
- erc20Transfers?: Array<Erc20TransferDetails>;
1126
+ address: string;
986
1127
  /**
987
- * The list of ERC-721 transfers.
1128
+ * The contract name.
988
1129
  */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
1130
+ name: string;
990
1131
  /**
991
- * The list of ERC-1155 transfers.
1132
+ * The contract symbol.
992
1133
  */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1134
+ symbol: string;
994
1135
  /**
995
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1136
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
996
1137
  */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1000
- };
1001
-
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1138
+ decimals: number;
1004
1139
  /**
1005
- * The address that initiated the transaction which deployed this contract.
1140
+ * The logo uri for the address.
1006
1141
  */
1007
- deployerAddress: string;
1142
+ logoUri?: string;
1143
+ ercType: Erc20Token.ercType;
1008
1144
  /**
1009
- * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1145
+ * The token price, if available.
1010
1146
  */
1011
- deployerContractAddress?: string;
1147
+ price?: Money;
1012
1148
  };
1149
+ declare namespace Erc20Token {
1150
+ enum ercType {
1151
+ ERC_20 = "ERC-20"
1152
+ }
1153
+ }
1013
1154
 
1014
- type ImageAsset = {
1015
- assetId?: string;
1155
+ type Erc20TransferDetails = {
1156
+ from: RichAddress;
1157
+ to: RichAddress;
1158
+ logIndex: number;
1159
+ value: string;
1160
+ erc20Token: Erc20Token;
1161
+ };
1162
+
1163
+ type Erc721Token = {
1016
1164
  /**
1017
- * OUTPUT ONLY
1165
+ * A wallet or contract address in mixed-case checksum encoding.
1018
1166
  */
1019
- imageUri?: string;
1167
+ address: string;
1168
+ /**
1169
+ * The contract name.
1170
+ */
1171
+ name: string;
1172
+ /**
1173
+ * The contract symbol.
1174
+ */
1175
+ symbol: string;
1176
+ ercType: Erc721Token.ercType;
1177
+ tokenId: string;
1178
+ tokenUri: string;
1179
+ metadata: Erc721TokenMetadata;
1180
+ /**
1181
+ * A wallet or contract address in mixed-case checksum encoding.
1182
+ */
1183
+ ownerAddress?: string;
1020
1184
  };
1185
+ declare namespace Erc721Token {
1186
+ enum ercType {
1187
+ ERC_721 = "ERC-721"
1188
+ }
1189
+ }
1021
1190
 
1022
- type PricingProviders = {
1023
- coingeckoCoinId?: string;
1191
+ type Erc721TransferDetails = {
1192
+ from: RichAddress;
1193
+ to: RichAddress;
1194
+ logIndex: number;
1195
+ erc721Token: Erc721Token;
1024
1196
  };
1025
1197
 
1026
- declare enum ResourceLinkType {
1027
- BLOG = "Blog",
1028
- COIN_GECKO = "CoinGecko",
1029
- COIN_MARKET_CAP = "CoinMarketCap",
1030
- DISCORD = "Discord",
1031
- DOCUMENTATION = "Documentation",
1032
- FACEBOOK = "Facebook",
1033
- GITHUB = "Github",
1034
- INSTAGRAM = "Instagram",
1035
- LINKED_IN = "LinkedIn",
1036
- MEDIUM = "Medium",
1037
- REDDIT = "Reddit",
1038
- SUPPORT = "Support",
1039
- TELEGRAM = "Telegram",
1040
- TIK_TOK = "TikTok",
1041
- TWITTER = "Twitter",
1042
- WEBSITE = "Website",
1043
- WHITEPAPER = "Whitepaper",
1044
- YOUTUBE = "Youtube"
1198
+ /**
1199
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
+ */
1201
+ declare enum TransactionMethodType {
1202
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1203
+ CONTRACT_CALL = "CONTRACT_CALL",
1204
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1045
1205
  }
1046
1206
 
1047
- type ResourceLink = {
1048
- type: ResourceLinkType;
1049
- url: string;
1207
+ type Method = {
1208
+ callType: TransactionMethodType;
1209
+ /**
1210
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1211
+ */
1212
+ methodHash: string;
1213
+ /**
1214
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1215
+ */
1216
+ methodName?: string;
1050
1217
  };
1051
1218
 
1052
- type Erc1155Contract = {
1219
+ type FullNativeTransactionDetails = {
1053
1220
  /**
1054
- * The contract name.
1221
+ * The block number on the chain.
1055
1222
  */
1056
- name?: string;
1057
- description?: string;
1058
- officialSite?: string;
1059
- email?: string;
1060
- logoAsset?: ImageAsset;
1061
- bannerAsset?: ImageAsset;
1062
- color?: string;
1063
- resourceLinks?: Array<ResourceLink>;
1064
- tags?: Array<string>;
1223
+ blockNumber: string;
1065
1224
  /**
1066
- * A wallet or contract address in mixed-case checksum encoding.
1225
+ * The block finality timestamp.
1226
+ */
1227
+ blockTimestamp: number;
1228
+ /**
1229
+ * The block hash identifier.
1230
+ */
1231
+ blockHash: string;
1232
+ /**
1233
+ * The index at which the transaction occured in the block (0-indexed).
1234
+ */
1235
+ blockIndex: number;
1236
+ /**
1237
+ * The transaction hash identifier.
1238
+ */
1239
+ txHash: string;
1240
+ /**
1241
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1242
+ */
1243
+ txStatus: string;
1244
+ /**
1245
+ * The transaction type.
1067
1246
  */
1068
- address: string;
1069
- deploymentDetails: ContractDeploymentDetails;
1070
- ercType: Erc1155Contract.ercType;
1247
+ txType: number;
1071
1248
  /**
1072
- * The contract symbol.
1249
+ * The gas limit set for the transaction.
1073
1250
  */
1074
- symbol?: string;
1075
- pricingProviders?: PricingProviders;
1076
- };
1077
- declare namespace Erc1155Contract {
1078
- enum ercType {
1079
- ERC_1155 = "ERC-1155"
1080
- }
1081
- }
1082
-
1083
- type Erc20Contract = {
1251
+ gasLimit: string;
1084
1252
  /**
1085
- * The contract name.
1253
+ * The amount of gas used.
1086
1254
  */
1087
- name?: string;
1088
- description?: string;
1089
- officialSite?: string;
1090
- email?: string;
1091
- logoAsset?: ImageAsset;
1092
- bannerAsset?: ImageAsset;
1093
- color?: string;
1094
- resourceLinks?: Array<ResourceLink>;
1095
- tags?: Array<string>;
1255
+ gasUsed: string;
1096
1256
  /**
1097
- * A wallet or contract address in mixed-case checksum encoding.
1257
+ * The gas price denominated by the number of decimals of the native token.
1098
1258
  */
1099
- address: string;
1100
- deploymentDetails: ContractDeploymentDetails;
1101
- ercType: Erc20Contract.ercType;
1259
+ gasPrice: string;
1102
1260
  /**
1103
- * The contract symbol.
1261
+ * The nonce used by the sender of the transaction.
1104
1262
  */
1105
- symbol?: string;
1263
+ nonce: string;
1264
+ from: RichAddress;
1265
+ to: RichAddress;
1266
+ method?: Method;
1267
+ value: string;
1106
1268
  /**
1107
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1269
+ * The data sent for the transaction.
1108
1270
  */
1109
- decimals: number;
1110
- pricingProviders: PricingProviders;
1271
+ input: string;
1272
+ baseFeePerGas: string;
1273
+ maxFeePerGas?: string;
1274
+ maxPriorityFeePerGas?: string;
1111
1275
  };
1112
- declare namespace Erc20Contract {
1113
- enum ercType {
1114
- ERC_20 = "ERC-20"
1115
- }
1276
+
1277
+ declare enum InternalTransactionOpCall {
1278
+ UNKNOWN = "UNKNOWN",
1279
+ CALL = "CALL",
1280
+ CREATE = "CREATE",
1281
+ CREATE2 = "CREATE2",
1282
+ CALLCODE = "CALLCODE",
1283
+ DELEGATECALL = "DELEGATECALL",
1284
+ STATICCALL = "STATICCALL"
1116
1285
  }
1117
1286
 
1118
- type Erc721Contract = {
1287
+ type InternalTransactionDetails = {
1288
+ from: RichAddress;
1289
+ to: RichAddress;
1290
+ internalTxType: InternalTransactionOpCall;
1291
+ value: string;
1119
1292
  /**
1120
- * The contract name.
1293
+ * True if the internal transaction was reverted.
1121
1294
  */
1122
- name?: string;
1123
- description?: string;
1124
- officialSite?: string;
1125
- email?: string;
1126
- logoAsset?: ImageAsset;
1127
- bannerAsset?: ImageAsset;
1128
- color?: string;
1129
- resourceLinks?: Array<ResourceLink>;
1130
- tags?: Array<string>;
1295
+ isReverted: boolean;
1296
+ gasUsed: string;
1297
+ gasLimit: string;
1298
+ };
1299
+
1300
+ type NetworkTokenDetails = {
1301
+ networkToken: NetworkToken;
1131
1302
  /**
1132
- * A wallet or contract address in mixed-case checksum encoding.
1303
+ * The current token price, if available.
1133
1304
  */
1134
- address: string;
1135
- deploymentDetails: ContractDeploymentDetails;
1136
- ercType: Erc721Contract.ercType;
1305
+ currentPrice?: Money;
1137
1306
  /**
1138
- * The contract symbol.
1307
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1139
1308
  */
1140
- symbol?: string;
1309
+ historicalPrice?: Money;
1141
1310
  };
1142
- declare namespace Erc721Contract {
1143
- enum ercType {
1144
- ERC_721 = "ERC-721"
1145
- }
1146
- }
1147
1311
 
1148
- type UnknownContract = {
1312
+ type GetTransactionResponse = {
1149
1313
  /**
1150
- * The contract name.
1314
+ * The list of ERC-20 transfers.
1151
1315
  */
1152
- name?: string;
1153
- description?: string;
1154
- officialSite?: string;
1155
- email?: string;
1156
- logoAsset?: ImageAsset;
1157
- bannerAsset?: ImageAsset;
1158
- color?: string;
1159
- resourceLinks?: Array<ResourceLink>;
1160
- tags?: Array<string>;
1316
+ erc20Transfers?: Array<Erc20TransferDetails>;
1161
1317
  /**
1162
- * A wallet or contract address in mixed-case checksum encoding.
1318
+ * The list of ERC-721 transfers.
1163
1319
  */
1164
- address: string;
1165
- deploymentDetails: ContractDeploymentDetails;
1166
- ercType: UnknownContract.ercType;
1320
+ erc721Transfers?: Array<Erc721TransferDetails>;
1321
+ /**
1322
+ * The list of ERC-1155 transfers.
1323
+ */
1324
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1325
+ /**
1326
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1327
+ */
1328
+ internalTransactions?: Array<InternalTransactionDetails>;
1329
+ networkTokenDetails: NetworkTokenDetails;
1330
+ nativeTransaction: FullNativeTransactionDetails;
1167
1331
  };
1168
- declare namespace UnknownContract {
1169
- enum ercType {
1170
- UNKNOWN = "UNKNOWN"
1171
- }
1172
- }
1173
1332
 
1174
1333
  type ListContractsResponse = {
1175
1334
  /**
1176
1335
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1177
1336
  */
1178
1337
  nextPageToken?: string;
1179
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1338
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1180
1339
  };
1181
1340
 
1182
1341
  type Erc1155Transfer = {
@@ -1406,7 +1565,7 @@ type ListTransfersResponse = {
1406
1565
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1407
1566
  */
1408
1567
  nextPageToken?: string;
1409
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1410
1569
  };
1411
1570
 
1412
1571
  declare enum SortOrder {
@@ -1430,7 +1589,7 @@ declare class EvmTransactionsService {
1430
1589
  */
1431
1590
  getDeploymentTransaction({ chainId, address, currency, }: {
1432
1591
  /**
1433
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1592
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1434
1593
  */
1435
1594
  chainId: string;
1436
1595
  /**
@@ -1448,23 +1607,23 @@ declare class EvmTransactionsService {
1448
1607
  * @returns ListContractsResponse
1449
1608
  * @throws ApiError
1450
1609
  */
1451
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1610
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1452
1611
  /**
1453
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1612
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1454
1613
  */
1455
1614
  chainId: string;
1456
1615
  /**
1457
1616
  * A wallet address.
1458
1617
  */
1459
1618
  address: string;
1460
- /**
1461
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1462
- */
1463
- pageSize?: number;
1464
1619
  /**
1465
1620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1466
1621
  */
1467
1622
  pageToken?: string;
1623
+ /**
1624
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1625
+ */
1626
+ pageSize?: number;
1468
1627
  }): CancelablePromise<ListContractsResponse>;
1469
1628
  /**
1470
1629
  * List ERC transfers
@@ -1472,25 +1631,31 @@ declare class EvmTransactionsService {
1472
1631
  * @returns ListTransfersResponse
1473
1632
  * @throws ApiError
1474
1633
  */
1475
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1476
1635
  /**
1477
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1636
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1478
1637
  */
1479
1638
  chainId: string;
1480
1639
  /**
1481
1640
  * A wallet address.
1482
1641
  */
1483
1642
  address: string;
1643
+ /**
1644
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1645
+ */
1484
1646
  startBlock?: number;
1485
- endBlock?: number;
1486
1647
  /**
1487
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1648
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1488
1649
  */
1489
- pageSize?: number;
1650
+ endBlock?: number;
1490
1651
  /**
1491
1652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1492
1653
  */
1493
1654
  pageToken?: string;
1655
+ /**
1656
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1657
+ */
1658
+ pageSize?: number;
1494
1659
  }): CancelablePromise<ListTransfersResponse>;
1495
1660
  /**
1496
1661
  * List transactions
@@ -1500,24 +1665,30 @@ declare class EvmTransactionsService {
1500
1665
  * @returns ListTransactionDetailsResponse
1501
1666
  * @throws ApiError
1502
1667
  */
1503
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1668
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1504
1669
  /**
1505
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1670
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1506
1671
  */
1507
1672
  chainId: string;
1508
1673
  /**
1509
1674
  * A wallet address.
1510
1675
  */
1511
1676
  address: string;
1677
+ /**
1678
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1679
+ */
1680
+ pageToken?: string;
1512
1681
  /**
1513
1682
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1514
1683
  */
1515
1684
  pageSize?: number;
1516
1685
  /**
1517
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1686
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1518
1687
  */
1519
- pageToken?: string;
1520
1688
  startBlock?: number;
1689
+ /**
1690
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1691
+ */
1521
1692
  endBlock?: number;
1522
1693
  /**
1523
1694
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
@@ -1530,25 +1701,31 @@ declare class EvmTransactionsService {
1530
1701
  * @returns ListNativeTransactionsResponse
1531
1702
  * @throws ApiError
1532
1703
  */
1533
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1704
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1534
1705
  /**
1535
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1706
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1536
1707
  */
1537
1708
  chainId: string;
1538
1709
  /**
1539
1710
  * A wallet address.
1540
1711
  */
1541
1712
  address: string;
1713
+ /**
1714
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1715
+ */
1542
1716
  startBlock?: number;
1543
- endBlock?: number;
1544
1717
  /**
1545
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1718
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1546
1719
  */
1547
- pageSize?: number;
1720
+ endBlock?: number;
1548
1721
  /**
1549
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1550
1723
  */
1551
1724
  pageToken?: string;
1725
+ /**
1726
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
+ */
1728
+ pageSize?: number;
1552
1729
  }): CancelablePromise<ListNativeTransactionsResponse>;
1553
1730
  /**
1554
1731
  * List ERC-20 transfers
@@ -1556,25 +1733,31 @@ declare class EvmTransactionsService {
1556
1733
  * @returns ListErc20TransactionsResponse
1557
1734
  * @throws ApiError
1558
1735
  */
1559
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1560
1737
  /**
1561
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1738
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1562
1739
  */
1563
1740
  chainId: string;
1564
1741
  /**
1565
1742
  * A wallet address.
1566
1743
  */
1567
1744
  address: string;
1745
+ /**
1746
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1747
+ */
1568
1748
  startBlock?: number;
1569
- endBlock?: number;
1570
1749
  /**
1571
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1750
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1572
1751
  */
1573
- pageSize?: number;
1752
+ endBlock?: number;
1574
1753
  /**
1575
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1576
1755
  */
1577
1756
  pageToken?: string;
1757
+ /**
1758
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
+ */
1760
+ pageSize?: number;
1578
1761
  }): CancelablePromise<ListErc20TransactionsResponse>;
1579
1762
  /**
1580
1763
  * List ERC-721 transfers
@@ -1582,25 +1765,31 @@ declare class EvmTransactionsService {
1582
1765
  * @returns ListErc721TransactionsResponse
1583
1766
  * @throws ApiError
1584
1767
  */
1585
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1586
1769
  /**
1587
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1588
1771
  */
1589
1772
  chainId: string;
1590
1773
  /**
1591
1774
  * A wallet address.
1592
1775
  */
1593
1776
  address: string;
1777
+ /**
1778
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1779
+ */
1594
1780
  startBlock?: number;
1595
- endBlock?: number;
1596
1781
  /**
1597
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1782
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1598
1783
  */
1599
- pageSize?: number;
1784
+ endBlock?: number;
1600
1785
  /**
1601
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1602
1787
  */
1603
1788
  pageToken?: string;
1789
+ /**
1790
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1791
+ */
1792
+ pageSize?: number;
1604
1793
  }): CancelablePromise<ListErc721TransactionsResponse>;
1605
1794
  /**
1606
1795
  * List ERC-1155 transfers
@@ -1608,25 +1797,31 @@ declare class EvmTransactionsService {
1608
1797
  * @returns ListErc1155TransactionsResponse
1609
1798
  * @throws ApiError
1610
1799
  */
1611
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1800
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1612
1801
  /**
1613
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1802
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1614
1803
  */
1615
1804
  chainId: string;
1616
1805
  /**
1617
1806
  * A wallet address.
1618
1807
  */
1619
1808
  address: string;
1809
+ /**
1810
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1811
+ */
1620
1812
  startBlock?: number;
1621
- endBlock?: number;
1622
1813
  /**
1623
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1814
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1624
1815
  */
1625
- pageSize?: number;
1816
+ endBlock?: number;
1626
1817
  /**
1627
1818
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1628
1819
  */
1629
1820
  pageToken?: string;
1821
+ /**
1822
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
+ */
1824
+ pageSize?: number;
1630
1825
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1631
1826
  /**
1632
1827
  * List internal transactions
@@ -1636,25 +1831,31 @@ declare class EvmTransactionsService {
1636
1831
  * @returns ListInternalTransactionsResponse
1637
1832
  * @throws ApiError
1638
1833
  */
1639
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1834
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1640
1835
  /**
1641
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1836
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1642
1837
  */
1643
1838
  chainId: string;
1644
1839
  /**
1645
1840
  * A wallet address.
1646
1841
  */
1647
1842
  address: string;
1843
+ /**
1844
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1845
+ */
1648
1846
  startBlock?: number;
1649
- endBlock?: number;
1650
1847
  /**
1651
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1848
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1652
1849
  */
1653
- pageSize?: number;
1850
+ endBlock?: number;
1654
1851
  /**
1655
1852
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1656
1853
  */
1657
1854
  pageToken?: string;
1855
+ /**
1856
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
+ */
1858
+ pageSize?: number;
1658
1859
  }): CancelablePromise<ListInternalTransactionsResponse>;
1659
1860
  /**
1660
1861
  * Get transaction
@@ -1664,7 +1865,7 @@ declare class EvmTransactionsService {
1664
1865
  */
1665
1866
  getTransaction({ chainId, txHash, }: {
1666
1867
  /**
1667
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1868
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1668
1869
  */
1669
1870
  chainId: string;
1670
1871
  /**
@@ -1680,7 +1881,7 @@ declare class EvmTransactionsService {
1680
1881
  */
1681
1882
  getTransactionsForBlock({ chainId, blockId, }: {
1682
1883
  /**
1683
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1884
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1684
1885
  */
1685
1886
  chainId: string;
1686
1887
  /**
@@ -1694,19 +1895,19 @@ declare class EvmTransactionsService {
1694
1895
  * @returns ListNativeTransactionsResponse
1695
1896
  * @throws ApiError
1696
1897
  */
1697
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1898
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1698
1899
  /**
1699
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1900
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1700
1901
  */
1701
1902
  chainId: string;
1702
- /**
1703
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1704
- */
1705
- pageSize?: number;
1706
1903
  /**
1707
1904
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1708
1905
  */
1709
1906
  pageToken?: string;
1907
+ /**
1908
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1909
+ */
1910
+ pageSize?: number;
1710
1911
  /**
1711
1912
  * A status filter for listed transactions.
1712
1913
  */
@@ -1730,6 +1931,14 @@ declare class HealthCheckService {
1730
1931
  }>;
1731
1932
  }
1732
1933
 
1934
+ type ListNftTokens = {
1935
+ /**
1936
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1937
+ */
1938
+ nextPageToken?: string;
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
1940
+ };
1941
+
1733
1942
  declare class NfTsService {
1734
1943
  readonly httpRequest: BaseHttpRequest;
1735
1944
  constructor(httpRequest: BaseHttpRequest);
@@ -1741,7 +1950,7 @@ declare class NfTsService {
1741
1950
  */
1742
1951
  reindexNft({ chainId, address, tokenId, }: {
1743
1952
  /**
1744
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1953
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1745
1954
  */
1746
1955
  chainId: string;
1747
1956
  /**
@@ -1754,14 +1963,14 @@ declare class NfTsService {
1754
1963
  tokenId: string;
1755
1964
  }): CancelablePromise<any>;
1756
1965
  /**
1757
- * Get token details
1758
- * Gets token details for a specific token of an NFT contract.
1759
- * @returns any
1966
+ * List tokens
1967
+ * Lists tokens for an NFT contract.
1968
+ * @returns ListNftTokens
1760
1969
  * @throws ApiError
1761
1970
  */
1762
- getTokenDetails({ chainId, address, tokenId, }: {
1971
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1763
1972
  /**
1764
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1973
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1765
1974
  */
1766
1975
  chainId: string;
1767
1976
  /**
@@ -1769,26 +1978,34 @@ declare class NfTsService {
1769
1978
  */
1770
1979
  address: string;
1771
1980
  /**
1772
- * TokenId on the contract
1981
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1773
1982
  */
1774
- tokenId: string;
1775
- }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1983
+ pageToken?: string;
1984
+ /**
1985
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1986
+ */
1987
+ pageSize?: number;
1988
+ }): CancelablePromise<ListNftTokens>;
1776
1989
  /**
1777
- * Get collection details
1778
- * Gets collection details for a NFT contract.
1990
+ * Get token details
1991
+ * Gets token details for a specific token of an NFT contract.
1779
1992
  * @returns any
1780
1993
  * @throws ApiError
1781
1994
  */
1782
- getCollection({ chainId, address, }: {
1995
+ getTokenDetails({ chainId, address, tokenId, }: {
1783
1996
  /**
1784
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1997
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1785
1998
  */
1786
1999
  chainId: string;
1787
2000
  /**
1788
2001
  * Contract address on the relevant chain.
1789
2002
  */
1790
2003
  address: string;
1791
- }): CancelablePromise<(Erc721Contract | Erc1155Contract)>;
2004
+ /**
2005
+ * TokenId on the contract
2006
+ */
2007
+ tokenId: string;
2008
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1792
2009
  }
1793
2010
 
1794
2011
  type EvmNetworkOptions = {
@@ -1796,8 +2013,12 @@ type EvmNetworkOptions = {
1796
2013
  includeChains: Array<string>;
1797
2014
  };
1798
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
1799
2020
  type CreateEvmTransactionExportRequest = {
1800
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
1801
2022
  firstDate: string;
1802
2023
  lastDate: string;
1803
2024
  /**
@@ -1810,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
1810
2031
  endDate: string;
1811
2032
  options: EvmNetworkOptions;
1812
2033
  };
1813
- declare namespace CreateEvmTransactionExportRequest {
1814
- enum type {
1815
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1816
- }
2034
+
2035
+ declare enum PrimaryNetworkOperationType {
2036
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
1817
2039
  }
1818
2040
 
1819
2041
  type PrimaryNetworkOptions = {
1820
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
1821
2043
  cChainEvmAddresses?: Array<string>;
1822
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
1823
2045
  };
1824
2046
 
1825
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
1826
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
1827
2049
  firstDate: string;
1828
2050
  lastDate: string;
1829
2051
  /**
@@ -1835,12 +2057,7 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1835
2057
  */
1836
2058
  endDate: string;
1837
2059
  options: PrimaryNetworkOptions;
1838
- };
1839
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1840
- enum type {
1841
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1842
- }
1843
- }
2060
+ };
1844
2061
 
1845
2062
  declare enum OperationStatus {
1846
2063
  RUNNING = "RUNNING",
@@ -1850,8 +2067,10 @@ declare enum OperationStatus {
1850
2067
  }
1851
2068
 
1852
2069
  declare enum OperationType {
1853
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1854
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2070
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2073
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1855
2074
  }
1856
2075
 
1857
2076
  declare enum OperationStatusCode {
@@ -1885,17 +2104,6 @@ type OperationStatusResponse = {
1885
2104
  declare class OperationsService {
1886
2105
  readonly httpRequest: BaseHttpRequest;
1887
2106
  constructor(httpRequest: BaseHttpRequest);
1888
- /**
1889
- * Create transaction export operation
1890
- * Trigger a transaction export operation with given parameters.
1891
- *
1892
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
1893
- * @returns OperationStatusResponse
1894
- * @throws ApiError
1895
- */
1896
- postTransactionExportJob({ requestBody, }: {
1897
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1898
- }): CancelablePromise<OperationStatusResponse>;
1899
2107
  /**
1900
2108
  * Get operation
1901
2109
  * Gets operation details for the given operation id.
@@ -1908,6 +2116,17 @@ declare class OperationsService {
1908
2116
  */
1909
2117
  operationId: string;
1910
2118
  }): CancelablePromise<OperationStatusResponse>;
2119
+ /**
2120
+ * Create transaction export operation
2121
+ * Trigger a transaction export operation with given parameters.
2122
+ *
2123
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2124
+ * @returns OperationStatusResponse
2125
+ * @throws ApiError
2126
+ */
2127
+ postTransactionExportJob({ requestBody, }: {
2128
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2129
+ }): CancelablePromise<OperationStatusResponse>;
1911
2130
  }
1912
2131
 
1913
2132
  declare enum BlockchainIds {
@@ -1976,39 +2195,57 @@ type ListBlockchainsResponse = {
1976
2195
 
1977
2196
  type ActiveDelegatorDetails = {
1978
2197
  txHash: string;
2198
+ nodeId: string;
1979
2199
  rewardAddresses: Array<string>;
1980
2200
  amountDelegated: string;
1981
2201
  delegationFee: string;
1982
2202
  startTimestamp: number;
1983
2203
  endTimestamp: number;
1984
- delegationStatus: DelegationStatusType;
1985
2204
  estimatedGrossReward: string;
1986
2205
  estimatedNetReward: string;
2206
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1987
2207
  };
2208
+ declare namespace ActiveDelegatorDetails {
2209
+ enum delegationStatus {
2210
+ ACTIVE = "active"
2211
+ }
2212
+ }
1988
2213
 
1989
2214
  type CompletedDelegatorDetails = {
1990
2215
  txHash: string;
2216
+ nodeId: string;
1991
2217
  rewardAddresses: Array<string>;
1992
2218
  amountDelegated: string;
1993
2219
  delegationFee: string;
1994
2220
  startTimestamp: number;
1995
2221
  endTimestamp: number;
1996
- delegationStatus: DelegationStatusType;
1997
2222
  grossReward: string;
1998
2223
  netReward: string;
2224
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1999
2225
  };
2226
+ declare namespace CompletedDelegatorDetails {
2227
+ enum delegationStatus {
2228
+ COMPLETED = "completed"
2229
+ }
2230
+ }
2000
2231
 
2001
2232
  type PendingDelegatorDetails = {
2002
2233
  txHash: string;
2234
+ nodeId: string;
2003
2235
  rewardAddresses: Array<string>;
2004
2236
  amountDelegated: string;
2005
2237
  delegationFee: string;
2006
2238
  startTimestamp: number;
2007
2239
  endTimestamp: number;
2008
- delegationStatus: DelegationStatusType;
2009
2240
  estimatedGrossReward: string;
2010
2241
  estimatedNetReward: string;
2242
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
2011
2243
  };
2244
+ declare namespace PendingDelegatorDetails {
2245
+ enum delegationStatus {
2246
+ PENDING = "pending"
2247
+ }
2248
+ }
2012
2249
 
2013
2250
  type ListDelegatorDetailsResponse = {
2014
2251
  /**
@@ -2025,13 +2262,44 @@ type BlockchainInfo = {
2025
2262
  blockchainId: string;
2026
2263
  };
2027
2264
 
2265
+ type SubnetOwnershipInfo = {
2266
+ /**
2267
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2268
+ */
2269
+ locktime: number;
2270
+ /**
2271
+ * Minimum number of signatures required to sign the Subnet update transactions.
2272
+ */
2273
+ threshold: number;
2274
+ /**
2275
+ * Addresses that are eligible to sign the Subnet update transactions.
2276
+ */
2277
+ addresses: Array<string>;
2278
+ };
2279
+
2028
2280
  type Subnet = {
2029
2281
  createBlockTimestamp: number;
2030
2282
  createBlockIndex: string;
2031
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2032
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2033
2293
  threshold: number;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2034
2298
  locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2035
2303
  blockchains: Array<BlockchainInfo>;
2036
2304
  };
2037
2305
 
@@ -2046,49 +2314,104 @@ type ListSubnetsResponse = {
2046
2314
  type Rewards = {
2047
2315
  validationRewardAmount: string;
2048
2316
  delegationRewardAmount: string;
2317
+ rewardAddresses?: Array<string>;
2318
+ rewardTxHash?: string;
2049
2319
  };
2050
2320
 
2051
- declare enum ValidationStatusType {
2052
- COMPLETED = "completed",
2053
- ACTIVE = "active",
2054
- PENDING = "pending"
2055
- }
2321
+ type ValidatorHealthDetails = {
2322
+ /**
2323
+ * Percent of requests responded to in last polling.
2324
+ */
2325
+ reachabilityPercent: number;
2326
+ /**
2327
+ * Percent of requests benched on the P-Chain in last polling.
2328
+ */
2329
+ benchedPChainRequestsPercent: number;
2330
+ /**
2331
+ * Percentage of requests benched on the X-Chain in last polling.
2332
+ */
2333
+ benchedXChainRequestsPercent: number;
2334
+ /**
2335
+ * Percentage of requests benched on the C-Chain in last polling.
2336
+ */
2337
+ benchedCChainRequestsPercent: number;
2338
+ };
2056
2339
 
2057
2340
  type ActiveValidatorDetails = {
2341
+ txHash: string;
2058
2342
  nodeId: string;
2343
+ subnetId: string;
2059
2344
  amountStaked: string;
2060
- delegationFee: string;
2345
+ delegationFee?: string;
2061
2346
  startTimestamp: number;
2062
2347
  endTimestamp: number;
2063
- validationStatus: ValidationStatusType;
2064
2348
  stakePercentage: number;
2065
2349
  delegatorCount: number;
2066
- amountDelegated: string;
2350
+ amountDelegated?: string;
2067
2351
  uptimePerformance: number;
2068
- avalancheGoVersion: string;
2069
- delegationCapacity: string;
2352
+ avalancheGoVersion?: string;
2353
+ delegationCapacity?: string;
2070
2354
  potentialRewards: Rewards;
2355
+ validationStatus: ActiveValidatorDetails.validationStatus;
2356
+ validatorHealth: ValidatorHealthDetails;
2071
2357
  };
2358
+ declare namespace ActiveValidatorDetails {
2359
+ enum validationStatus {
2360
+ ACTIVE = "active"
2361
+ }
2362
+ }
2072
2363
 
2073
2364
  type CompletedValidatorDetails = {
2365
+ txHash: string;
2074
2366
  nodeId: string;
2367
+ subnetId: string;
2075
2368
  amountStaked: string;
2076
- delegationFee: string;
2369
+ delegationFee?: string;
2077
2370
  startTimestamp: number;
2078
2371
  endTimestamp: number;
2079
- validationStatus: ValidationStatusType;
2080
2372
  delegatorCount: number;
2081
2373
  rewards: Rewards;
2374
+ validationStatus: CompletedValidatorDetails.validationStatus;
2082
2375
  };
2376
+ declare namespace CompletedValidatorDetails {
2377
+ enum validationStatus {
2378
+ COMPLETED = "completed"
2379
+ }
2380
+ }
2083
2381
 
2084
2382
  type PendingValidatorDetails = {
2383
+ txHash: string;
2085
2384
  nodeId: string;
2385
+ subnetId: string;
2086
2386
  amountStaked: string;
2087
- delegationFee: string;
2387
+ delegationFee?: string;
2388
+ startTimestamp: number;
2389
+ endTimestamp: number;
2390
+ validationStatus: PendingValidatorDetails.validationStatus;
2391
+ };
2392
+ declare namespace PendingValidatorDetails {
2393
+ enum validationStatus {
2394
+ PENDING = "pending"
2395
+ }
2396
+ }
2397
+
2398
+ type RemovedValidatorDetails = {
2399
+ txHash: string;
2400
+ nodeId: string;
2401
+ subnetId: string;
2402
+ amountStaked: string;
2403
+ delegationFee?: string;
2088
2404
  startTimestamp: number;
2089
2405
  endTimestamp: number;
2090
- validationStatus: ValidationStatusType;
2406
+ removeTxHash: string;
2407
+ removeTimestamp: number;
2408
+ validationStatus: RemovedValidatorDetails.validationStatus;
2091
2409
  };
2410
+ declare namespace RemovedValidatorDetails {
2411
+ enum validationStatus {
2412
+ REMOVED = "removed"
2413
+ }
2414
+ }
2092
2415
 
2093
2416
  type ListValidatorDetailsResponse = {
2094
2417
  /**
@@ -2096,9 +2419,9 @@ type ListValidatorDetailsResponse = {
2096
2419
  */
2097
2420
  nextPageToken?: string;
2098
2421
  /**
2099
- * The list of Validator Details.
2422
+ * The list of validator Details.
2100
2423
  */
2101
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2424
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2102
2425
  };
2103
2426
 
2104
2427
  declare enum Network {
@@ -2106,6 +2429,37 @@ declare enum Network {
2106
2429
  FUJI = "fuji"
2107
2430
  }
2108
2431
 
2432
+ declare enum SortByOption {
2433
+ BLOCK_INDEX = "blockIndex",
2434
+ DELEGATION_CAPACITY = "delegationCapacity",
2435
+ TIME_REMAINING = "timeRemaining",
2436
+ DELEGATION_FEE = "delegationFee",
2437
+ UPTIME_PERFORMANCE = "uptimePerformance"
2438
+ }
2439
+
2440
+ declare enum ValidationStatusType {
2441
+ COMPLETED = "completed",
2442
+ ACTIVE = "active",
2443
+ PENDING = "pending",
2444
+ REMOVED = "removed"
2445
+ }
2446
+
2447
+ /**
2448
+ * Cap represents if an asset is a variable or fixed cap asset.
2449
+ */
2450
+ declare enum PrimaryNetworkAssetCap {
2451
+ FIXED = "fixed",
2452
+ VARIABLE = "variable"
2453
+ }
2454
+
2455
+ /**
2456
+ * Type of asset like SECP256K1 or NFT.
2457
+ */
2458
+ declare enum PrimaryNetworkAssetType {
2459
+ SECP256K1 = "secp256k1",
2460
+ NFT = "nft"
2461
+ }
2462
+
2109
2463
  type XChainAssetDetails = {
2110
2464
  /**
2111
2465
  * Unique ID for an asset.
@@ -2123,18 +2477,12 @@ type XChainAssetDetails = {
2123
2477
  * Denomination of this asset to represent fungibility.
2124
2478
  */
2125
2479
  denomination: number;
2126
- /**
2127
- * Type of asset like SECP256K1 or NFT.
2128
- */
2129
- type: string;
2480
+ type: PrimaryNetworkAssetType;
2130
2481
  /**
2131
2482
  * Timestamp in seconds this asset was created on.
2132
2483
  */
2133
2484
  createdAtTimestamp: number;
2134
- /**
2135
- * Cap represents if an asset can be or is fixed cap.
2136
- */
2137
- cap: string;
2485
+ cap: PrimaryNetworkAssetCap;
2138
2486
  };
2139
2487
 
2140
2488
  declare enum XChainId {
@@ -2200,19 +2548,19 @@ declare class PrimaryNetworkService {
2200
2548
  * @returns ListBlockchainsResponse
2201
2549
  * @throws ApiError
2202
2550
  */
2203
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2551
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2204
2552
  /**
2205
2553
  * Either mainnet or a testnet.
2206
2554
  */
2207
2555
  network: Network;
2208
- /**
2209
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2210
- */
2211
- pageSize?: number;
2212
2556
  /**
2213
2557
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2214
2558
  */
2215
2559
  pageToken?: string;
2560
+ /**
2561
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2562
+ */
2563
+ pageSize?: number;
2216
2564
  /**
2217
2565
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2218
2566
  */
@@ -2224,19 +2572,19 @@ declare class PrimaryNetworkService {
2224
2572
  * @returns ListSubnetsResponse
2225
2573
  * @throws ApiError
2226
2574
  */
2227
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2575
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2228
2576
  /**
2229
2577
  * Either mainnet or a testnet.
2230
2578
  */
2231
2579
  network: Network;
2232
- /**
2233
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2234
- */
2235
- pageSize?: number;
2236
2580
  /**
2237
2581
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2238
2582
  */
2239
2583
  pageToken?: string;
2584
+ /**
2585
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2586
+ */
2587
+ pageSize?: number;
2240
2588
  /**
2241
2589
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2242
2590
  */
@@ -2248,23 +2596,29 @@ declare class PrimaryNetworkService {
2248
2596
  * @returns ListValidatorDetailsResponse
2249
2597
  * @throws ApiError
2250
2598
  */
2251
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2599
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2252
2600
  /**
2253
2601
  * Either mainnet or a testnet.
2254
2602
  */
2255
2603
  network: Network;
2256
- /**
2257
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2258
- */
2259
- pageSize?: number;
2260
2604
  /**
2261
2605
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2262
2606
  */
2263
2607
  pageToken?: string;
2608
+ /**
2609
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2610
+ */
2611
+ pageSize?: number;
2264
2612
  /**
2265
2613
  * A comma separated list of node ids to filter by.
2266
2614
  */
2267
2615
  nodeIds?: string;
2616
+ /**
2617
+ * Which property to sort by, in conjunction with sortOrder.
2618
+ *
2619
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2620
+ */
2621
+ sortBy?: SortByOption;
2268
2622
  /**
2269
2623
  * 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.
2270
2624
  */
@@ -2274,9 +2628,41 @@ declare class PrimaryNetworkService {
2274
2628
  */
2275
2629
  validationStatus?: ValidationStatusType;
2276
2630
  /**
2277
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2631
+ * 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
2632
+ */
2633
+ minDelegationCapacity?: string;
2634
+ /**
2635
+ * 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.
2636
+ */
2637
+ maxDelegationCapacity?: string;
2638
+ /**
2639
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2640
+ */
2641
+ minTimeRemaining?: number;
2642
+ /**
2643
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2644
+ */
2645
+ maxTimeRemaining?: number;
2646
+ /**
2647
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2278
2648
  */
2279
- minDelegationCapacity?: any;
2649
+ minFeePercentage?: number;
2650
+ /**
2651
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
2652
+ */
2653
+ maxFeePercentage?: number;
2654
+ /**
2655
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2656
+ */
2657
+ minUptimePerformance?: number;
2658
+ /**
2659
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2660
+ */
2661
+ maxUptimePerformance?: number;
2662
+ /**
2663
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2664
+ */
2665
+ subnetId?: any;
2280
2666
  }): CancelablePromise<ListValidatorDetailsResponse>;
2281
2667
  /**
2282
2668
  * Get single validator details
@@ -2284,7 +2670,7 @@ declare class PrimaryNetworkService {
2284
2670
  * @returns ListValidatorDetailsResponse
2285
2671
  * @throws ApiError
2286
2672
  */
2287
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2673
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2288
2674
  /**
2289
2675
  * Either mainnet or a testnet.
2290
2676
  */
@@ -2293,22 +2679,22 @@ declare class PrimaryNetworkService {
2293
2679
  * A primary network (P or X chain) nodeId.
2294
2680
  */
2295
2681
  nodeId: string;
2296
- /**
2297
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2298
- */
2299
- pageSize?: number;
2300
2682
  /**
2301
2683
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2302
2684
  */
2303
2685
  pageToken?: string;
2304
2686
  /**
2305
- * 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.
2687
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2306
2688
  */
2307
- sortOrder?: SortOrder;
2689
+ pageSize?: number;
2308
2690
  /**
2309
2691
  * Validation status of the node.
2310
2692
  */
2311
2693
  validationStatus?: ValidationStatusType;
2694
+ /**
2695
+ * 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.
2696
+ */
2697
+ sortOrder?: SortOrder;
2312
2698
  }): CancelablePromise<ListValidatorDetailsResponse>;
2313
2699
  /**
2314
2700
  * List delegators
@@ -2316,19 +2702,23 @@ declare class PrimaryNetworkService {
2316
2702
  * @returns ListDelegatorDetailsResponse
2317
2703
  * @throws ApiError
2318
2704
  */
2319
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2705
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2320
2706
  /**
2321
2707
  * Either mainnet or a testnet.
2322
2708
  */
2323
2709
  network: Network;
2710
+ /**
2711
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2712
+ */
2713
+ pageToken?: string;
2324
2714
  /**
2325
2715
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2326
2716
  */
2327
2717
  pageSize?: number;
2328
2718
  /**
2329
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2719
+ * A comma separated list of reward addresses to filter by.
2330
2720
  */
2331
- pageToken?: string;
2721
+ rewardAddresses?: string;
2332
2722
  /**
2333
2723
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2334
2724
  */
@@ -2337,10 +2727,6 @@ declare class PrimaryNetworkService {
2337
2727
  * Delegation status of the node.
2338
2728
  */
2339
2729
  delegationStatus?: DelegationStatusType;
2340
- /**
2341
- * A comma separated list of reward addresses to filter by.
2342
- */
2343
- rewardAddresses?: string;
2344
2730
  /**
2345
2731
  * A comma separated list of node ids to filter by.
2346
2732
  */
@@ -2376,10 +2762,7 @@ type CChainSharedAssetBalance = {
2376
2762
  * Denomination of this asset to represent fungibility.
2377
2763
  */
2378
2764
  denomination: number;
2379
- /**
2380
- * Type of asset like SECP256K1 or NFT.
2381
- */
2382
- type: string;
2765
+ type: PrimaryNetworkAssetType;
2383
2766
  /**
2384
2767
  * Amount of the asset.
2385
2768
  */
@@ -2414,49 +2797,89 @@ type ListCChainAtomicBalancesResponse = {
2414
2797
  chainInfo: PrimaryNetworkChainInfo;
2415
2798
  };
2416
2799
 
2417
- type PChainAsset = {
2800
+ type AggregatedAssetAmount = {
2801
+ /**
2802
+ * Unique ID for an asset.
2803
+ */
2418
2804
  assetId: string;
2805
+ /**
2806
+ * Name of this asset.
2807
+ */
2808
+ name: string;
2809
+ /**
2810
+ * Symbol for this asset (max 4 characters).
2811
+ */
2812
+ symbol: string;
2813
+ /**
2814
+ * Denomination of this asset to represent fungibility.
2815
+ */
2816
+ denomination: number;
2817
+ type: PrimaryNetworkAssetType;
2818
+ /**
2819
+ * Amount of the asset.
2820
+ */
2419
2821
  amount: string;
2822
+ utxoCount: number;
2420
2823
  };
2421
2824
 
2422
2825
  type PChainSharedAsset = {
2826
+ /**
2827
+ * Unique ID for an asset.
2828
+ */
2423
2829
  assetId: string;
2830
+ /**
2831
+ * Name of this asset.
2832
+ */
2833
+ name: string;
2834
+ /**
2835
+ * Symbol for this asset (max 4 characters).
2836
+ */
2837
+ symbol: string;
2838
+ /**
2839
+ * Denomination of this asset to represent fungibility.
2840
+ */
2841
+ denomination: number;
2842
+ type: PrimaryNetworkAssetType;
2843
+ /**
2844
+ * Amount of the asset.
2845
+ */
2424
2846
  amount: string;
2847
+ utxoCount: number;
2425
2848
  sharedWithChainId: string;
2426
2849
  status: string;
2427
2850
  };
2428
2851
 
2429
2852
  type PChainBalance = {
2430
2853
  /**
2431
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2854
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2432
2855
  */
2433
- unlockedUnstaked: Array<PChainAsset>;
2856
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2434
2857
  /**
2435
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2858
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2436
2859
  */
2437
- unlockedStaked: Array<PChainAsset>;
2860
+ unlockedStaked: Array<AggregatedAssetAmount>;
2438
2861
  /**
2439
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2862
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2440
2863
  */
2441
- lockedPlatform: Array<PChainAsset>;
2864
+ lockedPlatform: Array<AggregatedAssetAmount>;
2442
2865
  /**
2443
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2866
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2444
2867
  */
2445
- lockedStakeable: Array<PChainAsset>;
2868
+ lockedStakeable: Array<AggregatedAssetAmount>;
2446
2869
  /**
2447
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2870
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2448
2871
  */
2449
- lockedStaked: Array<PChainAsset>;
2872
+ lockedStaked: Array<AggregatedAssetAmount>;
2450
2873
  /**
2451
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2874
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2452
2875
  */
2453
- pendingStaked: Array<PChainAsset>;
2876
+ pendingStaked: Array<AggregatedAssetAmount>;
2454
2877
  /**
2455
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2878
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2456
2879
  */
2457
2880
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2458
2881
  /**
2459
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2882
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2460
2883
  */
2461
2884
  atomicMemoryLocked: Array<PChainSharedAsset>;
2462
2885
  };
@@ -2466,34 +2889,6 @@ type ListPChainBalancesResponse = {
2466
2889
  chainInfo: PrimaryNetworkChainInfo;
2467
2890
  };
2468
2891
 
2469
- type XChainAssetBalance = {
2470
- /**
2471
- * Unique ID for an asset.
2472
- */
2473
- assetId: string;
2474
- /**
2475
- * Name of this asset.
2476
- */
2477
- name: string;
2478
- /**
2479
- * Symbol for this asset (max 4 characters).
2480
- */
2481
- symbol: string;
2482
- /**
2483
- * Denomination of this asset to represent fungibility.
2484
- */
2485
- denomination: number;
2486
- /**
2487
- * Type of asset like SECP256K1 or NFT.
2488
- */
2489
- type: string;
2490
- /**
2491
- * Amount of the asset.
2492
- */
2493
- amount: string;
2494
- utxoCount: number;
2495
- };
2496
-
2497
2892
  type XChainSharedAssetBalance = {
2498
2893
  /**
2499
2894
  * Unique ID for an asset.
@@ -2511,10 +2906,7 @@ type XChainSharedAssetBalance = {
2511
2906
  * Denomination of this asset to represent fungibility.
2512
2907
  */
2513
2908
  denomination: number;
2514
- /**
2515
- * Type of asset like SECP256K1 or NFT.
2516
- */
2517
- type: string;
2909
+ type: PrimaryNetworkAssetType;
2518
2910
  /**
2519
2911
  * Amount of the asset.
2520
2912
  */
@@ -2527,11 +2919,11 @@ type XChainBalances = {
2527
2919
  /**
2528
2920
  * A list of objects containing X-chain Asset balance information.
2529
2921
  */
2530
- locked: Array<XChainAssetBalance>;
2922
+ locked: Array<AggregatedAssetAmount>;
2531
2923
  /**
2532
2924
  * A list of objects containing X-chain Asset balance information.
2533
2925
  */
2534
- unlocked: Array<XChainAssetBalance>;
2926
+ unlocked: Array<AggregatedAssetAmount>;
2535
2927
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2536
2928
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2537
2929
  };
@@ -2589,6 +2981,7 @@ type GetPrimaryNetworkBlockResponse = {
2589
2981
  txCount: number;
2590
2982
  transactions: Array<string>;
2591
2983
  blockSizeBytes: number;
2984
+ currentSupply?: string;
2592
2985
  proposerDetails?: ProposerDetails;
2593
2986
  };
2594
2987
 
@@ -2601,6 +2994,7 @@ type PrimaryNetworkBlock = {
2601
2994
  txCount: number;
2602
2995
  transactions: Array<string>;
2603
2996
  blockSizeBytes: number;
2997
+ currentSupply?: string;
2604
2998
  proposerDetails?: ProposerDetails;
2605
2999
  };
2606
3000
 
@@ -2642,7 +3036,7 @@ declare class PrimaryNetworkBlocksService {
2642
3036
  * @returns ListPrimaryNetworkBlocksResponse
2643
3037
  * @throws ApiError
2644
3038
  */
2645
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3039
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2646
3040
  /**
2647
3041
  * A primary network blockchain id or alias.
2648
3042
  */
@@ -2655,14 +3049,14 @@ declare class PrimaryNetworkBlocksService {
2655
3049
  * A primary network (P or X chain) nodeId.
2656
3050
  */
2657
3051
  nodeId: string;
2658
- /**
2659
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2660
- */
2661
- pageSize?: number;
2662
3052
  /**
2663
3053
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2664
3054
  */
2665
3055
  pageToken?: string;
3056
+ /**
3057
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3058
+ */
3059
+ pageSize?: number;
2666
3060
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2667
3061
  /**
2668
3062
  * List latest blocks
@@ -2670,29 +3064,58 @@ declare class PrimaryNetworkBlocksService {
2670
3064
  * @returns ListPrimaryNetworkBlocksResponse
2671
3065
  * @throws ApiError
2672
3066
  */
2673
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3067
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2674
3068
  /**
2675
3069
  * A primary network blockchain id or alias.
2676
3070
  */
2677
3071
  blockchainId: BlockchainId;
2678
3072
  /**
2679
- * Either mainnet or a testnet.
2680
- */
2681
- network: Network;
2682
- /**
2683
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3073
+ * Either mainnet or a testnet.
2684
3074
  */
2685
- pageSize?: number;
3075
+ network: Network;
2686
3076
  /**
2687
3077
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2688
3078
  */
2689
3079
  pageToken?: string;
3080
+ /**
3081
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3082
+ */
3083
+ pageSize?: number;
2690
3084
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2691
3085
  }
2692
3086
 
3087
+ type AssetWithPriceInfo = {
3088
+ /**
3089
+ * Unique ID for an asset.
3090
+ */
3091
+ assetId: string;
3092
+ /**
3093
+ * Name of this asset.
3094
+ */
3095
+ name: string;
3096
+ /**
3097
+ * Symbol for this asset (max 4 characters).
3098
+ */
3099
+ symbol: string;
3100
+ /**
3101
+ * Denomination of this asset to represent fungibility.
3102
+ */
3103
+ denomination: number;
3104
+ type: PrimaryNetworkAssetType;
3105
+ /**
3106
+ * Amount of the asset.
3107
+ */
3108
+ amount: string;
3109
+ /**
3110
+ * 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.
3111
+ */
3112
+ historicalPrice?: Money;
3113
+ };
3114
+
2693
3115
  declare enum RewardType {
2694
3116
  VALIDATOR = "VALIDATOR",
2695
- DELEGATOR = "DELEGATOR"
3117
+ DELEGATOR = "DELEGATOR",
3118
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2696
3119
  }
2697
3120
 
2698
3121
  type HistoricalReward = {
@@ -2708,10 +3131,7 @@ type HistoricalReward = {
2708
3131
  rewardType: RewardType;
2709
3132
  utxoId: string;
2710
3133
  outputIndex: number;
2711
- /**
2712
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2713
- */
2714
- reward: PChainAsset;
3134
+ reward: AssetWithPriceInfo;
2715
3135
  rewardTxHash: string;
2716
3136
  };
2717
3137
 
@@ -2723,6 +3143,30 @@ type ListHistoricalRewardsResponse = {
2723
3143
  historicalRewards: Array<HistoricalReward>;
2724
3144
  };
2725
3145
 
3146
+ type AssetAmount = {
3147
+ /**
3148
+ * Unique ID for an asset.
3149
+ */
3150
+ assetId: string;
3151
+ /**
3152
+ * Name of this asset.
3153
+ */
3154
+ name: string;
3155
+ /**
3156
+ * Symbol for this asset (max 4 characters).
3157
+ */
3158
+ symbol: string;
3159
+ /**
3160
+ * Denomination of this asset to represent fungibility.
3161
+ */
3162
+ denomination: number;
3163
+ type: PrimaryNetworkAssetType;
3164
+ /**
3165
+ * Amount of the asset.
3166
+ */
3167
+ amount: string;
3168
+ };
3169
+
2726
3170
  type PendingReward = {
2727
3171
  /**
2728
3172
  * An array of P-Chain wallet addresses.
@@ -2736,9 +3180,9 @@ type PendingReward = {
2736
3180
  rewardType: RewardType;
2737
3181
  progress: number;
2738
3182
  /**
2739
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3183
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
2740
3184
  */
2741
- estimatedReward: PChainAsset;
3185
+ estimatedReward: AssetAmount;
2742
3186
  };
2743
3187
 
2744
3188
  type ListPendingRewardsResponse = {
@@ -2758,23 +3202,27 @@ declare class PrimaryNetworkRewardsService {
2758
3202
  * @returns ListPendingRewardsResponse
2759
3203
  * @throws ApiError
2760
3204
  */
2761
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3205
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2762
3206
  /**
2763
3207
  * Either mainnet or a testnet.
2764
3208
  */
2765
3209
  network: Network;
2766
3210
  /**
2767
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3211
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
2768
3212
  */
2769
3213
  addresses?: string;
3214
+ /**
3215
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3216
+ */
3217
+ pageToken?: string;
2770
3218
  /**
2771
3219
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2772
3220
  */
2773
3221
  pageSize?: number;
2774
3222
  /**
2775
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3223
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
2776
3224
  */
2777
- pageToken?: string;
3225
+ nodeIds?: string;
2778
3226
  /**
2779
3227
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2780
3228
  */
@@ -2786,64 +3234,45 @@ declare class PrimaryNetworkRewardsService {
2786
3234
  * @returns ListHistoricalRewardsResponse
2787
3235
  * @throws ApiError
2788
3236
  */
2789
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3237
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2790
3238
  /**
2791
3239
  * Either mainnet or a testnet.
2792
3240
  */
2793
3241
  network: Network;
2794
3242
  /**
2795
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3243
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
2796
3244
  */
2797
3245
  addresses?: string;
3246
+ /**
3247
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3248
+ */
3249
+ pageToken?: string;
2798
3250
  /**
2799
3251
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2800
3252
  */
2801
3253
  pageSize?: number;
2802
3254
  /**
2803
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3255
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2804
3256
  */
2805
- pageToken?: string;
3257
+ nodeIds?: string;
2806
3258
  /**
2807
3259
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2808
3260
  */
2809
3261
  sortOrder?: SortOrder;
3262
+ /**
3263
+ * The currency that return values should use. Defaults to USD.
3264
+ */
3265
+ currency?: CurrencyCode;
2810
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2811
3267
  }
2812
3268
 
2813
- type Asset = {
2814
- /**
2815
- * Unique ID for an asset.
2816
- */
2817
- assetId: string;
2818
- /**
2819
- * Name of this asset.
2820
- */
2821
- name: string;
2822
- /**
2823
- * Symbol for this asset (max 4 characters).
2824
- */
2825
- symbol: string;
2826
- /**
2827
- * Denomination of this asset to represent fungibility.
2828
- */
2829
- denomination: number;
2830
- /**
2831
- * Type of asset like SECP256K1 or NFT.
2832
- */
2833
- type: string;
2834
- /**
2835
- * Amount of the asset.
2836
- */
2837
- amount: string;
2838
- };
2839
-
2840
3269
  type UtxoCredential = {
2841
3270
  /**
2842
- * Signature provided to consume the output
3271
+ * Signature provided to consume the output.
2843
3272
  */
2844
3273
  signature?: string;
2845
3274
  /**
2846
- * Public key associated with the signature
3275
+ * Public key associated with the signature.
2847
3276
  */
2848
3277
  publicKey?: string;
2849
3278
  };
@@ -2854,9 +3283,9 @@ type EVMInput = {
2854
3283
  */
2855
3284
  fromAddress: string;
2856
3285
  /**
2857
- * Asset details for the asset being transferred.
3286
+ * AssetAmount details for the asset being transferred.
2858
3287
  */
2859
- asset: Asset;
3288
+ asset: AssetAmount;
2860
3289
  /**
2861
3290
  * Credentials that signed this transaction.
2862
3291
  */
@@ -2865,66 +3294,66 @@ type EVMInput = {
2865
3294
 
2866
3295
  type Utxo = {
2867
3296
  /**
2868
- * UTXO ID for this output.
3297
+ * Addresses that are eligible to sign the consumption of this output.
2869
3298
  */
2870
- utxoId: string;
2871
- asset: Asset;
3299
+ addresses: Array<string>;
3300
+ asset: AssetAmount;
2872
3301
  /**
2873
- * Type of output.
3302
+ * Blockchain ID on which this output is consumed on.
2874
3303
  */
2875
- utxoType: string;
3304
+ consumedOnChainId: string;
2876
3305
  /**
2877
- * Blockchain ID on which this output is created on.
3306
+ * Transaction ID that consumed this output.
2878
3307
  */
2879
- createdOnChainId: string;
3308
+ consumingTxHash?: string;
2880
3309
  /**
2881
- * Blockchain ID on which this output is consumed on.
3310
+ * Blockchain ID on which this output is created on.
2882
3311
  */
2883
- consumedOnChainId: string;
3312
+ createdOnChainId: string;
2884
3313
  /**
2885
- * Transaction ID that created this output.
3314
+ * UTXO ID for this output.
2886
3315
  */
2887
- creationTxHash: string;
3316
+ utxoId: string;
2888
3317
  /**
2889
- * Transaction ID that consumed this output.
3318
+ * Unix timestamp in seconds at which this output was consumed.
2890
3319
  */
2891
- consumingTxHash?: string;
3320
+ consumingTxTimestamp?: number;
2892
3321
  /**
2893
- * Timestamp in seconds this output is consumed.
3322
+ * Transaction ID that created this output.
2894
3323
  */
2895
- consumingTxTimestamp?: number;
3324
+ creationTxHash: string;
2896
3325
  /**
2897
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3326
+ * Credentials that signed the transaction to consume this utxo
2898
3327
  */
2899
- outputIndex: string;
3328
+ credentials?: Array<UtxoCredential>;
2900
3329
  /**
2901
- * Timestamp in seconds this outptut is created on.
3330
+ * Index representing the minting set for the NFT mint output.
2902
3331
  */
2903
- timestamp: number;
3332
+ groupId?: number;
2904
3333
  /**
2905
3334
  * Locktime in seconds after which this output can be consumed.
2906
3335
  */
2907
3336
  locktime: number;
2908
3337
  /**
2909
- * Minimum number of signatures required to consume this output.
3338
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2910
3339
  */
2911
- threshold: number;
3340
+ outputIndex: string;
2912
3341
  /**
2913
- * Addresses that are eligible to sign the consumption of this output.
3342
+ * Hex encoded data for NFT assets.
2914
3343
  */
2915
- addresses: Array<string>;
3344
+ payload?: string;
2916
3345
  /**
2917
- * Hex encoded data for NFT assets
3346
+ * Minimum number of signatures required to consume this output.
2918
3347
  */
2919
- payload?: string;
3348
+ threshold: number;
2920
3349
  /**
2921
- * Index representing the minting set for the NFT mint output
3350
+ * Unix timestamp in seconds at which this outptut was created.
2922
3351
  */
2923
- groupId?: number;
3352
+ timestamp: number;
2924
3353
  /**
2925
- * Credentials that signed the transaction to consume this utxo
3354
+ * Type of output.
2926
3355
  */
2927
- credentials?: Array<UtxoCredential>;
3356
+ utxoType: string;
2928
3357
  };
2929
3358
 
2930
3359
  type CChainExportTransaction = {
@@ -2951,11 +3380,11 @@ type CChainExportTransaction = {
2951
3380
  /**
2952
3381
  * Assets unlocked by inputs of this transaction.
2953
3382
  */
2954
- amountUnlocked: Array<Asset>;
3383
+ amountUnlocked: Array<AssetAmount>;
2955
3384
  /**
2956
3385
  * Assets created by outputs of this transaction.
2957
3386
  */
2958
- amountCreated: Array<Asset>;
3387
+ amountCreated: Array<AssetAmount>;
2959
3388
  /**
2960
3389
  * Source chain for an atomic transaction.
2961
3390
  */
@@ -2986,9 +3415,9 @@ type EVMOutput = {
2986
3415
  */
2987
3416
  toAddress: string;
2988
3417
  /**
2989
- * Asset details for the asset being transferred.
3418
+ * AssetAmount details for the asset being transferred.
2990
3419
  */
2991
- asset: Asset;
3420
+ asset: AssetAmount;
2992
3421
  };
2993
3422
 
2994
3423
  type CChainImportTransaction = {
@@ -3015,11 +3444,11 @@ type CChainImportTransaction = {
3015
3444
  /**
3016
3445
  * Assets unlocked by inputs of this transaction.
3017
3446
  */
3018
- amountUnlocked: Array<Asset>;
3447
+ amountUnlocked: Array<AssetAmount>;
3019
3448
  /**
3020
3449
  * Assets created by outputs of this transaction.
3021
3450
  */
3022
- amountCreated: Array<Asset>;
3451
+ amountCreated: Array<AssetAmount>;
3023
3452
  /**
3024
3453
  * Source chain for an atomic transaction.
3025
3454
  */
@@ -3055,16 +3484,20 @@ type ListCChainAtomicTransactionsResponse = {
3055
3484
 
3056
3485
  declare enum PChainTransactionType {
3057
3486
  ADD_VALIDATOR_TX = "AddValidatorTx",
3058
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3059
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3060
3487
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3061
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3062
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3488
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3063
3489
  CREATE_CHAIN_TX = "CreateChainTx",
3064
3490
  CREATE_SUBNET_TX = "CreateSubnetTx",
3065
3491
  IMPORT_TX = "ImportTx",
3066
3492
  EXPORT_TX = "ExportTx",
3067
3493
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3494
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3495
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3496
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3497
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3498
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3499
+ BASE_TX = "BaseTx",
3500
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3068
3501
  UNKNOWN = "UNKNOWN"
3069
3502
  }
3070
3503
 
@@ -3075,29 +3508,48 @@ declare enum UtxoType {
3075
3508
 
3076
3509
  type PChainUtxo = {
3077
3510
  /**
3078
- * An array of P-Chain wallet addresses.
3511
+ * Addresses that are eligible to sign the consumption of this output.
3079
3512
  */
3080
3513
  addresses: Array<string>;
3514
+ asset: AssetAmount;
3515
+ /**
3516
+ * Blockchain ID on which this output is consumed on.
3517
+ */
3518
+ consumedOnChainId: string;
3519
+ /**
3520
+ * Transaction ID that consumed this output.
3521
+ */
3522
+ consumingTxHash?: string;
3523
+ /**
3524
+ * Blockchain ID on which this output is created on.
3525
+ */
3526
+ createdOnChainId: string;
3527
+ /**
3528
+ * UTXO ID for this output.
3529
+ */
3081
3530
  utxoId: string;
3082
- txHash: string;
3083
- outputIndex: number;
3531
+ /**
3532
+ * @deprecated
3533
+ */
3534
+ amount: string;
3535
+ /**
3536
+ * @deprecated
3537
+ */
3538
+ assetId: string;
3084
3539
  blockNumber: string;
3085
3540
  blockTimestamp: number;
3086
- consumingTxHash?: string;
3087
- consumingBlockTimestamp?: number;
3088
3541
  consumingBlockNumber?: string;
3089
- assetId: string;
3090
- utxoType: UtxoType;
3091
- amount: string;
3092
- stakeableLocktime?: number;
3542
+ consumingBlockTimestamp?: number;
3093
3543
  platformLocktime?: number;
3094
- threshold?: number;
3095
- createdOnChainId: string;
3096
- consumedOnChainId: string;
3544
+ outputIndex: number;
3545
+ rewardType?: RewardType;
3546
+ stakeableLocktime?: number;
3097
3547
  staked?: boolean;
3098
- utxoStartTimestamp?: number;
3548
+ threshold?: number;
3549
+ txHash: string;
3099
3550
  utxoEndTimestamp?: number;
3100
- rewardType?: RewardType;
3551
+ utxoStartTimestamp?: number;
3552
+ utxoType: UtxoType;
3101
3553
  };
3102
3554
 
3103
3555
  type PChainTransaction = {
@@ -3123,17 +3575,17 @@ type PChainTransaction = {
3123
3575
  */
3124
3576
  destinationChain?: string;
3125
3577
  /**
3126
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3578
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3127
3579
  */
3128
- value: Array<PChainAsset>;
3580
+ value: Array<AssetAmount>;
3129
3581
  /**
3130
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3582
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3131
3583
  */
3132
- amountBurned: Array<PChainAsset>;
3584
+ amountBurned: Array<AssetAmount>;
3133
3585
  /**
3134
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3586
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3135
3587
  */
3136
- amountStaked: Array<PChainAsset>;
3588
+ amountStaked: Array<AssetAmount>;
3137
3589
  /**
3138
3590
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3139
3591
  */
@@ -3159,11 +3611,16 @@ type PChainTransaction = {
3159
3611
  */
3160
3612
  estimatedReward?: string;
3161
3613
  rewardTxHash?: string;
3614
+ rewardAddresses?: Array<string>;
3162
3615
  memo?: string;
3163
3616
  /**
3164
3617
  * Present for RewardValidatorTx
3165
3618
  */
3166
3619
  stakingTxHash?: string;
3620
+ /**
3621
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3622
+ */
3623
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3167
3624
  };
3168
3625
 
3169
3626
  type ListPChainTransactionsResponse = {
@@ -3175,6 +3632,18 @@ type ListPChainTransactionsResponse = {
3175
3632
  chainInfo: PrimaryNetworkChainInfo;
3176
3633
  };
3177
3634
 
3635
+ /**
3636
+ * Type of transaction.
3637
+ */
3638
+ declare enum XChainTransactionType {
3639
+ BASE_TX = "BaseTx",
3640
+ CREATE_ASSET_TX = "CreateAssetTx",
3641
+ OPERATION_TX = "OperationTx",
3642
+ IMPORT_TX = "ImportTx",
3643
+ EXPORT_TX = "ExportTx",
3644
+ UNKNOWN = "UNKNOWN"
3645
+ }
3646
+
3178
3647
  type XChainLinearTransaction = {
3179
3648
  /**
3180
3649
  * Unique ID for this transaction.
@@ -3188,10 +3657,7 @@ type XChainLinearTransaction = {
3188
3657
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3189
3658
  */
3190
3659
  timestamp: number;
3191
- /**
3192
- * Type of transaction.
3193
- */
3194
- txType: string;
3660
+ txType: XChainTransactionType;
3195
3661
  /**
3196
3662
  * Hex encoded memo bytes for this transaction.
3197
3663
  */
@@ -3201,11 +3667,11 @@ type XChainLinearTransaction = {
3201
3667
  /**
3202
3668
  * Assets unlocked by inputs of this transaction.
3203
3669
  */
3204
- amountUnlocked: Array<Asset>;
3670
+ amountUnlocked: Array<AssetAmount>;
3205
3671
  /**
3206
3672
  * Assets created by outputs of this transaction.
3207
3673
  */
3208
- amountCreated: Array<Asset>;
3674
+ amountCreated: Array<AssetAmount>;
3209
3675
  /**
3210
3676
  * Source chain for an atomic transaction.
3211
3677
  */
@@ -3215,7 +3681,7 @@ type XChainLinearTransaction = {
3215
3681
  */
3216
3682
  destinationChain?: string;
3217
3683
  /**
3218
- * Asset details of the asset created in CreateAssetTx
3684
+ * AssetAmount details of the asset created in CreateAssetTx
3219
3685
  */
3220
3686
  assetCreated?: XChainAssetDetails;
3221
3687
  /**
@@ -3265,10 +3731,7 @@ type XChainNonLinearTransaction = {
3265
3731
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3266
3732
  */
3267
3733
  timestamp: number;
3268
- /**
3269
- * Type of transaction.
3270
- */
3271
- txType: string;
3734
+ txType: XChainTransactionType;
3272
3735
  /**
3273
3736
  * Hex encoded memo bytes for this transaction.
3274
3737
  */
@@ -3278,11 +3741,11 @@ type XChainNonLinearTransaction = {
3278
3741
  /**
3279
3742
  * Assets unlocked by inputs of this transaction.
3280
3743
  */
3281
- amountUnlocked: Array<Asset>;
3744
+ amountUnlocked: Array<AssetAmount>;
3282
3745
  /**
3283
3746
  * Assets created by outputs of this transaction.
3284
3747
  */
3285
- amountCreated: Array<Asset>;
3748
+ amountCreated: Array<AssetAmount>;
3286
3749
  /**
3287
3750
  * Source chain for an atomic transaction.
3288
3751
  */
@@ -3292,7 +3755,7 @@ type XChainNonLinearTransaction = {
3292
3755
  */
3293
3756
  destinationChain?: string;
3294
3757
  /**
3295
- * Asset details of the asset created in CreateAssetTx
3758
+ * AssetAmount details of the asset created in CreateAssetTx
3296
3759
  */
3297
3760
  assetCreated?: XChainAssetDetails;
3298
3761
  /**
@@ -3326,18 +3789,21 @@ declare enum PChainId {
3326
3789
 
3327
3790
  declare enum PrimaryNetworkTxType {
3328
3791
  ADD_VALIDATOR_TX = "AddValidatorTx",
3329
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3330
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3331
3792
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3332
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3333
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3793
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3334
3794
  CREATE_CHAIN_TX = "CreateChainTx",
3335
3795
  CREATE_SUBNET_TX = "CreateSubnetTx",
3336
3796
  IMPORT_TX = "ImportTx",
3337
3797
  EXPORT_TX = "ExportTx",
3338
3798
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3339
- UNKNOWN = "UNKNOWN",
3799
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3800
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3801
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3802
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3803
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3340
3804
  BASE_TX = "BaseTx",
3805
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3806
+ UNKNOWN = "UNKNOWN",
3341
3807
  CREATE_ASSET_TX = "CreateAssetTx",
3342
3808
  OPERATION_TX = "OperationTx"
3343
3809
  }
@@ -3369,13 +3835,13 @@ declare class PrimaryNetworkTransactionsService {
3369
3835
  * List latest transactions
3370
3836
  * Lists the latest transactions on one of the Primary Network chains.
3371
3837
  *
3372
- * Transactions are filterable by addresses.
3838
+ * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3373
3839
  *
3374
3840
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3375
3841
  * @returns any
3376
3842
  * @throws ApiError
3377
3843
  */
3378
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3844
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3379
3845
  /**
3380
3846
  * A primary network blockchain id or alias.
3381
3847
  */
@@ -3400,14 +3866,14 @@ declare class PrimaryNetworkTransactionsService {
3400
3866
  * Query param for retrieving items before a specific timestamp.
3401
3867
  */
3402
3868
  endTimestamp?: number;
3403
- /**
3404
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3405
- */
3406
- pageSize?: number;
3407
3869
  /**
3408
3870
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3409
3871
  */
3410
3872
  pageToken?: string;
3873
+ /**
3874
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3875
+ */
3876
+ pageSize?: number;
3411
3877
  /**
3412
3878
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3413
3879
  */
@@ -3419,7 +3885,7 @@ declare class PrimaryNetworkTransactionsService {
3419
3885
  * @returns ListPChainTransactionsResponse
3420
3886
  * @throws ApiError
3421
3887
  */
3422
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3888
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3423
3889
  /**
3424
3890
  * A primary network blockchain id or alias.
3425
3891
  */
@@ -3444,14 +3910,14 @@ declare class PrimaryNetworkTransactionsService {
3444
3910
  * Query param for retrieving items before a specific timestamp.
3445
3911
  */
3446
3912
  endTimestamp?: number;
3447
- /**
3448
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3449
- */
3450
- pageSize?: number;
3451
3913
  /**
3452
3914
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3453
3915
  */
3454
3916
  pageToken?: string;
3917
+ /**
3918
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3919
+ */
3920
+ pageSize?: number;
3455
3921
  /**
3456
3922
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3457
3923
  */
@@ -3463,7 +3929,7 @@ declare class PrimaryNetworkTransactionsService {
3463
3929
  * @returns ListXChainTransactionsResponse
3464
3930
  * @throws ApiError
3465
3931
  */
3466
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3932
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3467
3933
  /**
3468
3934
  * A primary network blockchain id or alias.
3469
3935
  */
@@ -3488,14 +3954,14 @@ declare class PrimaryNetworkTransactionsService {
3488
3954
  * Query param for retrieving items before a specific timestamp.
3489
3955
  */
3490
3956
  endTimestamp?: number;
3491
- /**
3492
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3493
- */
3494
- pageSize?: number;
3495
3957
  /**
3496
3958
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3497
3959
  */
3498
3960
  pageToken?: string;
3961
+ /**
3962
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3963
+ */
3964
+ pageSize?: number;
3499
3965
  }): CancelablePromise<ListXChainTransactionsResponse>;
3500
3966
  }
3501
3967
 
@@ -3526,7 +3992,7 @@ declare class PrimaryNetworkUtxOsService {
3526
3992
  * @returns any
3527
3993
  * @throws ApiError
3528
3994
  */
3529
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3995
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3530
3996
  /**
3531
3997
  * A primary network blockchain id or alias.
3532
3998
  */
@@ -3538,15 +4004,15 @@ declare class PrimaryNetworkUtxOsService {
3538
4004
  /**
3539
4005
  * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3540
4006
  */
3541
- addresses?: string;
3542
- /**
3543
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3544
- */
3545
- pageSize?: number;
4007
+ addresses?: string;
3546
4008
  /**
3547
4009
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3548
4010
  */
3549
4011
  pageToken?: string;
4012
+ /**
4013
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4014
+ */
4015
+ pageSize?: number;
3550
4016
  /**
3551
4017
  * Asset ID for any asset (only applicable X-Chain)
3552
4018
  */
@@ -3591,7 +4057,7 @@ declare class PrimaryNetworkVerticesService {
3591
4057
  * @returns ListXChainVerticesResponse
3592
4058
  * @throws ApiError
3593
4059
  */
3594
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4060
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3595
4061
  /**
3596
4062
  * A primary network blockchain id or alias.
3597
4063
  */
@@ -3600,14 +4066,14 @@ declare class PrimaryNetworkVerticesService {
3600
4066
  * Either mainnet or a testnet.
3601
4067
  */
3602
4068
  network: Network;
3603
- /**
3604
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3605
- */
3606
- pageSize?: number;
3607
4069
  /**
3608
4070
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3609
4071
  */
3610
4072
  pageToken?: string;
4073
+ /**
4074
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4075
+ */
4076
+ pageSize?: number;
3611
4077
  }): CancelablePromise<ListXChainVerticesResponse>;
3612
4078
  /**
3613
4079
  * Get vertex
@@ -3635,7 +4101,7 @@ declare class PrimaryNetworkVerticesService {
3635
4101
  * @returns ListXChainVerticesResponse
3636
4102
  * @throws ApiError
3637
4103
  */
3638
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4104
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3639
4105
  /**
3640
4106
  * The height of a vertex.
3641
4107
  */
@@ -3648,26 +4114,486 @@ declare class PrimaryNetworkVerticesService {
3648
4114
  * Either mainnet or a testnet.
3649
4115
  */
3650
4116
  network: Network;
4117
+ /**
4118
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4119
+ */
4120
+ pageToken?: string;
3651
4121
  /**
3652
4122
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3653
4123
  */
3654
4124
  pageSize?: number;
4125
+ /**
4126
+ * 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.
4127
+ */
4128
+ sortOrder?: SortOrder;
4129
+ }): CancelablePromise<ListXChainVerticesResponse>;
4130
+ }
4131
+
4132
+ type RpcErrorDto = {
4133
+ code: number;
4134
+ message: string;
4135
+ data?: Record<string, any>;
4136
+ };
4137
+
4138
+ type RpcErrorResponseDto = {
4139
+ jsonrpc: string;
4140
+ id?: (string | number);
4141
+ error: RpcErrorDto;
4142
+ };
4143
+
4144
+ type RpcRequestBodyDto = {
4145
+ method: string;
4146
+ params?: Record<string, any>;
4147
+ id?: (string | number);
4148
+ jsonrpc?: string;
4149
+ };
4150
+
4151
+ type RpcSuccessResponseDto = {
4152
+ jsonrpc: string;
4153
+ id?: (string | number);
4154
+ result: Record<string, any>;
4155
+ };
4156
+
4157
+ declare class RpcService {
4158
+ readonly httpRequest: BaseHttpRequest;
4159
+ constructor(httpRequest: BaseHttpRequest);
4160
+ /**
4161
+ * Calls JSON-RPC method
4162
+ * Calls JSON-RPC method.
4163
+ * @returns any
4164
+ * @throws ApiError
4165
+ */
4166
+ rpc({ chainId, requestBody, }: {
4167
+ /**
4168
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4169
+ */
4170
+ chainId: string;
4171
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4172
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4173
+ }
4174
+
4175
+ type TeleporterDestinationTransaction = {
4176
+ txHash: string;
4177
+ timestamp: number;
4178
+ gasSpent: string;
4179
+ rewardRedeemer: string;
4180
+ delivererAddress: string;
4181
+ };
4182
+
4183
+ type TeleporterReceipt = {
4184
+ receivedMessageNonce: string;
4185
+ relayerRewardAddress: string;
4186
+ };
4187
+
4188
+ type TeleporterRewardDetails = {
4189
+ /**
4190
+ * A wallet or contract address in mixed-case checksum encoding.
4191
+ */
4192
+ address: string;
4193
+ /**
4194
+ * The contract name.
4195
+ */
4196
+ name: string;
4197
+ /**
4198
+ * The contract symbol.
4199
+ */
4200
+ symbol: string;
4201
+ /**
4202
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4203
+ */
4204
+ decimals: number;
4205
+ /**
4206
+ * The logo uri for the address.
4207
+ */
4208
+ logoUri?: string;
4209
+ ercType: TeleporterRewardDetails.ercType;
4210
+ /**
4211
+ * The token price, if available.
4212
+ */
4213
+ price?: Money;
4214
+ value: string;
4215
+ };
4216
+ declare namespace TeleporterRewardDetails {
4217
+ enum ercType {
4218
+ ERC_20 = "ERC-20"
4219
+ }
4220
+ }
4221
+
4222
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4223
+ messageId: string;
4224
+ teleporterContractAddress: string;
4225
+ sourceBlockchainId: string;
4226
+ destinationBlockchainId: string;
4227
+ sourceEvmChainId: string;
4228
+ destinationEvmChainId: string;
4229
+ messageNonce: string;
4230
+ from: string;
4231
+ to: string;
4232
+ data?: string;
4233
+ messageExecuted: boolean;
4234
+ receipts: Array<TeleporterReceipt>;
4235
+ receiptDelivered: boolean;
4236
+ rewardDetails: TeleporterRewardDetails;
4237
+ destinationTransaction: TeleporterDestinationTransaction;
4238
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4239
+ };
4240
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4241
+ enum status {
4242
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4243
+ }
4244
+ }
4245
+
4246
+ type TeleporterSourceTransaction = {
4247
+ txHash: string;
4248
+ timestamp: number;
4249
+ gasSpent: string;
4250
+ };
4251
+
4252
+ type DeliveredTeleporterMessage = {
4253
+ messageId: string;
4254
+ teleporterContractAddress: string;
4255
+ sourceBlockchainId: string;
4256
+ destinationBlockchainId: string;
4257
+ sourceEvmChainId: string;
4258
+ destinationEvmChainId: string;
4259
+ messageNonce: string;
4260
+ from: string;
4261
+ to: string;
4262
+ data?: string;
4263
+ messageExecuted: boolean;
4264
+ receipts: Array<TeleporterReceipt>;
4265
+ receiptDelivered: boolean;
4266
+ rewardDetails: TeleporterRewardDetails;
4267
+ sourceTransaction: TeleporterSourceTransaction;
4268
+ destinationTransaction: TeleporterDestinationTransaction;
4269
+ status: DeliveredTeleporterMessage.status;
4270
+ };
4271
+ declare namespace DeliveredTeleporterMessage {
4272
+ enum status {
4273
+ DELIVERED = "delivered"
4274
+ }
4275
+ }
4276
+
4277
+ type PendingTeleporterMessage = {
4278
+ messageId: string;
4279
+ teleporterContractAddress: string;
4280
+ sourceBlockchainId: string;
4281
+ destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4284
+ messageNonce: string;
4285
+ from: string;
4286
+ to: string;
4287
+ data?: string;
4288
+ messageExecuted: boolean;
4289
+ receipts: Array<TeleporterReceipt>;
4290
+ receiptDelivered: boolean;
4291
+ rewardDetails: TeleporterRewardDetails;
4292
+ sourceTransaction: TeleporterSourceTransaction;
4293
+ status: PendingTeleporterMessage.status;
4294
+ };
4295
+ declare namespace PendingTeleporterMessage {
4296
+ enum status {
4297
+ PENDING = "pending"
4298
+ }
4299
+ }
4300
+
4301
+ type ListTeleporterMessagesResponse = {
4302
+ /**
4303
+ * 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.
4304
+ */
4305
+ nextPageToken?: string;
4306
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4307
+ };
4308
+
4309
+ declare class TeleporterService {
4310
+ readonly httpRequest: BaseHttpRequest;
4311
+ constructor(httpRequest: BaseHttpRequest);
4312
+ /**
4313
+ * Get a teleporter message
4314
+ * Gets a teleporter message by message ID.
4315
+ * @returns any
4316
+ * @throws ApiError
4317
+ */
4318
+ getTeleporterMessage({ messageId, }: {
4319
+ /**
4320
+ * The message ID of the teleporter message.
4321
+ */
4322
+ messageId: string;
4323
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4324
+ /**
4325
+ * List teleporter messages
4326
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4327
+ * @returns ListTeleporterMessagesResponse
4328
+ * @throws ApiError
4329
+ */
4330
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
3655
4331
  /**
3656
4332
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3657
4333
  */
3658
4334
  pageToken?: string;
3659
4335
  /**
3660
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4336
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3661
4337
  */
3662
- sortOrder?: SortOrder;
3663
- }): CancelablePromise<ListXChainVerticesResponse>;
4338
+ pageSize?: number;
4339
+ /**
4340
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4341
+ */
4342
+ sourceBlockchainId?: string;
4343
+ /**
4344
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4345
+ */
4346
+ destinationBlockchainId?: string;
4347
+ /**
4348
+ * The address of the recipient of the teleporter message.
4349
+ */
4350
+ to?: string;
4351
+ /**
4352
+ * The address of the sender of the teleporter message.
4353
+ */
4354
+ from?: string;
4355
+ /**
4356
+ * mainnet or testnet.
4357
+ */
4358
+ network?: NetworkType;
4359
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4360
+ }
4361
+
4362
+ type AddressesChangeRequest = {
4363
+ /**
4364
+ * Ethereum address(es) for the address_activity event type
4365
+ */
4366
+ addresses: Array<any[]>;
4367
+ };
4368
+
4369
+ type ListWebhookAddressesResponse = {
4370
+ /**
4371
+ * 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.
4372
+ */
4373
+ nextPageToken?: string;
4374
+ addresses: Array<string>;
4375
+ totalAddresses: number;
4376
+ };
4377
+
4378
+ type AddressActivityMetadata = {
4379
+ /**
4380
+ * Ethereum address(es) for the address_activity event type
4381
+ */
4382
+ addresses: Array<any[]>;
4383
+ /**
4384
+ * Array of hexadecimal strings of the event signatures.
4385
+ */
4386
+ eventSignatures?: Array<string>;
4387
+ };
4388
+
4389
+ declare enum EventType {
4390
+ ADDRESS_ACTIVITY = "address_activity"
4391
+ }
4392
+
4393
+ declare enum WebhookStatusType {
4394
+ ACTIVE = "active",
4395
+ INACTIVE = "inactive"
4396
+ }
4397
+
4398
+ type WebhookResponse = {
4399
+ id: string;
4400
+ eventType: EventType;
4401
+ metadata: AddressActivityMetadata;
4402
+ /**
4403
+ * Whether to include traces in the webhook payload.
4404
+ */
4405
+ includeInternalTxs?: boolean;
4406
+ /**
4407
+ * Whether to include logs in the webhook payload.
4408
+ */
4409
+ includeLogs?: boolean;
4410
+ url: string;
4411
+ chainId: string;
4412
+ status: WebhookStatusType;
4413
+ createdAt: number;
4414
+ name: string;
4415
+ description: string;
4416
+ };
4417
+
4418
+ type ListWebhooksResponse = {
4419
+ /**
4420
+ * 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.
4421
+ */
4422
+ nextPageToken?: string;
4423
+ webhooks: Array<WebhookResponse>;
4424
+ };
4425
+
4426
+ type RegisterWebhookRequest = {
4427
+ url: string;
4428
+ chainId: string;
4429
+ eventType: EventType;
4430
+ metadata: AddressActivityMetadata;
4431
+ /**
4432
+ * Whether to include traces in the webhook payload.
4433
+ */
4434
+ includeInternalTxs?: boolean;
4435
+ /**
4436
+ * Whether to include logs in the webhook payload.
4437
+ */
4438
+ includeLogs?: boolean;
4439
+ };
4440
+
4441
+ type SharedSecretsResponse = {
4442
+ secret: string;
4443
+ };
4444
+
4445
+ type UpdateWebhookRequest = {
4446
+ name?: string;
4447
+ description?: string;
4448
+ url?: string;
4449
+ status?: WebhookStatusType;
4450
+ includeInternalTxs?: boolean;
4451
+ includeLogs?: boolean;
4452
+ };
4453
+
4454
+ declare enum WebhookStatus {
4455
+ ACTIVE = "active",
4456
+ INACTIVE = "inactive"
4457
+ }
4458
+
4459
+ declare class WebhooksService {
4460
+ readonly httpRequest: BaseHttpRequest;
4461
+ constructor(httpRequest: BaseHttpRequest);
4462
+ /**
4463
+ * Create a webhook
4464
+ * Create a new webhook.
4465
+ * @returns WebhookResponse
4466
+ * @throws ApiError
4467
+ */
4468
+ registerWebhook({ requestBody, }: {
4469
+ requestBody: RegisterWebhookRequest;
4470
+ }): CancelablePromise<WebhookResponse>;
4471
+ /**
4472
+ * List webhooks
4473
+ * Lists webhooks for the user.
4474
+ * @returns ListWebhooksResponse
4475
+ * @throws ApiError
4476
+ */
4477
+ listWebhooks({ pageToken, pageSize, status, }: {
4478
+ /**
4479
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4480
+ */
4481
+ pageToken?: string;
4482
+ /**
4483
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4484
+ */
4485
+ pageSize?: number;
4486
+ /**
4487
+ * 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.
4488
+ */
4489
+ status?: WebhookStatus;
4490
+ }): CancelablePromise<ListWebhooksResponse>;
4491
+ /**
4492
+ * Get a webhook by ID
4493
+ * Retrieves a webhook by ID.
4494
+ * @returns WebhookResponse
4495
+ * @throws ApiError
4496
+ */
4497
+ getWebhook({ id, }: {
4498
+ /**
4499
+ * The webhook identifier.
4500
+ */
4501
+ id: string;
4502
+ }): CancelablePromise<WebhookResponse>;
4503
+ /**
4504
+ * Deactivate a webhook
4505
+ * Deactivates a webhook by ID.
4506
+ * @returns WebhookResponse
4507
+ * @throws ApiError
4508
+ */
4509
+ deactivateWebhook({ id, }: {
4510
+ /**
4511
+ * The webhook identifier.
4512
+ */
4513
+ id: string;
4514
+ }): CancelablePromise<WebhookResponse>;
4515
+ /**
4516
+ * Update a webhook
4517
+ * Updates an existing webhook.
4518
+ * @returns WebhookResponse
4519
+ * @throws ApiError
4520
+ */
4521
+ updateWebhook({ id, requestBody, }: {
4522
+ /**
4523
+ * The webhook identifier.
4524
+ */
4525
+ id: string;
4526
+ requestBody: UpdateWebhookRequest;
4527
+ }): CancelablePromise<WebhookResponse>;
4528
+ /**
4529
+ * Generate a shared secret
4530
+ * Generates a new shared secret.
4531
+ * @returns SharedSecretsResponse
4532
+ * @throws ApiError
4533
+ */
4534
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4535
+ /**
4536
+ * Get a shared secret
4537
+ * Get a previously generated shared secret.
4538
+ * @returns SharedSecretsResponse
4539
+ * @throws ApiError
4540
+ */
4541
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4542
+ /**
4543
+ * Add addresses to webhook
4544
+ * Add addresses to webhook.
4545
+ * @returns WebhookResponse
4546
+ * @throws ApiError
4547
+ */
4548
+ addAddressesToWebhook({ id, requestBody, }: {
4549
+ /**
4550
+ * The webhook identifier.
4551
+ */
4552
+ id: string;
4553
+ requestBody: AddressesChangeRequest;
4554
+ }): CancelablePromise<WebhookResponse>;
4555
+ /**
4556
+ * Remove addresses from webhook
4557
+ * Remove addresses from webhook.
4558
+ * @returns WebhookResponse
4559
+ * @throws ApiError
4560
+ */
4561
+ removeAddressesFromWebhook({ id, requestBody, }: {
4562
+ /**
4563
+ * The webhook identifier.
4564
+ */
4565
+ id: string;
4566
+ requestBody: AddressesChangeRequest;
4567
+ }): CancelablePromise<WebhookResponse>;
4568
+ /**
4569
+ * List adresses by webhook
4570
+ * List adresses by webhook.
4571
+ * @returns ListWebhookAddressesResponse
4572
+ * @throws ApiError
4573
+ */
4574
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4575
+ /**
4576
+ * The webhook identifier.
4577
+ */
4578
+ id: string;
4579
+ /**
4580
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4581
+ */
4582
+ pageToken?: string;
4583
+ /**
4584
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4585
+ */
4586
+ pageSize?: number;
4587
+ }): CancelablePromise<ListWebhookAddressesResponse>;
3664
4588
  }
3665
4589
 
3666
4590
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3667
4591
  declare class Glacier {
4592
+ readonly default: DefaultService;
3668
4593
  readonly evmBalances: EvmBalancesService;
3669
4594
  readonly evmBlocks: EvmBlocksService;
3670
4595
  readonly evmChains: EvmChainsService;
4596
+ readonly evmContracts: EvmContractsService;
3671
4597
  readonly evmTransactions: EvmTransactionsService;
3672
4598
  readonly healthCheck: HealthCheckService;
3673
4599
  readonly nfTs: NfTsService;
@@ -3679,6 +4605,9 @@ declare class Glacier {
3679
4605
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3680
4606
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3681
4607
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4608
+ readonly rpc: RpcService;
4609
+ readonly teleporter: TeleporterService;
4610
+ readonly webhooks: WebhooksService;
3682
4611
  readonly request: BaseHttpRequest;
3683
4612
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3684
4613
  }
@@ -3700,4 +4629,11 @@ declare class ApiError extends Error {
3700
4629
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3701
4630
  }
3702
4631
 
3703
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
4632
+ type NextPageToken = {
4633
+ /**
4634
+ * 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.
4635
+ */
4636
+ nextPageToken?: string;
4637
+ };
4638
+
4639
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, 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, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };