@avalabs/glacier-sdk 2.8.0-canary.fdc2483.0 → 2.8.0-canary.fedc8b0.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 (176) hide show
  1. package/dist/index.d.ts +1696 -699
  2. package/dist/index.js +678 -164
  3. package/esm/generated/Glacier.d.ts +12 -0
  4. package/esm/generated/Glacier.js +18 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  9. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  10. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  11. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  12. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  13. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  14. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  15. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  16. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  17. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  18. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  19. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  20. package/esm/generated/models/ChainInfo.d.ts +2 -3
  21. package/esm/generated/models/ChainStatus.d.ts +3 -0
  22. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  23. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  24. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  25. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  26. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  27. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  28. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  29. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  30. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  31. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  32. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  33. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  34. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  35. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  36. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  37. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  38. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  39. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  40. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  41. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  42. package/esm/generated/models/EVMInput.d.ts +3 -3
  43. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  44. package/esm/generated/models/EVMOperationType.js +6 -0
  45. package/esm/generated/models/EVMOutput.d.ts +3 -3
  46. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  47. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  48. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  49. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  50. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  51. package/esm/generated/models/EventType.d.ts +5 -0
  52. package/esm/generated/models/EventType.js +6 -0
  53. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  54. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  55. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  56. package/esm/generated/models/GlacierApiFeature.js +7 -0
  57. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  58. package/esm/generated/models/ImageAsset.d.ts +0 -3
  59. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  60. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  61. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  62. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  63. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  64. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  65. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  66. package/esm/generated/models/Method.d.ts +0 -3
  67. package/esm/generated/models/Money.d.ts +0 -3
  68. package/esm/generated/models/NextPageToken.d.ts +8 -0
  69. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  70. package/esm/generated/models/OperationType.d.ts +4 -2
  71. package/esm/generated/models/OperationType.js +3 -1
  72. package/esm/generated/models/PChainBalance.d.ts +15 -15
  73. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  74. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  75. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  76. package/esm/generated/models/PChainTransactionType.js +8 -4
  77. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  78. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  79. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  80. package/esm/generated/models/PendingReward.d.ts +3 -3
  81. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  82. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  83. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  84. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  85. package/esm/generated/models/PricingProviders.d.ts +5 -0
  86. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  87. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  88. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  89. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  90. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  91. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  92. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  93. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  94. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  95. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  96. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  97. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  98. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  99. package/esm/generated/models/RewardType.d.ts +2 -1
  100. package/esm/generated/models/RewardType.js +1 -0
  101. package/esm/generated/models/Rewards.d.ts +2 -0
  102. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  103. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  104. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  105. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  106. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  107. package/esm/generated/models/SortByOption.d.ts +9 -0
  108. package/esm/generated/models/SortByOption.js +10 -0
  109. package/esm/generated/models/Subnet.d.ts +17 -0
  110. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  111. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  112. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  113. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  114. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  115. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  116. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  117. package/esm/generated/models/UnknownContract.d.ts +0 -1
  118. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  119. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  120. package/esm/generated/models/Utxo.d.ts +30 -30
  121. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  122. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  123. package/esm/generated/models/ValidationStatusType.js +1 -0
  124. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  125. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  126. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  127. package/esm/generated/models/WebhookStatus.js +7 -0
  128. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  129. package/esm/generated/models/WebhookStatusType.js +7 -0
  130. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  131. package/esm/generated/models/XChainBalances.d.ts +3 -3
  132. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  133. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  134. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  135. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  136. package/esm/generated/models/XChainTransactionType.js +11 -0
  137. package/esm/generated/services/DefaultService.d.ts +14 -0
  138. package/esm/generated/services/DefaultService.js +13 -0
  139. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  140. package/esm/generated/services/EvmBalancesService.js +10 -8
  141. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  142. package/esm/generated/services/EvmBlocksService.js +4 -4
  143. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  144. package/esm/generated/services/EvmChainsService.js +4 -2
  145. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  146. package/esm/generated/services/EvmContractsService.js +36 -0
  147. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  148. package/esm/generated/services/EvmTransactionsService.js +33 -33
  149. package/esm/generated/services/NfTsService.d.ts +76 -0
  150. package/esm/generated/services/NfTsService.js +56 -0
  151. package/esm/generated/services/OperationsService.d.ts +11 -11
  152. package/esm/generated/services/OperationsService.js +10 -10
  153. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  154. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  155. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  156. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  157. package/esm/generated/services/PrimaryNetworkService.d.ts +68 -33
  158. package/esm/generated/services/PrimaryNetworkService.js +37 -21
  159. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
  160. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  161. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  162. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  163. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  164. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  165. package/esm/generated/services/RpcService.d.ts +25 -0
  166. package/esm/generated/services/RpcService.js +24 -0
  167. package/esm/generated/services/TeleporterService.d.ts +62 -0
  168. package/esm/generated/services/TeleporterService.js +41 -0
  169. package/esm/generated/services/WebhooksService.d.ts +143 -0
  170. package/esm/generated/services/WebhooksService.js +125 -0
  171. package/esm/index.d.ts +51 -3
  172. package/esm/index.js +31 -2
  173. package/package.json +3 -3
  174. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  175. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  176. 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,449 +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;
897
- /**
898
- * The block hash identifier.
927
+ address: string;
928
+ deploymentDetails: ContractDeploymentDetails;
929
+ ercType: Erc1155Contract.ercType;
930
+ /**
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;
944
1026
  };
945
-
946
- declare enum InternalTransactionOpCall {
947
- UNKNOWN = "UNKNOWN",
948
- CALL = "CALL",
949
- CREATE = "CREATE",
950
- CREATE2 = "CREATE2",
951
- CALLCODE = "CALLCODE",
952
- DELEGATECALL = "DELEGATECALL",
953
- STATICCALL = "STATICCALL"
1027
+ declare namespace UnknownContract {
1028
+ enum ercType {
1029
+ UNKNOWN = "UNKNOWN"
1030
+ }
954
1031
  }
955
1032
 
956
- type InternalTransactionDetails = {
957
- from: RichAddress;
958
- to: RichAddress;
959
- internalTxType: InternalTransactionOpCall;
960
- value: string;
961
- /**
962
- * True if the internal transaction was reverted.
963
- */
964
- isReverted: boolean;
965
- gasUsed: string;
966
- gasLimit: string;
1033
+ type UpdateContractResponse = {
1034
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
967
1035
  };
968
1036
 
969
- type NetworkTokenDetails = {
970
- networkToken: NetworkToken;
1037
+ declare class EvmContractsService {
1038
+ readonly httpRequest: BaseHttpRequest;
1039
+ constructor(httpRequest: BaseHttpRequest);
971
1040
  /**
972
- * The current token price, if available.
1041
+ * Get contract metadata
1042
+ * Gets metadata about the contract at the given address.
1043
+ * @returns any
1044
+ * @throws ApiError
973
1045
  */
974
- currentPrice?: Money;
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)>;
975
1056
  /**
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.
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
977
1061
  */
978
- historicalPrice?: Money;
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>;
1073
+ }
1074
+
1075
+ type Erc1155Token = {
1076
+ /**
1077
+ * A wallet or contract address in mixed-case checksum encoding.
1078
+ */
1079
+ address: string;
1080
+ ercType: Erc1155Token.ercType;
1081
+ tokenId: string;
1082
+ tokenUri: string;
1083
+ metadata: Erc1155TokenMetadata;
979
1084
  };
1085
+ declare namespace Erc1155Token {
1086
+ enum ercType {
1087
+ ERC_1155 = "ERC-1155"
1088
+ }
1089
+ }
980
1090
 
