@avalabs/glacier-sdk 2.8.0-canary.9d1171d.0 → 2.8.0-canary.a17552e.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 (127) hide show
  1. package/dist/index.d.ts +915 -443
  2. package/dist/index.js +431 -190
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
  9. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +1 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  19. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  20. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  21. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  22. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  23. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  24. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  25. package/esm/generated/models/EVMInput.d.ts +3 -3
  26. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  27. package/esm/generated/models/EVMOperationType.js +6 -0
  28. package/esm/generated/models/EVMOutput.d.ts +3 -3
  29. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  30. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  31. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  32. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  33. package/esm/generated/models/GlacierApiFeature.js +7 -0
  34. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  35. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  36. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  37. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  38. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  39. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  40. package/esm/generated/models/Method.d.ts +0 -3
  41. package/esm/generated/models/Money.d.ts +0 -3
  42. package/esm/generated/models/NextPageToken.d.ts +8 -0
  43. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  44. package/esm/generated/models/OperationType.d.ts +4 -2
  45. package/esm/generated/models/OperationType.js +3 -1
  46. package/esm/generated/models/PChainBalance.d.ts +15 -15
  47. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  48. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  49. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  50. package/esm/generated/models/PChainTransactionType.js +2 -0
  51. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  52. package/esm/generated/models/PendingReward.d.ts +3 -3
  53. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  54. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  55. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  56. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  57. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  58. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  59. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  60. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  61. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  62. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  63. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  64. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  65. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  66. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  67. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  68. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  69. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  70. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  71. package/esm/generated/models/SortByOption.d.ts +9 -0
  72. package/esm/generated/models/SortByOption.js +10 -0
  73. package/esm/generated/models/Subnet.d.ts +17 -0
  74. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  75. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  76. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  77. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  78. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  79. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  80. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  81. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  82. package/esm/generated/models/Utxo.d.ts +2 -2
  83. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  84. package/esm/generated/models/ValidationStatusType.js +1 -0
  85. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  86. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  87. package/esm/generated/models/XChainBalances.d.ts +3 -3
  88. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  89. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  90. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  91. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  92. package/esm/generated/services/DefaultService.d.ts +0 -53
  93. package/esm/generated/services/DefaultService.js +0 -42
  94. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  95. package/esm/generated/services/EvmBalancesService.js +10 -8
  96. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  97. package/esm/generated/services/EvmBlocksService.js +4 -4
  98. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  99. package/esm/generated/services/EvmChainsService.js +4 -2
  100. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  101. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  102. package/esm/generated/services/EvmTransactionsService.js +32 -32
  103. package/esm/generated/services/NfTsService.d.ts +8 -8
  104. package/esm/generated/services/NfTsService.js +4 -4
  105. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  106. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  107. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  108. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  109. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
  110. package/esm/generated/services/PrimaryNetworkService.js +20 -14
  111. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  112. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  113. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  114. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  115. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  116. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  117. package/esm/generated/services/RpcService.d.ts +25 -0
  118. package/esm/generated/services/RpcService.js +24 -0
  119. package/esm/generated/services/TeleporterService.d.ts +62 -0
  120. package/esm/generated/services/TeleporterService.js +41 -0
  121. package/esm/generated/services/WebhooksService.d.ts +143 -0
  122. package/esm/generated/services/WebhooksService.js +125 -0
  123. package/esm/index.d.ts +30 -2
  124. package/esm/index.js +14 -2
  125. package/package.json +3 -3
  126. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  127. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
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,60 +54,6 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- topic0?: string;
69
- };
70
-
71
- declare enum EventType {
72
- ADDRESS_ACTIVITY = "address_activity"
73
- }
74
-
75
- declare enum WebhookStatusType {
76
- ACTIVE = "active",
77
- INACTIVE = "inactive"
78
- }
79
-
80
- type WebhookResponse = {
81
- id: string;
82
- eventType: EventType;
83
- metadata: AddressActivityMetadata;
84
- url: string;
85
- chainId: string;
86
- status: WebhookStatusType;
87
- createdAt: number;
88
- };
89
-
90
- type ListWebhooksResponse = {
91
- /**
92
- * 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.
93
- */
94
- nextPageToken?: string;
95
- webhooks: Array<WebhookResponse>;
96
- };
97
-
98
- type RegisterWebhookRequest = {
99
- url: string;
100
- chainId: string;
101
- /**
102
- * The type of event for the webhook
103
- */
104
- eventType: EventType;
105
- metadata: AddressActivityMetadata;
106
- };
107
-
108
- type SharedSecretsResponse = {
109
- secret: string;
110
- };
111
-
112
- declare enum WebhookStatus {
113
- ACTIVE = "active",
114
- INACTIVE = "inactive"
115
- }
116
-
117
57
  declare class DefaultService {
118
58
  readonly httpRequest: BaseHttpRequest;
119
59
  constructor(httpRequest: BaseHttpRequest);
@@ -122,56 +62,11 @@ declare class DefaultService {
122
62
  * @throws ApiError
123
63
  */
124
64
  mediaControllerUploadImage(): CancelablePromise<any>;
125
- /**
126
- * Register a webhook
127
- * Registers a new webhook.
128
- * @returns WebhookResponse
129
- * @throws ApiError
130
- */
131
- registerWebhook({ requestBody, }: {
132
- requestBody: RegisterWebhookRequest;
133
- }): CancelablePromise<WebhookResponse>;
134
- /**
135
- * List webhooks
136
- * Lists webhooks for the user.
137
- * @returns ListWebhooksResponse
138
- * @throws ApiError
139
- */
140
- listWebhooks({ pageSize, pageToken, status, }: {
141
- /**
142
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
143
- */
144
- pageSize?: number;
145
- /**
146
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
- */
148
- pageToken?: string;
149
- /**
150
- * 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.
151
- */
152
- status?: WebhookStatus;
153
- }): CancelablePromise<ListWebhooksResponse>;
154
- /**
155
- * Deactivate a webhook
156
- * Deactivates a webhook by ID.
157
- * @returns WebhookResponse
158
- * @throws ApiError
159
- */
160
- deactivateWebhook({ id, }: {
161
- /**
162
- * The webhook identifier.
163
- */
164
- id: string;
165
- }): CancelablePromise<WebhookResponse>;
166
- /**
167
- * Generate a shared secret
168
- * Generates a new shared secret.
169
- * @returns SharedSecretsResponse
170
- * @throws ApiError
171
- */
172
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
173
65
  }
174
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
175
70
  declare enum CurrencyCode {
176
71
  USD = "usd",
177
72
  EUR = "eur",
@@ -190,9 +85,6 @@ declare enum CurrencyCode {
190
85
  }
191
86
 
192
87
  type Money = {
193
- /**
194
- * ISO 4217 currency code.
195
- */
196
88
  currencyCode: CurrencyCode;
197
89
  /**
198
90
  * Monetary value in base 10 decimals.
@@ -242,6 +134,9 @@ type GetNativeBalanceResponse = {
242
134
  nativeTokenBalance: NativeTokenBalance;
243
135
  };
244
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
245
140
  declare enum NftTokenMetadataStatus {
246
141
  UNKNOWN = "UNKNOWN",
247
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -257,9 +152,6 @@ declare enum NftTokenMetadataStatus {
257
152
  }
258
153
 
259
154
  type Erc1155TokenMetadata = {
260
- /**
261
- * The metadata indexing status of the nft.
262
- */
263
155
  indexStatus: NftTokenMetadataStatus;
264
156
  metadataLastUpdatedTimestamp?: number;
265
157
  name?: string;
@@ -298,9 +190,6 @@ declare namespace Erc1155TokenBalance {
298
190
  }
299
191
 
300
192
  type Erc721TokenMetadata = {
301
- /**
302
- * The metadata indexing status of the nft.
303
- */
304
193
  indexStatus: NftTokenMetadataStatus;
305
194
  metadataLastUpdatedTimestamp?: number;
306
195
  name?: string;
@@ -447,7 +336,7 @@ declare class EvmBalancesService {
447
336
  */
448
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
449
338
  /**
450
- * 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.
451
340
  */
452
341
  chainId: string;
453
342
  /**
@@ -473,9 +362,9 @@ declare class EvmBalancesService {
473
362
  * @returns ListErc20BalancesResponse
474
363
  * @throws ApiError
475
364
  */
476
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
477
366
  /**
478
- * 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.
479
368
  */
480
369
  chainId: string;
481
370
  /**
@@ -486,14 +375,18 @@ declare class EvmBalancesService {
486
375
  * The block number, if not defined the block number will be the latest block.
487
376
  */
488
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;
489
382
  /**
490
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
491
384
  */
492
385
  pageSize?: number;
493
386
  /**
494
- * 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.
495
388
  */
496
- pageToken?: string;
389
+ filterSpamTokens?: boolean;
497
390
  /**
498
391
  * A comma separated list of contract addresses to filter by.
499
392
  */
@@ -511,23 +404,23 @@ declare class EvmBalancesService {
511
404
  * @returns ListErc721BalancesResponse
512
405
  * @throws ApiError
513
406
  */
514
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
407
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
515
408
  /**
516
- * 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.
517
410
  */
518
411
  chainId: string;
519
412
  /**
520
413
  * A wallet address.
521
414
  */
522
415
  address: string;
523
- /**
524
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
525
- */
526
- pageSize?: number;
527
416
  /**
528
417
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
529
418
  */
530
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;
531
424
  /**
532
425
  * A contract addresses to filter by.
533
426
  */
@@ -543,9 +436,9 @@ declare class EvmBalancesService {
543
436
  * @returns ListErc1155BalancesResponse
544
437
  * @throws ApiError
545
438
  */
546
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
439
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
547
440
  /**
548
- * 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.
549
442
  */
550
443
  chainId: string;
551
444
  /**
@@ -556,14 +449,14 @@ declare class EvmBalancesService {
556
449
  * The block number, if not defined the block number will be the latest block.
557
450
  */
558
451
  blockNumber?: string;
559
- /**
560
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
561
- */
562
- pageSize?: number;
563
452
  /**
564
453
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
565
454
  */
566
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;
567
460
  /**
568
461
  * A contract addresses to filter by.
569
462
  */
@@ -577,23 +470,23 @@ declare class EvmBalancesService {
577
470
  * @returns ListCollectibleBalancesResponse
578
471
  * @throws ApiError
579
472
  */
580
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
473
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
581
474
  /**
582
- * 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.
583
476
  */
584
477
  chainId: string;
585
478
  /**
586
479
  * A wallet address.
587
480
  */
588
481
  address: string;
589
- /**
590
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
591
- */
592
- pageSize?: number;
593
482
  /**
594
483
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
595
484
  */
596
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;
597
490
  /**
598
491
  * A contract addresses to filter by.
599
492
  */
@@ -706,19 +599,19 @@ declare class EvmBlocksService {
706
599
  * @returns ListEvmBlocksResponse
707
600
  * @throws ApiError
708
601
  */
709
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
602
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
710
603
  /**
711
- * 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.
712
605
  */
713
606
  chainId: string;
714
- /**
715
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
716
- */
717
- pageSize?: number;
718
607
  /**
719
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
720
609
  */
721
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;
722
615
  }): CancelablePromise<ListEvmBlocksResponse>;
723
616
  /**
724
617
  * Get block
@@ -728,7 +621,7 @@ declare class EvmBlocksService {
728
621
  */
729
622
  getBlock({ chainId, blockId, }: {
730
623
  /**
731
- * 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.
732
625
  */
733
626
  chainId: string;
734
627
  /**
@@ -738,6 +631,9 @@ declare class EvmBlocksService {
738
631
  }): CancelablePromise<GetEvmBlockResponse>;
739
632
  }
740
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
+ */
741
637
  declare enum ChainStatus {
742
638
  OK = "OK",
743
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -775,9 +671,6 @@ declare enum VmName {
775
671
 
776
672
  type GetChainResponse = {
777
673
  chainId: string;
778
- /**
779
- * 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.
780
- */
781
674
  status: ChainStatus;
782
675
  chainName: string;
783
676
  description: string;
@@ -793,13 +686,16 @@ type GetChainResponse = {
793
686
  networkToken: NetworkToken;
794
687
  chainLogoUri?: string;
795
688
  private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
796
690
  };
797
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
798
697
  type ChainInfo = {
799
698
  chainId: string;
800
- /**
801
- * 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.
802
- */
803
699
  status: ChainStatus;
804
700
  chainName: string;
805
701
  description: string;
@@ -815,6 +711,7 @@ type ChainInfo = {
815
711
  networkToken: NetworkToken;
816
712
  chainLogoUri?: string;
817
713
  private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
818
715
  };
819
716
 
820
717
  type ListChainsResponse = {
@@ -835,11 +732,15 @@ declare class EvmChainsService {
835
732
  * @returns ListChainsResponse
836
733
  * @throws ApiError
837
734
  */
838
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
839
736
  /**
840
737
  * mainnet or testnet.
841
738
  */
842
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
843
744
  }): CancelablePromise<ListChainsResponse>;
844
745
  /**
845
746
  * Get chain information
@@ -849,7 +750,7 @@ declare class EvmChainsService {
849
750
  */
850
751
  getChainInfo({ chainId, }: {
851
752
  /**
852
- * 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.
853
754
  */
854
755
  chainId: string;
855
756
  }): CancelablePromise<GetChainResponse>;
@@ -1144,7 +1045,7 @@ declare class EvmContractsService {
1144
1045
  */
1145
1046
  getContractMetadata({ chainId, address, }: {
1146
1047
  /**
1147
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1048
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1148
1049
  */
1149
1050
  chainId: string;
1150
1051
  /**
@@ -1160,7 +1061,7 @@ declare class EvmContractsService {
1160
1061
  */
1161
1062
  updateContractInfo({ chainId, address, requestBody, }: {
1162
1063
  /**
1163
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1164
1065
  */
1165
1066
  chainId: string;
1166
1067
  /**
@@ -1294,6 +1195,9 @@ type Erc721TransferDetails = {
1294
1195
  erc721Token: Erc721Token;
1295
1196
  };
1296
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
+ */
1297
1201
  declare enum TransactionMethodType {
1298
1202
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1299
1203
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1301,9 +1205,6 @@ declare enum TransactionMethodType {
1301
1205
  }
1302
1206
 
1303
1207
  type Method = {
1304
- /**
1305
- * 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.
1306
- */
1307
1208
  callType: TransactionMethodType;
1308
1209
  /**
1309
1210
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1664,7 +1565,7 @@ type ListTransfersResponse = {
1664
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.
1665
1566
  */
1666
1567
  nextPageToken?: string;
1667
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1668
1569
  };
1669
1570
 
1670
1571
  declare enum SortOrder {
@@ -1688,7 +1589,7 @@ declare class EvmTransactionsService {
1688
1589
  */
1689
1590
  getDeploymentTransaction({ chainId, address, currency, }: {
1690
1591
  /**
1691
- * 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.
1692
1593
  */
1693
1594
  chainId: string;
1694
1595
  /**
@@ -1706,23 +1607,23 @@ declare class EvmTransactionsService {
1706
1607
  * @returns ListContractsResponse
1707
1608
  * @throws ApiError
1708
1609
  */
1709
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1610
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1710
1611
  /**
1711
- * 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.
1712
1613
  */
1713
1614
  chainId: string;
1714
1615
  /**
1715
1616
  * A wallet address.
1716
1617
  */
1717
1618
  address: string;
1718
- /**
1719
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1720
- */
1721
- pageSize?: number;
1722
1619
  /**
1723
1620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1724
1621
  */
1725
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;
1726
1627
  }): CancelablePromise<ListContractsResponse>;
1727
1628
  /**
1728
1629
  * List ERC transfers
@@ -1730,9 +1631,9 @@ declare class EvmTransactionsService {
1730
1631
  * @returns ListTransfersResponse
1731
1632
  * @throws ApiError
1732
1633
  */
1733
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1734
1635
  /**
1735
- * 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.
1736
1637
  */
1737
1638
  chainId: string;
1738
1639
  /**
@@ -1747,14 +1648,14 @@ declare class EvmTransactionsService {
1747
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.
1748
1649
  */
1749
1650
  endBlock?: number;
1750
- /**
1751
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1752
- */
1753
- pageSize?: number;
1754
1651
  /**
1755
1652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1756
1653
  */
1757
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;
1758
1659
  }): CancelablePromise<ListTransfersResponse>;
1759
1660
  /**
1760
1661
  * List transactions
@@ -1764,23 +1665,23 @@ declare class EvmTransactionsService {
1764
1665
  * @returns ListTransactionDetailsResponse
1765
1666
  * @throws ApiError
1766
1667
  */
1767
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1668
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1768
1669
  /**
1769
- * 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.
1770
1671
  */
1771
1672
  chainId: string;
1772
1673
  /**
1773
1674
  * A wallet address.
1774
1675
  */
1775
1676
  address: string;
1776
- /**
1777
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1778
- */
1779
- pageSize?: number;
1780
1677
  /**
1781
1678
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1782
1679
  */
1783
1680
  pageToken?: string;
1681
+ /**
1682
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1683
+ */
1684
+ pageSize?: number;
1784
1685
  /**
1785
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.
1786
1687
  */
@@ -1800,9 +1701,9 @@ declare class EvmTransactionsService {
1800
1701
  * @returns ListNativeTransactionsResponse
1801
1702
  * @throws ApiError
1802
1703
  */
1803
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1704
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1804
1705
  /**
1805
- * 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.
1806
1707
  */
1807
1708
  chainId: string;
1808
1709
  /**
@@ -1817,14 +1718,14 @@ declare class EvmTransactionsService {
1817
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.
1818
1719
  */
1819
1720
  endBlock?: number;
1820
- /**
1821
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1822
- */
1823
- pageSize?: number;
1824
1721
  /**
1825
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1826
1723
  */
1827
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;
1828
1729
  }): CancelablePromise<ListNativeTransactionsResponse>;
1829
1730
  /**
1830
1731
  * List ERC-20 transfers
@@ -1832,9 +1733,9 @@ declare class EvmTransactionsService {
1832
1733
  * @returns ListErc20TransactionsResponse
1833
1734
  * @throws ApiError
1834
1735
  */
1835
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1836
1737
  /**
1837
- * 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.
1838
1739
  */
1839
1740
  chainId: string;
1840
1741
  /**
@@ -1849,14 +1750,14 @@ declare class EvmTransactionsService {
1849
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.
1850
1751
  */
1851
1752
  endBlock?: number;
1852
- /**
1853
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1854
- */
1855
- pageSize?: number;
1856
1753
  /**
1857
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1858
1755
  */
1859
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;
1860
1761
  }): CancelablePromise<ListErc20TransactionsResponse>;
1861
1762
  /**
1862
1763
  * List ERC-721 transfers
@@ -1864,9 +1765,9 @@ declare class EvmTransactionsService {
1864
1765
  * @returns ListErc721TransactionsResponse
1865
1766
  * @throws ApiError
1866
1767
  */
1867
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1868
1769
  /**
1869
- * 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.
1870
1771
  */
1871
1772
  chainId: string;
1872
1773
  /**
@@ -1881,14 +1782,14 @@ declare class EvmTransactionsService {
1881
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.
1882
1783
  */
1883
1784
  endBlock?: number;
1884
- /**
1885
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1886
- */
1887
- pageSize?: number;
1888
1785
  /**
1889
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1890
1787
  */
1891
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;
1892
1793
  }): CancelablePromise<ListErc721TransactionsResponse>;
1893
1794
  /**
1894
1795
  * List ERC-1155 transfers
@@ -1896,9 +1797,9 @@ declare class EvmTransactionsService {
1896
1797
  * @returns ListErc1155TransactionsResponse
1897
1798
  * @throws ApiError
1898
1799
  */
1899
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1800
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1900
1801
  /**
1901
- * 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.
1902
1803
  */
1903
1804
  chainId: string;
1904
1805
  /**
@@ -1913,14 +1814,14 @@ declare class EvmTransactionsService {
1913
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.
1914
1815
  */
1915
1816
  endBlock?: number;
1916
- /**
1917
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1918
- */
1919
- pageSize?: number;
1920
1817
  /**
1921
1818
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1922
1819
  */
1923
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;
1924
1825
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1925
1826
  /**
1926
1827
  * List internal transactions
@@ -1930,9 +1831,9 @@ declare class EvmTransactionsService {
1930
1831
  * @returns ListInternalTransactionsResponse
1931
1832
  * @throws ApiError
1932
1833
  */
1933
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1834
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1934
1835
  /**
1935
- * 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.
1936
1837
  */
1937
1838
  chainId: string;
1938
1839
  /**
@@ -1947,14 +1848,14 @@ declare class EvmTransactionsService {
1947
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.
1948
1849
  */
1949
1850
  endBlock?: number;
1950
- /**
1951
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1952
- */
1953
- pageSize?: number;
1954
1851
  /**
1955
1852
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1956
1853
  */
1957
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;
1958
1859
  }): CancelablePromise<ListInternalTransactionsResponse>;
1959
1860
  /**
1960
1861
  * Get transaction
@@ -1964,7 +1865,7 @@ declare class EvmTransactionsService {
1964
1865
  */
1965
1866
  getTransaction({ chainId, txHash, }: {
1966
1867
  /**
1967
- * 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.
1968
1869
  */
1969
1870
  chainId: string;
1970
1871
  /**
@@ -1980,7 +1881,7 @@ declare class EvmTransactionsService {
1980
1881
  */
1981
1882
  getTransactionsForBlock({ chainId, blockId, }: {
1982
1883
  /**
1983
- * 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.
1984
1885
  */
1985
1886
  chainId: string;
1986
1887
  /**
@@ -1994,19 +1895,19 @@ declare class EvmTransactionsService {
1994
1895
  * @returns ListNativeTransactionsResponse
1995
1896
  * @throws ApiError
1996
1897
  */
1997
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1898
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1998
1899
  /**
1999
- * 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.
2000
1901
  */
2001
1902
  chainId: string;
2002
- /**
2003
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2004
- */
2005
- pageSize?: number;
2006
1903
  /**
2007
1904
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2008
1905
  */
2009
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;
2010
1911
  /**
2011
1912
  * A status filter for listed transactions.
2012
1913
  */
@@ -2035,7 +1936,7 @@ type ListNftTokens = {
2035
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.
2036
1937
  */
2037
1938
  nextPageToken?: string;
2038
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2039
1940
  };
2040
1941
 
2041
1942
  declare class NfTsService {
@@ -2049,7 +1950,7 @@ declare class NfTsService {
2049
1950
  */
2050
1951
  reindexNft({ chainId, address, tokenId, }: {
2051
1952
  /**
2052
- * 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.
2053
1954
  */
2054
1955
  chainId: string;
2055
1956
  /**
@@ -2067,23 +1968,23 @@ declare class NfTsService {
2067
1968
  * @returns ListNftTokens
2068
1969
  * @throws ApiError
2069
1970
  */
2070
- listTokens({ chainId, address, pageSize, pageToken, }: {
1971
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2071
1972
  /**
2072
- * 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.
2073
1974
  */
2074
1975
  chainId: string;
2075
1976
  /**
2076
1977
  * Contract address on the relevant chain.
2077
1978
  */
2078
1979
  address: string;
2079
- /**
2080
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2081
- */
2082
- pageSize?: number;
2083
1980
  /**
2084
1981
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
1982
  */
2086
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;
2087
1988
  }): CancelablePromise<ListNftTokens>;
2088
1989
  /**
2089
1990
  * Get token details
@@ -2093,7 +1994,7 @@ declare class NfTsService {
2093
1994
  */
2094
1995
  getTokenDetails({ chainId, address, tokenId, }: {
2095
1996
  /**
2096
- * 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.
2097
1998
  */
2098
1999
  chainId: string;
2099
2000
  /**
@@ -2112,8 +2013,12 @@ type EvmNetworkOptions = {
2112
2013
  includeChains: Array<string>;
2113
2014
  };
2114
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
2115
2020
  type CreateEvmTransactionExportRequest = {
2116
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
2117
2022
  firstDate: string;
2118
2023
  lastDate: string;
2119
2024
  /**
@@ -2126,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
2126
2031
  endDate: string;
2127
2032
  options: EvmNetworkOptions;
2128
2033
  };
2129
- declare namespace CreateEvmTransactionExportRequest {
2130
- enum type {
2131
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2132
- }
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"
2133
2039
  }
2134
2040
 
2135
2041
  type PrimaryNetworkOptions = {
2136
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
2137
2043
  cChainEvmAddresses?: Array<string>;
2138
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2139
2045
  };
2140
2046
 
2141
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
2142
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
2143
2049
  firstDate: string;
2144
2050
  lastDate: string;
2145
2051
  /**
@@ -2152,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2152
2058
  endDate: string;
2153
2059
  options: PrimaryNetworkOptions;
2154
2060
  };
2155
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2156
- enum type {
2157
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2158
- }
2159
- }
2160
2061
 
2161
2062
  declare enum OperationStatus {
2162
2063
  RUNNING = "RUNNING",
@@ -2166,8 +2067,10 @@ declare enum OperationStatus {
2166
2067
  }
2167
2068
 
2168
2069
  declare enum OperationType {
2169
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2170
- 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"
2171
2074
  }
2172
2075
 
2173
2076
  declare enum OperationStatusCode {
@@ -2359,14 +2262,45 @@ type BlockchainInfo = {
2359
2262
  blockchainId: string;
2360
2263
  };
2361
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
+
2362
2280
  type Subnet = {
2363
2281
  createBlockTimestamp: number;
2364
2282
  createBlockIndex: string;
2365
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2366
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2367
2293
  threshold: number;
2368
- locktime: number;
2369
- blockchains: Array<BlockchainInfo>;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2298
+ locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2303
+ blockchains: Array<BlockchainInfo>;
2370
2304
  };
2371
2305
 
2372
2306
  type ListSubnetsResponse = {
@@ -2461,6 +2395,24 @@ declare namespace PendingValidatorDetails {
2461
2395
  }
2462
2396
  }
2463
2397
 
2398
+ type RemovedValidatorDetails = {
2399
+ txHash: string;
2400
+ nodeId: string;
2401
+ subnetId: string;
2402
+ amountStaked: string;
2403
+ delegationFee?: string;
2404
+ startTimestamp: number;
2405
+ endTimestamp: number;
2406
+ removeTxHash: string;
2407
+ removeTimestamp: number;
2408
+ validationStatus: RemovedValidatorDetails.validationStatus;
2409
+ };
2410
+ declare namespace RemovedValidatorDetails {
2411
+ enum validationStatus {
2412
+ REMOVED = "removed"
2413
+ }
2414
+ }
2415
+
2464
2416
  type ListValidatorDetailsResponse = {
2465
2417
  /**
2466
2418
  * 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.
@@ -2469,7 +2421,7 @@ type ListValidatorDetailsResponse = {
2469
2421
  /**
2470
2422
  * The list of validator Details.
2471
2423
  */
2472
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2424
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2473
2425
  };
2474
2426
 
2475
2427
  declare enum Network {
@@ -2477,10 +2429,35 @@ declare enum Network {
2477
2429
  FUJI = "fuji"
2478
2430
  }
2479
2431
 
2432
+ declare enum SortByOption {
2433
+ BLOCK_INDEX = "blockIndex",
2434
+ DELEGATION_CAPACITY = "delegationCapacity",
2435
+ TIME_REMAINING = "timeRemaining",
2436
+ DELEGATION_FEE = "delegationFee",
2437
+ UPTIME_PERFORMANCE = "uptimePerformance"
2438
+ }
2439
+
2480
2440
  declare enum ValidationStatusType {
2481
2441
  COMPLETED = "completed",
2482
2442
  ACTIVE = "active",
2483
- PENDING = "pending"
2443
+ PENDING = "pending",
2444
+ REMOVED = "removed"
2445
+ }
2446
+
2447
+ /**
2448
+ * Cap represents if an asset is a variable or fixed cap asset.
2449
+ */
2450
+ declare enum PrimaryNetworkAssetCap {
2451
+ FIXED = "fixed",
2452
+ VARIABLE = "variable"
2453
+ }
2454
+
2455
+ /**
2456
+ * Type of asset like SECP256K1 or NFT.
2457
+ */
2458
+ declare enum PrimaryNetworkAssetType {
2459
+ SECP256K1 = "secp256k1",
2460
+ NFT = "nft"
2484
2461
  }
2485
2462
 
2486
2463
  type XChainAssetDetails = {
@@ -2500,18 +2477,12 @@ type XChainAssetDetails = {
2500
2477
  * Denomination of this asset to represent fungibility.
2501
2478
  */
2502
2479
  denomination: number;
2503
- /**
2504
- * Type of asset like SECP256K1 or NFT.
2505
- */
2506
- type: string;
2480
+ type: PrimaryNetworkAssetType;
2507
2481
  /**
2508
2482
  * Timestamp in seconds this asset was created on.
2509
2483
  */
2510
2484
  createdAtTimestamp: number;
2511
- /**
2512
- * Cap represents if an asset can be or is fixed cap.
2513
- */
2514
- cap: string;
2485
+ cap: PrimaryNetworkAssetCap;
2515
2486
  };
2516
2487
 
2517
2488
  declare enum XChainId {
@@ -2577,19 +2548,19 @@ declare class PrimaryNetworkService {
2577
2548
  * @returns ListBlockchainsResponse
2578
2549
  * @throws ApiError
2579
2550
  */
2580
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2551
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2581
2552
  /**
2582
2553
  * Either mainnet or a testnet.
2583
2554
  */
2584
2555
  network: Network;
2585
- /**
2586
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2587
- */
2588
- pageSize?: number;
2589
2556
  /**
2590
2557
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2591
2558
  */
2592
2559
  pageToken?: string;
2560
+ /**
2561
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2562
+ */
2563
+ pageSize?: number;
2593
2564
  /**
2594
2565
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2595
2566
  */
@@ -2601,19 +2572,19 @@ declare class PrimaryNetworkService {
2601
2572
  * @returns ListSubnetsResponse
2602
2573
  * @throws ApiError
2603
2574
  */
2604
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2575
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2605
2576
  /**
2606
2577
  * Either mainnet or a testnet.
2607
2578
  */
2608
2579
  network: Network;
2609
- /**
2610
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2611
- */
2612
- pageSize?: number;
2613
2580
  /**
2614
2581
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2615
2582
  */
2616
2583
  pageToken?: string;
2584
+ /**
2585
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2586
+ */
2587
+ pageSize?: number;
2617
2588
  /**
2618
2589
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2619
2590
  */
@@ -2625,23 +2596,29 @@ declare class PrimaryNetworkService {
2625
2596
  * @returns ListValidatorDetailsResponse
2626
2597
  * @throws ApiError
2627
2598
  */
2628
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2599
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2629
2600
  /**
2630
2601
  * Either mainnet or a testnet.
2631
2602
  */
2632
2603
  network: Network;
2633
- /**
2634
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2635
- */
2636
- pageSize?: number;
2637
2604
  /**
2638
2605
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2639
2606
  */
2640
2607
  pageToken?: string;
2608
+ /**
2609
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2610
+ */
2611
+ pageSize?: number;
2641
2612
  /**
2642
2613
  * A comma separated list of node ids to filter by.
2643
2614
  */
2644
2615
  nodeIds?: string;
2616
+ /**
2617
+ * Which property to sort by, in conjunction with sortOrder.
2618
+ *
2619
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2620
+ */
2621
+ sortBy?: SortByOption;
2645
2622
  /**
2646
2623
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2647
2624
  */
@@ -2653,31 +2630,39 @@ declare class PrimaryNetworkService {
2653
2630
  /**
2654
2631
  * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2655
2632
  */
2656
- minDelegationCapacity?: any;
2633
+ minDelegationCapacity?: string;
2657
2634
  /**
2658
2635
  * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2659
2636
  */
2660
- maxDelegationCapacity?: any;
2637
+ maxDelegationCapacity?: string;
2661
2638
  /**
2662
2639
  * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2640
  */
2664
- minTimeRemaining?: any;
2641
+ minTimeRemaining?: number;
2665
2642
  /**
2666
2643
  * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
2644
  */
2668
- maxTimeRemaining?: any;
2645
+ maxTimeRemaining?: number;
2669
2646
  /**
2670
- * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2647
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2671
2648
  */
2672
- minFeePercentage?: any;
2649
+ minFeePercentage?: number;
2673
2650
  /**
2674
- * 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.
2651
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
2675
2652
  */
2676
- maxFeePercentage?: any;
2653
+ maxFeePercentage?: number;
2654
+ /**
2655
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2656
+ */
2657
+ minUptimePerformance?: number;
2658
+ /**
2659
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2660
+ */
2661
+ maxUptimePerformance?: number;
2677
2662
  /**
2678
2663
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2664
  */
2680
- subnetId?: string;
2665
+ subnetId?: any;
2681
2666
  }): CancelablePromise<ListValidatorDetailsResponse>;
2682
2667
  /**
2683
2668
  * Get single validator details
@@ -2685,7 +2670,7 @@ declare class PrimaryNetworkService {
2685
2670
  * @returns ListValidatorDetailsResponse
2686
2671
  * @throws ApiError
2687
2672
  */
2688
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2673
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2689
2674
  /**
2690
2675
  * Either mainnet or a testnet.
2691
2676
  */
@@ -2694,22 +2679,22 @@ declare class PrimaryNetworkService {
2694
2679
  * A primary network (P or X chain) nodeId.
2695
2680
  */
2696
2681
  nodeId: string;
2697
- /**
2698
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2699
- */
2700
- pageSize?: number;
2701
2682
  /**
2702
2683
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2703
2684
  */
2704
2685
  pageToken?: string;
2705
2686
  /**
2706
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2687
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2707
2688
  */
2708
- sortOrder?: SortOrder;
2689
+ pageSize?: number;
2709
2690
  /**
2710
2691
  * Validation status of the node.
2711
2692
  */
2712
2693
  validationStatus?: ValidationStatusType;
2694
+ /**
2695
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2696
+ */
2697
+ sortOrder?: SortOrder;
2713
2698
  }): CancelablePromise<ListValidatorDetailsResponse>;
2714
2699
  /**
2715
2700
  * List delegators
@@ -2717,19 +2702,19 @@ declare class PrimaryNetworkService {
2717
2702
  * @returns ListDelegatorDetailsResponse
2718
2703
  * @throws ApiError
2719
2704
  */
2720
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2705
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2721
2706
  /**
2722
2707
  * Either mainnet or a testnet.
2723
2708
  */
2724
2709
  network: Network;
2725
- /**
2726
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2727
- */
2728
- pageSize?: number;
2729
2710
  /**
2730
2711
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2731
2712
  */
2732
2713
  pageToken?: string;
2714
+ /**
2715
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2716
+ */
2717
+ pageSize?: number;
2733
2718
  /**
2734
2719
  * A comma separated list of reward addresses to filter by.
2735
2720
  */
@@ -2777,10 +2762,7 @@ type CChainSharedAssetBalance = {
2777
2762
  * Denomination of this asset to represent fungibility.
2778
2763
  */
2779
2764
  denomination: number;
2780
- /**
2781
- * Type of asset like SECP256K1 or NFT.
2782
- */
2783
- type: string;
2765
+ type: PrimaryNetworkAssetType;
2784
2766
  /**
2785
2767
  * Amount of the asset.
2786
2768
  */
@@ -2815,7 +2797,7 @@ type ListCChainAtomicBalancesResponse = {
2815
2797
  chainInfo: PrimaryNetworkChainInfo;
2816
2798
  };
2817
2799
 
2818
- type Asset = {
2800
+ type AggregatedAssetAmount = {
2819
2801
  /**
2820
2802
  * Unique ID for an asset.
2821
2803
  */
@@ -2832,14 +2814,12 @@ type Asset = {
2832
2814
  * Denomination of this asset to represent fungibility.
2833
2815
  */
2834
2816
  denomination: number;
2835
- /**
2836
- * Type of asset like SECP256K1 or NFT.
2837
- */
2838
- type: string;
2817
+ type: PrimaryNetworkAssetType;
2839
2818
  /**
2840
2819
  * Amount of the asset.
2841
2820
  */
2842
2821
  amount: string;
2822
+ utxoCount: number;
2843
2823
  };
2844
2824
 
2845
2825
  type PChainSharedAsset = {
@@ -2859,49 +2839,47 @@ type PChainSharedAsset = {
2859
2839
  * Denomination of this asset to represent fungibility.
2860
2840
  */
2861
2841
  denomination: number;
2862
- /**
2863
- * Type of asset like SECP256K1 or NFT.
2864
- */
2865
- type: string;
2842
+ type: PrimaryNetworkAssetType;
2866
2843
  /**
2867
2844
  * Amount of the asset.
2868
2845
  */
2869
2846
  amount: string;
2847
+ utxoCount: number;
2870
2848
  sharedWithChainId: string;
2871
2849
  status: string;
2872
2850
  };
2873
2851
 
2874
2852
  type PChainBalance = {
2875
2853
  /**
2876
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2854
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2877
2855
  */
2878
- unlockedUnstaked: Array<Asset>;
2856
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2879
2857
  /**
2880
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2858
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2881
2859
  */
2882
- unlockedStaked: Array<Asset>;
2860
+ unlockedStaked: Array<AggregatedAssetAmount>;
2883
2861
  /**
2884
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2862
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2885
2863
  */
2886
- lockedPlatform: Array<Asset>;
2864
+ lockedPlatform: Array<AggregatedAssetAmount>;
2887
2865
  /**
2888
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2866
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2889
2867
  */
2890
- lockedStakeable: Array<Asset>;
2868
+ lockedStakeable: Array<AggregatedAssetAmount>;
2891
2869
  /**
2892
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2870
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2893
2871
  */
2894
- lockedStaked: Array<Asset>;
2872
+ lockedStaked: Array<AggregatedAssetAmount>;
2895
2873
  /**
2896
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2874
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2897
2875
  */
2898
- pendingStaked: Array<Asset>;
2876
+ pendingStaked: Array<AggregatedAssetAmount>;
2899
2877
  /**
2900
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2878
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2901
2879
  */
2902
2880
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2903
2881
  /**
2904
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2882
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2905
2883
  */
2906
2884
  atomicMemoryLocked: Array<PChainSharedAsset>;
2907
2885
  };
@@ -2911,34 +2889,6 @@ type ListPChainBalancesResponse = {
2911
2889
  chainInfo: PrimaryNetworkChainInfo;
2912
2890
  };
2913
2891
 
2914
- type XChainAssetBalance = {
2915
- /**
2916
- * Unique ID for an asset.
2917
- */
2918
- assetId: string;
2919
- /**
2920
- * Name of this asset.
2921
- */
2922
- name: string;
2923
- /**
2924
- * Symbol for this asset (max 4 characters).
2925
- */
2926
- symbol: string;
2927
- /**
2928
- * Denomination of this asset to represent fungibility.
2929
- */
2930
- denomination: number;
2931
- /**
2932
- * Type of asset like SECP256K1 or NFT.
2933
- */
2934
- type: string;
2935
- /**
2936
- * Amount of the asset.
2937
- */
2938
- amount: string;
2939
- utxoCount: number;
2940
- };
2941
-
2942
2892
  type XChainSharedAssetBalance = {
2943
2893
  /**
2944
2894
  * Unique ID for an asset.
@@ -2956,10 +2906,7 @@ type XChainSharedAssetBalance = {
2956
2906
  * Denomination of this asset to represent fungibility.
2957
2907
  */
2958
2908
  denomination: number;
2959
- /**
2960
- * Type of asset like SECP256K1 or NFT.
2961
- */
2962
- type: string;
2909
+ type: PrimaryNetworkAssetType;
2963
2910
  /**
2964
2911
  * Amount of the asset.
2965
2912
  */
@@ -2972,11 +2919,11 @@ type XChainBalances = {
2972
2919
  /**
2973
2920
  * A list of objects containing X-chain Asset balance information.
2974
2921
  */
2975
- locked: Array<XChainAssetBalance>;
2922
+ locked: Array<AggregatedAssetAmount>;
2976
2923
  /**
2977
2924
  * A list of objects containing X-chain Asset balance information.
2978
2925
  */
2979
- unlocked: Array<XChainAssetBalance>;
2926
+ unlocked: Array<AggregatedAssetAmount>;
2980
2927
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2981
2928
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2982
2929
  };
@@ -3089,7 +3036,7 @@ declare class PrimaryNetworkBlocksService {
3089
3036
  * @returns ListPrimaryNetworkBlocksResponse
3090
3037
  * @throws ApiError
3091
3038
  */
3092
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3039
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3093
3040
  /**
3094
3041
  * A primary network blockchain id or alias.
3095
3042
  */
@@ -3102,14 +3049,14 @@ declare class PrimaryNetworkBlocksService {
3102
3049
  * A primary network (P or X chain) nodeId.
3103
3050
  */
3104
3051
  nodeId: string;
3105
- /**
3106
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3107
- */
3108
- pageSize?: number;
3109
3052
  /**
3110
3053
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3111
3054
  */
3112
3055
  pageToken?: string;
3056
+ /**
3057
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3058
+ */
3059
+ pageSize?: number;
3113
3060
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3114
3061
  /**
3115
3062
  * List latest blocks
@@ -3117,7 +3064,7 @@ declare class PrimaryNetworkBlocksService {
3117
3064
  * @returns ListPrimaryNetworkBlocksResponse
3118
3065
  * @throws ApiError
3119
3066
  */
3120
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3067
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3121
3068
  /**
3122
3069
  * A primary network blockchain id or alias.
3123
3070
  */
@@ -3126,17 +3073,45 @@ declare class PrimaryNetworkBlocksService {
3126
3073
  * Either mainnet or a testnet.
3127
3074
  */
3128
3075
  network: Network;
3129
- /**
3130
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3131
- */
3132
- pageSize?: number;
3133
3076
  /**
3134
3077
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3135
3078
  */
3136
3079
  pageToken?: string;
3080
+ /**
3081
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3082
+ */
3083
+ pageSize?: number;
3137
3084
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3138
3085
  }
3139
3086
 
3087
+ type AssetWithPriceInfo = {
3088
+ /**
3089
+ * Unique ID for an asset.
3090
+ */
3091
+ assetId: string;
3092
+ /**
3093
+ * Name of this asset.
3094
+ */
3095
+ name: string;
3096
+ /**
3097
+ * Symbol for this asset (max 4 characters).
3098
+ */
3099
+ symbol: string;
3100
+ /**
3101
+ * Denomination of this asset to represent fungibility.
3102
+ */
3103
+ denomination: number;
3104
+ type: PrimaryNetworkAssetType;
3105
+ /**
3106
+ * Amount of the asset.
3107
+ */
3108
+ amount: string;
3109
+ /**
3110
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3111
+ */
3112
+ historicalPrice?: Money;
3113
+ };
3114
+
3140
3115
  declare enum RewardType {
3141
3116
  VALIDATOR = "VALIDATOR",
3142
3117
  DELEGATOR = "DELEGATOR",
@@ -3156,10 +3131,7 @@ type HistoricalReward = {
3156
3131
  rewardType: RewardType;
3157
3132
  utxoId: string;
3158
3133
  outputIndex: number;
3159
- /**
3160
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3161
- */
3162
- reward: Asset;
3134
+ reward: AssetWithPriceInfo;
3163
3135
  rewardTxHash: string;
3164
3136
  };
3165
3137
 
@@ -3171,6 +3143,30 @@ type ListHistoricalRewardsResponse = {
3171
3143
  historicalRewards: Array<HistoricalReward>;
3172
3144
  };
3173
3145
 
3146
+ type AssetAmount = {
3147
+ /**
3148
+ * Unique ID for an asset.
3149
+ */
3150
+ assetId: string;
3151
+ /**
3152
+ * Name of this asset.
3153
+ */
3154
+ name: string;
3155
+ /**
3156
+ * Symbol for this asset (max 4 characters).
3157
+ */
3158
+ symbol: string;
3159
+ /**
3160
+ * Denomination of this asset to represent fungibility.
3161
+ */
3162
+ denomination: number;
3163
+ type: PrimaryNetworkAssetType;
3164
+ /**
3165
+ * Amount of the asset.
3166
+ */
3167
+ amount: string;
3168
+ };
3169
+
3174
3170
  type PendingReward = {
3175
3171
  /**
3176
3172
  * An array of P-Chain wallet addresses.
@@ -3184,9 +3180,9 @@ type PendingReward = {
3184
3180
  rewardType: RewardType;
3185
3181
  progress: number;
3186
3182
  /**
3187
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3183
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3188
3184
  */
3189
- estimatedReward: Asset;
3185
+ estimatedReward: AssetAmount;
3190
3186
  };
3191
3187
 
3192
3188
  type ListPendingRewardsResponse = {
@@ -3206,25 +3202,25 @@ declare class PrimaryNetworkRewardsService {
3206
3202
  * @returns ListPendingRewardsResponse
3207
3203
  * @throws ApiError
3208
3204
  */
3209
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3205
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3210
3206
  /**
3211
3207
  * Either mainnet or a testnet.
3212
3208
  */
3213
3209
  network: Network;
3214
3210
  /**
3215
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3211
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
3216
3212
  */
3217
3213
  addresses?: string;
3218
- /**
3219
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3220
- */
3221
- pageSize?: number;
3222
3214
  /**
3223
3215
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3224
3216
  */
3225
3217
  pageToken?: string;
3226
3218
  /**
3227
- * A comma separated list of node ids to filter by.
3219
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3220
+ */
3221
+ pageSize?: number;
3222
+ /**
3223
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3228
3224
  */
3229
3225
  nodeIds?: string;
3230
3226
  /**
@@ -3238,31 +3234,35 @@ declare class PrimaryNetworkRewardsService {
3238
3234
  * @returns ListHistoricalRewardsResponse
3239
3235
  * @throws ApiError
3240
3236
  */
3241
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3237
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3242
3238
  /**
3243
3239
  * Either mainnet or a testnet.
3244
3240
  */
3245
3241
  network: Network;
3246
3242
  /**
3247
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3243
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
3248
3244
  */
3249
3245
  addresses?: string;
3250
- /**
3251
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3252
- */
3253
- pageSize?: number;
3254
3246
  /**
3255
3247
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3256
3248
  */
3257
3249
  pageToken?: string;
3258
3250
  /**
3259
- * A comma separated list of node ids to filter by.
3251
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3252
+ */
3253
+ pageSize?: number;
3254
+ /**
3255
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3260
3256
  */
3261
3257
  nodeIds?: string;
3262
3258
  /**
3263
3259
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3264
3260
  */
3265
3261
  sortOrder?: SortOrder;
3262
+ /**
3263
+ * The currency that return values should use. Defaults to USD.
3264
+ */
3265
+ currency?: CurrencyCode;
3266
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3267
3267
  }
3268
3268
 
@@ -3283,9 +3283,9 @@ type EVMInput = {
3283
3283
  */
3284
3284
  fromAddress: string;
3285
3285
  /**
3286
- * Asset details for the asset being transferred.
3286
+ * AssetAmount details for the asset being transferred.
3287
3287
  */
3288
- asset: Asset;
3288
+ asset: AssetAmount;
3289
3289
  /**
3290
3290
  * Credentials that signed this transaction.
3291
3291
  */
@@ -3297,7 +3297,7 @@ type Utxo = {
3297
3297
  * Addresses that are eligible to sign the consumption of this output.
3298
3298
  */
3299
3299
  addresses: Array<string>;
3300
- asset: Asset;
3300
+ asset: AssetAmount;
3301
3301
  /**
3302
3302
  * Blockchain ID on which this output is consumed on.
3303
3303
  */
@@ -3380,11 +3380,11 @@ type CChainExportTransaction = {
3380
3380
  /**
3381
3381
  * Assets unlocked by inputs of this transaction.
3382
3382
  */
3383
- amountUnlocked: Array<Asset>;
3383
+ amountUnlocked: Array<AssetAmount>;
3384
3384
  /**
3385
3385
  * Assets created by outputs of this transaction.
3386
3386
  */
3387
- amountCreated: Array<Asset>;
3387
+ amountCreated: Array<AssetAmount>;
3388
3388
  /**
3389
3389
  * Source chain for an atomic transaction.
3390
3390
  */
@@ -3415,9 +3415,9 @@ type EVMOutput = {
3415
3415
  */
3416
3416
  toAddress: string;
3417
3417
  /**
3418
- * Asset details for the asset being transferred.
3418
+ * AssetAmount details for the asset being transferred.
3419
3419
  */
3420
- asset: Asset;
3420
+ asset: AssetAmount;
3421
3421
  };
3422
3422
 
3423
3423
  type CChainImportTransaction = {
@@ -3444,11 +3444,11 @@ type CChainImportTransaction = {
3444
3444
  /**
3445
3445
  * Assets unlocked by inputs of this transaction.
3446
3446
  */
3447
- amountUnlocked: Array<Asset>;
3447
+ amountUnlocked: Array<AssetAmount>;
3448
3448
  /**
3449
3449
  * Assets created by outputs of this transaction.
3450
3450
  */
3451
- amountCreated: Array<Asset>;
3451
+ amountCreated: Array<AssetAmount>;
3452
3452
  /**
3453
3453
  * Source chain for an atomic transaction.
3454
3454
  */
@@ -3496,6 +3496,8 @@ declare enum PChainTransactionType {
3496
3496
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3497
3497
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3498
3498
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3499
+ BASE_TX = "BaseTx",
3500
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3499
3501
  UNKNOWN = "UNKNOWN"
3500
3502
  }
3501
3503
 
@@ -3509,7 +3511,7 @@ type PChainUtxo = {
3509
3511
  * Addresses that are eligible to sign the consumption of this output.
3510
3512
  */
3511
3513
  addresses: Array<string>;
3512
- asset: Asset;
3514
+ asset: AssetAmount;
3513
3515
  /**
3514
3516
  * Blockchain ID on which this output is consumed on.
3515
3517
  */
@@ -3573,17 +3575,17 @@ type PChainTransaction = {
3573
3575
  */
3574
3576
  destinationChain?: string;
3575
3577
  /**
3576
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3578
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3577
3579
  */
3578
- value: Array<Asset>;
3580
+ value: Array<AssetAmount>;
3579
3581
  /**
3580
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3582
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3581
3583
  */
3582
- amountBurned: Array<Asset>;
3584
+ amountBurned: Array<AssetAmount>;
3583
3585
  /**
3584
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3586
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3585
3587
  */
3586
- amountStaked: Array<Asset>;
3588
+ amountStaked: Array<AssetAmount>;
3587
3589
  /**
3588
3590
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3589
3591
  */
@@ -3615,6 +3617,10 @@ type PChainTransaction = {
3615
3617
  * Present for RewardValidatorTx
3616
3618
  */
3617
3619
  stakingTxHash?: string;
3620
+ /**
3621
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3622
+ */
3623
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3618
3624
  };
3619
3625
 
3620
3626
  type ListPChainTransactionsResponse = {
@@ -3626,6 +3632,9 @@ type ListPChainTransactionsResponse = {
3626
3632
  chainInfo: PrimaryNetworkChainInfo;
3627
3633
  };
3628
3634
 
3635
+ /**
3636
+ * Type of transaction.
3637
+ */
3629
3638
  declare enum XChainTransactionType {
3630
3639
  BASE_TX = "BaseTx",
3631
3640
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3648,9 +3657,6 @@ type XChainLinearTransaction = {
3648
3657
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3649
3658
  */
3650
3659
  timestamp: number;
3651
- /**
3652
- * Type of transaction.
3653
- */
3654
3660
  txType: XChainTransactionType;
3655
3661
  /**
3656
3662
  * Hex encoded memo bytes for this transaction.
@@ -3661,11 +3667,11 @@ type XChainLinearTransaction = {
3661
3667
  /**
3662
3668
  * Assets unlocked by inputs of this transaction.
3663
3669
  */
3664
- amountUnlocked: Array<Asset>;
3670
+ amountUnlocked: Array<AssetAmount>;
3665
3671
  /**
3666
3672
  * Assets created by outputs of this transaction.
3667
3673
  */
3668
- amountCreated: Array<Asset>;
3674
+ amountCreated: Array<AssetAmount>;
3669
3675
  /**
3670
3676
  * Source chain for an atomic transaction.
3671
3677
  */
@@ -3675,7 +3681,7 @@ type XChainLinearTransaction = {
3675
3681
  */
3676
3682
  destinationChain?: string;
3677
3683
  /**
3678
- * Asset details of the asset created in CreateAssetTx
3684
+ * AssetAmount details of the asset created in CreateAssetTx
3679
3685
  */
3680
3686
  assetCreated?: XChainAssetDetails;
3681
3687
  /**
@@ -3725,9 +3731,6 @@ type XChainNonLinearTransaction = {
3725
3731
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3726
3732
  */
3727
3733
  timestamp: number;
3728
- /**
3729
- * Type of transaction.
3730
- */
3731
3734
  txType: XChainTransactionType;
3732
3735
  /**
3733
3736
  * Hex encoded memo bytes for this transaction.
@@ -3738,11 +3741,11 @@ type XChainNonLinearTransaction = {
3738
3741
  /**
3739
3742
  * Assets unlocked by inputs of this transaction.
3740
3743
  */
3741
- amountUnlocked: Array<Asset>;
3744
+ amountUnlocked: Array<AssetAmount>;
3742
3745
  /**
3743
3746
  * Assets created by outputs of this transaction.
3744
3747
  */
3745
- amountCreated: Array<Asset>;
3748
+ amountCreated: Array<AssetAmount>;
3746
3749
  /**
3747
3750
  * Source chain for an atomic transaction.
3748
3751
  */
@@ -3752,7 +3755,7 @@ type XChainNonLinearTransaction = {
3752
3755
  */
3753
3756
  destinationChain?: string;
3754
3757
  /**
3755
- * Asset details of the asset created in CreateAssetTx
3758
+ * AssetAmount details of the asset created in CreateAssetTx
3756
3759
  */
3757
3760
  assetCreated?: XChainAssetDetails;
3758
3761
  /**
@@ -3798,8 +3801,9 @@ declare enum PrimaryNetworkTxType {
3798
3801
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3799
3802
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3800
3803
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3801
- UNKNOWN = "UNKNOWN",
3802
3804
  BASE_TX = "BaseTx",
3805
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3806
+ UNKNOWN = "UNKNOWN",
3803
3807
  CREATE_ASSET_TX = "CreateAssetTx",
3804
3808
  OPERATION_TX = "OperationTx"
3805
3809
  }
@@ -3831,13 +3835,13 @@ declare class PrimaryNetworkTransactionsService {
3831
3835
  * List latest transactions
3832
3836
  * Lists the latest transactions on one of the Primary Network chains.
3833
3837
  *
3834
- * Transactions are filterable by addresses.
3838
+ * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3835
3839
  *
3836
3840
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3837
3841
  * @returns any
3838
3842
  * @throws ApiError
3839
3843
  */
3840
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3844
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3841
3845
  /**
3842
3846
  * A primary network blockchain id or alias.
3843
3847
  */
@@ -3862,14 +3866,14 @@ declare class PrimaryNetworkTransactionsService {
3862
3866
  * Query param for retrieving items before a specific timestamp.
3863
3867
  */
3864
3868
  endTimestamp?: number;
3865
- /**
3866
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3867
- */
3868
- pageSize?: number;
3869
3869
  /**
3870
3870
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3871
3871
  */
3872
3872
  pageToken?: string;
3873
+ /**
3874
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3875
+ */
3876
+ pageSize?: number;
3873
3877
  /**
3874
3878
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3875
3879
  */
@@ -3881,7 +3885,7 @@ declare class PrimaryNetworkTransactionsService {
3881
3885
  * @returns ListPChainTransactionsResponse
3882
3886
  * @throws ApiError
3883
3887
  */
3884
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3888
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3885
3889
  /**
3886
3890
  * A primary network blockchain id or alias.
3887
3891
  */
@@ -3906,14 +3910,14 @@ declare class PrimaryNetworkTransactionsService {
3906
3910
  * Query param for retrieving items before a specific timestamp.
3907
3911
  */
3908
3912
  endTimestamp?: number;
3909
- /**
3910
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3911
- */
3912
- pageSize?: number;
3913
3913
  /**
3914
3914
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3915
3915
  */
3916
3916
  pageToken?: string;
3917
+ /**
3918
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3919
+ */
3920
+ pageSize?: number;
3917
3921
  /**
3918
3922
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3919
3923
  */
@@ -3925,7 +3929,7 @@ declare class PrimaryNetworkTransactionsService {
3925
3929
  * @returns ListXChainTransactionsResponse
3926
3930
  * @throws ApiError
3927
3931
  */
3928
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3932
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3929
3933
  /**
3930
3934
  * A primary network blockchain id or alias.
3931
3935
  */
@@ -3950,14 +3954,14 @@ declare class PrimaryNetworkTransactionsService {
3950
3954
  * Query param for retrieving items before a specific timestamp.
3951
3955
  */
3952
3956
  endTimestamp?: number;
3953
- /**
3954
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3955
- */
3956
- pageSize?: number;
3957
3957
  /**
3958
3958
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3959
3959
  */
3960
3960
  pageToken?: string;
3961
+ /**
3962
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3963
+ */
3964
+ pageSize?: number;
3961
3965
  }): CancelablePromise<ListXChainTransactionsResponse>;
3962
3966
  }
3963
3967
 
@@ -3988,7 +3992,7 @@ declare class PrimaryNetworkUtxOsService {
3988
3992
  * @returns any
3989
3993
  * @throws ApiError
3990
3994
  */
3991
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3995
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3992
3996
  /**
3993
3997
  * A primary network blockchain id or alias.
3994
3998
  */
@@ -4001,14 +4005,14 @@ declare class PrimaryNetworkUtxOsService {
4001
4005
  * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
4002
4006
  */
4003
4007
  addresses?: string;
4004
- /**
4005
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4006
- */
4007
- pageSize?: number;
4008
4008
  /**
4009
4009
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4010
4010
  */
4011
4011
  pageToken?: string;
4012
+ /**
4013
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4014
+ */
4015
+ pageSize?: number;
4012
4016
  /**
4013
4017
  * Asset ID for any asset (only applicable X-Chain)
4014
4018
  */
@@ -4053,7 +4057,7 @@ declare class PrimaryNetworkVerticesService {
4053
4057
  * @returns ListXChainVerticesResponse
4054
4058
  * @throws ApiError
4055
4059
  */
4056
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4060
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4057
4061
  /**
4058
4062
  * A primary network blockchain id or alias.
4059
4063
  */
@@ -4062,14 +4066,14 @@ declare class PrimaryNetworkVerticesService {
4062
4066
  * Either mainnet or a testnet.
4063
4067
  */
4064
4068
  network: Network;
4065
- /**
4066
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4067
- */
4068
- pageSize?: number;
4069
4069
  /**
4070
4070
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4071
4071
  */
4072
4072
  pageToken?: string;
4073
+ /**
4074
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4075
+ */
4076
+ pageSize?: number;
4073
4077
  }): CancelablePromise<ListXChainVerticesResponse>;
4074
4078
  /**
4075
4079
  * Get vertex
@@ -4097,7 +4101,7 @@ declare class PrimaryNetworkVerticesService {
4097
4101
  * @returns ListXChainVerticesResponse
4098
4102
  * @throws ApiError
4099
4103
  */
4100
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4104
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4101
4105
  /**
4102
4106
  * The height of a vertex.
4103
4107
  */
@@ -4110,14 +4114,14 @@ declare class PrimaryNetworkVerticesService {
4110
4114
  * Either mainnet or a testnet.
4111
4115
  */
4112
4116
  network: Network;
4113
- /**
4114
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4115
- */
4116
- pageSize?: number;
4117
4117
  /**
4118
4118
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4119
4119
  */
4120
4120
  pageToken?: string;
4121
+ /**
4122
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4123
+ */
4124
+ pageSize?: number;
4121
4125
  /**
4122
4126
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4123
4127
  */
@@ -4125,6 +4129,464 @@ declare class PrimaryNetworkVerticesService {
4125
4129
  }): CancelablePromise<ListXChainVerticesResponse>;
4126
4130
  }
4127
4131
 
4132
+ type RpcErrorDto = {
4133
+ code: number;
4134
+ message: string;
4135
+ data?: Record<string, any>;
4136
+ };
4137
+
4138
+ type RpcErrorResponseDto = {
4139
+ jsonrpc: string;
4140
+ id?: (string | number);
4141
+ error: RpcErrorDto;
4142
+ };
4143
+
4144
+ type RpcRequestBodyDto = {
4145
+ method: string;
4146
+ params?: Record<string, any>;
4147
+ id?: (string | number);
4148
+ jsonrpc?: string;
4149
+ };
4150
+
4151
+ type RpcSuccessResponseDto = {
4152
+ jsonrpc: string;
4153
+ id?: (string | number);
4154
+ result: Record<string, any>;
4155
+ };
4156
+
4157
+ declare class RpcService {
4158
+ readonly httpRequest: BaseHttpRequest;
4159
+ constructor(httpRequest: BaseHttpRequest);
4160
+ /**
4161
+ * Calls JSON-RPC method
4162
+ * Calls JSON-RPC method.
4163
+ * @returns any
4164
+ * @throws ApiError
4165
+ */
4166
+ rpc({ chainId, requestBody, }: {
4167
+ /**
4168
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4169
+ */
4170
+ chainId: string;
4171
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4172
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4173
+ }
4174
+
4175
+ type TeleporterDestinationTransaction = {
4176
+ txHash: string;
4177
+ timestamp: number;
4178
+ gasSpent: string;
4179
+ rewardRedeemer: string;
4180
+ delivererAddress: string;
4181
+ };
4182
+
4183
+ type TeleporterReceipt = {
4184
+ receivedMessageNonce: string;
4185
+ relayerRewardAddress: string;
4186
+ };
4187
+
4188
+ type TeleporterRewardDetails = {
4189
+ /**
4190
+ * A wallet or contract address in mixed-case checksum encoding.
4191
+ */
4192
+ address: string;
4193
+ /**
4194
+ * The contract name.
4195
+ */
4196
+ name: string;
4197
+ /**
4198
+ * The contract symbol.
4199
+ */
4200
+ symbol: string;
4201
+ /**
4202
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4203
+ */
4204
+ decimals: number;
4205
+ /**
4206
+ * The logo uri for the address.
4207
+ */
4208
+ logoUri?: string;
4209
+ ercType: TeleporterRewardDetails.ercType;
4210
+ /**
4211
+ * The token price, if available.
4212
+ */
4213
+ price?: Money;
4214
+ value: string;
4215
+ };
4216
+ declare namespace TeleporterRewardDetails {
4217
+ enum ercType {
4218
+ ERC_20 = "ERC-20"
4219
+ }
4220
+ }
4221
+
4222
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4223
+ messageId: string;
4224
+ teleporterContractAddress: string;
4225
+ sourceBlockchainId: string;
4226
+ destinationBlockchainId: string;
4227
+ sourceEvmChainId: string;
4228
+ destinationEvmChainId: string;
4229
+ messageNonce: string;
4230
+ from: string;
4231
+ to: string;
4232
+ data?: string;
4233
+ messageExecuted: boolean;
4234
+ receipts: Array<TeleporterReceipt>;
4235
+ receiptDelivered: boolean;
4236
+ rewardDetails: TeleporterRewardDetails;
4237
+ destinationTransaction: TeleporterDestinationTransaction;
4238
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4239
+ };
4240
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4241
+ enum status {
4242
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4243
+ }
4244
+ }
4245
+
4246
+ type TeleporterSourceTransaction = {
4247
+ txHash: string;
4248
+ timestamp: number;
4249
+ gasSpent: string;
4250
+ };
4251
+
4252
+ type DeliveredTeleporterMessage = {
4253
+ messageId: string;
4254
+ teleporterContractAddress: string;
4255
+ sourceBlockchainId: string;
4256
+ destinationBlockchainId: string;
4257
+ sourceEvmChainId: string;
4258
+ destinationEvmChainId: string;
4259
+ messageNonce: string;
4260
+ from: string;
4261
+ to: string;
4262
+ data?: string;
4263
+ messageExecuted: boolean;
4264
+ receipts: Array<TeleporterReceipt>;
4265
+ receiptDelivered: boolean;
4266
+ rewardDetails: TeleporterRewardDetails;
4267
+ sourceTransaction: TeleporterSourceTransaction;
4268
+ destinationTransaction: TeleporterDestinationTransaction;
4269
+ status: DeliveredTeleporterMessage.status;
4270
+ };
4271
+ declare namespace DeliveredTeleporterMessage {
4272
+ enum status {
4273
+ DELIVERED = "delivered"
4274
+ }
4275
+ }
4276
+
4277
+ type PendingTeleporterMessage = {
4278
+ messageId: string;
4279
+ teleporterContractAddress: string;
4280
+ sourceBlockchainId: string;
4281
+ destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4284
+ messageNonce: string;
4285
+ from: string;
4286
+ to: string;
4287
+ data?: string;
4288
+ messageExecuted: boolean;
4289
+ receipts: Array<TeleporterReceipt>;
4290
+ receiptDelivered: boolean;
4291
+ rewardDetails: TeleporterRewardDetails;
4292
+ sourceTransaction: TeleporterSourceTransaction;
4293
+ status: PendingTeleporterMessage.status;
4294
+ };
4295
+ declare namespace PendingTeleporterMessage {
4296
+ enum status {
4297
+ PENDING = "pending"
4298
+ }
4299
+ }
4300
+
4301
+ type ListTeleporterMessagesResponse = {
4302
+ /**
4303
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4304
+ */
4305
+ nextPageToken?: string;
4306
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4307
+ };
4308
+
4309
+ declare class TeleporterService {
4310
+ readonly httpRequest: BaseHttpRequest;
4311
+ constructor(httpRequest: BaseHttpRequest);
4312
+ /**
4313
+ * Get a teleporter message
4314
+ * Gets a teleporter message by message ID.
4315
+ * @returns any
4316
+ * @throws ApiError
4317
+ */
4318
+ getTeleporterMessage({ messageId, }: {
4319
+ /**
4320
+ * The message ID of the teleporter message.
4321
+ */
4322
+ messageId: string;
4323
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4324
+ /**
4325
+ * List teleporter messages
4326
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4327
+ * @returns ListTeleporterMessagesResponse
4328
+ * @throws ApiError
4329
+ */
4330
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
4331
+ /**
4332
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4333
+ */
4334
+ pageToken?: string;
4335
+ /**
4336
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4337
+ */
4338
+ pageSize?: number;
4339
+ /**
4340
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4341
+ */
4342
+ sourceBlockchainId?: string;
4343
+ /**
4344
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4345
+ */
4346
+ destinationBlockchainId?: string;
4347
+ /**
4348
+ * The address of the recipient of the teleporter message.
4349
+ */
4350
+ to?: string;
4351
+ /**
4352
+ * The address of the sender of the teleporter message.
4353
+ */
4354
+ from?: string;
4355
+ /**
4356
+ * mainnet or testnet.
4357
+ */
4358
+ network?: NetworkType;
4359
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4360
+ }
4361
+
4362
+ type AddressesChangeRequest = {
4363
+ /**
4364
+ * Ethereum address(es) for the address_activity event type
4365
+ */
4366
+ addresses: Array<any[]>;
4367
+ };
4368
+
4369
+ type ListWebhookAddressesResponse = {
4370
+ /**
4371
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4372
+ */
4373
+ nextPageToken?: string;
4374
+ addresses: Array<string>;
4375
+ totalAddresses: number;
4376
+ };
4377
+
4378
+ type AddressActivityMetadata = {
4379
+ /**
4380
+ * Ethereum address(es) for the address_activity event type
4381
+ */
4382
+ addresses: Array<any[]>;
4383
+ /**
4384
+ * Array of hexadecimal strings of the event signatures.
4385
+ */
4386
+ eventSignatures?: Array<string>;
4387
+ };
4388
+
4389
+ declare enum EventType {
4390
+ ADDRESS_ACTIVITY = "address_activity"
4391
+ }
4392
+
4393
+ declare enum WebhookStatusType {
4394
+ ACTIVE = "active",
4395
+ INACTIVE = "inactive"
4396
+ }
4397
+
4398
+ type WebhookResponse = {
4399
+ id: string;
4400
+ eventType: EventType;
4401
+ metadata: AddressActivityMetadata;
4402
+ /**
4403
+ * Whether to include traces in the webhook payload.
4404
+ */
4405
+ includeInternalTxs?: boolean;
4406
+ /**
4407
+ * Whether to include logs in the webhook payload.
4408
+ */
4409
+ includeLogs?: boolean;
4410
+ url: string;
4411
+ chainId: string;
4412
+ status: WebhookStatusType;
4413
+ createdAt: number;
4414
+ name: string;
4415
+ description: string;
4416
+ };
4417
+
4418
+ type ListWebhooksResponse = {
4419
+ /**
4420
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4421
+ */
4422
+ nextPageToken?: string;
4423
+ webhooks: Array<WebhookResponse>;
4424
+ };
4425
+
4426
+ type RegisterWebhookRequest = {
4427
+ url: string;
4428
+ chainId: string;
4429
+ eventType: EventType;
4430
+ metadata: AddressActivityMetadata;
4431
+ /**
4432
+ * Whether to include traces in the webhook payload.
4433
+ */
4434
+ includeInternalTxs?: boolean;
4435
+ /**
4436
+ * Whether to include logs in the webhook payload.
4437
+ */
4438
+ includeLogs?: boolean;
4439
+ };
4440
+
4441
+ type SharedSecretsResponse = {
4442
+ secret: string;
4443
+ };
4444
+
4445
+ type UpdateWebhookRequest = {
4446
+ name?: string;
4447
+ description?: string;
4448
+ url?: string;
4449
+ status?: WebhookStatusType;
4450
+ includeInternalTxs?: boolean;
4451
+ includeLogs?: boolean;
4452
+ };
4453
+
4454
+ declare enum WebhookStatus {
4455
+ ACTIVE = "active",
4456
+ INACTIVE = "inactive"
4457
+ }
4458
+
4459
+ declare class WebhooksService {
4460
+ readonly httpRequest: BaseHttpRequest;
4461
+ constructor(httpRequest: BaseHttpRequest);
4462
+ /**
4463
+ * Create a webhook
4464
+ * Create a new webhook.
4465
+ * @returns WebhookResponse
4466
+ * @throws ApiError
4467
+ */
4468
+ registerWebhook({ requestBody, }: {
4469
+ requestBody: RegisterWebhookRequest;
4470
+ }): CancelablePromise<WebhookResponse>;
4471
+ /**
4472
+ * List webhooks
4473
+ * Lists webhooks for the user.
4474
+ * @returns ListWebhooksResponse
4475
+ * @throws ApiError
4476
+ */
4477
+ listWebhooks({ pageToken, pageSize, status, }: {
4478
+ /**
4479
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4480
+ */
4481
+ pageToken?: string;
4482
+ /**
4483
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4484
+ */
4485
+ pageSize?: number;
4486
+ /**
4487
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
4488
+ */
4489
+ status?: WebhookStatus;
4490
+ }): CancelablePromise<ListWebhooksResponse>;
4491
+ /**
4492
+ * Get a webhook by ID
4493
+ * Retrieves a webhook by ID.
4494
+ * @returns WebhookResponse
4495
+ * @throws ApiError
4496
+ */
4497
+ getWebhook({ id, }: {
4498
+ /**
4499
+ * The webhook identifier.
4500
+ */
4501
+ id: string;
4502
+ }): CancelablePromise<WebhookResponse>;
4503
+ /**
4504
+ * Deactivate a webhook
4505
+ * Deactivates a webhook by ID.
4506
+ * @returns WebhookResponse
4507
+ * @throws ApiError
4508
+ */
4509
+ deactivateWebhook({ id, }: {
4510
+ /**
4511
+ * The webhook identifier.
4512
+ */
4513
+ id: string;
4514
+ }): CancelablePromise<WebhookResponse>;
4515
+ /**
4516
+ * Update a webhook
4517
+ * Updates an existing webhook.
4518
+ * @returns WebhookResponse
4519
+ * @throws ApiError
4520
+ */
4521
+ updateWebhook({ id, requestBody, }: {
4522
+ /**
4523
+ * The webhook identifier.
4524
+ */
4525
+ id: string;
4526
+ requestBody: UpdateWebhookRequest;
4527
+ }): CancelablePromise<WebhookResponse>;
4528
+ /**
4529
+ * Generate a shared secret
4530
+ * Generates a new shared secret.
4531
+ * @returns SharedSecretsResponse
4532
+ * @throws ApiError
4533
+ */
4534
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4535
+ /**
4536
+ * Get a shared secret
4537
+ * Get a previously generated shared secret.
4538
+ * @returns SharedSecretsResponse
4539
+ * @throws ApiError
4540
+ */
4541
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4542
+ /**
4543
+ * Add address(es) to a webhook
4544
+ * Adding address(es) to a given webhook.
4545
+ * @returns WebhookResponse
4546
+ * @throws ApiError
4547
+ */
4548
+ addAddressesToWebhook({ id, requestBody, }: {
4549
+ /**
4550
+ * The webhook identifier.
4551
+ */
4552
+ id: string;
4553
+ requestBody: AddressesChangeRequest;
4554
+ }): CancelablePromise<WebhookResponse>;
4555
+ /**
4556
+ * Remove address(es) from a webhook
4557
+ * Removing address(es) from a given webhook.
4558
+ * @returns WebhookResponse
4559
+ * @throws ApiError
4560
+ */
4561
+ removeAddressesFromWebhook({ id, requestBody, }: {
4562
+ /**
4563
+ * The webhook identifier.
4564
+ */
4565
+ id: string;
4566
+ requestBody: AddressesChangeRequest;
4567
+ }): CancelablePromise<WebhookResponse>;
4568
+ /**
4569
+ * Get address(es) from a given webhook
4570
+ * Retrieving address(es) from a given webhook.
4571
+ * @returns ListWebhookAddressesResponse
4572
+ * @throws ApiError
4573
+ */
4574
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4575
+ /**
4576
+ * The webhook identifier.
4577
+ */
4578
+ id: string;
4579
+ /**
4580
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4581
+ */
4582
+ pageToken?: string;
4583
+ /**
4584
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4585
+ */
4586
+ pageSize?: number;
4587
+ }): CancelablePromise<ListWebhookAddressesResponse>;
4588
+ }
4589
+
4128
4590
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4129
4591
  declare class Glacier {
4130
4592
  readonly default: DefaultService;
@@ -4143,6 +4605,9 @@ declare class Glacier {
4143
4605
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4144
4606
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4145
4607
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4608
+ readonly rpc: RpcService;
4609
+ readonly teleporter: TeleporterService;
4610
+ readonly webhooks: WebhooksService;
4146
4611
  readonly request: BaseHttpRequest;
4147
4612
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4148
4613
  }
@@ -4164,4 +4629,11 @@ declare class ApiError extends Error {
4164
4629
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4165
4630
  }
4166
4631
 
4167
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4632
+ type NextPageToken = {
4633
+ /**
4634
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4635
+ */
4636
+ nextPageToken?: string;
4637
+ };
4638
+
4639
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };