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