981
- type GetTransactionResponse = {
1091
+ type RichAddress = {
982
1092
  /**
983
- * The list of ERC-20 transfers.
1093
+ * The contract name.
984
1094
  */
985
- erc20Transfers?: Array<Erc20TransferDetails>;
1095
+ name?: string;
986
1096
  /**
987
- * The list of ERC-721 transfers.
1097
+ * The contract symbol.
988
1098
  */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
1099
+ symbol?: string;
990
1100
  /**
991
- * The list of ERC-1155 transfers.
1101
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
992
1102
  */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1103
+ decimals?: number;
994
1104
  /**
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.
1105
+ * The logo uri for the address.
996
1106
  */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1107
+ logoUri?: string;
1108
+ /**
1109
+ * A wallet or contract address in mixed-case checksum encoding.
1110
+ */
1111
+ address: string;
1000
1112
  };
1001
1113
 
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1114
+ type Erc1155TransferDetails = {
1115
+ from: RichAddress;
1116
+ to: RichAddress;
1117
+ logIndex: number;
1118
+ value: string;
1119
+ erc1155Token: Erc1155Token;
1120
+ };
1121
+
1122
+ type Erc20Token = {
1004
1123
  /**
1005
- * The address that initiated the transaction which deployed this contract.
1124
+ * A wallet or contract address in mixed-case checksum encoding.
1006
1125
  */
1007
- deployerAddress: string;
1126
+ address: string;
1008
1127
  /**
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.
1128
+ * The contract name.
1010
1129
  */
1011
- deployerContractAddress?: string;
1012
- };
1013
-
1014
- type ImageAsset = {
1130
+ name: string;
1015
1131
  /**
1016
- * INPUT ONLY
1132
+ * The contract symbol.
1017
1133
  */
1018
- assetId?: string;
1134
+ symbol: string;
1019
1135
  /**
1020
- * OUTPUT ONLY
1136
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1021
1137
  */
1022
- imageUri?: string;
1138
+ decimals: number;
1139
+ /**
1140
+ * The logo uri for the address.
1141
+ */
1142
+ logoUri?: string;
1143
+ ercType: Erc20Token.ercType;
1144
+ /**
1145
+ * The token price, if available.
1146
+ */
1147
+ price?: Money;
1023
1148
  };
1024
-
1025
- declare enum ResourceLinkType {
1026
- BLOG = "Blog",
1027
- COIN_GECKO = "CoinGecko",
1028
- COIN_MARKET_CAP = "CoinMarketCap",
1029
- DISCORD = "Discord",
1030
- DOCUMENTATION = "Documentation",
1031
- FACEBOOK = "Facebook",
1032
- GITHUB = "Github",
1033
- INSTAGRAM = "Instagram",
1034
- LINKED_IN = "LinkedIn",
1035
- MEDIUM = "Medium",
1036
- REDDIT = "Reddit",
1037
- SUPPORT = "Support",
1038
- TELEGRAM = "Telegram",
1039
- TIK_TOK = "TikTok",
1040
- TWITTER = "Twitter",
1041
- WEBSITE = "Website",
1042
- WHITEPAPER = "Whitepaper",
1043
- YOUTUBE = "Youtube"
1149
+ declare namespace Erc20Token {
1150
+ enum ercType {
1151
+ ERC_20 = "ERC-20"
1152
+ }
1044
1153
  }
1045
1154
 
1046
- type ResourceLink = {
1047
- type: ResourceLinkType;
1048
- url: string;
1155
+ type Erc20TransferDetails = {
1156
+ from: RichAddress;
1157
+ to: RichAddress;
1158
+ logIndex: number;
1159
+ value: string;
1160
+ erc20Token: Erc20Token;
1049
1161
  };
1050
1162
 
1051
- type Erc1155Contract = {
1052
- /**
1053
- * The contract name.
1054
- */
1055
- name?: string;
1056
- description?: string;
1057
- officialSite?: string;
1058
- email?: string;
1059
- logoAsset?: ImageAsset;
1060
- bannerAsset?: ImageAsset;
1061
- color?: string;
1062
- coingeckoCoinId?: string;
1063
- resourceLinks?: Array<ResourceLink>;
1064
- tags?: Array<string>;
1163
+ type Erc721Token = {
1065
1164
  /**
1066
1165
  * A wallet or contract address in mixed-case checksum encoding.
1067
1166
  */
1068
1167
  address: string;
1069
- deploymentDetails: ContractDeploymentDetails;
1070
- ercType: Erc1155Contract.ercType;
1168
+ /**
1169
+ * The contract name.
1170
+ */
1171
+ name: string;
1071
1172
  /**
1072
1173
  * The contract symbol.
1073
1174
  */
1074
- symbol?: string;
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;
1075
1184
  };
1076
- declare namespace Erc1155Contract {
1185
+ declare namespace Erc721Token {
1077
1186
  enum ercType {
1078
- ERC_1155 = "ERC-1155"
1187
+ ERC_721 = "ERC-721"
1079
1188
  }
1080
1189
  }
1081
1190
 
1082
- type Erc20Contract = {
1191
+ type Erc721TransferDetails = {
1192
+ from: RichAddress;
1193
+ to: RichAddress;
1194
+ logIndex: number;
1195
+ erc721Token: Erc721Token;
1196
+ };
1197
+
1198
+ /**
1199
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
+ */
1201
+ declare enum TransactionMethodType {
1202
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1203
+ CONTRACT_CALL = "CONTRACT_CALL",
1204
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1205
+ }
1206
+
1207
+ type Method = {
1208
+ callType: TransactionMethodType;
1083
1209
  /**
1084
- * The contract name.
1210
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1085
1211
  */
1086
- name?: string;
1087
- description?: string;
1088
- officialSite?: string;
1089
- email?: string;
1090
- logoAsset?: ImageAsset;
1091
- bannerAsset?: ImageAsset;
1092
- color?: string;
1093
- coingeckoCoinId?: string;
1094
- resourceLinks?: Array<ResourceLink>;
1095
- tags?: Array<string>;
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;
1217
+ };
1218
+
1219
+ type FullNativeTransactionDetails = {
1220
+ /**
1221
+ * The block number on the chain.
1222
+ */
1223
+ blockNumber: string;
1224
+ /**
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.
1246
+ */
1247
+ txType: number;
1248
+ /**
1249
+ * The gas limit set for the transaction.
1250
+ */
1251
+ gasLimit: string;
1252
+ /**
1253
+ * The amount of gas used.
1254
+ */
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;
1271
+ input: string;
1272
+ baseFeePerGas: string;
1273
+ maxFeePerGas?: string;
1274
+ maxPriorityFeePerGas?: string;
1110
1275
  };
1111
- declare namespace Erc20Contract {
1112
- enum ercType {
1113
- ERC_20 = "ERC-20"
1114
- }
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"
1115
1285
  }
1116
1286
 
1117
- type Erc721Contract = {
1287
+ type InternalTransactionDetails = {
1288
+ from: RichAddress;
1289
+ to: RichAddress;
1290
+ internalTxType: InternalTransactionOpCall;
1291
+ value: string;
1118
1292
  /**
1119
- * The contract name.
1293
+ * True if the internal transaction was reverted.
1120
1294
  */
1121
- name?: string;
1122
- description?: string;
1123
- officialSite?: string;
1124
- email?: string;
1125
- logoAsset?: ImageAsset;
1126
- bannerAsset?: ImageAsset;
1127
- color?: string;
1128
- coingeckoCoinId?: 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
- coingeckoCoinId?: string;
1160
- resourceLinks?: Array<ResourceLink>;
1161
- tags?: Array<string>;
1316
+ erc20Transfers?: Array<Erc20TransferDetails>;
1162
1317
  /**
1163
- * A wallet or contract address in mixed-case checksum encoding.
1318
+ * The list of ERC-721 transfers.
1164
1319
  */
1165
- address: string;
1166
- deploymentDetails: ContractDeploymentDetails;
1167
- 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;
1168
1331
  };
1169
- declare namespace UnknownContract {
1170
- enum ercType {
1171
- UNKNOWN = "UNKNOWN"
1172
- }
1173
- }
1174
1332
 
1175
1333
  type ListContractsResponse = {
1176
1334
  /**
1177
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.
1178
1336
  */
1179
1337
  nextPageToken?: string;
1180
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1338
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1181
1339
  };
1182
1340
 
1183
1341
  type Erc1155Transfer = {
@@ -1407,7 +1565,7 @@ type ListTransfersResponse = {
1407
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.
1408
1566
  */
1409
1567
  nextPageToken?: string;
1410
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1411
1569
  };
1412
1570
 
1413
1571
  declare enum SortOrder {
@@ -1431,7 +1589,7 @@ declare class EvmTransactionsService {
1431
1589
  */
1432
1590
  getDeploymentTransaction({ chainId, address, currency, }: {
1433
1591
  /**
1434
- * 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.
1435
1593
  */
1436
1594
  chainId: string;
1437
1595
  /**
@@ -1449,23 +1607,23 @@ declare class EvmTransactionsService {
1449
1607
  * @returns ListContractsResponse
1450
1608
  * @throws ApiError
1451
1609
  */
1452
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1610
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1453
1611
  /**
1454
- * 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.
1455
1613
  */
1456
1614
  chainId: string;
1457
1615
  /**
1458
1616
  * A wallet address.
1459
1617
  */
1460
1618
  address: string;
1461
- /**
1462
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1463
- */
1464
- pageSize?: number;
1465
1619
  /**
1466
1620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1467
1621
  */
1468
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;
1469
1627
  }): CancelablePromise<ListContractsResponse>;
1470
1628
  /**
1471
1629
  * List ERC transfers
@@ -1473,25 +1631,31 @@ declare class EvmTransactionsService {
1473
1631
  * @returns ListTransfersResponse
1474
1632
  * @throws ApiError
1475
1633
  */
1476
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1477
1635
  /**
1478
- * 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.
1479
1637
  */
1480
1638
  chainId: string;
1481
1639
  /**
1482
1640
  * A wallet address.
1483
1641
  */
1484
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
+ */
1485
1646
  startBlock?: number;
1486
- endBlock?: number;
1487
1647
  /**
1488
- * 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.
1489
1649
  */
1490
- pageSize?: number;
1650
+ endBlock?: number;
1491
1651
  /**
1492
1652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1493
1653
  */
1494
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;
1495
1659
  }): CancelablePromise<ListTransfersResponse>;
1496
1660
  /**
1497
1661
  * List transactions
@@ -1501,24 +1665,30 @@ declare class EvmTransactionsService {
1501
1665
  * @returns ListTransactionDetailsResponse
1502
1666
  * @throws ApiError
1503
1667
  */
1504
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1668
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1505
1669
  /**
1506
- * 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.
1507
1671
  */
1508
1672
  chainId: string;
1509
1673
  /**
1510
1674
  * A wallet address.
1511
1675
  */
1512
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;
1513
1681
  /**
1514
1682
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1515
1683
  */
1516
1684
  pageSize?: number;
1517
1685
  /**
1518
- * 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.
1519
1687
  */
1520
- pageToken?: string;
1521
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
+ */
1522
1692
  endBlock?: number;
1523
1693
  /**
1524
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.
@@ -1531,25 +1701,31 @@ declare class EvmTransactionsService {
1531
1701
  * @returns ListNativeTransactionsResponse
1532
1702
  * @throws ApiError
1533
1703
  */
1534
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1704
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1535
1705
  /**
1536
- * 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.
1537
1707
  */
1538
1708
  chainId: string;
1539
1709
  /**
1540
1710
  * A wallet address.
1541
1711
  */
1542
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
+ */
1543
1716
  startBlock?: number;
1544
- endBlock?: number;
1545
1717
  /**
1546
- * 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.
1547
1719
  */
1548
- pageSize?: number;
1720
+ endBlock?: number;
1549
1721
  /**
1550
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1551
1723
  */
1552
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;
1553
1729
  }): CancelablePromise<ListNativeTransactionsResponse>;
1554
1730
  /**
1555
1731
  * List ERC-20 transfers
@@ -1557,25 +1733,31 @@ declare class EvmTransactionsService {
1557
1733
  * @returns ListErc20TransactionsResponse
1558
1734
  * @throws ApiError
1559
1735
  */
1560
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1561
1737
  /**
1562
- * 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.
1563
1739
  */
1564
1740
  chainId: string;
1565
1741
  /**
1566
1742
  * A wallet address.
1567
1743
  */
1568
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
+ */
1569
1748
  startBlock?: number;
1570
- endBlock?: number;
1571
1749
  /**
1572
- * 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.
1573
1751
  */
1574
- pageSize?: number;
1752
+ endBlock?: number;
1575
1753
  /**
1576
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1577
1755
  */
1578
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;
1579
1761
  }): CancelablePromise<ListErc20TransactionsResponse>;
1580
1762
  /**
1581
1763
  * List ERC-721 transfers
@@ -1583,25 +1765,31 @@ declare class EvmTransactionsService {
1583
1765
  * @returns ListErc721TransactionsResponse
1584
1766
  * @throws ApiError
1585
1767
  */
1586
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1587
1769
  /**
1588
- * 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.
1589
1771
  */
1590
1772
  chainId: string;
1591
1773
  /**
1592
1774
  * A wallet address.
1593
1775
  */
1594
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
+ */
1595
1780
  startBlock?: number;
1596
- endBlock?: number;
1597
1781
  /**
1598
- * 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.
1599
1783
  */
1600
- pageSize?: number;
1784
+ endBlock?: number;
1601
1785
  /**
1602
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1603
1787
  */
1604
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;
1605
1793
  }): CancelablePromise<ListErc721TransactionsResponse>;
1606
1794
  /**
1607
1795
  * List ERC-1155 transfers
@@ -1609,25 +1797,31 @@ declare class EvmTransactionsService {
1609
1797
  * @returns ListErc1155TransactionsResponse
1610
1798
  * @throws ApiError
1611
1799
  */
1612
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1800
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1613
1801
  /**
1614
- * 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.
1615
1803
  */
1616
1804
  chainId: string;
1617
1805
  /**
1618
1806
  * A wallet address.
1619
1807
  */
1620
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
+ */
1621
1812
  startBlock?: number;
1622
- endBlock?: number;
1623
1813
  /**
1624
- * 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.
1625
1815
  */
1626
- pageSize?: number;
1816
+ endBlock?: number;
1627
1817
  /**
1628
1818
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1629
1819
  */
1630
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;
1631
1825
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1632
1826
  /**
1633
1827
  * List internal transactions
@@ -1637,25 +1831,31 @@ declare class EvmTransactionsService {
1637
1831
  * @returns ListInternalTransactionsResponse
1638
1832
  * @throws ApiError
1639
1833
  */
1640
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1834
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1641
1835
  /**
1642
- * 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.
1643
1837
  */
1644
1838
  chainId: string;
1645
1839
  /**
1646
1840
  * A wallet address.
1647
1841
  */
1648
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
+ */
1649
1846
  startBlock?: number;
1650
- endBlock?: number;
1651
1847
  /**
1652
- * 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.
1653
1849
  */
1654
- pageSize?: number;
1850
+ endBlock?: number;
1655
1851
  /**
1656
1852
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1657
1853
  */
1658
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;
1659
1859
  }): CancelablePromise<ListInternalTransactionsResponse>;
1660
1860
  /**
1661
1861
  * Get transaction
@@ -1665,7 +1865,7 @@ declare class EvmTransactionsService {
1665
1865
  */
1666
1866
  getTransaction({ chainId, txHash, }: {
1667
1867
  /**
1668
- * 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.
1669
1869
  */
1670
1870
  chainId: string;
1671
1871
  /**
@@ -1681,7 +1881,7 @@ declare class EvmTransactionsService {
1681
1881
  */
1682
1882
  getTransactionsForBlock({ chainId, blockId, }: {
1683
1883
  /**
1684
- * 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.
1685
1885
  */
1686
1886
  chainId: string;
1687
1887
  /**
@@ -1695,19 +1895,19 @@ declare class EvmTransactionsService {
1695
1895
  * @returns ListNativeTransactionsResponse
1696
1896
  * @throws ApiError
1697
1897
  */
1698
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1898
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1699
1899
  /**
1700
- * 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.
1701
1901
  */
1702
1902
  chainId: string;
1703
- /**
1704
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1705
- */
1706
- pageSize?: number;
1707
1903
  /**
1708
1904
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1709
1905
  */
1710
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;
1711
1911
  /**
1712
1912
  * A status filter for listed transactions.
1713
1913
  */
@@ -1731,13 +1931,94 @@ declare class HealthCheckService {
1731
1931
  }>;
1732
1932
  }
1733
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
+
1942
+ declare class NfTsService {
1943
+ readonly httpRequest: BaseHttpRequest;
1944
+ constructor(httpRequest: BaseHttpRequest);
1945
+ /**
1946
+ * Reindex NFT metadata
1947
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1948
+ * @returns any
1949
+ * @throws ApiError
1950
+ */
1951
+ reindexNft({ chainId, address, tokenId, }: {
1952
+ /**
1953
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1954
+ */
1955
+ chainId: string;
1956
+ /**
1957
+ * Contract address on the relevant chain.
1958
+ */
1959
+ address: string;
1960
+ /**
1961
+ * TokenId on the contract
1962
+ */
1963
+ tokenId: string;
1964
+ }): CancelablePromise<any>;
1965
+ /**
1966
+ * List tokens
1967
+ * Lists tokens for an NFT contract.
1968
+ * @returns ListNftTokens
1969
+ * @throws ApiError
1970
+ */
1971
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1972
+ /**
1973
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1974
+ */
1975
+ chainId: string;
1976
+ /**
1977
+ * Contract address on the relevant chain.
1978
+ */
1979
+ address: string;
1980
+ /**
1981
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1982
+ */
1983
+ pageToken?: string;
1984
+ /**
1985
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1986
+ */
1987
+ pageSize?: number;
1988
+ }): CancelablePromise<ListNftTokens>;
1989
+ /**
1990
+ * Get token details
1991
+ * Gets token details for a specific token of an NFT contract.
1992
+ * @returns any
1993
+ * @throws ApiError
1994
+ */
1995
+ getTokenDetails({ chainId, address, tokenId, }: {
1996
+ /**
1997
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1998
+ */
1999
+ chainId: string;
2000
+ /**
2001
+ * Contract address on the relevant chain.
2002
+ */
2003
+ address: string;
2004
+ /**
2005
+ * TokenId on the contract
2006
+ */
2007
+ tokenId: string;
2008
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2009
+ }
2010
+
1734
2011
  type EvmNetworkOptions = {
1735
2012
  addresses: Array<string>;
1736
2013
  includeChains: Array<string>;
1737
2014
  };
1738
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
1739
2020
  type CreateEvmTransactionExportRequest = {
1740
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
1741
2022
  firstDate: string;
1742
2023
  lastDate: string;
1743
2024
  /**
@@ -1750,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
1750
2031
  endDate: string;
1751
2032
  options: EvmNetworkOptions;
1752
2033
  };
1753
- declare namespace CreateEvmTransactionExportRequest {
1754
- enum type {
1755
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1756
- }
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"
1757
2039
  }
1758
2040
 
1759
2041
  type PrimaryNetworkOptions = {
1760
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
1761
2043
  cChainEvmAddresses?: Array<string>;
1762
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
1763
2045
  };
1764
2046
 
1765
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
1766
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
1767
2049
  firstDate: string;
1768
2050
  lastDate: string;
1769
2051
  /**
@@ -1775,12 +2057,7 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1775
2057
  */
1776
2058
  endDate: string;
1777
2059
  options: PrimaryNetworkOptions;
1778
- };
1779
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1780
- enum type {
1781
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1782
- }
1783
- }
2060
+ };
1784
2061
 
1785
2062
  declare enum OperationStatus {
1786
2063
  RUNNING = "RUNNING",
@@ -1790,8 +2067,10 @@ declare enum OperationStatus {
1790
2067
  }
1791
2068
 
1792
2069
  declare enum OperationType {
1793
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1794
- 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"
1795
2074
  }
1796
2075
 
1797
2076
  declare enum OperationStatusCode {
@@ -1825,17 +2104,6 @@ type OperationStatusResponse = {
1825
2104
  declare class OperationsService {
1826
2105
  readonly httpRequest: BaseHttpRequest;
1827
2106
  constructor(httpRequest: BaseHttpRequest);
1828
- /**
1829
- * Create transaction export operation
1830
- * Trigger a transaction export operation with given parameters.
1831
- *
1832
- * 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.
1833
- * @returns OperationStatusResponse
1834
- * @throws ApiError
1835
- */
1836
- postTransactionExportJob({ requestBody, }: {
1837
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1838
- }): CancelablePromise<OperationStatusResponse>;
1839
2107
  /**
1840
2108
  * Get operation
1841
2109
  * Gets operation details for the given operation id.
@@ -1848,6 +2116,17 @@ declare class OperationsService {
1848
2116
  */
1849
2117
  operationId: string;
1850
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>;
1851
2130
  }
1852
2131
 
1853
2132
  declare enum BlockchainIds {
@@ -1916,39 +2195,57 @@ type ListBlockchainsResponse = {
1916
2195
 
1917
2196
  type ActiveDelegatorDetails = {
1918
2197
  txHash: string;
2198
+ nodeId: string;
1919
2199
  rewardAddresses: Array<string>;
1920
2200
  amountDelegated: string;
1921
2201
  delegationFee: string;
1922
2202
  startTimestamp: number;
1923
2203
  endTimestamp: number;
1924
- delegationStatus: DelegationStatusType;
1925
2204
  estimatedGrossReward: string;
1926
2205
  estimatedNetReward: string;
2206
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1927
2207
  };
2208
+ declare namespace ActiveDelegatorDetails {
2209
+ enum delegationStatus {
2210
+ ACTIVE = "active"
2211
+ }
2212
+ }
1928
2213
 
1929
2214
  type CompletedDelegatorDetails = {
1930
2215
  txHash: string;
2216
+ nodeId: string;
1931
2217
  rewardAddresses: Array<string>;
1932
2218
  amountDelegated: string;
1933
2219
  delegationFee: string;
1934
2220
  startTimestamp: number;
1935
2221
  endTimestamp: number;
1936
- delegationStatus: DelegationStatusType;
1937
2222
  grossReward: string;
1938
2223
  netReward: string;
2224
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1939
2225
  };
2226
+ declare namespace CompletedDelegatorDetails {
2227
+ enum delegationStatus {
2228
+ COMPLETED = "completed"
2229
+ }
2230
+ }
1940
2231
 
1941
2232
  type PendingDelegatorDetails = {
1942
2233
  txHash: string;
2234
+ nodeId: string;
1943
2235
  rewardAddresses: Array<string>;
1944
2236
  amountDelegated: string;
1945
2237
  delegationFee: string;
1946
2238
  startTimestamp: number;
1947
2239
  endTimestamp: number;
1948
- delegationStatus: DelegationStatusType;
1949
2240
  estimatedGrossReward: string;
1950
2241
  estimatedNetReward: string;
2242
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1951
2243
  };
2244
+ declare namespace PendingDelegatorDetails {
2245
+ enum delegationStatus {
2246
+ PENDING = "pending"
2247
+ }
2248
+ }
1952
2249
 
1953
2250
  type ListDelegatorDetailsResponse = {
1954
2251
  /**
@@ -1965,13 +2262,44 @@ type BlockchainInfo = {
1965
2262
  blockchainId: string;
1966
2263
  };
1967
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
+
1968
2280
  type Subnet = {
1969
2281
  createBlockTimestamp: number;
1970
2282
  createBlockIndex: string;
1971
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
1972
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
1973
2293
  threshold: number;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
1974
2298
  locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
1975
2303
  blockchains: Array<BlockchainInfo>;
1976
2304
  };
1977
2305
 
@@ -1986,49 +2314,104 @@ type ListSubnetsResponse = {
1986
2314
  type Rewards = {
1987
2315
  validationRewardAmount: string;
1988
2316
  delegationRewardAmount: string;
2317
+ rewardAddresses?: Array<string>;
2318
+ rewardTxHash?: string;
1989
2319
  };
1990
2320
 
1991
- declare enum ValidationStatusType {
1992
- COMPLETED = "completed",
1993
- ACTIVE = "active",
1994
- PENDING = "pending"
1995
- }
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
+ };
1996
2339
 
1997
2340
  type ActiveValidatorDetails = {
2341
+ txHash: string;
1998
2342
  nodeId: string;
2343
+ subnetId: string;
1999
2344
  amountStaked: string;
2000
- delegationFee: string;
2345
+ delegationFee?: string;
2001
2346
  startTimestamp: number;
2002
2347
  endTimestamp: number;
2003
- validationStatus: ValidationStatusType;
2004
2348
  stakePercentage: number;
2005
2349
  delegatorCount: number;
2006
- amountDelegated: string;
2350
+ amountDelegated?: string;
2007
2351
  uptimePerformance: number;
2008
- avalancheGoVersion: string;
2009
- delegationCapacity: string;
2352
+ avalancheGoVersion?: string;
2353
+ delegationCapacity?: string;
2010
2354
  potentialRewards: Rewards;
2355
+ validationStatus: ActiveValidatorDetails.validationStatus;
2356
+ validatorHealth: ValidatorHealthDetails;
2011
2357
  };
2358
+ declare namespace ActiveValidatorDetails {
2359
+ enum validationStatus {
2360
+ ACTIVE = "active"
2361
+ }
2362
+ }
2012
2363
 
2013
2364
  type CompletedValidatorDetails = {
2365
+ txHash: string;
2014
2366
  nodeId: string;
2367
+ subnetId: string;
2015
2368
  amountStaked: string;
2016
- delegationFee: string;
2369
+ delegationFee?: string;
2017
2370
  startTimestamp: number;
2018
2371
  endTimestamp: number;
2019
- validationStatus: ValidationStatusType;
2020
2372
  delegatorCount: number;
2021
2373
  rewards: Rewards;
2374
+ validationStatus: CompletedValidatorDetails.validationStatus;
2022
2375
  };
2376
+ declare namespace CompletedValidatorDetails {
2377
+ enum validationStatus {
2378
+ COMPLETED = "completed"
2379
+ }
2380
+ }
2023
2381
 
2024
2382
  type PendingValidatorDetails = {
2383
+ txHash: string;
2025
2384
  nodeId: string;
2385
+ subnetId: string;
2026
2386
  amountStaked: string;
2027
- 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;
2028
2404
  startTimestamp: number;
2029
2405
  endTimestamp: number;
2030
- validationStatus: ValidationStatusType;
2406
+ removeTxHash: string;
2407
+ removeTimestamp: number;
2408
+ validationStatus: RemovedValidatorDetails.validationStatus;
2031
2409
  };
2410
+ declare namespace RemovedValidatorDetails {
2411
+ enum validationStatus {
2412
+ REMOVED = "removed"
2413
+ }
2414
+ }
2032
2415
 
2033
2416
  type ListValidatorDetailsResponse = {
2034
2417
  /**
@@ -2036,9 +2419,9 @@ type ListValidatorDetailsResponse = {
2036
2419
  */
2037
2420
  nextPageToken?: string;
2038
2421
  /**
2039
- * The list of Validator Details.
2422
+ * The list of validator Details.
2040
2423
  */
2041
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2424
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2042
2425
  };
2043
2426
 
2044
2427
  declare enum Network {
@@ -2046,6 +2429,37 @@ declare enum Network {
2046
2429
  FUJI = "fuji"
2047
2430
  }
2048
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
+
2049
2463
  type XChainAssetDetails = {
2050
2464
  /**
2051
2465
  * Unique ID for an asset.
@@ -2063,18 +2477,12 @@ type XChainAssetDetails = {
2063
2477
  * Denomination of this asset to represent fungibility.
2064
2478
  */
2065
2479
  denomination: number;
2066
- /**
2067
- * Type of asset like SECP256K1 or NFT.
2068
- */
2069
- type: string;
2480
+ type: PrimaryNetworkAssetType;
2070
2481
  /**
2071
2482
  * Timestamp in seconds this asset was created on.
2072
2483
  */
2073
2484
  createdAtTimestamp: number;
2074
- /**
2075
- * Cap represents if an asset can be or is fixed cap.
2076
- */
2077
- cap: string;
2485
+ cap: PrimaryNetworkAssetCap;
2078
2486
  };
2079
2487
 
2080
2488
  declare enum XChainId {
@@ -2140,19 +2548,19 @@ declare class PrimaryNetworkService {
2140
2548
  * @returns ListBlockchainsResponse
2141
2549
  * @throws ApiError
2142
2550
  */
2143
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2551
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2144
2552
  /**
2145
2553
  * Either mainnet or a testnet.
2146
2554
  */
2147
2555
  network: Network;
2148
- /**
2149
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2150
- */
2151
- pageSize?: number;
2152
2556
  /**
2153
2557
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2154
2558
  */
2155
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;
2156
2564
  /**
2157
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.
2158
2566
  */
@@ -2164,19 +2572,19 @@ declare class PrimaryNetworkService {
2164
2572
  * @returns ListSubnetsResponse
2165
2573
  * @throws ApiError
2166
2574
  */
2167
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2575
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2168
2576
  /**
2169
2577
  * Either mainnet or a testnet.
2170
2578
  */
2171
2579
  network: Network;
2172
- /**
2173
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2174
- */
2175
- pageSize?: number;
2176
2580
  /**
2177
2581
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2178
2582
  */
2179
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;
2180
2588
  /**
2181
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.
2182
2590
  */
@@ -2188,23 +2596,29 @@ declare class PrimaryNetworkService {
2188
2596
  * @returns ListValidatorDetailsResponse
2189
2597
  * @throws ApiError
2190
2598
  */
2191
- 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, }: {
2192
2600
  /**
2193
2601
  * Either mainnet or a testnet.
2194
2602
  */
2195
2603
  network: Network;
2196
- /**
2197
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2198
- */
2199
- pageSize?: number;
2200
2604
  /**
2201
2605
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2202
2606
  */
2203
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;
2204
2612
  /**
2205
2613
  * A comma separated list of node ids to filter by.
2206
2614
  */
2207
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;
2208
2622
  /**
2209
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.
2210
2624
  */
@@ -2214,9 +2628,41 @@ declare class PrimaryNetworkService {
2214
2628
  */
2215
2629
  validationStatus?: ValidationStatusType;
2216
2630
  /**
2217
- * 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.
2218
2648
  */
2219
- 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;
2220
2666
  }): CancelablePromise<ListValidatorDetailsResponse>;
2221
2667
  /**
2222
2668
  * Get single validator details
@@ -2224,7 +2670,7 @@ declare class PrimaryNetworkService {
2224
2670
  * @returns ListValidatorDetailsResponse
2225
2671
  * @throws ApiError
2226
2672
  */
2227
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2673
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2228
2674
  /**
2229
2675
  * Either mainnet or a testnet.
2230
2676
  */
@@ -2233,22 +2679,22 @@ declare class PrimaryNetworkService {
2233
2679
  * A primary network (P or X chain) nodeId.
2234
2680
  */
2235
2681
  nodeId: string;
2236
- /**
2237
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2238
- */
2239
- pageSize?: number;
2240
2682
  /**
2241
2683
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2242
2684
  */
2243
2685
  pageToken?: string;
2244
2686
  /**
2245
- * 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.
2246
2688
  */
2247
- sortOrder?: SortOrder;
2689
+ pageSize?: number;
2248
2690
  /**
2249
2691
  * Validation status of the node.
2250
2692
  */
2251
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;
2252
2698
  }): CancelablePromise<ListValidatorDetailsResponse>;
2253
2699
  /**
2254
2700
  * List delegators
@@ -2256,23 +2702,23 @@ declare class PrimaryNetworkService {
2256
2702
  * @returns ListDelegatorDetailsResponse
2257
2703
  * @throws ApiError
2258
2704
  */
2259
- listDelegators({ network, nodeId, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2705
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2260
2706
  /**
2261
2707
  * Either mainnet or a testnet.
2262
2708
  */
2263
2709
  network: Network;
2264
2710
  /**
2265
- * A primary network (P or X chain) nodeId.
2711
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2266
2712
  */
2267
- nodeId: string;
2713
+ pageToken?: string;
2268
2714
  /**
2269
2715
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2270
2716
  */
2271
2717
  pageSize?: number;
2272
2718
  /**
2273
- * 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.
2274
2720
  */
2275
- pageToken?: string;
2721
+ rewardAddresses?: string;
2276
2722
  /**
2277
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.
2278
2724
  */
@@ -2281,10 +2727,6 @@ declare class PrimaryNetworkService {
2281
2727
  * Delegation status of the node.
2282
2728
  */
2283
2729
  delegationStatus?: DelegationStatusType;
2284
- /**
2285
- * A comma separated list of reward addresses to filter by.
2286
- */
2287
- rewardAddresses?: string;
2288
2730
  /**
2289
2731
  * A comma separated list of node ids to filter by.
2290
2732
  */
@@ -2320,10 +2762,7 @@ type CChainSharedAssetBalance = {
2320
2762
  * Denomination of this asset to represent fungibility.
2321
2763
  */
2322
2764
  denomination: number;
2323
- /**
2324
- * Type of asset like SECP256K1 or NFT.
2325
- */
2326
- type: string;
2765
+ type: PrimaryNetworkAssetType;
2327
2766
  /**
2328
2767
  * Amount of the asset.
2329
2768
  */
@@ -2358,49 +2797,89 @@ type ListCChainAtomicBalancesResponse = {
2358
2797
  chainInfo: PrimaryNetworkChainInfo;
2359
2798
  };
2360
2799
 
2361
- type PChainAsset = {
2800
+ type AggregatedAssetAmount = {
2801
+ /**
2802
+ * Unique ID for an asset.
2803
+ */
2362
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
+ */
2363
2821
  amount: string;
2822
+ utxoCount: number;
2364
2823
  };
2365
2824
 
2366
2825
  type PChainSharedAsset = {
2826
+ /**
2827
+ * Unique ID for an asset.
2828
+ */
2367
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
+ */
2368
2846
  amount: string;
2847
+ utxoCount: number;
2369
2848
  sharedWithChainId: string;
2370
2849
  status: string;
2371
2850
  };
2372
2851
 
2373
2852
  type PChainBalance = {
2374
2853
  /**
2375
- * 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.
2376
2855
  */
2377
- unlockedUnstaked: Array<PChainAsset>;
2856
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2378
2857
  /**
2379
- * 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.
2380
2859
  */
2381
- unlockedStaked: Array<PChainAsset>;
2860
+ unlockedStaked: Array<AggregatedAssetAmount>;
2382
2861
  /**
2383
- * 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.
2384
2863
  */
2385
- lockedPlatform: Array<PChainAsset>;
2864
+ lockedPlatform: Array<AggregatedAssetAmount>;
2386
2865
  /**
2387
- * 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.
2388
2867
  */
2389
- lockedStakeable: Array<PChainAsset>;
2868
+ lockedStakeable: Array<AggregatedAssetAmount>;
2390
2869
  /**
2391
- * 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.
2392
2871
  */
2393
- lockedStaked: Array<PChainAsset>;
2872
+ lockedStaked: Array<AggregatedAssetAmount>;
2394
2873
  /**
2395
- * 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.
2396
2875
  */
2397
- pendingStaked: Array<PChainAsset>;
2876
+ pendingStaked: Array<AggregatedAssetAmount>;
2398
2877
  /**
2399
- * 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.
2400
2879
  */
2401
2880
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2402
2881
  /**
2403
- * 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.
2404
2883
  */
2405
2884
  atomicMemoryLocked: Array<PChainSharedAsset>;
2406
2885
  };
@@ -2410,34 +2889,6 @@ type ListPChainBalancesResponse = {
2410
2889
  chainInfo: PrimaryNetworkChainInfo;
2411
2890
  };
2412
2891
 
2413
- type XChainAssetBalance = {
2414
- /**
2415
- * Unique ID for an asset.
2416
- */
2417
- assetId: string;
2418
- /**
2419
- * Name of this asset.
2420
- */
2421
- name: string;
2422
- /**
2423
- * Symbol for this asset (max 4 characters).
2424
- */
2425
- symbol: string;
2426
- /**
2427
- * Denomination of this asset to represent fungibility.
2428
- */
2429
- denomination: number;
2430
- /**
2431
- * Type of asset like SECP256K1 or NFT.
2432
- */
2433
- type: string;
2434
- /**
2435
- * Amount of the asset.
2436
- */
2437
- amount: string;
2438
- utxoCount: number;
2439
- };
2440
-
2441
2892
  type XChainSharedAssetBalance = {
2442
2893
  /**
2443
2894
  * Unique ID for an asset.
@@ -2455,10 +2906,7 @@ type XChainSharedAssetBalance = {
2455
2906
  * Denomination of this asset to represent fungibility.
2456
2907
  */
2457
2908
  denomination: number;
2458
- /**
2459
- * Type of asset like SECP256K1 or NFT.
2460
- */
2461
- type: string;
2909
+ type: PrimaryNetworkAssetType;
2462
2910
  /**
2463
2911
  * Amount of the asset.
2464
2912
  */
@@ -2471,11 +2919,11 @@ type XChainBalances = {
2471
2919
  /**
2472
2920
  * A list of objects containing X-chain Asset balance information.
2473
2921
  */
2474
- locked: Array<XChainAssetBalance>;
2922
+ locked: Array<AggregatedAssetAmount>;
2475
2923
  /**
2476
2924
  * A list of objects containing X-chain Asset balance information.
2477
2925
  */
2478
- unlocked: Array<XChainAssetBalance>;
2926
+ unlocked: Array<AggregatedAssetAmount>;
2479
2927
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2480
2928
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2481
2929
  };
@@ -2533,6 +2981,7 @@ type GetPrimaryNetworkBlockResponse = {
2533
2981
  txCount: number;
2534
2982
  transactions: Array<string>;
2535
2983
  blockSizeBytes: number;
2984
+ currentSupply?: string;
2536
2985
  proposerDetails?: ProposerDetails;
2537
2986
  };
2538
2987
 
@@ -2545,6 +2994,7 @@ type PrimaryNetworkBlock = {
2545
2994
  txCount: number;
2546
2995
  transactions: Array<string>;
2547
2996
  blockSizeBytes: number;
2997
+ currentSupply?: string;
2548
2998
  proposerDetails?: ProposerDetails;
2549
2999
  };
2550
3000
 
@@ -2586,7 +3036,7 @@ declare class PrimaryNetworkBlocksService {
2586
3036
  * @returns ListPrimaryNetworkBlocksResponse
2587
3037
  * @throws ApiError
2588
3038
  */
2589
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3039
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2590
3040
  /**
2591
3041
  * A primary network blockchain id or alias.
2592
3042
  */
@@ -2599,14 +3049,14 @@ declare class PrimaryNetworkBlocksService {
2599
3049
  * A primary network (P or X chain) nodeId.
2600
3050
  */
2601
3051
  nodeId: string;
2602
- /**
2603
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2604
- */
2605
- pageSize?: number;
2606
3052
  /**
2607
3053
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2608
3054
  */
2609
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;
2610
3060
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2611
3061
  /**
2612
3062
  * List latest blocks
@@ -2614,7 +3064,7 @@ declare class PrimaryNetworkBlocksService {
2614
3064
  * @returns ListPrimaryNetworkBlocksResponse
2615
3065
  * @throws ApiError
2616
3066
  */
2617
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3067
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2618
3068
  /**
2619
3069
  * A primary network blockchain id or alias.
2620
3070
  */
@@ -2622,21 +3072,50 @@ declare class PrimaryNetworkBlocksService {
2622
3072
  /**
2623
3073
  * Either mainnet or a testnet.
2624
3074
  */
2625
- network: Network;
2626
- /**
2627
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2628
- */
2629
- pageSize?: number;
3075
+ network: Network;
2630
3076
  /**
2631
3077
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2632
3078
  */
2633
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;
2634
3084
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2635
3085
  }
2636
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
+
2637
3115
  declare enum RewardType {
2638
3116
  VALIDATOR = "VALIDATOR",
2639
- DELEGATOR = "DELEGATOR"
3117
+ DELEGATOR = "DELEGATOR",
3118
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2640
3119
  }
2641
3120
 
2642
3121
  type HistoricalReward = {
@@ -2652,10 +3131,7 @@ type HistoricalReward = {
2652
3131
  rewardType: RewardType;
2653
3132
  utxoId: string;
2654
3133
  outputIndex: number;
2655
- /**
2656
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2657
- */
2658
- reward: PChainAsset;
3134
+ reward: AssetWithPriceInfo;
2659
3135
  rewardTxHash: string;
2660
3136
  };
2661
3137
 
@@ -2667,6 +3143,30 @@ type ListHistoricalRewardsResponse = {
2667
3143
  historicalRewards: Array<HistoricalReward>;
2668
3144
  };
2669
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
+
2670
3170
  type PendingReward = {
2671
3171
  /**
2672
3172
  * An array of P-Chain wallet addresses.
@@ -2680,9 +3180,9 @@ type PendingReward = {
2680
3180
  rewardType: RewardType;
2681
3181
  progress: number;
2682
3182
  /**
2683
- * 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.
2684
3184
  */
2685
- estimatedReward: PChainAsset;
3185
+ estimatedReward: AssetAmount;
2686
3186
  };
2687
3187
 
2688
3188
  type ListPendingRewardsResponse = {
@@ -2702,23 +3202,27 @@ declare class PrimaryNetworkRewardsService {
2702
3202
  * @returns ListPendingRewardsResponse
2703
3203
  * @throws ApiError
2704
3204
  */
2705
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3205
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2706
3206
  /**
2707
3207
  * Either mainnet or a testnet.
2708
3208
  */
2709
3209
  network: Network;
2710
3210
  /**
2711
- * 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.
2712
3212
  */
2713
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;
2714
3218
  /**
2715
3219
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2716
3220
  */
2717
3221
  pageSize?: number;
2718
3222
  /**
2719
- * 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.
2720
3224
  */
2721
- pageToken?: string;
3225
+ nodeIds?: string;
2722
3226
  /**
2723
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.
2724
3228
  */
@@ -2730,64 +3234,45 @@ declare class PrimaryNetworkRewardsService {
2730
3234
  * @returns ListHistoricalRewardsResponse
2731
3235
  * @throws ApiError
2732
3236
  */
2733
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3237
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2734
3238
  /**
2735
3239
  * Either mainnet or a testnet.
2736
3240
  */
2737
3241
  network: Network;
2738
3242
  /**
2739
- * 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.
2740
3244
  */
2741
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;
2742
3250
  /**
2743
3251
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2744
3252
  */
2745
3253
  pageSize?: number;
2746
3254
  /**
2747
- * 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.
2748
3256
  */
2749
- pageToken?: string;
3257
+ nodeIds?: string;
2750
3258
  /**
2751
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.
2752
3260
  */
2753
3261
  sortOrder?: SortOrder;
3262
+ /**
3263
+ * The currency that return values should use. Defaults to USD.
3264
+ */
3265
+ currency?: CurrencyCode;
2754
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2755
3267
  }
2756
3268
 
2757
- type Asset = {
2758
- /**
2759
- * Unique ID for an asset.
2760
- */
2761
- assetId: string;
2762
- /**
2763
- * Name of this asset.
2764
- */
2765
- name: string;
2766
- /**
2767
- * Symbol for this asset (max 4 characters).
2768
- */
2769
- symbol: string;
2770
- /**
2771
- * Denomination of this asset to represent fungibility.
2772
- */
2773
- denomination: number;
2774
- /**
2775
- * Type of asset like SECP256K1 or NFT.
2776
- */
2777
- type: string;
2778
- /**
2779
- * Amount of the asset.
2780
- */
2781
- amount: string;
2782
- };
2783
-
2784
3269
  type UtxoCredential = {
2785
3270
  /**
2786
- * Signature provided to consume the output
3271
+ * Signature provided to consume the output.
2787
3272
  */
2788
3273
  signature?: string;
2789
3274
  /**
2790
- * Public key associated with the signature
3275
+ * Public key associated with the signature.
2791
3276
  */
2792
3277
  publicKey?: string;
2793
3278
  };
@@ -2798,9 +3283,9 @@ type EVMInput = {
2798
3283
  */
2799
3284
  fromAddress: string;
2800
3285
  /**
2801
- * Asset details for the asset being transferred.
3286
+ * AssetAmount details for the asset being transferred.
2802
3287
  */
2803
- asset: Asset;
3288
+ asset: AssetAmount;
2804
3289
  /**
2805
3290
  * Credentials that signed this transaction.
2806
3291
  */
@@ -2809,66 +3294,66 @@ type EVMInput = {
2809
3294
 
2810
3295
  type Utxo = {
2811
3296
  /**
2812
- * UTXO ID for this output.
3297
+ * Addresses that are eligible to sign the consumption of this output.
2813
3298
  */
2814
- utxoId: string;
2815
- asset: Asset;
3299
+ addresses: Array<string>;
3300
+ asset: AssetAmount;
2816
3301
  /**
2817
- * Type of output.
3302
+ * Blockchain ID on which this output is consumed on.
2818
3303
  */
2819
- utxoType: string;
3304
+ consumedOnChainId: string;
2820
3305
  /**
2821
- * Blockchain ID on which this output is created on.
3306
+ * Transaction ID that consumed this output.
2822
3307
  */
2823
- createdOnChainId: string;
3308
+ consumingTxHash?: string;
2824
3309
  /**
2825
- * Blockchain ID on which this output is consumed on.
3310
+ * Blockchain ID on which this output is created on.
2826
3311
  */
2827
- consumedOnChainId: string;
3312
+ createdOnChainId: string;
2828
3313
  /**
2829
- * Transaction ID that created this output.
3314
+ * UTXO ID for this output.
2830
3315
  */
2831
- creationTxHash: string;
3316
+ utxoId: string;
2832
3317
  /**
2833
- * Transaction ID that consumed this output.
3318
+ * Unix timestamp in seconds at which this output was consumed.
2834
3319
  */
2835
- consumingTxHash?: string;
3320
+ consumingTxTimestamp?: number;
2836
3321
  /**
2837
- * Timestamp in seconds this output is consumed.
3322
+ * Transaction ID that created this output.
2838
3323
  */
2839
- consumingTxTimestamp?: number;
3324
+ creationTxHash: string;
2840
3325
  /**
2841
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3326
+ * Credentials that signed the transaction to consume this utxo
2842
3327
  */
2843
- outputIndex: string;
3328
+ credentials?: Array<UtxoCredential>;
2844
3329
  /**
2845
- * Timestamp in seconds this outptut is created on.
3330
+ * Index representing the minting set for the NFT mint output.
2846
3331
  */
2847
- timestamp: number;
3332
+ groupId?: number;
2848
3333
  /**
2849
3334
  * Locktime in seconds after which this output can be consumed.
2850
3335
  */
2851
3336
  locktime: number;
2852
3337
  /**
2853
- * Minimum number of signatures required to consume this output.
3338
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2854
3339
  */
2855
- threshold: number;
3340
+ outputIndex: string;
2856
3341
  /**
2857
- * Addresses that are eligible to sign the consumption of this output.
3342
+ * Hex encoded data for NFT assets.
2858
3343
  */
2859
- addresses: Array<string>;
3344
+ payload?: string;
2860
3345
  /**
2861
- * Hex encoded data for NFT assets
3346
+ * Minimum number of signatures required to consume this output.
2862
3347
  */
2863
- payload?: string;
3348
+ threshold: number;
2864
3349
  /**
2865
- * Index representing the minting set for the NFT mint output
3350
+ * Unix timestamp in seconds at which this outptut was created.
2866
3351
  */
2867
- groupId?: number;
3352
+ timestamp: number;
2868
3353
  /**
2869
- * Credentials that signed the transaction to consume this utxo
3354
+ * Type of output.
2870
3355
  */
2871
- credentials?: Array<UtxoCredential>;
3356
+ utxoType: string;
2872
3357
  };
2873
3358
 
2874
3359
  type CChainExportTransaction = {
@@ -2895,11 +3380,11 @@ type CChainExportTransaction = {
2895
3380
  /**
2896
3381
  * Assets unlocked by inputs of this transaction.
2897
3382
  */
2898
- amountUnlocked: Array<Asset>;
3383
+ amountUnlocked: Array<AssetAmount>;
2899
3384
  /**
2900
3385
  * Assets created by outputs of this transaction.
2901
3386
  */
2902
- amountCreated: Array<Asset>;
3387
+ amountCreated: Array<AssetAmount>;
2903
3388
  /**
2904
3389
  * Source chain for an atomic transaction.
2905
3390
  */
@@ -2930,9 +3415,9 @@ type EVMOutput = {
2930
3415
  */
2931
3416
  toAddress: string;
2932
3417
  /**
2933
- * Asset details for the asset being transferred.
3418
+ * AssetAmount details for the asset being transferred.
2934
3419
  */
2935
- asset: Asset;
3420
+ asset: AssetAmount;
2936
3421
  };
2937
3422
 
2938
3423
  type CChainImportTransaction = {
@@ -2959,11 +3444,11 @@ type CChainImportTransaction = {
2959
3444
  /**
2960
3445
  * Assets unlocked by inputs of this transaction.
2961
3446
  */
2962
- amountUnlocked: Array<Asset>;
3447
+ amountUnlocked: Array<AssetAmount>;
2963
3448
  /**
2964
3449
  * Assets created by outputs of this transaction.
2965
3450
  */
2966
- amountCreated: Array<Asset>;
3451
+ amountCreated: Array<AssetAmount>;
2967
3452
  /**
2968
3453
  * Source chain for an atomic transaction.
2969
3454
  */
@@ -2999,16 +3484,20 @@ type ListCChainAtomicTransactionsResponse = {
2999
3484
 
3000
3485
  declare enum PChainTransactionType {
3001
3486
  ADD_VALIDATOR_TX = "AddValidatorTx",
3002
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3003
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3004
3487
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3005
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3006
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3488
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3007
3489
  CREATE_CHAIN_TX = "CreateChainTx",
3008
3490
  CREATE_SUBNET_TX = "CreateSubnetTx",
3009
3491
  IMPORT_TX = "ImportTx",
3010
3492
  EXPORT_TX = "ExportTx",
3011
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",
3012
3501
  UNKNOWN = "UNKNOWN"
3013
3502
  }
3014
3503
 
@@ -3019,29 +3508,48 @@ declare enum UtxoType {
3019
3508
 
3020
3509
  type PChainUtxo = {
3021
3510
  /**
3022
- * An array of P-Chain wallet addresses.
3511
+ * Addresses that are eligible to sign the consumption of this output.
3023
3512
  */
3024
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
+ */
3025
3530
  utxoId: string;
3026
- txHash: string;
3027
- outputIndex: number;
3531
+ /**
3532
+ * @deprecated
3533
+ */
3534
+ amount: string;
3535
+ /**
3536
+ * @deprecated
3537
+ */
3538
+ assetId: string;
3028
3539
  blockNumber: string;
3029
3540
  blockTimestamp: number;
3030
- consumingTxHash?: string;
3031
- consumingBlockTimestamp?: number;
3032
3541
  consumingBlockNumber?: string;
3033
- assetId: string;
3034
- utxoType: UtxoType;
3035
- amount: string;
3036
- stakeableLocktime?: number;
3542
+ consumingBlockTimestamp?: number;
3037
3543
  platformLocktime?: number;
3038
- threshold?: number;
3039
- createdOnChainId: string;
3040
- consumedOnChainId: string;
3544
+ outputIndex: number;
3545
+ rewardType?: RewardType;
3546
+ stakeableLocktime?: number;
3041
3547
  staked?: boolean;
3042
- utxoStartTimestamp?: number;
3548
+ threshold?: number;
3549
+ txHash: string;
3043
3550
  utxoEndTimestamp?: number;
3044
- rewardType?: RewardType;
3551
+ utxoStartTimestamp?: number;
3552
+ utxoType: UtxoType;
3045
3553
  };
3046
3554
 
3047
3555
  type PChainTransaction = {
@@ -3067,17 +3575,17 @@ type PChainTransaction = {
3067
3575
  */
3068
3576
  destinationChain?: string;
3069
3577
  /**
3070
- * 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.
3071
3579
  */
3072
- value: Array<PChainAsset>;
3580
+ value: Array<AssetAmount>;
3073
3581
  /**
3074
- * 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.
3075
3583
  */
3076
- amountBurned: Array<PChainAsset>;
3584
+ amountBurned: Array<AssetAmount>;
3077
3585
  /**
3078
- * 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
3079
3587
  */
3080
- amountStaked: Array<PChainAsset>;
3588
+ amountStaked: Array<AssetAmount>;
3081
3589
  /**
3082
3590
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3083
3591
  */
@@ -3103,11 +3611,16 @@ type PChainTransaction = {
3103
3611
  */
3104
3612
  estimatedReward?: string;
3105
3613
  rewardTxHash?: string;
3614
+ rewardAddresses?: Array<string>;
3106
3615
  memo?: string;
3107
3616
  /**
3108
3617
  * Present for RewardValidatorTx
3109
3618
  */
3110
3619
  stakingTxHash?: string;
3620
+ /**
3621
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3622
+ */
3623
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3111
3624
  };
3112
3625
 
3113
3626
  type ListPChainTransactionsResponse = {
@@ -3119,6 +3632,18 @@ type ListPChainTransactionsResponse = {
3119
3632
  chainInfo: PrimaryNetworkChainInfo;
3120
3633
  };
3121
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
+
3122
3647
  type XChainLinearTransaction = {
3123
3648
  /**
3124
3649
  * Unique ID for this transaction.
@@ -3132,10 +3657,7 @@ type XChainLinearTransaction = {
3132
3657
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3133
3658
  */
3134
3659
  timestamp: number;
3135
- /**
3136
- * Type of transaction.
3137
- */
3138
- txType: string;
3660
+ txType: XChainTransactionType;
3139
3661
  /**
3140
3662
  * Hex encoded memo bytes for this transaction.
3141
3663
  */
@@ -3145,11 +3667,11 @@ type XChainLinearTransaction = {
3145
3667
  /**
3146
3668
  * Assets unlocked by inputs of this transaction.
3147
3669
  */
3148
- amountUnlocked: Array<Asset>;
3670
+ amountUnlocked: Array<AssetAmount>;
3149
3671
  /**
3150
3672
  * Assets created by outputs of this transaction.
3151
3673
  */
3152
- amountCreated: Array<Asset>;
3674
+ amountCreated: Array<AssetAmount>;
3153
3675
  /**
3154
3676
  * Source chain for an atomic transaction.
3155
3677
  */
@@ -3159,7 +3681,7 @@ type XChainLinearTransaction = {
3159
3681
  */
3160
3682
  destinationChain?: string;
3161
3683
  /**
3162
- * Asset details of the asset created in CreateAssetTx
3684
+ * AssetAmount details of the asset created in CreateAssetTx
3163
3685
  */
3164
3686
  assetCreated?: XChainAssetDetails;
3165
3687
  /**
@@ -3209,10 +3731,7 @@ type XChainNonLinearTransaction = {
3209
3731
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3210
3732
  */
3211
3733
  timestamp: number;
3212
- /**
3213
- * Type of transaction.
3214
- */
3215
- txType: string;
3734
+ txType: XChainTransactionType;
3216
3735
  /**
3217
3736
  * Hex encoded memo bytes for this transaction.
3218
3737
  */
@@ -3222,11 +3741,11 @@ type XChainNonLinearTransaction = {
3222
3741
  /**
3223
3742
  * Assets unlocked by inputs of this transaction.
3224
3743
  */
3225
- amountUnlocked: Array<Asset>;
3744
+ amountUnlocked: Array<AssetAmount>;
3226
3745
  /**
3227
3746
  * Assets created by outputs of this transaction.
3228
3747
  */
3229
- amountCreated: Array<Asset>;
3748
+ amountCreated: Array<AssetAmount>;
3230
3749
  /**
3231
3750
  * Source chain for an atomic transaction.
3232
3751
  */
@@ -3236,7 +3755,7 @@ type XChainNonLinearTransaction = {
3236
3755
  */
3237
3756
  destinationChain?: string;
3238
3757
  /**
3239
- * Asset details of the asset created in CreateAssetTx
3758
+ * AssetAmount details of the asset created in CreateAssetTx
3240
3759
  */
3241
3760
  assetCreated?: XChainAssetDetails;
3242
3761
  /**
@@ -3270,18 +3789,21 @@ declare enum PChainId {
3270
3789
 
3271
3790
  declare enum PrimaryNetworkTxType {
3272
3791
  ADD_VALIDATOR_TX = "AddValidatorTx",
3273
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3274
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3275
3792
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3276
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3277
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3793
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3278
3794
  CREATE_CHAIN_TX = "CreateChainTx",
3279
3795
  CREATE_SUBNET_TX = "CreateSubnetTx",
3280
3796
  IMPORT_TX = "ImportTx",
3281
3797
  EXPORT_TX = "ExportTx",
3282
3798
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3283
- 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",
3284
3804
  BASE_TX = "BaseTx",
3805
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3806
+ UNKNOWN = "UNKNOWN",
3285
3807
  CREATE_ASSET_TX = "CreateAssetTx",
3286
3808
  OPERATION_TX = "OperationTx"
3287
3809
  }
@@ -3311,11 +3833,15 @@ declare class PrimaryNetworkTransactionsService {
3311
3833
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3312
3834
  /**
3313
3835
  * List latest transactions
3314
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3836
+ * Lists the latest transactions on one of the Primary Network chains.
3837
+ *
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.
3839
+ *
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.
3315
3841
  * @returns any
3316
3842
  * @throws ApiError
3317
3843
  */
3318
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3844
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3319
3845
  /**
3320
3846
  * A primary network blockchain id or alias.
3321
3847
  */
@@ -3340,14 +3866,14 @@ declare class PrimaryNetworkTransactionsService {
3340
3866
  * Query param for retrieving items before a specific timestamp.
3341
3867
  */
3342
3868
  endTimestamp?: number;
3343
- /**
3344
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3345
- */
3346
- pageSize?: number;
3347
3869
  /**
3348
3870
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3349
3871
  */
3350
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;
3351
3877
  /**
3352
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.
3353
3879
  */
@@ -3359,7 +3885,7 @@ declare class PrimaryNetworkTransactionsService {
3359
3885
  * @returns ListPChainTransactionsResponse
3360
3886
  * @throws ApiError
3361
3887
  */
3362
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3888
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3363
3889
  /**
3364
3890
  * A primary network blockchain id or alias.
3365
3891
  */
@@ -3384,14 +3910,14 @@ declare class PrimaryNetworkTransactionsService {
3384
3910
  * Query param for retrieving items before a specific timestamp.
3385
3911
  */
3386
3912
  endTimestamp?: number;
3387
- /**
3388
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3389
- */
3390
- pageSize?: number;
3391
3913
  /**
3392
3914
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3393
3915
  */
3394
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;
3395
3921
  /**
3396
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.
3397
3923
  */
@@ -3403,7 +3929,7 @@ declare class PrimaryNetworkTransactionsService {
3403
3929
  * @returns ListXChainTransactionsResponse
3404
3930
  * @throws ApiError
3405
3931
  */
3406
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3932
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3407
3933
  /**
3408
3934
  * A primary network blockchain id or alias.
3409
3935
  */
@@ -3428,14 +3954,14 @@ declare class PrimaryNetworkTransactionsService {
3428
3954
  * Query param for retrieving items before a specific timestamp.
3429
3955
  */
3430
3956
  endTimestamp?: number;
3431
- /**
3432
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3433
- */
3434
- pageSize?: number;
3435
3957
  /**
3436
3958
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3437
3959
  */
3438
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;
3439
3965
  }): CancelablePromise<ListXChainTransactionsResponse>;
3440
3966
  }
3441
3967
 
@@ -3466,7 +3992,7 @@ declare class PrimaryNetworkUtxOsService {
3466
3992
  * @returns any
3467
3993
  * @throws ApiError
3468
3994
  */
3469
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3995
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3470
3996
  /**
3471
3997
  * A primary network blockchain id or alias.
3472
3998
  */
@@ -3478,15 +4004,15 @@ declare class PrimaryNetworkUtxOsService {
3478
4004
  /**
3479
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".
3480
4006
  */
3481
- addresses?: string;
3482
- /**
3483
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3484
- */
3485
- pageSize?: number;
4007
+ addresses?: string;
3486
4008
  /**
3487
4009
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3488
4010
  */
3489
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;
3490
4016
  /**
3491
4017
  * Asset ID for any asset (only applicable X-Chain)
3492
4018
  */
@@ -3531,7 +4057,7 @@ declare class PrimaryNetworkVerticesService {
3531
4057
  * @returns ListXChainVerticesResponse
3532
4058
  * @throws ApiError
3533
4059
  */
3534
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4060
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3535
4061
  /**
3536
4062
  * A primary network blockchain id or alias.
3537
4063
  */
@@ -3540,14 +4066,14 @@ declare class PrimaryNetworkVerticesService {
3540
4066
  * Either mainnet or a testnet.
3541
4067
  */
3542
4068
  network: Network;
3543
- /**
3544
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3545
- */
3546
- pageSize?: number;
3547
4069
  /**
3548
4070
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3549
4071
  */
3550
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;
3551
4077
  }): CancelablePromise<ListXChainVerticesResponse>;
3552
4078
  /**
3553
4079
  * Get vertex
@@ -3575,7 +4101,7 @@ declare class PrimaryNetworkVerticesService {
3575
4101
  * @returns ListXChainVerticesResponse
3576
4102
  * @throws ApiError
3577
4103
  */
3578
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4104
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3579
4105
  /**
3580
4106
  * The height of a vertex.
3581
4107
  */
@@ -3588,28 +4114,489 @@ declare class PrimaryNetworkVerticesService {
3588
4114
  * Either mainnet or a testnet.
3589
4115
  */
3590
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;
3591
4121
  /**
3592
4122
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3593
4123
  */
3594
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, }: {
3595
4331
  /**
3596
4332
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3597
4333
  */
3598
4334
  pageToken?: string;
3599
4335
  /**
3600
- * 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.
3601
4337
  */
3602
- sortOrder?: SortOrder;
3603
- }): 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 address(es) to a webhook
4544
+ * Adding address(es) to a given 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 address(es) from a webhook
4557
+ * Removing address(es) from a given 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
+ * Get address(es) from a given webhook
4570
+ * Retrieving address(es) from a given 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>;
3604
4588
  }
3605
4589
 
3606
4590
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3607
4591
  declare class Glacier {
4592
+ readonly default: DefaultService;
3608
4593
  readonly evmBalances: EvmBalancesService;
3609
4594
  readonly evmBlocks: EvmBlocksService;
3610
4595
  readonly evmChains: EvmChainsService;
4596
+ readonly evmContracts: EvmContractsService;
3611
4597
  readonly evmTransactions: EvmTransactionsService;
3612
4598
  readonly healthCheck: HealthCheckService;
4599
+ readonly nfTs: NfTsService;
3613
4600
  readonly operations: OperationsService;
3614
4601
  readonly primaryNetwork: PrimaryNetworkService;
3615
4602
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3618,6 +4605,9 @@ declare class Glacier {
3618
4605
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3619
4606
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3620
4607
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4608
+ readonly rpc: RpcService;
4609
+ readonly teleporter: TeleporterService;
4610
+ readonly webhooks: WebhooksService;
3621
4611
  readonly request: BaseHttpRequest;
3622
4612
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3623
4613
  }
@@ -3639,4 +4629,11 @@ declare class ApiError extends Error {
3639
4629
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3640
4630
  }
3641
4631
 
3642
- 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, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, 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 };