@avalabs/glacier-sdk 2.8.0-canary.5db0622.0 → 2.8.0-canary.5ec79a1.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 +912 -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 +2 -2
  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 +17 -12
  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,63 +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
- /**
69
- * Array of hexadecimal strings of the event signatures.
70
- */
71
- eventSignatures?: Array<string>;
72
- };
73
-
74
- declare enum EventType {
75
- ADDRESS_ACTIVITY = "address_activity"
76
- }
77
-
78
- declare enum WebhookStatusType {
79
- ACTIVE = "active",
80
- INACTIVE = "inactive"
81
- }
82
-
83
- type WebhookResponse = {
84
- id: string;
85
- eventType: EventType;
86
- metadata: AddressActivityMetadata;
87
- url: string;
88
- chainId: string;
89
- status: WebhookStatusType;
90
- createdAt: number;
91
- };
92
-
93
- type ListWebhooksResponse = {
94
- /**
95
- * 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.
96
- */
97
- nextPageToken?: string;
98
- webhooks: Array<WebhookResponse>;
99
- };
100
-
101
- type RegisterWebhookRequest = {
102
- url: string;
103
- chainId: string;
104
- /**
105
- * The type of event for the webhook
106
- */
107
- eventType: EventType;
108
- metadata: AddressActivityMetadata;
109
- };
110
-
111
- type SharedSecretsResponse = {
112
- secret: string;
113
- };
114
-
115
- declare enum WebhookStatus {
116
- ACTIVE = "active",
117
- INACTIVE = "inactive"
118
- }
119
-
120
57
  declare class DefaultService {
121
58
  readonly httpRequest: BaseHttpRequest;
122
59
  constructor(httpRequest: BaseHttpRequest);
@@ -125,56 +62,11 @@ declare class DefaultService {
125
62
  * @throws ApiError
126
63
  */
127
64
  mediaControllerUploadImage(): CancelablePromise<any>;
128
- /**
129
- * Register a webhook
130
- * Registers a new webhook.
131
- * @returns WebhookResponse
132
- * @throws ApiError
133
- */
134
- registerWebhook({ requestBody, }: {
135
- requestBody: RegisterWebhookRequest;
136
- }): CancelablePromise<WebhookResponse>;
137
- /**
138
- * List webhooks
139
- * Lists webhooks for the user.
140
- * @returns ListWebhooksResponse
141
- * @throws ApiError
142
- */
143
- listWebhooks({ pageSize, pageToken, status, }: {
144
- /**
145
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
146
- */
147
- pageSize?: number;
148
- /**
149
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
150
- */
151
- pageToken?: string;
152
- /**
153
- * 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.
154
- */
155
- status?: WebhookStatus;
156
- }): CancelablePromise<ListWebhooksResponse>;
157
- /**
158
- * Deactivate a webhook
159
- * Deactivates a webhook by ID.
160
- * @returns WebhookResponse
161
- * @throws ApiError
162
- */
163
- deactivateWebhook({ id, }: {
164
- /**
165
- * The webhook identifier.
166
- */
167
- id: string;
168
- }): CancelablePromise<WebhookResponse>;
169
- /**
170
- * Generate a shared secret
171
- * Generates a new shared secret.
172
- * @returns SharedSecretsResponse
173
- * @throws ApiError
174
- */
175
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
176
65
  }
177
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
178
70
  declare enum CurrencyCode {
179
71
  USD = "usd",
180
72
  EUR = "eur",
@@ -193,9 +85,6 @@ declare enum CurrencyCode {
193
85
  }
194
86
 
195
87
  type Money = {
196
- /**
197
- * ISO 4217 currency code.
198
- */
199
88
  currencyCode: CurrencyCode;
200
89
  /**
201
90
  * Monetary value in base 10 decimals.
@@ -245,6 +134,9 @@ type GetNativeBalanceResponse = {
245
134
  nativeTokenBalance: NativeTokenBalance;
246
135
  };
247
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
248
140
  declare enum NftTokenMetadataStatus {
249
141
  UNKNOWN = "UNKNOWN",
250
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -260,9 +152,6 @@ declare enum NftTokenMetadataStatus {
260
152
  }
261
153
 
262
154
  type Erc1155TokenMetadata = {
263
- /**
264
- * The metadata indexing status of the nft.
265
- */
266
155
  indexStatus: NftTokenMetadataStatus;
267
156
  metadataLastUpdatedTimestamp?: number;
268
157
  name?: string;
@@ -301,9 +190,6 @@ declare namespace Erc1155TokenBalance {
301
190
  }
302
191
 
303
192
  type Erc721TokenMetadata = {
304
- /**
305
- * The metadata indexing status of the nft.
306
- */
307
193
  indexStatus: NftTokenMetadataStatus;
308
194
  metadataLastUpdatedTimestamp?: number;
309
195
  name?: string;
@@ -450,7 +336,7 @@ declare class EvmBalancesService {
450
336
  */
451
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
452
338
  /**
453
- * 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.
454
340
  */
455
341
  chainId: string;
456
342
  /**
@@ -476,9 +362,9 @@ declare class EvmBalancesService {
476
362
  * @returns ListErc20BalancesResponse
477
363
  * @throws ApiError
478
364
  */
479
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
480
366
  /**
481
- * 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.
482
368
  */
483
369
  chainId: string;
484
370
  /**
@@ -489,14 +375,18 @@ declare class EvmBalancesService {
489
375
  * The block number, if not defined the block number will be the latest block.
490
376
  */
491
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;
492
382
  /**
493
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
494
384
  */
495
385
  pageSize?: number;
496
386
  /**
497
- * 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.
498
388
  */
499
- pageToken?: string;
389
+ filterSpamTokens?: boolean;
500
390
  /**
501
391
  * A comma separated list of contract addresses to filter by.
502
392
  */
@@ -514,23 +404,23 @@ declare class EvmBalancesService {
514
404
  * @returns ListErc721BalancesResponse
515
405
  * @throws ApiError
516
406
  */
517
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
407
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
518
408
  /**
519
- * 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.
520
410
  */
521
411
  chainId: string;
522
412
  /**
523
413
  * A wallet address.
524
414
  */
525
415
  address: string;
526
- /**
527
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
528
- */
529
- pageSize?: number;
530
416
  /**
531
417
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
532
418
  */
533
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;
534
424
  /**
535
425
  * A contract addresses to filter by.
536
426
  */
@@ -546,9 +436,9 @@ declare class EvmBalancesService {
546
436
  * @returns ListErc1155BalancesResponse
547
437
  * @throws ApiError
548
438
  */
549
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
439
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
550
440
  /**
551
- * 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.
552
442
  */
553
443
  chainId: string;
554
444
  /**
@@ -559,14 +449,14 @@ declare class EvmBalancesService {
559
449
  * The block number, if not defined the block number will be the latest block.
560
450
  */
561
451
  blockNumber?: string;
562
- /**
563
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
564
- */
565
- pageSize?: number;
566
452
  /**
567
453
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
568
454
  */
569
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;
570
460
  /**
571
461
  * A contract addresses to filter by.
572
462
  */
@@ -580,23 +470,23 @@ declare class EvmBalancesService {
580
470
  * @returns ListCollectibleBalancesResponse
581
471
  * @throws ApiError
582
472
  */
583
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
473
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
584
474
  /**
585
- * 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.
586
476
  */
587
477
  chainId: string;
588
478
  /**
589
479
  * A wallet address.
590
480
  */
591
481
  address: string;
592
- /**
593
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
594
- */
595
- pageSize?: number;
596
482
  /**
597
483
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
598
484
  */
599
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;
600
490
  /**
601
491
  * A contract addresses to filter by.
602
492
  */
@@ -709,19 +599,19 @@ declare class EvmBlocksService {
709
599
  * @returns ListEvmBlocksResponse
710
600
  * @throws ApiError
711
601
  */
712
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
602
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
713
603
  /**
714
- * 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.
715
605
  */
716
606
  chainId: string;
717
- /**
718
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
719
- */
720
- pageSize?: number;
721
607
  /**
722
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
723
609
  */
724
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;
725
615
  }): CancelablePromise<ListEvmBlocksResponse>;
726
616
  /**
727
617
  * Get block
@@ -731,7 +621,7 @@ declare class EvmBlocksService {
731
621
  */
732
622
  getBlock({ chainId, blockId, }: {
733
623
  /**
734
- * 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.
735
625
  */
736
626
  chainId: string;
737
627
  /**
@@ -741,6 +631,9 @@ declare class EvmBlocksService {
741
631
  }): CancelablePromise<GetEvmBlockResponse>;
742
632
  }
743
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
+ */
744
637
  declare enum ChainStatus {
745
638
  OK = "OK",
746
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -778,9 +671,6 @@ declare enum VmName {
778
671
 
779
672
  type GetChainResponse = {
780
673
  chainId: string;
781
- /**
782
- * 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.
783
- */
784
674
  status: ChainStatus;
785
675
  chainName: string;
786
676
  description: string;
@@ -796,13 +686,16 @@ type GetChainResponse = {
796
686
  networkToken: NetworkToken;
797
687
  chainLogoUri?: string;
798
688
  private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
799
690
  };
800
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
801
697
  type ChainInfo = {
802
698
  chainId: string;
803
- /**
804
- * 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.
805
- */
806
699
  status: ChainStatus;
807
700
  chainName: string;
808
701
  description: string;
@@ -818,6 +711,7 @@ type ChainInfo = {
818
711
  networkToken: NetworkToken;
819
712
  chainLogoUri?: string;
820
713
  private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
821
715
  };
822
716
 
823
717
  type ListChainsResponse = {
@@ -838,11 +732,15 @@ declare class EvmChainsService {
838
732
  * @returns ListChainsResponse
839
733
  * @throws ApiError
840
734
  */
841
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
842
736
  /**
843
737
  * mainnet or testnet.
844
738
  */
845
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
846
744
  }): CancelablePromise<ListChainsResponse>;
847
745
  /**
848
746
  * Get chain information
@@ -852,7 +750,7 @@ declare class EvmChainsService {
852
750
  */
853
751
  getChainInfo({ chainId, }: {
854
752
  /**
855
- * 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.
856
754
  */
857
755
  chainId: string;
858
756
  }): CancelablePromise<GetChainResponse>;
@@ -1147,7 +1045,7 @@ declare class EvmContractsService {
1147
1045
  */
1148
1046
  getContractMetadata({ chainId, address, }: {
1149
1047
  /**
1150
- * 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.
1151
1049
  */
1152
1050
  chainId: string;
1153
1051
  /**
@@ -1163,7 +1061,7 @@ declare class EvmContractsService {
1163
1061
  */
1164
1062
  updateContractInfo({ chainId, address, requestBody, }: {
1165
1063
  /**
1166
- * 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.
1167
1065
  */
1168
1066
  chainId: string;
1169
1067
  /**
@@ -1297,6 +1195,9 @@ type Erc721TransferDetails = {
1297
1195
  erc721Token: Erc721Token;
1298
1196
  };
1299
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
+ */
1300
1201
  declare enum TransactionMethodType {
1301
1202
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1302
1203
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1304,9 +1205,6 @@ declare enum TransactionMethodType {
1304
1205
  }
1305
1206
 
1306
1207
  type Method = {
1307
- /**
1308
- * 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.
1309
- */
1310
1208
  callType: TransactionMethodType;
1311
1209
  /**
1312
1210
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1667,7 +1565,7 @@ type ListTransfersResponse = {
1667
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.
1668
1566
  */
1669
1567
  nextPageToken?: string;
1670
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1671
1569
  };
1672
1570
 
1673
1571
  declare enum SortOrder {
@@ -1691,7 +1589,7 @@ declare class EvmTransactionsService {
1691
1589
  */
1692
1590
  getDeploymentTransaction({ chainId, address, currency, }: {
1693
1591
  /**
1694
- * 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.
1695
1593
  */
1696
1594
  chainId: string;
1697
1595
  /**
@@ -1709,23 +1607,23 @@ declare class EvmTransactionsService {
1709
1607
  * @returns ListContractsResponse
1710
1608
  * @throws ApiError
1711
1609
  */
1712
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1610
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1713
1611
  /**
1714
- * 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.
1715
1613
  */
1716
1614
  chainId: string;
1717
1615
  /**
1718
1616
  * A wallet address.
1719
1617
  */
1720
1618
  address: string;
1721
- /**
1722
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1723
- */
1724
- pageSize?: number;
1725
1619
  /**
1726
1620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1727
1621
  */
1728
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;
1729
1627
  }): CancelablePromise<ListContractsResponse>;
1730
1628
  /**
1731
1629
  * List ERC transfers
@@ -1733,9 +1631,9 @@ declare class EvmTransactionsService {
1733
1631
  * @returns ListTransfersResponse
1734
1632
  * @throws ApiError
1735
1633
  */
1736
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
1635
  /**
1738
- * 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.
1739
1637
  */
1740
1638
  chainId: string;
1741
1639
  /**
@@ -1750,14 +1648,14 @@ declare class EvmTransactionsService {
1750
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.
1751
1649
  */
1752
1650
  endBlock?: number;
1753
- /**
1754
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1755
- */
1756
- pageSize?: number;
1757
1651
  /**
1758
1652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1759
1653
  */
1760
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;
1761
1659
  }): CancelablePromise<ListTransfersResponse>;
1762
1660
  /**
1763
1661
  * List transactions
@@ -1767,23 +1665,23 @@ declare class EvmTransactionsService {
1767
1665
  * @returns ListTransactionDetailsResponse
1768
1666
  * @throws ApiError
1769
1667
  */
1770
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1668
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1771
1669
  /**
1772
- * 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.
1773
1671
  */
1774
1672
  chainId: string;
1775
1673
  /**
1776
1674
  * A wallet address.
1777
1675
  */
1778
1676
  address: string;
1779
- /**
1780
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1781
- */
1782
- pageSize?: number;
1783
1677
  /**
1784
1678
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1785
1679
  */
1786
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;
1787
1685
  /**
1788
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.
1789
1687
  */
@@ -1803,9 +1701,9 @@ declare class EvmTransactionsService {
1803
1701
  * @returns ListNativeTransactionsResponse
1804
1702
  * @throws ApiError
1805
1703
  */
1806
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1704
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1807
1705
  /**
1808
- * 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.
1809
1707
  */
1810
1708
  chainId: string;
1811
1709
  /**
@@ -1820,14 +1718,14 @@ declare class EvmTransactionsService {
1820
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.
1821
1719
  */
1822
1720
  endBlock?: number;
1823
- /**
1824
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1825
- */
1826
- pageSize?: number;
1827
1721
  /**
1828
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1829
1723
  */
1830
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;
1831
1729
  }): CancelablePromise<ListNativeTransactionsResponse>;
1832
1730
  /**
1833
1731
  * List ERC-20 transfers
@@ -1835,9 +1733,9 @@ declare class EvmTransactionsService {
1835
1733
  * @returns ListErc20TransactionsResponse
1836
1734
  * @throws ApiError
1837
1735
  */
1838
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1839
1737
  /**
1840
- * 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.
1841
1739
  */
1842
1740
  chainId: string;
1843
1741
  /**
@@ -1852,14 +1750,14 @@ declare class EvmTransactionsService {
1852
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.
1853
1751
  */
1854
1752
  endBlock?: number;
1855
- /**
1856
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
- */
1858
- pageSize?: number;
1859
1753
  /**
1860
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1861
1755
  */
1862
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;
1863
1761
  }): CancelablePromise<ListErc20TransactionsResponse>;
1864
1762
  /**
1865
1763
  * List ERC-721 transfers
@@ -1867,9 +1765,9 @@ declare class EvmTransactionsService {
1867
1765
  * @returns ListErc721TransactionsResponse
1868
1766
  * @throws ApiError
1869
1767
  */
1870
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1871
1769
  /**
1872
- * 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.
1873
1771
  */
1874
1772
  chainId: string;
1875
1773
  /**
@@ -1884,14 +1782,14 @@ declare class EvmTransactionsService {
1884
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.
1885
1783
  */
1886
1784
  endBlock?: number;
1887
- /**
1888
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1889
- */
1890
- pageSize?: number;
1891
1785
  /**
1892
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1893
1787
  */
1894
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;
1895
1793
  }): CancelablePromise<ListErc721TransactionsResponse>;
1896
1794
  /**
1897
1795
  * List ERC-1155 transfers
@@ -1899,9 +1797,9 @@ declare class EvmTransactionsService {
1899
1797
  * @returns ListErc1155TransactionsResponse
1900
1798
  * @throws ApiError
1901
1799
  */
1902
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1800
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1903
1801
  /**
1904
- * 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.
1905
1803
  */
1906
1804
  chainId: string;
1907
1805
  /**
@@ -1916,14 +1814,14 @@ declare class EvmTransactionsService {
1916
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.
1917
1815
  */
1918
1816
  endBlock?: number;
1919
- /**
1920
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1921
- */
1922
- pageSize?: number;
1923
1817
  /**
1924
1818
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1925
1819
  */
1926
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;
1927
1825
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1928
1826
  /**
1929
1827
  * List internal transactions
@@ -1933,9 +1831,9 @@ declare class EvmTransactionsService {
1933
1831
  * @returns ListInternalTransactionsResponse
1934
1832
  * @throws ApiError
1935
1833
  */
1936
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1834
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1937
1835
  /**
1938
- * 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.
1939
1837
  */
1940
1838
  chainId: string;
1941
1839
  /**
@@ -1950,14 +1848,14 @@ declare class EvmTransactionsService {
1950
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.
1951
1849
  */
1952
1850
  endBlock?: number;
1953
- /**
1954
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1955
- */
1956
- pageSize?: number;
1957
1851
  /**
1958
1852
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1959
1853
  */
1960
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;
1961
1859
  }): CancelablePromise<ListInternalTransactionsResponse>;
1962
1860
  /**
1963
1861
  * Get transaction
@@ -1967,7 +1865,7 @@ declare class EvmTransactionsService {
1967
1865
  */
1968
1866
  getTransaction({ chainId, txHash, }: {
1969
1867
  /**
1970
- * 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.
1971
1869
  */
1972
1870
  chainId: string;
1973
1871
  /**
@@ -1983,7 +1881,7 @@ declare class EvmTransactionsService {
1983
1881
  */
1984
1882
  getTransactionsForBlock({ chainId, blockId, }: {
1985
1883
  /**
1986
- * 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.
1987
1885
  */
1988
1886
  chainId: string;
1989
1887
  /**
@@ -1997,19 +1895,19 @@ declare class EvmTransactionsService {
1997
1895
  * @returns ListNativeTransactionsResponse
1998
1896
  * @throws ApiError
1999
1897
  */
2000
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1898
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2001
1899
  /**
2002
- * 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.
2003
1901
  */
2004
1902
  chainId: string;
2005
- /**
2006
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2007
- */
2008
- pageSize?: number;
2009
1903
  /**
2010
1904
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2011
1905
  */
2012
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;
2013
1911
  /**
2014
1912
  * A status filter for listed transactions.
2015
1913
  */
@@ -2038,7 +1936,7 @@ type ListNftTokens = {
2038
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.
2039
1937
  */
2040
1938
  nextPageToken?: string;
2041
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2042
1940
  };
2043
1941
 
2044
1942
  declare class NfTsService {
@@ -2052,7 +1950,7 @@ declare class NfTsService {
2052
1950
  */
2053
1951
  reindexNft({ chainId, address, tokenId, }: {
2054
1952
  /**
2055
- * 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.
2056
1954
  */
2057
1955
  chainId: string;
2058
1956
  /**
@@ -2070,23 +1968,23 @@ declare class NfTsService {
2070
1968
  * @returns ListNftTokens
2071
1969
  * @throws ApiError
2072
1970
  */
2073
- listTokens({ chainId, address, pageSize, pageToken, }: {
1971
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2074
1972
  /**
2075
- * 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.
2076
1974
  */
2077
1975
  chainId: string;
2078
1976
  /**
2079
1977
  * Contract address on the relevant chain.
2080
1978
  */
2081
1979
  address: string;
2082
- /**
2083
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2084
- */
2085
- pageSize?: number;
2086
1980
  /**
2087
1981
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2088
1982
  */
2089
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;
2090
1988
  }): CancelablePromise<ListNftTokens>;
2091
1989
  /**
2092
1990
  * Get token details
@@ -2096,7 +1994,7 @@ declare class NfTsService {
2096
1994
  */
2097
1995
  getTokenDetails({ chainId, address, tokenId, }: {
2098
1996
  /**
2099
- * 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.
2100
1998
  */
2101
1999
  chainId: string;
2102
2000
  /**
@@ -2115,8 +2013,12 @@ type EvmNetworkOptions = {
2115
2013
  includeChains: Array<string>;
2116
2014
  };
2117
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
2118
2020
  type CreateEvmTransactionExportRequest = {
2119
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
2120
2022
  firstDate: string;
2121
2023
  lastDate: string;
2122
2024
  /**
@@ -2129,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
2129
2031
  endDate: string;
2130
2032
  options: EvmNetworkOptions;
2131
2033
  };
2132
- declare namespace CreateEvmTransactionExportRequest {
2133
- enum type {
2134
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2135
- }
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"
2136
2039
  }
2137
2040
 
2138
2041
  type PrimaryNetworkOptions = {
2139
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
2140
2043
  cChainEvmAddresses?: Array<string>;
2141
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2142
2045
  };
2143
2046
 
2144
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
2145
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
2146
2049
  firstDate: string;
2147
2050
  lastDate: string;
2148
2051
  /**
@@ -2155,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2155
2058
  endDate: string;
2156
2059
  options: PrimaryNetworkOptions;
2157
2060
  };
2158
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2159
- enum type {
2160
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2161
- }
2162
- }
2163
2061
 
2164
2062
  declare enum OperationStatus {
2165
2063
  RUNNING = "RUNNING",
@@ -2169,8 +2067,10 @@ declare enum OperationStatus {
2169
2067
  }
2170
2068
 
2171
2069
  declare enum OperationType {
2172
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2173
- 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"
2174
2074
  }
2175
2075
 
2176
2076
  declare enum OperationStatusCode {
@@ -2362,13 +2262,44 @@ type BlockchainInfo = {
2362
2262
  blockchainId: string;
2363
2263
  };
2364
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
+
2365
2280
  type Subnet = {
2366
2281
  createBlockTimestamp: number;
2367
2282
  createBlockIndex: string;
2368
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2369
2288
  ownerAddresses: Array<string>;
2370
- threshold: number;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2293
+ threshold: number;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2371
2298
  locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2372
2303
  blockchains: Array<BlockchainInfo>;
2373
2304
  };
2374
2305
 
@@ -2464,6 +2395,24 @@ declare namespace PendingValidatorDetails {
2464
2395
  }
2465
2396
  }
2466
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
+
2467
2416
  type ListValidatorDetailsResponse = {
2468
2417
  /**
2469
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.
@@ -2472,7 +2421,7 @@ type ListValidatorDetailsResponse = {
2472
2421
  /**
2473
2422
  * The list of validator Details.
2474
2423
  */
2475
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2424
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2476
2425
  };
2477
2426
 
2478
2427
  declare enum Network {
@@ -2480,10 +2429,35 @@ declare enum Network {
2480
2429
  FUJI = "fuji"
2481
2430
  }
2482
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
+
2483
2440
  declare enum ValidationStatusType {
2484
2441
  COMPLETED = "completed",
2485
2442
  ACTIVE = "active",
2486
- 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"
2487
2461
  }
2488
2462
 
2489
2463
  type XChainAssetDetails = {
@@ -2503,18 +2477,12 @@ type XChainAssetDetails = {
2503
2477
  * Denomination of this asset to represent fungibility.
2504
2478
  */
2505
2479
  denomination: number;
2506
- /**
2507
- * Type of asset like SECP256K1 or NFT.
2508
- */
2509
- type: string;
2480
+ type: PrimaryNetworkAssetType;
2510
2481
  /**
2511
2482
  * Timestamp in seconds this asset was created on.
2512
2483
  */
2513
2484
  createdAtTimestamp: number;
2514
- /**
2515
- * Cap represents if an asset can be or is fixed cap.
2516
- */
2517
- cap: string;
2485
+ cap: PrimaryNetworkAssetCap;
2518
2486
  };
2519
2487
 
2520
2488
  declare enum XChainId {
@@ -2580,19 +2548,19 @@ declare class PrimaryNetworkService {
2580
2548
  * @returns ListBlockchainsResponse
2581
2549
  * @throws ApiError
2582
2550
  */
2583
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2551
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2584
2552
  /**
2585
2553
  * Either mainnet or a testnet.
2586
2554
  */
2587
2555
  network: Network;
2588
- /**
2589
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2590
- */
2591
- pageSize?: number;
2592
2556
  /**
2593
2557
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2594
2558
  */
2595
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;
2596
2564
  /**
2597
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.
2598
2566
  */
@@ -2604,19 +2572,19 @@ declare class PrimaryNetworkService {
2604
2572
  * @returns ListSubnetsResponse
2605
2573
  * @throws ApiError
2606
2574
  */
2607
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2575
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2608
2576
  /**
2609
2577
  * Either mainnet or a testnet.
2610
2578
  */
2611
2579
  network: Network;
2612
- /**
2613
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2614
- */
2615
- pageSize?: number;
2616
2580
  /**
2617
2581
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2618
2582
  */
2619
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;
2620
2588
  /**
2621
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.
2622
2590
  */
@@ -2628,23 +2596,29 @@ declare class PrimaryNetworkService {
2628
2596
  * @returns ListValidatorDetailsResponse
2629
2597
  * @throws ApiError
2630
2598
  */
2631
- 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, }: {
2632
2600
  /**
2633
2601
  * Either mainnet or a testnet.
2634
2602
  */
2635
2603
  network: Network;
2636
- /**
2637
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2638
- */
2639
- pageSize?: number;
2640
2604
  /**
2641
2605
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2642
2606
  */
2643
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;
2644
2612
  /**
2645
2613
  * A comma separated list of node ids to filter by.
2646
2614
  */
2647
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;
2648
2622
  /**
2649
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.
2650
2624
  */
@@ -2656,31 +2630,39 @@ declare class PrimaryNetworkService {
2656
2630
  /**
2657
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
2658
2632
  */
2659
- minDelegationCapacity?: any;
2633
+ minDelegationCapacity?: string;
2660
2634
  /**
2661
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.
2662
2636
  */
2663
- maxDelegationCapacity?: any;
2637
+ maxDelegationCapacity?: string;
2664
2638
  /**
2665
2639
  * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2666
2640
  */
2667
- minTimeRemaining?: any;
2641
+ minTimeRemaining?: number;
2668
2642
  /**
2669
2643
  * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2670
2644
  */
2671
- maxTimeRemaining?: any;
2645
+ maxTimeRemaining?: number;
2646
+ /**
2647
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2648
+ */
2649
+ minFeePercentage?: number;
2672
2650
  /**
2673
- * 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.
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.
2674
2652
  */
2675
- minFeePercentage?: any;
2653
+ maxFeePercentage?: number;
2676
2654
  /**
2677
- * 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.
2655
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2678
2656
  */
2679
- maxFeePercentage?: any;
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;
2680
2662
  /**
2681
2663
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2682
2664
  */
2683
- subnetId?: string;
2665
+ subnetId?: any;
2684
2666
  }): CancelablePromise<ListValidatorDetailsResponse>;
2685
2667
  /**
2686
2668
  * Get single validator details
@@ -2688,7 +2670,7 @@ declare class PrimaryNetworkService {
2688
2670
  * @returns ListValidatorDetailsResponse
2689
2671
  * @throws ApiError
2690
2672
  */
2691
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2673
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2692
2674
  /**
2693
2675
  * Either mainnet or a testnet.
2694
2676
  */
@@ -2697,22 +2679,22 @@ declare class PrimaryNetworkService {
2697
2679
  * A primary network (P or X chain) nodeId.
2698
2680
  */
2699
2681
  nodeId: string;
2700
- /**
2701
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2702
- */
2703
- pageSize?: number;
2704
2682
  /**
2705
2683
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2706
2684
  */
2707
2685
  pageToken?: string;
2708
2686
  /**
2709
- * 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.
2710
2688
  */
2711
- sortOrder?: SortOrder;
2689
+ pageSize?: number;
2712
2690
  /**
2713
2691
  * Validation status of the node.
2714
2692
  */
2715
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;
2716
2698
  }): CancelablePromise<ListValidatorDetailsResponse>;
2717
2699
  /**
2718
2700
  * List delegators
@@ -2720,19 +2702,19 @@ declare class PrimaryNetworkService {
2720
2702
  * @returns ListDelegatorDetailsResponse
2721
2703
  * @throws ApiError
2722
2704
  */
2723
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2705
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2724
2706
  /**
2725
2707
  * Either mainnet or a testnet.
2726
2708
  */
2727
2709
  network: Network;
2728
- /**
2729
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2730
- */
2731
- pageSize?: number;
2732
2710
  /**
2733
2711
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2734
2712
  */
2735
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;
2736
2718
  /**
2737
2719
  * A comma separated list of reward addresses to filter by.
2738
2720
  */
@@ -2780,10 +2762,7 @@ type CChainSharedAssetBalance = {
2780
2762
  * Denomination of this asset to represent fungibility.
2781
2763
  */
2782
2764
  denomination: number;
2783
- /**
2784
- * Type of asset like SECP256K1 or NFT.
2785
- */
2786
- type: string;
2765
+ type: PrimaryNetworkAssetType;
2787
2766
  /**
2788
2767
  * Amount of the asset.
2789
2768
  */
@@ -2818,7 +2797,7 @@ type ListCChainAtomicBalancesResponse = {
2818
2797
  chainInfo: PrimaryNetworkChainInfo;
2819
2798
  };
2820
2799
 
2821
- type Asset = {
2800
+ type AggregatedAssetAmount = {
2822
2801
  /**
2823
2802
  * Unique ID for an asset.
2824
2803
  */
@@ -2835,14 +2814,12 @@ type Asset = {
2835
2814
  * Denomination of this asset to represent fungibility.
2836
2815
  */
2837
2816
  denomination: number;
2838
- /**
2839
- * Type of asset like SECP256K1 or NFT.
2840
- */
2841
- type: string;
2817
+ type: PrimaryNetworkAssetType;
2842
2818
  /**
2843
2819
  * Amount of the asset.
2844
2820
  */
2845
2821
  amount: string;
2822
+ utxoCount: number;
2846
2823
  };
2847
2824
 
2848
2825
  type PChainSharedAsset = {
@@ -2862,49 +2839,47 @@ type PChainSharedAsset = {
2862
2839
  * Denomination of this asset to represent fungibility.
2863
2840
  */
2864
2841
  denomination: number;
2865
- /**
2866
- * Type of asset like SECP256K1 or NFT.
2867
- */
2868
- type: string;
2842
+ type: PrimaryNetworkAssetType;
2869
2843
  /**
2870
2844
  * Amount of the asset.
2871
2845
  */
2872
2846
  amount: string;
2847
+ utxoCount: number;
2873
2848
  sharedWithChainId: string;
2874
2849
  status: string;
2875
2850
  };
2876
2851
 
2877
2852
  type PChainBalance = {
2878
2853
  /**
2879
- * 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.
2880
2855
  */
2881
- unlockedUnstaked: Array<Asset>;
2856
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2882
2857
  /**
2883
- * 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.
2884
2859
  */
2885
- unlockedStaked: Array<Asset>;
2860
+ unlockedStaked: Array<AggregatedAssetAmount>;
2886
2861
  /**
2887
- * 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.
2888
2863
  */
2889
- lockedPlatform: Array<Asset>;
2864
+ lockedPlatform: Array<AggregatedAssetAmount>;
2890
2865
  /**
2891
- * 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.
2892
2867
  */
2893
- lockedStakeable: Array<Asset>;
2868
+ lockedStakeable: Array<AggregatedAssetAmount>;
2894
2869
  /**
2895
- * 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.
2896
2871
  */
2897
- lockedStaked: Array<Asset>;
2872
+ lockedStaked: Array<AggregatedAssetAmount>;
2898
2873
  /**
2899
- * 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.
2900
2875
  */
2901
- pendingStaked: Array<Asset>;
2876
+ pendingStaked: Array<AggregatedAssetAmount>;
2902
2877
  /**
2903
- * 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.
2904
2879
  */
2905
2880
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2906
2881
  /**
2907
- * 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.
2908
2883
  */
2909
2884
  atomicMemoryLocked: Array<PChainSharedAsset>;
2910
2885
  };
@@ -2914,34 +2889,6 @@ type ListPChainBalancesResponse = {
2914
2889
  chainInfo: PrimaryNetworkChainInfo;
2915
2890
  };
2916
2891
 
2917
- type XChainAssetBalance = {
2918
- /**
2919
- * Unique ID for an asset.
2920
- */
2921
- assetId: string;
2922
- /**
2923
- * Name of this asset.
2924
- */
2925
- name: string;
2926
- /**
2927
- * Symbol for this asset (max 4 characters).
2928
- */
2929
- symbol: string;
2930
- /**
2931
- * Denomination of this asset to represent fungibility.
2932
- */
2933
- denomination: number;
2934
- /**
2935
- * Type of asset like SECP256K1 or NFT.
2936
- */
2937
- type: string;
2938
- /**
2939
- * Amount of the asset.
2940
- */
2941
- amount: string;
2942
- utxoCount: number;
2943
- };
2944
-
2945
2892
  type XChainSharedAssetBalance = {
2946
2893
  /**
2947
2894
  * Unique ID for an asset.
@@ -2959,10 +2906,7 @@ type XChainSharedAssetBalance = {
2959
2906
  * Denomination of this asset to represent fungibility.
2960
2907
  */
2961
2908
  denomination: number;
2962
- /**
2963
- * Type of asset like SECP256K1 or NFT.
2964
- */
2965
- type: string;
2909
+ type: PrimaryNetworkAssetType;
2966
2910
  /**
2967
2911
  * Amount of the asset.
2968
2912
  */
@@ -2975,11 +2919,11 @@ type XChainBalances = {
2975
2919
  /**
2976
2920
  * A list of objects containing X-chain Asset balance information.
2977
2921
  */
2978
- locked: Array<XChainAssetBalance>;
2922
+ locked: Array<AggregatedAssetAmount>;
2979
2923
  /**
2980
2924
  * A list of objects containing X-chain Asset balance information.
2981
2925
  */
2982
- unlocked: Array<XChainAssetBalance>;
2926
+ unlocked: Array<AggregatedAssetAmount>;
2983
2927
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2984
2928
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2985
2929
  };
@@ -3092,7 +3036,7 @@ declare class PrimaryNetworkBlocksService {
3092
3036
  * @returns ListPrimaryNetworkBlocksResponse
3093
3037
  * @throws ApiError
3094
3038
  */
3095
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3039
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3096
3040
  /**
3097
3041
  * A primary network blockchain id or alias.
3098
3042
  */
@@ -3105,14 +3049,14 @@ declare class PrimaryNetworkBlocksService {
3105
3049
  * A primary network (P or X chain) nodeId.
3106
3050
  */
3107
3051
  nodeId: string;
3108
- /**
3109
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3110
- */
3111
- pageSize?: number;
3112
3052
  /**
3113
3053
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3114
3054
  */
3115
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;
3116
3060
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3117
3061
  /**
3118
3062
  * List latest blocks
@@ -3120,7 +3064,7 @@ declare class PrimaryNetworkBlocksService {
3120
3064
  * @returns ListPrimaryNetworkBlocksResponse
3121
3065
  * @throws ApiError
3122
3066
  */
3123
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3067
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3124
3068
  /**
3125
3069
  * A primary network blockchain id or alias.
3126
3070
  */
@@ -3129,17 +3073,45 @@ declare class PrimaryNetworkBlocksService {
3129
3073
  * Either mainnet or a testnet.
3130
3074
  */
3131
3075
  network: Network;
3132
- /**
3133
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3134
- */
3135
- pageSize?: number;
3136
3076
  /**
3137
3077
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3138
3078
  */
3139
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;
3140
3084
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3141
3085
  }
3142
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
+
3143
3115
  declare enum RewardType {
3144
3116
  VALIDATOR = "VALIDATOR",
3145
3117
  DELEGATOR = "DELEGATOR",
@@ -3159,10 +3131,7 @@ type HistoricalReward = {
3159
3131
  rewardType: RewardType;
3160
3132
  utxoId: string;
3161
3133
  outputIndex: number;
3162
- /**
3163
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3164
- */
3165
- reward: Asset;
3134
+ reward: AssetWithPriceInfo;
3166
3135
  rewardTxHash: string;
3167
3136
  };
3168
3137
 
@@ -3174,6 +3143,30 @@ type ListHistoricalRewardsResponse = {
3174
3143
  historicalRewards: Array<HistoricalReward>;
3175
3144
  };
3176
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
+
3177
3170
  type PendingReward = {
3178
3171
  /**
3179
3172
  * An array of P-Chain wallet addresses.
@@ -3187,9 +3180,9 @@ type PendingReward = {
3187
3180
  rewardType: RewardType;
3188
3181
  progress: number;
3189
3182
  /**
3190
- * 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.
3191
3184
  */
3192
- estimatedReward: Asset;
3185
+ estimatedReward: AssetAmount;
3193
3186
  };
3194
3187
 
3195
3188
  type ListPendingRewardsResponse = {
@@ -3209,25 +3202,25 @@ declare class PrimaryNetworkRewardsService {
3209
3202
  * @returns ListPendingRewardsResponse
3210
3203
  * @throws ApiError
3211
3204
  */
3212
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3205
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3213
3206
  /**
3214
3207
  * Either mainnet or a testnet.
3215
3208
  */
3216
3209
  network: Network;
3217
3210
  /**
3218
- * 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.
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.
3219
3212
  */
3220
3213
  addresses?: string;
3221
- /**
3222
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3223
- */
3224
- pageSize?: number;
3225
3214
  /**
3226
3215
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3227
3216
  */
3228
3217
  pageToken?: string;
3229
3218
  /**
3230
- * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
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.
3231
3224
  */
3232
3225
  nodeIds?: string;
3233
3226
  /**
@@ -3241,7 +3234,7 @@ declare class PrimaryNetworkRewardsService {
3241
3234
  * @returns ListHistoricalRewardsResponse
3242
3235
  * @throws ApiError
3243
3236
  */
3244
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3237
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3245
3238
  /**
3246
3239
  * Either mainnet or a testnet.
3247
3240
  */
@@ -3250,14 +3243,14 @@ declare class PrimaryNetworkRewardsService {
3250
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.
3251
3244
  */
3252
3245
  addresses?: string;
3253
- /**
3254
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3255
- */
3256
- pageSize?: number;
3257
3246
  /**
3258
3247
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3259
3248
  */
3260
3249
  pageToken?: 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;
3261
3254
  /**
3262
3255
  * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3263
3256
  */
@@ -3266,6 +3259,10 @@ declare class PrimaryNetworkRewardsService {
3266
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.
3267
3260
  */
3268
3261
  sortOrder?: SortOrder;
3262
+ /**
3263
+ * The currency that return values should use. Defaults to USD.
3264
+ */
3265
+ currency?: CurrencyCode;
3269
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3270
3267
  }
3271
3268
 
@@ -3286,9 +3283,9 @@ type EVMInput = {
3286
3283
  */
3287
3284
  fromAddress: string;
3288
3285
  /**
3289
- * Asset details for the asset being transferred.
3286
+ * AssetAmount details for the asset being transferred.
3290
3287
  */
3291
- asset: Asset;
3288
+ asset: AssetAmount;
3292
3289
  /**
3293
3290
  * Credentials that signed this transaction.
3294
3291
  */
@@ -3300,7 +3297,7 @@ type Utxo = {
3300
3297
  * Addresses that are eligible to sign the consumption of this output.
3301
3298
  */
3302
3299
  addresses: Array<string>;
3303
- asset: Asset;
3300
+ asset: AssetAmount;
3304
3301
  /**
3305
3302
  * Blockchain ID on which this output is consumed on.
3306
3303
  */
@@ -3383,11 +3380,11 @@ type CChainExportTransaction = {
3383
3380
  /**
3384
3381
  * Assets unlocked by inputs of this transaction.
3385
3382
  */
3386
- amountUnlocked: Array<Asset>;
3383
+ amountUnlocked: Array<AssetAmount>;
3387
3384
  /**
3388
3385
  * Assets created by outputs of this transaction.
3389
3386
  */
3390
- amountCreated: Array<Asset>;
3387
+ amountCreated: Array<AssetAmount>;
3391
3388
  /**
3392
3389
  * Source chain for an atomic transaction.
3393
3390
  */
@@ -3418,9 +3415,9 @@ type EVMOutput = {
3418
3415
  */
3419
3416
  toAddress: string;
3420
3417
  /**
3421
- * Asset details for the asset being transferred.
3418
+ * AssetAmount details for the asset being transferred.
3422
3419
  */
3423
- asset: Asset;
3420
+ asset: AssetAmount;
3424
3421
  };
3425
3422
 
3426
3423
  type CChainImportTransaction = {
@@ -3447,11 +3444,11 @@ type CChainImportTransaction = {
3447
3444
  /**
3448
3445
  * Assets unlocked by inputs of this transaction.
3449
3446
  */
3450
- amountUnlocked: Array<Asset>;
3447
+ amountUnlocked: Array<AssetAmount>;
3451
3448
  /**
3452
3449
  * Assets created by outputs of this transaction.
3453
3450
  */
3454
- amountCreated: Array<Asset>;
3451
+ amountCreated: Array<AssetAmount>;
3455
3452
  /**
3456
3453
  * Source chain for an atomic transaction.
3457
3454
  */
@@ -3499,6 +3496,8 @@ declare enum PChainTransactionType {
3499
3496
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3500
3497
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3501
3498
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3499
+ BASE_TX = "BaseTx",
3500
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3502
3501
  UNKNOWN = "UNKNOWN"
3503
3502
  }
3504
3503
 
@@ -3512,7 +3511,7 @@ type PChainUtxo = {
3512
3511
  * Addresses that are eligible to sign the consumption of this output.
3513
3512
  */
3514
3513
  addresses: Array<string>;
3515
- asset: Asset;
3514
+ asset: AssetAmount;
3516
3515
  /**
3517
3516
  * Blockchain ID on which this output is consumed on.
3518
3517
  */
@@ -3576,17 +3575,17 @@ type PChainTransaction = {
3576
3575
  */
3577
3576
  destinationChain?: string;
3578
3577
  /**
3579
- * 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.
3580
3579
  */
3581
- value: Array<Asset>;
3580
+ value: Array<AssetAmount>;
3582
3581
  /**
3583
- * 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.
3584
3583
  */
3585
- amountBurned: Array<Asset>;
3584
+ amountBurned: Array<AssetAmount>;
3586
3585
  /**
3587
- * 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
3588
3587
  */
3589
- amountStaked: Array<Asset>;
3588
+ amountStaked: Array<AssetAmount>;
3590
3589
  /**
3591
3590
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3592
3591
  */
@@ -3618,6 +3617,10 @@ type PChainTransaction = {
3618
3617
  * Present for RewardValidatorTx
3619
3618
  */
3620
3619
  stakingTxHash?: string;
3620
+ /**
3621
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3622
+ */
3623
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3621
3624
  };
3622
3625
 
3623
3626
  type ListPChainTransactionsResponse = {
@@ -3629,6 +3632,9 @@ type ListPChainTransactionsResponse = {
3629
3632
  chainInfo: PrimaryNetworkChainInfo;
3630
3633
  };
3631
3634
 
3635
+ /**
3636
+ * Type of transaction.
3637
+ */
3632
3638
  declare enum XChainTransactionType {
3633
3639
  BASE_TX = "BaseTx",
3634
3640
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3651,9 +3657,6 @@ type XChainLinearTransaction = {
3651
3657
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3652
3658
  */
3653
3659
  timestamp: number;
3654
- /**
3655
- * Type of transaction.
3656
- */
3657
3660
  txType: XChainTransactionType;
3658
3661
  /**
3659
3662
  * Hex encoded memo bytes for this transaction.
@@ -3664,11 +3667,11 @@ type XChainLinearTransaction = {
3664
3667
  /**
3665
3668
  * Assets unlocked by inputs of this transaction.
3666
3669
  */
3667
- amountUnlocked: Array<Asset>;
3670
+ amountUnlocked: Array<AssetAmount>;
3668
3671
  /**
3669
3672
  * Assets created by outputs of this transaction.
3670
3673
  */
3671
- amountCreated: Array<Asset>;
3674
+ amountCreated: Array<AssetAmount>;
3672
3675
  /**
3673
3676
  * Source chain for an atomic transaction.
3674
3677
  */
@@ -3678,7 +3681,7 @@ type XChainLinearTransaction = {
3678
3681
  */
3679
3682
  destinationChain?: string;
3680
3683
  /**
3681
- * Asset details of the asset created in CreateAssetTx
3684
+ * AssetAmount details of the asset created in CreateAssetTx
3682
3685
  */
3683
3686
  assetCreated?: XChainAssetDetails;
3684
3687
  /**
@@ -3728,9 +3731,6 @@ type XChainNonLinearTransaction = {
3728
3731
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3729
3732
  */
3730
3733
  timestamp: number;
3731
- /**
3732
- * Type of transaction.
3733
- */
3734
3734
  txType: XChainTransactionType;
3735
3735
  /**
3736
3736
  * Hex encoded memo bytes for this transaction.
@@ -3741,11 +3741,11 @@ type XChainNonLinearTransaction = {
3741
3741
  /**
3742
3742
  * Assets unlocked by inputs of this transaction.
3743
3743
  */
3744
- amountUnlocked: Array<Asset>;
3744
+ amountUnlocked: Array<AssetAmount>;
3745
3745
  /**
3746
3746
  * Assets created by outputs of this transaction.
3747
3747
  */
3748
- amountCreated: Array<Asset>;
3748
+ amountCreated: Array<AssetAmount>;
3749
3749
  /**
3750
3750
  * Source chain for an atomic transaction.
3751
3751
  */
@@ -3755,7 +3755,7 @@ type XChainNonLinearTransaction = {
3755
3755
  */
3756
3756
  destinationChain?: string;
3757
3757
  /**
3758
- * Asset details of the asset created in CreateAssetTx
3758
+ * AssetAmount details of the asset created in CreateAssetTx
3759
3759
  */
3760
3760
  assetCreated?: XChainAssetDetails;
3761
3761
  /**
@@ -3801,8 +3801,9 @@ declare enum PrimaryNetworkTxType {
3801
3801
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3802
3802
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3803
3803
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3804
- UNKNOWN = "UNKNOWN",
3805
3804
  BASE_TX = "BaseTx",
3805
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3806
+ UNKNOWN = "UNKNOWN",
3806
3807
  CREATE_ASSET_TX = "CreateAssetTx",
3807
3808
  OPERATION_TX = "OperationTx"
3808
3809
  }
@@ -3834,13 +3835,13 @@ declare class PrimaryNetworkTransactionsService {
3834
3835
  * List latest transactions
3835
3836
  * Lists the latest transactions on one of the Primary Network chains.
3836
3837
  *
3837
- * 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.
3838
3839
  *
3839
3840
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3840
3841
  * @returns any
3841
3842
  * @throws ApiError
3842
3843
  */
3843
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3844
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3844
3845
  /**
3845
3846
  * A primary network blockchain id or alias.
3846
3847
  */
@@ -3865,14 +3866,14 @@ declare class PrimaryNetworkTransactionsService {
3865
3866
  * Query param for retrieving items before a specific timestamp.
3866
3867
  */
3867
3868
  endTimestamp?: number;
3868
- /**
3869
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3870
- */
3871
- pageSize?: number;
3872
3869
  /**
3873
3870
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3874
3871
  */
3875
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;
3876
3877
  /**
3877
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.
3878
3879
  */
@@ -3884,7 +3885,7 @@ declare class PrimaryNetworkTransactionsService {
3884
3885
  * @returns ListPChainTransactionsResponse
3885
3886
  * @throws ApiError
3886
3887
  */
3887
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3888
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3888
3889
  /**
3889
3890
  * A primary network blockchain id or alias.
3890
3891
  */
@@ -3909,14 +3910,14 @@ declare class PrimaryNetworkTransactionsService {
3909
3910
  * Query param for retrieving items before a specific timestamp.
3910
3911
  */
3911
3912
  endTimestamp?: number;
3912
- /**
3913
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3914
- */
3915
- pageSize?: number;
3916
3913
  /**
3917
3914
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3918
3915
  */
3919
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;
3920
3921
  /**
3921
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.
3922
3923
  */
@@ -3928,7 +3929,7 @@ declare class PrimaryNetworkTransactionsService {
3928
3929
  * @returns ListXChainTransactionsResponse
3929
3930
  * @throws ApiError
3930
3931
  */
3931
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3932
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3932
3933
  /**
3933
3934
  * A primary network blockchain id or alias.
3934
3935
  */
@@ -3953,14 +3954,14 @@ declare class PrimaryNetworkTransactionsService {
3953
3954
  * Query param for retrieving items before a specific timestamp.
3954
3955
  */
3955
3956
  endTimestamp?: number;
3956
- /**
3957
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3958
- */
3959
- pageSize?: number;
3960
3957
  /**
3961
3958
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3962
3959
  */
3963
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;
3964
3965
  }): CancelablePromise<ListXChainTransactionsResponse>;
3965
3966
  }
3966
3967
 
@@ -3991,7 +3992,7 @@ declare class PrimaryNetworkUtxOsService {
3991
3992
  * @returns any
3992
3993
  * @throws ApiError
3993
3994
  */
3994
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3995
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3995
3996
  /**
3996
3997
  * A primary network blockchain id or alias.
3997
3998
  */
@@ -4004,14 +4005,14 @@ declare class PrimaryNetworkUtxOsService {
4004
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".
4005
4006
  */
4006
4007
  addresses?: string;
4007
- /**
4008
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4009
- */
4010
- pageSize?: number;
4011
4008
  /**
4012
4009
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4013
4010
  */
4014
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;
4015
4016
  /**
4016
4017
  * Asset ID for any asset (only applicable X-Chain)
4017
4018
  */
@@ -4056,7 +4057,7 @@ declare class PrimaryNetworkVerticesService {
4056
4057
  * @returns ListXChainVerticesResponse
4057
4058
  * @throws ApiError
4058
4059
  */
4059
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4060
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4060
4061
  /**
4061
4062
  * A primary network blockchain id or alias.
4062
4063
  */
@@ -4065,14 +4066,14 @@ declare class PrimaryNetworkVerticesService {
4065
4066
  * Either mainnet or a testnet.
4066
4067
  */
4067
4068
  network: Network;
4068
- /**
4069
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4070
- */
4071
- pageSize?: number;
4072
4069
  /**
4073
4070
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4074
4071
  */
4075
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;
4076
4077
  }): CancelablePromise<ListXChainVerticesResponse>;
4077
4078
  /**
4078
4079
  * Get vertex
@@ -4100,7 +4101,7 @@ declare class PrimaryNetworkVerticesService {
4100
4101
  * @returns ListXChainVerticesResponse
4101
4102
  * @throws ApiError
4102
4103
  */
4103
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4104
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4104
4105
  /**
4105
4106
  * The height of a vertex.
4106
4107
  */
@@ -4113,14 +4114,14 @@ declare class PrimaryNetworkVerticesService {
4113
4114
  * Either mainnet or a testnet.
4114
4115
  */
4115
4116
  network: Network;
4116
- /**
4117
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4118
- */
4119
- pageSize?: number;
4120
4117
  /**
4121
4118
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4122
4119
  */
4123
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;
4124
4125
  /**
4125
4126
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4126
4127
  */
@@ -4128,6 +4129,464 @@ declare class PrimaryNetworkVerticesService {
4128
4129
  }): CancelablePromise<ListXChainVerticesResponse>;
4129
4130
  }
4130
4131
 
4132
+ type RpcErrorDto = {
4133
+ code: number;
4134
+ message: string;
4135
+ data?: Record<string, any>;
4136
+ };
4137
+
4138
+ type RpcErrorResponseDto = {
4139
+ jsonrpc: string;
4140
+ id?: (string | number);
4141
+ error: RpcErrorDto;
4142
+ };
4143
+
4144
+ type RpcRequestBodyDto = {
4145
+ method: string;
4146
+ params?: Record<string, any>;
4147
+ id?: (string | number);
4148
+ jsonrpc?: string;
4149
+ };
4150
+
4151
+ type RpcSuccessResponseDto = {
4152
+ jsonrpc: string;
4153
+ id?: (string | number);
4154
+ result: Record<string, any>;
4155
+ };
4156
+
4157
+ declare class RpcService {
4158
+ readonly httpRequest: BaseHttpRequest;
4159
+ constructor(httpRequest: BaseHttpRequest);
4160
+ /**
4161
+ * Calls JSON-RPC method
4162
+ * Calls JSON-RPC method.
4163
+ * @returns any
4164
+ * @throws ApiError
4165
+ */
4166
+ rpc({ chainId, requestBody, }: {
4167
+ /**
4168
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4169
+ */
4170
+ chainId: string;
4171
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4172
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4173
+ }
4174
+
4175
+ type TeleporterDestinationTransaction = {
4176
+ txHash: string;
4177
+ timestamp: number;
4178
+ gasSpent: string;
4179
+ rewardRedeemer: string;
4180
+ delivererAddress: string;
4181
+ };
4182
+
4183
+ type TeleporterReceipt = {
4184
+ receivedMessageNonce: string;
4185
+ relayerRewardAddress: string;
4186
+ };
4187
+
4188
+ type TeleporterRewardDetails = {
4189
+ /**
4190
+ * A wallet or contract address in mixed-case checksum encoding.
4191
+ */
4192
+ address: string;
4193
+ /**
4194
+ * The contract name.
4195
+ */
4196
+ name: string;
4197
+ /**
4198
+ * The contract symbol.
4199
+ */
4200
+ symbol: string;
4201
+ /**
4202
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4203
+ */
4204
+ decimals: number;
4205
+ /**
4206
+ * The logo uri for the address.
4207
+ */
4208
+ logoUri?: string;
4209
+ ercType: TeleporterRewardDetails.ercType;
4210
+ /**
4211
+ * The token price, if available.
4212
+ */
4213
+ price?: Money;
4214
+ value: string;
4215
+ };
4216
+ declare namespace TeleporterRewardDetails {
4217
+ enum ercType {
4218
+ ERC_20 = "ERC-20"
4219
+ }
4220
+ }
4221
+
4222
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4223
+ messageId: string;
4224
+ teleporterContractAddress: string;
4225
+ sourceBlockchainId: string;
4226
+ destinationBlockchainId: string;
4227
+ sourceEvmChainId: string;
4228
+ destinationEvmChainId: string;
4229
+ messageNonce: string;
4230
+ from: string;
4231
+ to: string;
4232
+ data?: string;
4233
+ messageExecuted: boolean;
4234
+ receipts: Array<TeleporterReceipt>;
4235
+ receiptDelivered: boolean;
4236
+ rewardDetails: TeleporterRewardDetails;
4237
+ destinationTransaction: TeleporterDestinationTransaction;
4238
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4239
+ };
4240
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4241
+ enum status {
4242
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4243
+ }
4244
+ }
4245
+
4246
+ type TeleporterSourceTransaction = {
4247
+ txHash: string;
4248
+ timestamp: number;
4249
+ gasSpent: string;
4250
+ };
4251
+
4252
+ type DeliveredTeleporterMessage = {
4253
+ messageId: string;
4254
+ teleporterContractAddress: string;
4255
+ sourceBlockchainId: string;
4256
+ destinationBlockchainId: string;
4257
+ sourceEvmChainId: string;
4258
+ destinationEvmChainId: string;
4259
+ messageNonce: string;
4260
+ from: string;
4261
+ to: string;
4262
+ data?: string;
4263
+ messageExecuted: boolean;
4264
+ receipts: Array<TeleporterReceipt>;
4265
+ receiptDelivered: boolean;
4266
+ rewardDetails: TeleporterRewardDetails;
4267
+ sourceTransaction: TeleporterSourceTransaction;
4268
+ destinationTransaction: TeleporterDestinationTransaction;
4269
+ status: DeliveredTeleporterMessage.status;
4270
+ };
4271
+ declare namespace DeliveredTeleporterMessage {
4272
+ enum status {
4273
+ DELIVERED = "delivered"
4274
+ }
4275
+ }
4276
+
4277
+ type PendingTeleporterMessage = {
4278
+ messageId: string;
4279
+ teleporterContractAddress: string;
4280
+ sourceBlockchainId: string;
4281
+ destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4284
+ messageNonce: string;
4285
+ from: string;
4286
+ to: string;
4287
+ data?: string;
4288
+ messageExecuted: boolean;
4289
+ receipts: Array<TeleporterReceipt>;
4290
+ receiptDelivered: boolean;
4291
+ rewardDetails: TeleporterRewardDetails;
4292
+ sourceTransaction: TeleporterSourceTransaction;
4293
+ status: PendingTeleporterMessage.status;
4294
+ };
4295
+ declare namespace PendingTeleporterMessage {
4296
+ enum status {
4297
+ PENDING = "pending"
4298
+ }
4299
+ }
4300
+
4301
+ type ListTeleporterMessagesResponse = {
4302
+ /**
4303
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4304
+ */
4305
+ nextPageToken?: string;
4306
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4307
+ };
4308
+
4309
+ declare class TeleporterService {
4310
+ readonly httpRequest: BaseHttpRequest;
4311
+ constructor(httpRequest: BaseHttpRequest);
4312
+ /**
4313
+ * Get a teleporter message
4314
+ * Gets a teleporter message by message ID.
4315
+ * @returns any
4316
+ * @throws ApiError
4317
+ */
4318
+ getTeleporterMessage({ messageId, }: {
4319
+ /**
4320
+ * The message ID of the teleporter message.
4321
+ */
4322
+ messageId: string;
4323
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4324
+ /**
4325
+ * List teleporter messages
4326
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4327
+ * @returns ListTeleporterMessagesResponse
4328
+ * @throws ApiError
4329
+ */
4330
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
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
+
4131
4590
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4132
4591
  declare class Glacier {
4133
4592
  readonly default: DefaultService;
@@ -4146,6 +4605,9 @@ declare class Glacier {
4146
4605
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4147
4606
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4148
4607
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4608
+ readonly rpc: RpcService;
4609
+ readonly teleporter: TeleporterService;
4610
+ readonly webhooks: WebhooksService;
4149
4611
  readonly request: BaseHttpRequest;
4150
4612
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4151
4613
  }
@@ -4167,4 +4629,11 @@ declare class ApiError extends Error {
4167
4629
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4168
4630
  }
4169
4631
 
4170
- 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 };