@avalabs/glacier-sdk 2.8.0-canary.cfb38f5.0 → 2.8.0-canary.d02981d.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 (133) hide show
  1. package/dist/index.d.ts +1057 -522
  2. package/dist/index.js +453 -210
  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/ActiveValidatorDetails.d.ts +5 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
  10. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  11. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  13. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  14. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  15. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  16. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  17. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  18. package/esm/generated/models/ChainInfo.d.ts +1 -3
  19. package/esm/generated/models/ChainStatus.d.ts +3 -0
  20. package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
  21. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  22. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  23. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  24. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  25. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  26. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  27. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  28. package/esm/generated/models/EVMInput.d.ts +3 -3
  29. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  30. package/esm/generated/models/EVMOperationType.js +6 -0
  31. package/esm/generated/models/EVMOutput.d.ts +3 -3
  32. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  33. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  34. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  35. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  36. package/esm/generated/models/GlacierApiFeature.js +7 -0
  37. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  38. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  39. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  40. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  41. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  42. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  43. package/esm/generated/models/Method.d.ts +0 -3
  44. package/esm/generated/models/Money.d.ts +0 -3
  45. package/esm/generated/models/NextPageToken.d.ts +8 -0
  46. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  47. package/esm/generated/models/OperationType.d.ts +4 -2
  48. package/esm/generated/models/OperationType.js +3 -1
  49. package/esm/generated/models/PChainBalance.d.ts +15 -15
  50. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  51. package/esm/generated/models/PChainTransaction.d.ts +17 -7
  52. package/esm/generated/models/PChainTransactionType.d.ts +8 -5
  53. package/esm/generated/models/PChainTransactionType.js +8 -5
  54. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  55. package/esm/generated/models/PendingReward.d.ts +3 -3
  56. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  57. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  58. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  59. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  60. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  61. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  62. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  63. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  64. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  65. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  66. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
  67. package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
  68. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  69. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  70. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  71. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  72. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  73. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  74. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  75. package/esm/generated/models/SortByOption.d.ts +9 -0
  76. package/esm/generated/models/SortByOption.js +10 -0
  77. package/esm/generated/models/Subnet.d.ts +17 -0
  78. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  79. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  80. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  81. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  82. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  83. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  84. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  85. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  86. package/esm/generated/models/Utxo.d.ts +30 -30
  87. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  88. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  89. package/esm/generated/models/ValidationStatusType.js +1 -0
  90. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  91. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  92. package/esm/generated/models/XChainBalances.d.ts +3 -3
  93. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  94. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  95. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  96. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  97. package/esm/generated/services/DefaultService.d.ts +0 -53
  98. package/esm/generated/services/DefaultService.js +0 -42
  99. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  100. package/esm/generated/services/EvmBalancesService.js +10 -8
  101. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  102. package/esm/generated/services/EvmBlocksService.js +4 -4
  103. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  104. package/esm/generated/services/EvmChainsService.js +4 -2
  105. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  106. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  107. package/esm/generated/services/EvmTransactionsService.js +32 -32
  108. package/esm/generated/services/NfTsService.d.ts +8 -8
  109. package/esm/generated/services/NfTsService.js +4 -4
  110. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  111. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  112. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  113. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  114. package/esm/generated/services/PrimaryNetworkService.d.ts +57 -42
  115. package/esm/generated/services/PrimaryNetworkService.js +30 -24
  116. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  117. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  118. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  119. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  120. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  121. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  122. package/esm/generated/services/RpcService.d.ts +25 -0
  123. package/esm/generated/services/RpcService.js +24 -0
  124. package/esm/generated/services/TeleporterService.d.ts +62 -0
  125. package/esm/generated/services/TeleporterService.js +41 -0
  126. package/esm/generated/services/WebhooksService.d.ts +143 -0
  127. package/esm/generated/services/WebhooksService.js +125 -0
  128. package/esm/index.d.ts +31 -3
  129. package/esm/index.js +14 -2
  130. package/package.json +3 -3
  131. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  132. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  133. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,60 +54,6 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- topic0?: string;
69
- };
70
-
71
- declare enum EventType {
72
- ADDRESS_ACTIVITY = "address_activity"
73
- }
74
-
75
- declare enum WebhookStatusType {
76
- ACTIVE = "active",
77
- INACTIVE = "inactive"
78
- }
79
-
80
- type WebhookResponse = {
81
- id: string;
82
- eventType: EventType;
83
- metadata: AddressActivityMetadata;
84
- url: string;
85
- chainId: string;
86
- status: WebhookStatusType;
87
- createdAt: number;
88
- };
89
-
90
- type ListWebhooksResponse = {
91
- /**
92
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
93
- */
94
- nextPageToken?: string;
95
- webhooks: Array<WebhookResponse>;
96
- };
97
-
98
- type RegisterWebhookRequest = {
99
- url: string;
100
- chainId: string;
101
- /**
102
- * The type of event for the webhook
103
- */
104
- eventType: EventType;
105
- metadata: AddressActivityMetadata;
106
- };
107
-
108
- type SharedSecretsResponse = {
109
- secret: string;
110
- };
111
-
112
- declare enum WebhookStatus {
113
- ACTIVE = "active",
114
- INACTIVE = "inactive"
115
- }
116
-
117
57
  declare class DefaultService {
118
58
  readonly httpRequest: BaseHttpRequest;
119
59
  constructor(httpRequest: BaseHttpRequest);
@@ -122,56 +62,11 @@ declare class DefaultService {
122
62
  * @throws ApiError
123
63
  */
124
64
  mediaControllerUploadImage(): CancelablePromise<any>;
125
- /**
126
- * Register a webhook
127
- * Registers a new webhook.
128
- * @returns WebhookResponse
129
- * @throws ApiError
130
- */
131
- registerWebhook({ requestBody, }: {
132
- requestBody: RegisterWebhookRequest;
133
- }): CancelablePromise<WebhookResponse>;
134
- /**
135
- * List webhooks
136
- * Lists webhooks for the user.
137
- * @returns ListWebhooksResponse
138
- * @throws ApiError
139
- */
140
- listWebhooks({ pageSize, pageToken, status, }: {
141
- /**
142
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
143
- */
144
- pageSize?: number;
145
- /**
146
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
- */
148
- pageToken?: string;
149
- /**
150
- * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
151
- */
152
- status?: WebhookStatus;
153
- }): CancelablePromise<ListWebhooksResponse>;
154
- /**
155
- * Deactivate a webhook
156
- * Deactivates a webhook by ID.
157
- * @returns WebhookResponse
158
- * @throws ApiError
159
- */
160
- deactivateWebhook({ id, }: {
161
- /**
162
- * The webhook identifier.
163
- */
164
- id: string;
165
- }): CancelablePromise<WebhookResponse>;
166
- /**
167
- * Generate a shared secret
168
- * Generates a new shared secret.
169
- * @returns SharedSecretsResponse
170
- * @throws ApiError
171
- */
172
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
173
65
  }
174
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
175
70
  declare enum CurrencyCode {
176
71
  USD = "usd",
177
72
  EUR = "eur",
@@ -190,9 +85,6 @@ declare enum CurrencyCode {
190
85
  }
191
86
 
192
87
  type Money = {
193
- /**
194
- * ISO 4217 currency code.
195
- */
196
88
  currencyCode: CurrencyCode;
197
89
  /**
198
90
  * Monetary value in base 10 decimals.
@@ -242,6 +134,9 @@ type GetNativeBalanceResponse = {
242
134
  nativeTokenBalance: NativeTokenBalance;
243
135
  };
244
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
245
140
  declare enum NftTokenMetadataStatus {
246
141
  UNKNOWN = "UNKNOWN",
247
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -257,9 +152,6 @@ declare enum NftTokenMetadataStatus {
257
152
  }
258
153
 
259
154
  type Erc1155TokenMetadata = {
260
- /**
261
- * The metadata indexing status of the nft.
262
- */
263
155
  indexStatus: NftTokenMetadataStatus;
264
156
  metadataLastUpdatedTimestamp?: number;
265
157
  name?: string;
@@ -298,9 +190,6 @@ declare namespace Erc1155TokenBalance {
298
190
  }
299
191
 
300
192
  type Erc721TokenMetadata = {
301
- /**
302
- * The metadata indexing status of the nft.
303
- */
304
193
  indexStatus: NftTokenMetadataStatus;
305
194
  metadataLastUpdatedTimestamp?: number;
306
195
  name?: string;
@@ -447,7 +336,7 @@ declare class EvmBalancesService {
447
336
  */
448
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
449
338
  /**
450
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
451
340
  */
452
341
  chainId: string;
453
342
  /**
@@ -473,9 +362,9 @@ declare class EvmBalancesService {
473
362
  * @returns ListErc20BalancesResponse
474
363
  * @throws ApiError
475
364
  */
476
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
477
366
  /**
478
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
479
368
  */
480
369
  chainId: string;
481
370
  /**
@@ -486,14 +375,18 @@ declare class EvmBalancesService {
486
375
  * The block number, if not defined the block number will be the latest block.
487
376
  */
488
377
  blockNumber?: string;
378
+ /**
379
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
380
+ */
381
+ pageToken?: string;
489
382
  /**
490
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
491
384
  */
492
385
  pageSize?: number;
493
386
  /**
494
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
387
+ * whether to filter out spam tokens from the response. Default is true.
495
388
  */
496
- pageToken?: string;
389
+ filterSpamTokens?: boolean;
497
390
  /**
498
391
  * A comma separated list of contract addresses to filter by.
499
392
  */
@@ -511,23 +404,23 @@ declare class EvmBalancesService {
511
404
  * @returns ListErc721BalancesResponse
512
405
  * @throws ApiError
513
406
  */
514
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
407
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
515
408
  /**
516
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
409
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
517
410
  */
518
411
  chainId: string;
519
412
  /**
520
413
  * A wallet address.
521
414
  */
522
415
  address: string;
523
- /**
524
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
525
- */
526
- pageSize?: number;
527
416
  /**
528
417
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
529
418
  */
530
419
  pageToken?: string;
420
+ /**
421
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
422
+ */
423
+ pageSize?: number;
531
424
  /**
532
425
  * A contract addresses to filter by.
533
426
  */
@@ -543,9 +436,9 @@ declare class EvmBalancesService {
543
436
  * @returns ListErc1155BalancesResponse
544
437
  * @throws ApiError
545
438
  */
546
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
439
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
547
440
  /**
548
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
441
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
549
442
  */
550
443
  chainId: string;
551
444
  /**
@@ -556,14 +449,14 @@ declare class EvmBalancesService {
556
449
  * The block number, if not defined the block number will be the latest block.
557
450
  */
558
451
  blockNumber?: string;
559
- /**
560
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
561
- */
562
- pageSize?: number;
563
452
  /**
564
453
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
565
454
  */
566
455
  pageToken?: string;
456
+ /**
457
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
458
+ */
459
+ pageSize?: number;
567
460
  /**
568
461
  * A contract addresses to filter by.
569
462
  */
@@ -577,23 +470,23 @@ declare class EvmBalancesService {
577
470
  * @returns ListCollectibleBalancesResponse
578
471
  * @throws ApiError
579
472
  */
580
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
473
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
581
474
  /**
582
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
475
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
583
476
  */
584
477
  chainId: string;
585
478
  /**
586
479
  * A wallet address.
587
480
  */
588
481
  address: string;
589
- /**
590
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
591
- */
592
- pageSize?: number;
593
482
  /**
594
483
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
595
484
  */
596
485
  pageToken?: string;
486
+ /**
487
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
488
+ */
489
+ pageSize?: number;
597
490
  /**
598
491
  * A contract addresses to filter by.
599
492
  */
@@ -706,19 +599,19 @@ declare class EvmBlocksService {
706
599
  * @returns ListEvmBlocksResponse
707
600
  * @throws ApiError
708
601
  */
709
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
602
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
710
603
  /**
711
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
604
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
712
605
  */
713
606
  chainId: string;
714
- /**
715
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
716
- */
717
- pageSize?: number;
718
607
  /**
719
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
720
609
  */
721
610
  pageToken?: string;
611
+ /**
612
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
613
+ */
614
+ pageSize?: number;
722
615
  }): CancelablePromise<ListEvmBlocksResponse>;
723
616
  /**
724
617
  * Get block
@@ -728,7 +621,7 @@ declare class EvmBlocksService {
728
621
  */
729
622
  getBlock({ chainId, blockId, }: {
730
623
  /**
731
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
624
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
732
625
  */
733
626
  chainId: string;
734
627
  /**
@@ -738,6 +631,9 @@ declare class EvmBlocksService {
738
631
  }): CancelablePromise<GetEvmBlockResponse>;
739
632
  }
740
633
 
634
+ /**
635
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
+ */
741
637
  declare enum ChainStatus {
742
638
  OK = "OK",
743
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -775,9 +671,6 @@ declare enum VmName {
775
671
 
776
672
  type GetChainResponse = {
777
673
  chainId: string;
778
- /**
779
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
780
- */
781
674
  status: ChainStatus;
782
675
  chainName: string;
783
676
  description: string;
@@ -793,13 +686,16 @@ type GetChainResponse = {
793
686
  networkToken: NetworkToken;
794
687
  chainLogoUri?: string;
795
688
  private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
796
690
  };
797
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
798
697
  type ChainInfo = {
799
698
  chainId: string;
800
- /**
801
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
802
- */
803
699
  status: ChainStatus;
804
700
  chainName: string;
805
701
  description: string;
@@ -815,6 +711,7 @@ type ChainInfo = {
815
711
  networkToken: NetworkToken;
816
712
  chainLogoUri?: string;
817
713
  private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
818
715
  };
819
716
 
820
717
  type ListChainsResponse = {
@@ -835,11 +732,15 @@ declare class EvmChainsService {
835
732
  * @returns ListChainsResponse
836
733
  * @throws ApiError
837
734
  */
838
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
839
736
  /**
840
737
  * mainnet or testnet.
841
738
  */
842
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
843
744
  }): CancelablePromise<ListChainsResponse>;
844
745
  /**
845
746
  * Get chain information
@@ -849,7 +750,7 @@ declare class EvmChainsService {
849
750
  */
850
751
  getChainInfo({ chainId, }: {
851
752
  /**
852
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
753
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
853
754
  */
854
755
  chainId: string;
855
756
  }): CancelablePromise<GetChainResponse>;
@@ -1144,7 +1045,7 @@ declare class EvmContractsService {
1144
1045
  */
1145
1046
  getContractMetadata({ chainId, address, }: {
1146
1047
  /**
1147
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1048
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1148
1049
  */
1149
1050
  chainId: string;
1150
1051
  /**
@@ -1160,7 +1061,7 @@ declare class EvmContractsService {
1160
1061
  */
1161
1062
  updateContractInfo({ chainId, address, requestBody, }: {
1162
1063
  /**
1163
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1164
1065
  */
1165
1066
  chainId: string;
1166
1067
  /**
@@ -1294,6 +1195,9 @@ type Erc721TransferDetails = {
1294
1195
  erc721Token: Erc721Token;
1295
1196
  };
1296
1197
 
1198
+ /**
1199
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
+ */
1297
1201
  declare enum TransactionMethodType {
1298
1202
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1299
1203
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1301,9 +1205,6 @@ declare enum TransactionMethodType {
1301
1205
  }
1302
1206
 
1303
1207
  type Method = {
1304
- /**
1305
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1306
- */
1307
1208
  callType: TransactionMethodType;
1308
1209
  /**
1309
1210
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1664,7 +1565,7 @@ type ListTransfersResponse = {
1664
1565
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1665
1566
  */
1666
1567
  nextPageToken?: string;
1667
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1668
1569
  };
1669
1570
 
1670
1571
  declare enum SortOrder {
@@ -1688,7 +1589,7 @@ declare class EvmTransactionsService {
1688
1589
  */
1689
1590
  getDeploymentTransaction({ chainId, address, currency, }: {
1690
1591
  /**
1691
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1592
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1692
1593
  */
1693
1594
  chainId: string;
1694
1595
  /**
@@ -1706,23 +1607,23 @@ declare class EvmTransactionsService {
1706
1607
  * @returns ListContractsResponse
1707
1608
  * @throws ApiError
1708
1609
  */
1709
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1610
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1710
1611
  /**
1711
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1612
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1712
1613
  */
1713
1614
  chainId: string;
1714
1615
  /**
1715
1616
  * A wallet address.
1716
1617
  */
1717
1618
  address: string;
1718
- /**
1719
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1720
- */
1721
- pageSize?: number;
1722
1619
  /**
1723
1620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1724
1621
  */
1725
1622
  pageToken?: string;
1623
+ /**
1624
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1625
+ */
1626
+ pageSize?: number;
1726
1627
  }): CancelablePromise<ListContractsResponse>;
1727
1628
  /**
1728
1629
  * List ERC transfers
@@ -1730,9 +1631,9 @@ declare class EvmTransactionsService {
1730
1631
  * @returns ListTransfersResponse
1731
1632
  * @throws ApiError
1732
1633
  */
1733
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1734
1635
  /**
1735
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1636
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1736
1637
  */
1737
1638
  chainId: string;
1738
1639
  /**
@@ -1747,14 +1648,14 @@ declare class EvmTransactionsService {
1747
1648
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1748
1649
  */
1749
1650
  endBlock?: number;
1750
- /**
1751
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1752
- */
1753
- pageSize?: number;
1754
1651
  /**
1755
1652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1756
1653
  */
1757
1654
  pageToken?: string;
1655
+ /**
1656
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1657
+ */
1658
+ pageSize?: number;
1758
1659
  }): CancelablePromise<ListTransfersResponse>;
1759
1660
  /**
1760
1661
  * List transactions
@@ -1764,23 +1665,23 @@ declare class EvmTransactionsService {
1764
1665
  * @returns ListTransactionDetailsResponse
1765
1666
  * @throws ApiError
1766
1667
  */
1767
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1668
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1768
1669
  /**
1769
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1670
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
1671
  */
1771
1672
  chainId: string;
1772
1673
  /**
1773
1674
  * A wallet address.
1774
1675
  */
1775
1676
  address: string;
1776
- /**
1777
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1778
- */
1779
- pageSize?: number;
1780
1677
  /**
1781
1678
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1782
1679
  */
1783
1680
  pageToken?: string;
1681
+ /**
1682
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1683
+ */
1684
+ pageSize?: number;
1784
1685
  /**
1785
1686
  * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1786
1687
  */
@@ -1800,9 +1701,9 @@ declare class EvmTransactionsService {
1800
1701
  * @returns ListNativeTransactionsResponse
1801
1702
  * @throws ApiError
1802
1703
  */
1803
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1704
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1804
1705
  /**
1805
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1706
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1806
1707
  */
1807
1708
  chainId: string;
1808
1709
  /**
@@ -1817,14 +1718,14 @@ declare class EvmTransactionsService {
1817
1718
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1818
1719
  */
1819
1720
  endBlock?: number;
1820
- /**
1821
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1822
- */
1823
- pageSize?: number;
1824
1721
  /**
1825
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1826
1723
  */
1827
1724
  pageToken?: string;
1725
+ /**
1726
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
+ */
1728
+ pageSize?: number;
1828
1729
  }): CancelablePromise<ListNativeTransactionsResponse>;
1829
1730
  /**
1830
1731
  * List ERC-20 transfers
@@ -1832,9 +1733,9 @@ declare class EvmTransactionsService {
1832
1733
  * @returns ListErc20TransactionsResponse
1833
1734
  * @throws ApiError
1834
1735
  */
1835
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1836
1737
  /**
1837
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1738
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1838
1739
  */
1839
1740
  chainId: string;
1840
1741
  /**
@@ -1849,14 +1750,14 @@ declare class EvmTransactionsService {
1849
1750
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1850
1751
  */
1851
1752
  endBlock?: number;
1852
- /**
1853
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1854
- */
1855
- pageSize?: number;
1856
1753
  /**
1857
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1858
1755
  */
1859
1756
  pageToken?: string;
1757
+ /**
1758
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
+ */
1760
+ pageSize?: number;
1860
1761
  }): CancelablePromise<ListErc20TransactionsResponse>;
1861
1762
  /**
1862
1763
  * List ERC-721 transfers
@@ -1864,9 +1765,9 @@ declare class EvmTransactionsService {
1864
1765
  * @returns ListErc721TransactionsResponse
1865
1766
  * @throws ApiError
1866
1767
  */
1867
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1868
1769
  /**
1869
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1870
1771
  */
1871
1772
  chainId: string;
1872
1773
  /**
@@ -1881,14 +1782,14 @@ declare class EvmTransactionsService {
1881
1782
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1882
1783
  */
1883
1784
  endBlock?: number;
1884
- /**
1885
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1886
- */
1887
- pageSize?: number;
1888
1785
  /**
1889
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1890
1787
  */
1891
1788
  pageToken?: string;
1789
+ /**
1790
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1791
+ */
1792
+ pageSize?: number;
1892
1793
  }): CancelablePromise<ListErc721TransactionsResponse>;
1893
1794
  /**
1894
1795
  * List ERC-1155 transfers
@@ -1896,9 +1797,9 @@ declare class EvmTransactionsService {
1896
1797
  * @returns ListErc1155TransactionsResponse
1897
1798
  * @throws ApiError
1898
1799
  */
1899
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1800
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1900
1801
  /**
1901
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1802
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1902
1803
  */
1903
1804
  chainId: string;
1904
1805
  /**
@@ -1913,14 +1814,14 @@ declare class EvmTransactionsService {
1913
1814
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1914
1815
  */
1915
1816
  endBlock?: number;
1916
- /**
1917
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1918
- */
1919
- pageSize?: number;
1920
1817
  /**
1921
1818
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1922
1819
  */
1923
1820
  pageToken?: string;
1821
+ /**
1822
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
+ */
1824
+ pageSize?: number;
1924
1825
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1925
1826
  /**
1926
1827
  * List internal transactions
@@ -1930,9 +1831,9 @@ declare class EvmTransactionsService {
1930
1831
  * @returns ListInternalTransactionsResponse
1931
1832
  * @throws ApiError
1932
1833
  */
1933
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1834
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1934
1835
  /**
1935
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1836
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1936
1837
  */
1937
1838
  chainId: string;
1938
1839
  /**
@@ -1947,14 +1848,14 @@ declare class EvmTransactionsService {
1947
1848
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1948
1849
  */
1949
1850
  endBlock?: number;
1950
- /**
1951
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1952
- */
1953
- pageSize?: number;
1954
1851
  /**
1955
1852
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1956
1853
  */
1957
1854
  pageToken?: string;
1855
+ /**
1856
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
+ */
1858
+ pageSize?: number;
1958
1859
  }): CancelablePromise<ListInternalTransactionsResponse>;
1959
1860
  /**
1960
1861
  * Get transaction
@@ -1964,7 +1865,7 @@ declare class EvmTransactionsService {
1964
1865
  */
1965
1866
  getTransaction({ chainId, txHash, }: {
1966
1867
  /**
1967
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1868
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1968
1869
  */
1969
1870
  chainId: string;
1970
1871
  /**
@@ -1980,7 +1881,7 @@ declare class EvmTransactionsService {
1980
1881
  */
1981
1882
  getTransactionsForBlock({ chainId, blockId, }: {
1982
1883
  /**
1983
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1884
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1984
1885
  */
1985
1886
  chainId: string;
1986
1887
  /**
@@ -1994,19 +1895,19 @@ declare class EvmTransactionsService {
1994
1895
  * @returns ListNativeTransactionsResponse
1995
1896
  * @throws ApiError
1996
1897
  */
1997
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1898
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1998
1899
  /**
1999
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1900
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2000
1901
  */
2001
1902
  chainId: string;
2002
- /**
2003
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2004
- */
2005
- pageSize?: number;
2006
1903
  /**
2007
1904
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2008
1905
  */
2009
1906
  pageToken?: string;
1907
+ /**
1908
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1909
+ */
1910
+ pageSize?: number;
2010
1911
  /**
2011
1912
  * A status filter for listed transactions.
2012
1913
  */
@@ -2035,7 +1936,7 @@ type ListNftTokens = {
2035
1936
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2036
1937
  */
2037
1938
  nextPageToken?: string;
2038
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2039
1940
  };
2040
1941
 
2041
1942
  declare class NfTsService {
@@ -2049,7 +1950,7 @@ declare class NfTsService {
2049
1950
  */
2050
1951
  reindexNft({ chainId, address, tokenId, }: {
2051
1952
  /**
2052
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1953
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2053
1954
  */
2054
1955
  chainId: string;
2055
1956
  /**
@@ -2067,23 +1968,23 @@ declare class NfTsService {
2067
1968
  * @returns ListNftTokens
2068
1969
  * @throws ApiError
2069
1970
  */
2070
- listTokens({ chainId, address, pageSize, pageToken, }: {
1971
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2071
1972
  /**
2072
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1973
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2073
1974
  */
2074
1975
  chainId: string;
2075
1976
  /**
2076
1977
  * Contract address on the relevant chain.
2077
1978
  */
2078
1979
  address: string;
2079
- /**
2080
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2081
- */
2082
- pageSize?: number;
2083
1980
  /**
2084
1981
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
1982
  */
2086
1983
  pageToken?: string;
1984
+ /**
1985
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1986
+ */
1987
+ pageSize?: number;
2087
1988
  }): CancelablePromise<ListNftTokens>;
2088
1989
  /**
2089
1990
  * Get token details
@@ -2093,7 +1994,7 @@ declare class NfTsService {
2093
1994
  */
2094
1995
  getTokenDetails({ chainId, address, tokenId, }: {
2095
1996
  /**
2096
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1997
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2097
1998
  */
2098
1999
  chainId: string;
2099
2000
  /**
@@ -2112,8 +2013,12 @@ type EvmNetworkOptions = {
2112
2013
  includeChains: Array<string>;
2113
2014
  };
2114
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
2115
2020
  type CreateEvmTransactionExportRequest = {
2116
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
2117
2022
  firstDate: string;
2118
2023
  lastDate: string;
2119
2024
  /**
@@ -2126,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
2126
2031
  endDate: string;
2127
2032
  options: EvmNetworkOptions;
2128
2033
  };
2129
- declare namespace CreateEvmTransactionExportRequest {
2130
- enum type {
2131
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2132
- }
2034
+
2035
+ declare enum PrimaryNetworkOperationType {
2036
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2133
2039
  }
2134
2040
 
2135
2041
  type PrimaryNetworkOptions = {
2136
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
2137
2043
  cChainEvmAddresses?: Array<string>;
2138
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2139
2045
  };
2140
2046
 
2141
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
2142
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
2143
2049
  firstDate: string;
2144
2050
  lastDate: string;
2145
2051
  /**
@@ -2152,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2152
2058
  endDate: string;
2153
2059
  options: PrimaryNetworkOptions;
2154
2060
  };
2155
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2156
- enum type {
2157
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2158
- }
2159
- }
2160
2061
 
2161
2062
  declare enum OperationStatus {
2162
2063
  RUNNING = "RUNNING",
@@ -2166,8 +2067,10 @@ declare enum OperationStatus {
2166
2067
  }
2167
2068
 
2168
2069
  declare enum OperationType {
2169
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2170
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2070
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2073
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2171
2074
  }
2172
2075
 
2173
2076
  declare enum OperationStatusCode {
@@ -2359,14 +2262,45 @@ type BlockchainInfo = {
2359
2262
  blockchainId: string;
2360
2263
  };
2361
2264
 
2265
+ type SubnetOwnershipInfo = {
2266
+ /**
2267
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2268
+ */
2269
+ locktime: number;
2270
+ /**
2271
+ * Minimum number of signatures required to sign the Subnet update transactions.
2272
+ */
2273
+ threshold: number;
2274
+ /**
2275
+ * Addresses that are eligible to sign the Subnet update transactions.
2276
+ */
2277
+ addresses: Array<string>;
2278
+ };
2279
+
2362
2280
  type Subnet = {
2363
2281
  createBlockTimestamp: number;
2364
2282
  createBlockIndex: string;
2365
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2366
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2367
2293
  threshold: number;
2368
- locktime: number;
2369
- blockchains: Array<BlockchainInfo>;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2298
+ locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2303
+ blockchains: Array<BlockchainInfo>;
2370
2304
  };
2371
2305
 
2372
2306
  type ListSubnetsResponse = {
@@ -2377,6 +2311,11 @@ type ListSubnetsResponse = {
2377
2311
  subnets: Array<Subnet>;
2378
2312
  };
2379
2313
 
2314
+ type BlsCredentials = {
2315
+ publicKey: string;
2316
+ proofOfPossession: string;
2317
+ };
2318
+
2380
2319
  type Rewards = {
2381
2320
  validationRewardAmount: string;
2382
2321
  delegationRewardAmount: string;
@@ -2411,6 +2350,10 @@ type ActiveValidatorDetails = {
2411
2350
  delegationFee?: string;
2412
2351
  startTimestamp: number;
2413
2352
  endTimestamp: number;
2353
+ /**
2354
+ * Present for AddPermissionlessValidatorTx
2355
+ */
2356
+ blsCredentials?: BlsCredentials;
2414
2357
  stakePercentage: number;
2415
2358
  delegatorCount: number;
2416
2359
  amountDelegated?: string;
@@ -2435,6 +2378,10 @@ type CompletedValidatorDetails = {
2435
2378
  delegationFee?: string;
2436
2379
  startTimestamp: number;
2437
2380
  endTimestamp: number;
2381
+ /**
2382
+ * Present for AddPermissionlessValidatorTx
2383
+ */
2384
+ blsCredentials?: BlsCredentials;
2438
2385
  delegatorCount: number;
2439
2386
  rewards: Rewards;
2440
2387
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -2453,6 +2400,10 @@ type PendingValidatorDetails = {
2453
2400
  delegationFee?: string;
2454
2401
  startTimestamp: number;
2455
2402
  endTimestamp: number;
2403
+ /**
2404
+ * Present for AddPermissionlessValidatorTx
2405
+ */
2406
+ blsCredentials?: BlsCredentials;
2456
2407
  validationStatus: PendingValidatorDetails.validationStatus;
2457
2408
  };
2458
2409
  declare namespace PendingValidatorDetails {
@@ -2461,6 +2412,28 @@ declare namespace PendingValidatorDetails {
2461
2412
  }
2462
2413
  }
2463
2414
 
2415
+ type RemovedValidatorDetails = {
2416
+ txHash: string;
2417
+ nodeId: string;
2418
+ subnetId: string;
2419
+ amountStaked: string;
2420
+ delegationFee?: string;
2421
+ startTimestamp: number;
2422
+ endTimestamp: number;
2423
+ /**
2424
+ * Present for AddPermissionlessValidatorTx
2425
+ */
2426
+ blsCredentials?: BlsCredentials;
2427
+ removeTxHash: string;
2428
+ removeTimestamp: number;
2429
+ validationStatus: RemovedValidatorDetails.validationStatus;
2430
+ };
2431
+ declare namespace RemovedValidatorDetails {
2432
+ enum validationStatus {
2433
+ REMOVED = "removed"
2434
+ }
2435
+ }
2436
+
2464
2437
  type ListValidatorDetailsResponse = {
2465
2438
  /**
2466
2439
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -2469,7 +2442,7 @@ type ListValidatorDetailsResponse = {
2469
2442
  /**
2470
2443
  * The list of validator Details.
2471
2444
  */
2472
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2445
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2473
2446
  };
2474
2447
 
2475
2448
  declare enum Network {
@@ -2477,10 +2450,35 @@ declare enum Network {
2477
2450
  FUJI = "fuji"
2478
2451
  }
2479
2452
 
2453
+ declare enum SortByOption {
2454
+ BLOCK_INDEX = "blockIndex",
2455
+ DELEGATION_CAPACITY = "delegationCapacity",
2456
+ TIME_REMAINING = "timeRemaining",
2457
+ DELEGATION_FEE = "delegationFee",
2458
+ UPTIME_PERFORMANCE = "uptimePerformance"
2459
+ }
2460
+
2480
2461
  declare enum ValidationStatusType {
2481
2462
  COMPLETED = "completed",
2482
2463
  ACTIVE = "active",
2483
- PENDING = "pending"
2464
+ PENDING = "pending",
2465
+ REMOVED = "removed"
2466
+ }
2467
+
2468
+ /**
2469
+ * Cap represents if an asset is a variable or fixed cap asset.
2470
+ */
2471
+ declare enum PrimaryNetworkAssetCap {
2472
+ FIXED = "fixed",
2473
+ VARIABLE = "variable"
2474
+ }
2475
+
2476
+ /**
2477
+ * Type of asset like SECP256K1 or NFT.
2478
+ */
2479
+ declare enum PrimaryNetworkAssetType {
2480
+ SECP256K1 = "secp256k1",
2481
+ NFT = "nft"
2484
2482
  }
2485
2483
 
2486
2484
  type XChainAssetDetails = {
@@ -2500,18 +2498,12 @@ type XChainAssetDetails = {
2500
2498
  * Denomination of this asset to represent fungibility.
2501
2499
  */
2502
2500
  denomination: number;
2503
- /**
2504
- * Type of asset like SECP256K1 or NFT.
2505
- */
2506
- type: string;
2501
+ type: PrimaryNetworkAssetType;
2507
2502
  /**
2508
2503
  * Timestamp in seconds this asset was created on.
2509
2504
  */
2510
2505
  createdAtTimestamp: number;
2511
- /**
2512
- * Cap represents if an asset can be or is fixed cap.
2513
- */
2514
- cap: string;
2506
+ cap: PrimaryNetworkAssetCap;
2515
2507
  };
2516
2508
 
2517
2509
  declare enum XChainId {
@@ -2577,19 +2569,19 @@ declare class PrimaryNetworkService {
2577
2569
  * @returns ListBlockchainsResponse
2578
2570
  * @throws ApiError
2579
2571
  */
2580
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2572
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2581
2573
  /**
2582
2574
  * Either mainnet or a testnet.
2583
2575
  */
2584
2576
  network: Network;
2585
- /**
2586
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2587
- */
2588
- pageSize?: number;
2589
2577
  /**
2590
2578
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2591
2579
  */
2592
2580
  pageToken?: string;
2581
+ /**
2582
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2583
+ */
2584
+ pageSize?: number;
2593
2585
  /**
2594
2586
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2595
2587
  */
@@ -2601,19 +2593,19 @@ declare class PrimaryNetworkService {
2601
2593
  * @returns ListSubnetsResponse
2602
2594
  * @throws ApiError
2603
2595
  */
2604
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2596
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2605
2597
  /**
2606
2598
  * Either mainnet or a testnet.
2607
2599
  */
2608
2600
  network: Network;
2609
- /**
2610
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2611
- */
2612
- pageSize?: number;
2613
2601
  /**
2614
2602
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2615
2603
  */
2616
2604
  pageToken?: string;
2605
+ /**
2606
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2607
+ */
2608
+ pageSize?: number;
2617
2609
  /**
2618
2610
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2619
2611
  */
@@ -2625,59 +2617,73 @@ declare class PrimaryNetworkService {
2625
2617
  * @returns ListValidatorDetailsResponse
2626
2618
  * @throws ApiError
2627
2619
  */
2628
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2620
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2629
2621
  /**
2630
2622
  * Either mainnet or a testnet.
2631
2623
  */
2632
2624
  network: Network;
2625
+ /**
2626
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2627
+ */
2628
+ pageToken?: string;
2633
2629
  /**
2634
2630
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2635
2631
  */
2636
2632
  pageSize?: number;
2637
2633
  /**
2638
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2634
+ * A comma separated list of node ids to filter by.
2639
2635
  */
2640
- pageToken?: string;
2636
+ nodeIds?: string;
2641
2637
  /**
2642
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2638
+ * Which property to sort by, in conjunction with sortOrder.
2639
+ *
2640
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2643
2641
  */
2644
- minTimeRemaining?: any;
2642
+ sortBy?: SortByOption;
2645
2643
  /**
2646
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2644
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2645
+ */
2646
+ sortOrder?: SortOrder;
2647
+ /**
2648
+ * Validation status of the node.
2647
2649
  */
2648
- maxTimeRemaining?: any;
2650
+ validationStatus?: ValidationStatusType;
2649
2651
  /**
2650
2652
  * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2651
2653
  */
2652
- minDelegationCapacity?: number;
2654
+ minDelegationCapacity?: string;
2653
2655
  /**
2654
2656
  * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2655
2657
  */
2656
- maxDelegationCapacity?: number;
2658
+ maxDelegationCapacity?: string;
2657
2659
  /**
2658
- * 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.
2660
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2659
2661
  */
2660
- minFeePercentage?: any;
2662
+ minTimeRemaining?: number;
2661
2663
  /**
2662
- * 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.
2664
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2665
  */
2664
- maxFeePercentage?: any;
2666
+ maxTimeRemaining?: number;
2665
2667
  /**
2666
- * A comma separated list of node ids to filter by.
2668
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2667
2669
  */
2668
- nodeIds?: string;
2670
+ minFeePercentage?: number;
2669
2671
  /**
2670
- * 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.
2672
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
2671
2673
  */
2672
- sortOrder?: SortOrder;
2674
+ maxFeePercentage?: number;
2673
2675
  /**
2674
- * Validation status of the node.
2676
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2675
2677
  */
2676
- validationStatus?: ValidationStatusType;
2678
+ minUptimePerformance?: number;
2679
+ /**
2680
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2681
+ */
2682
+ maxUptimePerformance?: number;
2677
2683
  /**
2678
2684
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2685
  */
2680
- subnetId?: string;
2686
+ subnetId?: any;
2681
2687
  }): CancelablePromise<ListValidatorDetailsResponse>;
2682
2688
  /**
2683
2689
  * Get single validator details
@@ -2685,7 +2691,7 @@ declare class PrimaryNetworkService {
2685
2691
  * @returns ListValidatorDetailsResponse
2686
2692
  * @throws ApiError
2687
2693
  */
2688
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2694
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2689
2695
  /**
2690
2696
  * Either mainnet or a testnet.
2691
2697
  */
@@ -2694,22 +2700,22 @@ declare class PrimaryNetworkService {
2694
2700
  * A primary network (P or X chain) nodeId.
2695
2701
  */
2696
2702
  nodeId: string;
2697
- /**
2698
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2699
- */
2700
- pageSize?: number;
2701
2703
  /**
2702
2704
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2703
2705
  */
2704
2706
  pageToken?: string;
2705
2707
  /**
2706
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2708
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2707
2709
  */
2708
- sortOrder?: SortOrder;
2710
+ pageSize?: number;
2709
2711
  /**
2710
2712
  * Validation status of the node.
2711
2713
  */
2712
2714
  validationStatus?: ValidationStatusType;
2715
+ /**
2716
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2717
+ */
2718
+ sortOrder?: SortOrder;
2713
2719
  }): CancelablePromise<ListValidatorDetailsResponse>;
2714
2720
  /**
2715
2721
  * List delegators
@@ -2717,19 +2723,19 @@ declare class PrimaryNetworkService {
2717
2723
  * @returns ListDelegatorDetailsResponse
2718
2724
  * @throws ApiError
2719
2725
  */
2720
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2726
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2721
2727
  /**
2722
2728
  * Either mainnet or a testnet.
2723
2729
  */
2724
2730
  network: Network;
2725
- /**
2726
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2727
- */
2728
- pageSize?: number;
2729
2731
  /**
2730
2732
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2731
2733
  */
2732
2734
  pageToken?: string;
2735
+ /**
2736
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2737
+ */
2738
+ pageSize?: number;
2733
2739
  /**
2734
2740
  * A comma separated list of reward addresses to filter by.
2735
2741
  */
@@ -2777,10 +2783,7 @@ type CChainSharedAssetBalance = {
2777
2783
  * Denomination of this asset to represent fungibility.
2778
2784
  */
2779
2785
  denomination: number;
2780
- /**
2781
- * Type of asset like SECP256K1 or NFT.
2782
- */
2783
- type: string;
2786
+ type: PrimaryNetworkAssetType;
2784
2787
  /**
2785
2788
  * Amount of the asset.
2786
2789
  */
@@ -2815,49 +2818,89 @@ type ListCChainAtomicBalancesResponse = {
2815
2818
  chainInfo: PrimaryNetworkChainInfo;
2816
2819
  };
2817
2820
 
2818
- type PChainAsset = {
2821
+ type AggregatedAssetAmount = {
2822
+ /**
2823
+ * Unique ID for an asset.
2824
+ */
2819
2825
  assetId: string;
2826
+ /**
2827
+ * Name of this asset.
2828
+ */
2829
+ name: string;
2830
+ /**
2831
+ * Symbol for this asset (max 4 characters).
2832
+ */
2833
+ symbol: string;
2834
+ /**
2835
+ * Denomination of this asset to represent fungibility.
2836
+ */
2837
+ denomination: number;
2838
+ type: PrimaryNetworkAssetType;
2839
+ /**
2840
+ * Amount of the asset.
2841
+ */
2820
2842
  amount: string;
2843
+ utxoCount: number;
2821
2844
  };
2822
2845
 
2823
2846
  type PChainSharedAsset = {
2847
+ /**
2848
+ * Unique ID for an asset.
2849
+ */
2824
2850
  assetId: string;
2851
+ /**
2852
+ * Name of this asset.
2853
+ */
2854
+ name: string;
2855
+ /**
2856
+ * Symbol for this asset (max 4 characters).
2857
+ */
2858
+ symbol: string;
2859
+ /**
2860
+ * Denomination of this asset to represent fungibility.
2861
+ */
2862
+ denomination: number;
2863
+ type: PrimaryNetworkAssetType;
2864
+ /**
2865
+ * Amount of the asset.
2866
+ */
2825
2867
  amount: string;
2868
+ utxoCount: number;
2826
2869
  sharedWithChainId: string;
2827
2870
  status: string;
2828
2871
  };
2829
2872
 
2830
2873
  type PChainBalance = {
2831
2874
  /**
2832
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2875
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2833
2876
  */
2834
- unlockedUnstaked: Array<PChainAsset>;
2877
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2835
2878
  /**
2836
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2879
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2837
2880
  */
2838
- unlockedStaked: Array<PChainAsset>;
2881
+ unlockedStaked: Array<AggregatedAssetAmount>;
2839
2882
  /**
2840
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2883
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2841
2884
  */
2842
- lockedPlatform: Array<PChainAsset>;
2885
+ lockedPlatform: Array<AggregatedAssetAmount>;
2843
2886
  /**
2844
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2887
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2845
2888
  */
2846
- lockedStakeable: Array<PChainAsset>;
2889
+ lockedStakeable: Array<AggregatedAssetAmount>;
2847
2890
  /**
2848
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2891
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2849
2892
  */
2850
- lockedStaked: Array<PChainAsset>;
2893
+ lockedStaked: Array<AggregatedAssetAmount>;
2851
2894
  /**
2852
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2895
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2853
2896
  */
2854
- pendingStaked: Array<PChainAsset>;
2897
+ pendingStaked: Array<AggregatedAssetAmount>;
2855
2898
  /**
2856
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2899
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2857
2900
  */
2858
2901
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2859
2902
  /**
2860
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2903
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2861
2904
  */
2862
2905
  atomicMemoryLocked: Array<PChainSharedAsset>;
2863
2906
  };
@@ -2867,34 +2910,6 @@ type ListPChainBalancesResponse = {
2867
2910
  chainInfo: PrimaryNetworkChainInfo;
2868
2911
  };
2869
2912
 
2870
- type XChainAssetBalance = {
2871
- /**
2872
- * Unique ID for an asset.
2873
- */
2874
- assetId: string;
2875
- /**
2876
- * Name of this asset.
2877
- */
2878
- name: string;
2879
- /**
2880
- * Symbol for this asset (max 4 characters).
2881
- */
2882
- symbol: string;
2883
- /**
2884
- * Denomination of this asset to represent fungibility.
2885
- */
2886
- denomination: number;
2887
- /**
2888
- * Type of asset like SECP256K1 or NFT.
2889
- */
2890
- type: string;
2891
- /**
2892
- * Amount of the asset.
2893
- */
2894
- amount: string;
2895
- utxoCount: number;
2896
- };
2897
-
2898
2913
  type XChainSharedAssetBalance = {
2899
2914
  /**
2900
2915
  * Unique ID for an asset.
@@ -2912,10 +2927,7 @@ type XChainSharedAssetBalance = {
2912
2927
  * Denomination of this asset to represent fungibility.
2913
2928
  */
2914
2929
  denomination: number;
2915
- /**
2916
- * Type of asset like SECP256K1 or NFT.
2917
- */
2918
- type: string;
2930
+ type: PrimaryNetworkAssetType;
2919
2931
  /**
2920
2932
  * Amount of the asset.
2921
2933
  */
@@ -2928,11 +2940,11 @@ type XChainBalances = {
2928
2940
  /**
2929
2941
  * A list of objects containing X-chain Asset balance information.
2930
2942
  */
2931
- locked: Array<XChainAssetBalance>;
2943
+ locked: Array<AggregatedAssetAmount>;
2932
2944
  /**
2933
2945
  * A list of objects containing X-chain Asset balance information.
2934
2946
  */
2935
- unlocked: Array<XChainAssetBalance>;
2947
+ unlocked: Array<AggregatedAssetAmount>;
2936
2948
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2937
2949
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2938
2950
  };
@@ -3045,7 +3057,7 @@ declare class PrimaryNetworkBlocksService {
3045
3057
  * @returns ListPrimaryNetworkBlocksResponse
3046
3058
  * @throws ApiError
3047
3059
  */
3048
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3060
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3049
3061
  /**
3050
3062
  * A primary network blockchain id or alias.
3051
3063
  */
@@ -3058,14 +3070,14 @@ declare class PrimaryNetworkBlocksService {
3058
3070
  * A primary network (P or X chain) nodeId.
3059
3071
  */
3060
3072
  nodeId: string;
3061
- /**
3062
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3063
- */
3064
- pageSize?: number;
3065
3073
  /**
3066
3074
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3067
3075
  */
3068
3076
  pageToken?: string;
3077
+ /**
3078
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3079
+ */
3080
+ pageSize?: number;
3069
3081
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3070
3082
  /**
3071
3083
  * List latest blocks
@@ -3073,7 +3085,7 @@ declare class PrimaryNetworkBlocksService {
3073
3085
  * @returns ListPrimaryNetworkBlocksResponse
3074
3086
  * @throws ApiError
3075
3087
  */
3076
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3088
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3077
3089
  /**
3078
3090
  * A primary network blockchain id or alias.
3079
3091
  */
@@ -3082,17 +3094,45 @@ declare class PrimaryNetworkBlocksService {
3082
3094
  * Either mainnet or a testnet.
3083
3095
  */
3084
3096
  network: Network;
3085
- /**
3086
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3087
- */
3088
- pageSize?: number;
3089
3097
  /**
3090
3098
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3091
3099
  */
3092
3100
  pageToken?: string;
3101
+ /**
3102
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3103
+ */
3104
+ pageSize?: number;
3093
3105
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3094
3106
  }
3095
3107
 
3108
+ type AssetWithPriceInfo = {
3109
+ /**
3110
+ * Unique ID for an asset.
3111
+ */
3112
+ assetId: string;
3113
+ /**
3114
+ * Name of this asset.
3115
+ */
3116
+ name: string;
3117
+ /**
3118
+ * Symbol for this asset (max 4 characters).
3119
+ */
3120
+ symbol: string;
3121
+ /**
3122
+ * Denomination of this asset to represent fungibility.
3123
+ */
3124
+ denomination: number;
3125
+ type: PrimaryNetworkAssetType;
3126
+ /**
3127
+ * Amount of the asset.
3128
+ */
3129
+ amount: string;
3130
+ /**
3131
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3132
+ */
3133
+ historicalPrice?: Money;
3134
+ };
3135
+
3096
3136
  declare enum RewardType {
3097
3137
  VALIDATOR = "VALIDATOR",
3098
3138
  DELEGATOR = "DELEGATOR",
@@ -3112,10 +3152,7 @@ type HistoricalReward = {
3112
3152
  rewardType: RewardType;
3113
3153
  utxoId: string;
3114
3154
  outputIndex: number;
3115
- /**
3116
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3117
- */
3118
- reward: PChainAsset;
3155
+ reward: AssetWithPriceInfo;
3119
3156
  rewardTxHash: string;
3120
3157
  };
3121
3158
 
@@ -3127,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
3127
3164
  historicalRewards: Array<HistoricalReward>;
3128
3165
  };
3129
3166
 
3167
+ type AssetAmount = {
3168
+ /**
3169
+ * Unique ID for an asset.
3170
+ */
3171
+ assetId: string;
3172
+ /**
3173
+ * Name of this asset.
3174
+ */
3175
+ name: string;
3176
+ /**
3177
+ * Symbol for this asset (max 4 characters).
3178
+ */
3179
+ symbol: string;
3180
+ /**
3181
+ * Denomination of this asset to represent fungibility.
3182
+ */
3183
+ denomination: number;
3184
+ type: PrimaryNetworkAssetType;
3185
+ /**
3186
+ * Amount of the asset.
3187
+ */
3188
+ amount: string;
3189
+ };
3190
+
3130
3191
  type PendingReward = {
3131
3192
  /**
3132
3193
  * An array of P-Chain wallet addresses.
@@ -3140,9 +3201,9 @@ type PendingReward = {
3140
3201
  rewardType: RewardType;
3141
3202
  progress: number;
3142
3203
  /**
3143
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3204
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3144
3205
  */
3145
- estimatedReward: PChainAsset;
3206
+ estimatedReward: AssetAmount;
3146
3207
  };
3147
3208
 
3148
3209
  type ListPendingRewardsResponse = {
@@ -3162,25 +3223,25 @@ declare class PrimaryNetworkRewardsService {
3162
3223
  * @returns ListPendingRewardsResponse
3163
3224
  * @throws ApiError
3164
3225
  */
3165
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3226
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3166
3227
  /**
3167
3228
  * Either mainnet or a testnet.
3168
3229
  */
3169
3230
  network: Network;
3170
3231
  /**
3171
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3232
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
3172
3233
  */
3173
3234
  addresses?: string;
3174
- /**
3175
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3176
- */
3177
- pageSize?: number;
3178
3235
  /**
3179
3236
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3180
3237
  */
3181
3238
  pageToken?: string;
3182
3239
  /**
3183
- * A comma separated list of node ids to filter by.
3240
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3241
+ */
3242
+ pageSize?: number;
3243
+ /**
3244
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3184
3245
  */
3185
3246
  nodeIds?: string;
3186
3247
  /**
@@ -3194,68 +3255,45 @@ declare class PrimaryNetworkRewardsService {
3194
3255
  * @returns ListHistoricalRewardsResponse
3195
3256
  * @throws ApiError
3196
3257
  */
3197
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3258
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3198
3259
  /**
3199
3260
  * Either mainnet or a testnet.
3200
3261
  */
3201
3262
  network: Network;
3202
3263
  /**
3203
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3264
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
3204
3265
  */
3205
3266
  addresses?: string;
3206
- /**
3207
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3208
- */
3209
- pageSize?: number;
3210
3267
  /**
3211
3268
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3212
3269
  */
3213
3270
  pageToken?: string;
3214
3271
  /**
3215
- * A comma separated list of node ids to filter by.
3272
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3273
+ */
3274
+ pageSize?: number;
3275
+ /**
3276
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3216
3277
  */
3217
3278
  nodeIds?: string;
3218
3279
  /**
3219
3280
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3220
3281
  */
3221
3282
  sortOrder?: SortOrder;
3222
- }): CancelablePromise<ListHistoricalRewardsResponse>;
3223
- }
3224
-
3225
- type Asset = {
3226
- /**
3227
- * Unique ID for an asset.
3228
- */
3229
- assetId: string;
3230
- /**
3231
- * Name of this asset.
3232
- */
3233
- name: string;
3234
- /**
3235
- * Symbol for this asset (max 4 characters).
3236
- */
3237
- symbol: string;
3238
- /**
3239
- * Denomination of this asset to represent fungibility.
3240
- */
3241
- denomination: number;
3242
- /**
3243
- * Type of asset like SECP256K1 or NFT.
3244
- */
3245
- type: string;
3246
- /**
3247
- * Amount of the asset.
3248
- */
3249
- amount: string;
3250
- };
3283
+ /**
3284
+ * The currency that return values should use. Defaults to USD.
3285
+ */
3286
+ currency?: CurrencyCode;
3287
+ }): CancelablePromise<ListHistoricalRewardsResponse>;
3288
+ }
3251
3289
 
3252
3290
  type UtxoCredential = {
3253
3291
  /**
3254
- * Signature provided to consume the output
3292
+ * Signature provided to consume the output.
3255
3293
  */
3256
3294
  signature?: string;
3257
3295
  /**
3258
- * Public key associated with the signature
3296
+ * Public key associated with the signature.
3259
3297
  */
3260
3298
  publicKey?: string;
3261
3299
  };
@@ -3266,9 +3304,9 @@ type EVMInput = {
3266
3304
  */
3267
3305
  fromAddress: string;
3268
3306
  /**
3269
- * Asset details for the asset being transferred.
3307
+ * AssetAmount details for the asset being transferred.
3270
3308
  */
3271
- asset: Asset;
3309
+ asset: AssetAmount;
3272
3310
  /**
3273
3311
  * Credentials that signed this transaction.
3274
3312
  */
@@ -3277,66 +3315,66 @@ type EVMInput = {
3277
3315
 
3278
3316
  type Utxo = {
3279
3317
  /**
3280
- * UTXO ID for this output.
3318
+ * Addresses that are eligible to sign the consumption of this output.
3281
3319
  */
3282
- utxoId: string;
3283
- asset: Asset;
3320
+ addresses: Array<string>;
3321
+ asset: AssetAmount;
3284
3322
  /**
3285
- * Type of output.
3323
+ * Blockchain ID on which this output is consumed on.
3286
3324
  */
3287
- utxoType: string;
3325
+ consumedOnChainId: string;
3288
3326
  /**
3289
- * Blockchain ID on which this output is created on.
3327
+ * Transaction ID that consumed this output.
3290
3328
  */
3291
- createdOnChainId: string;
3329
+ consumingTxHash?: string;
3292
3330
  /**
3293
- * Blockchain ID on which this output is consumed on.
3331
+ * Blockchain ID on which this output is created on.
3294
3332
  */
3295
- consumedOnChainId: string;
3333
+ createdOnChainId: string;
3296
3334
  /**
3297
- * Transaction ID that created this output.
3335
+ * UTXO ID for this output.
3298
3336
  */
3299
- creationTxHash: string;
3337
+ utxoId: string;
3300
3338
  /**
3301
- * Transaction ID that consumed this output.
3339
+ * Unix timestamp in seconds at which this output was consumed.
3302
3340
  */
3303
- consumingTxHash?: string;
3341
+ consumingTxTimestamp?: number;
3304
3342
  /**
3305
- * Timestamp in seconds this output is consumed.
3343
+ * Transaction ID that created this output.
3306
3344
  */
3307
- consumingTxTimestamp?: number;
3345
+ creationTxHash: string;
3308
3346
  /**
3309
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3347
+ * Credentials that signed the transaction to consume this utxo
3310
3348
  */
3311
- outputIndex: string;
3349
+ credentials?: Array<UtxoCredential>;
3312
3350
  /**
3313
- * Timestamp in seconds this outptut is created on.
3351
+ * Index representing the minting set for the NFT mint output.
3314
3352
  */
3315
- timestamp: number;
3353
+ groupId?: number;
3316
3354
  /**
3317
3355
  * Locktime in seconds after which this output can be consumed.
3318
3356
  */
3319
3357
  locktime: number;
3320
3358
  /**
3321
- * Minimum number of signatures required to consume this output.
3359
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3322
3360
  */
3323
- threshold: number;
3361
+ outputIndex: string;
3324
3362
  /**
3325
- * Addresses that are eligible to sign the consumption of this output.
3363
+ * Hex encoded data for NFT assets.
3326
3364
  */
3327
- addresses: Array<string>;
3365
+ payload?: string;
3328
3366
  /**
3329
- * Hex encoded data for NFT assets
3367
+ * Minimum number of signatures required to consume this output.
3330
3368
  */
3331
- payload?: string;
3369
+ threshold: number;
3332
3370
  /**
3333
- * Index representing the minting set for the NFT mint output
3371
+ * Unix timestamp in seconds at which this outptut was created.
3334
3372
  */
3335
- groupId?: number;
3373
+ timestamp: number;
3336
3374
  /**
3337
- * Credentials that signed the transaction to consume this utxo
3375
+ * Type of output.
3338
3376
  */
3339
- credentials?: Array<UtxoCredential>;
3377
+ utxoType: string;
3340
3378
  };
3341
3379
 
3342
3380
  type CChainExportTransaction = {
@@ -3363,11 +3401,11 @@ type CChainExportTransaction = {
3363
3401
  /**
3364
3402
  * Assets unlocked by inputs of this transaction.
3365
3403
  */
3366
- amountUnlocked: Array<Asset>;
3404
+ amountUnlocked: Array<AssetAmount>;
3367
3405
  /**
3368
3406
  * Assets created by outputs of this transaction.
3369
3407
  */
3370
- amountCreated: Array<Asset>;
3408
+ amountCreated: Array<AssetAmount>;
3371
3409
  /**
3372
3410
  * Source chain for an atomic transaction.
3373
3411
  */
@@ -3398,9 +3436,9 @@ type EVMOutput = {
3398
3436
  */
3399
3437
  toAddress: string;
3400
3438
  /**
3401
- * Asset details for the asset being transferred.
3439
+ * AssetAmount details for the asset being transferred.
3402
3440
  */
3403
- asset: Asset;
3441
+ asset: AssetAmount;
3404
3442
  };
3405
3443
 
3406
3444
  type CChainImportTransaction = {
@@ -3427,11 +3465,11 @@ type CChainImportTransaction = {
3427
3465
  /**
3428
3466
  * Assets unlocked by inputs of this transaction.
3429
3467
  */
3430
- amountUnlocked: Array<Asset>;
3468
+ amountUnlocked: Array<AssetAmount>;
3431
3469
  /**
3432
3470
  * Assets created by outputs of this transaction.
3433
3471
  */
3434
- amountCreated: Array<Asset>;
3472
+ amountCreated: Array<AssetAmount>;
3435
3473
  /**
3436
3474
  * Source chain for an atomic transaction.
3437
3475
  */
@@ -3467,17 +3505,20 @@ type ListCChainAtomicTransactionsResponse = {
3467
3505
 
3468
3506
  declare enum PChainTransactionType {
3469
3507
  ADD_VALIDATOR_TX = "AddValidatorTx",
3470
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3471
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3473
3508
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3474
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3475
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3509
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3476
3510
  CREATE_CHAIN_TX = "CreateChainTx",
3477
3511
  CREATE_SUBNET_TX = "CreateSubnetTx",
3478
3512
  IMPORT_TX = "ImportTx",
3479
3513
  EXPORT_TX = "ExportTx",
3480
3514
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3515
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3516
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3517
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3518
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3519
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3520
+ BASE_TX = "BaseTx",
3521
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3481
3522
  UNKNOWN = "UNKNOWN"
3482
3523
  }
3483
3524
 
@@ -3488,29 +3529,48 @@ declare enum UtxoType {
3488
3529
 
3489
3530
  type PChainUtxo = {
3490
3531
  /**
3491
- * An array of P-Chain wallet addresses.
3532
+ * Addresses that are eligible to sign the consumption of this output.
3492
3533
  */
3493
3534
  addresses: Array<string>;
3535
+ asset: AssetAmount;
3536
+ /**
3537
+ * Blockchain ID on which this output is consumed on.
3538
+ */
3539
+ consumedOnChainId: string;
3540
+ /**
3541
+ * Transaction ID that consumed this output.
3542
+ */
3543
+ consumingTxHash?: string;
3544
+ /**
3545
+ * Blockchain ID on which this output is created on.
3546
+ */
3547
+ createdOnChainId: string;
3548
+ /**
3549
+ * UTXO ID for this output.
3550
+ */
3494
3551
  utxoId: string;
3495
- txHash: string;
3496
- outputIndex: number;
3552
+ /**
3553
+ * @deprecated
3554
+ */
3555
+ amount: string;
3556
+ /**
3557
+ * @deprecated
3558
+ */
3559
+ assetId: string;
3497
3560
  blockNumber: string;
3498
3561
  blockTimestamp: number;
3499
- consumingTxHash?: string;
3500
- consumingBlockTimestamp?: number;
3501
3562
  consumingBlockNumber?: string;
3502
- assetId: string;
3503
- utxoType: UtxoType;
3504
- amount: string;
3505
- stakeableLocktime?: number;
3563
+ consumingBlockTimestamp?: number;
3506
3564
  platformLocktime?: number;
3507
- threshold?: number;
3508
- createdOnChainId: string;
3509
- consumedOnChainId: string;
3565
+ outputIndex: number;
3566
+ rewardType?: RewardType;
3567
+ stakeableLocktime?: number;
3510
3568
  staked?: boolean;
3511
- utxoStartTimestamp?: number;
3569
+ threshold?: number;
3570
+ txHash: string;
3512
3571
  utxoEndTimestamp?: number;
3513
- rewardType?: RewardType;
3572
+ utxoStartTimestamp?: number;
3573
+ utxoType: UtxoType;
3514
3574
  };
3515
3575
 
3516
3576
  type PChainTransaction = {
@@ -3536,17 +3596,17 @@ type PChainTransaction = {
3536
3596
  */
3537
3597
  destinationChain?: string;
3538
3598
  /**
3539
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3599
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3540
3600
  */
3541
- value: Array<PChainAsset>;
3601
+ value: Array<AssetAmount>;
3542
3602
  /**
3543
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3603
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3544
3604
  */
3545
- amountBurned: Array<PChainAsset>;
3605
+ amountBurned: Array<AssetAmount>;
3546
3606
  /**
3547
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3607
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3548
3608
  */
3549
- amountStaked: Array<PChainAsset>;
3609
+ amountStaked: Array<AssetAmount>;
3550
3610
  /**
3551
3611
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3552
3612
  */
@@ -3578,6 +3638,14 @@ type PChainTransaction = {
3578
3638
  * Present for RewardValidatorTx
3579
3639
  */
3580
3640
  stakingTxHash?: string;
3641
+ /**
3642
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3643
+ */
3644
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3645
+ /**
3646
+ * Present for AddPermissionlessValidatorTx
3647
+ */
3648
+ blsCredentials?: BlsCredentials;
3581
3649
  };
3582
3650
 
3583
3651
  type ListPChainTransactionsResponse = {
@@ -3589,6 +3657,9 @@ type ListPChainTransactionsResponse = {
3589
3657
  chainInfo: PrimaryNetworkChainInfo;
3590
3658
  };
3591
3659
 
3660
+ /**
3661
+ * Type of transaction.
3662
+ */
3592
3663
  declare enum XChainTransactionType {
3593
3664
  BASE_TX = "BaseTx",
3594
3665
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3611,9 +3682,6 @@ type XChainLinearTransaction = {
3611
3682
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3612
3683
  */
3613
3684
  timestamp: number;
3614
- /**
3615
- * Type of transaction.
3616
- */
3617
3685
  txType: XChainTransactionType;
3618
3686
  /**
3619
3687
  * Hex encoded memo bytes for this transaction.
@@ -3624,11 +3692,11 @@ type XChainLinearTransaction = {
3624
3692
  /**
3625
3693
  * Assets unlocked by inputs of this transaction.
3626
3694
  */
3627
- amountUnlocked: Array<Asset>;
3695
+ amountUnlocked: Array<AssetAmount>;
3628
3696
  /**
3629
3697
  * Assets created by outputs of this transaction.
3630
3698
  */
3631
- amountCreated: Array<Asset>;
3699
+ amountCreated: Array<AssetAmount>;
3632
3700
  /**
3633
3701
  * Source chain for an atomic transaction.
3634
3702
  */
@@ -3638,7 +3706,7 @@ type XChainLinearTransaction = {
3638
3706
  */
3639
3707
  destinationChain?: string;
3640
3708
  /**
3641
- * Asset details of the asset created in CreateAssetTx
3709
+ * AssetAmount details of the asset created in CreateAssetTx
3642
3710
  */
3643
3711
  assetCreated?: XChainAssetDetails;
3644
3712
  /**
@@ -3688,9 +3756,6 @@ type XChainNonLinearTransaction = {
3688
3756
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3689
3757
  */
3690
3758
  timestamp: number;
3691
- /**
3692
- * Type of transaction.
3693
- */
3694
3759
  txType: XChainTransactionType;
3695
3760
  /**
3696
3761
  * Hex encoded memo bytes for this transaction.
@@ -3701,11 +3766,11 @@ type XChainNonLinearTransaction = {
3701
3766
  /**
3702
3767
  * Assets unlocked by inputs of this transaction.
3703
3768
  */
3704
- amountUnlocked: Array<Asset>;
3769
+ amountUnlocked: Array<AssetAmount>;
3705
3770
  /**
3706
3771
  * Assets created by outputs of this transaction.
3707
3772
  */
3708
- amountCreated: Array<Asset>;
3773
+ amountCreated: Array<AssetAmount>;
3709
3774
  /**
3710
3775
  * Source chain for an atomic transaction.
3711
3776
  */
@@ -3715,7 +3780,7 @@ type XChainNonLinearTransaction = {
3715
3780
  */
3716
3781
  destinationChain?: string;
3717
3782
  /**
3718
- * Asset details of the asset created in CreateAssetTx
3783
+ * AssetAmount details of the asset created in CreateAssetTx
3719
3784
  */
3720
3785
  assetCreated?: XChainAssetDetails;
3721
3786
  /**
@@ -3749,19 +3814,21 @@ declare enum PChainId {
3749
3814
 
3750
3815
  declare enum PrimaryNetworkTxType {
3751
3816
  ADD_VALIDATOR_TX = "AddValidatorTx",
3752
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3753
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3754
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3755
3817
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3756
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3757
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3818
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3758
3819
  CREATE_CHAIN_TX = "CreateChainTx",
3759
3820
  CREATE_SUBNET_TX = "CreateSubnetTx",
3760
3821
  IMPORT_TX = "ImportTx",
3761
3822
  EXPORT_TX = "ExportTx",
3762
3823
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3763
- UNKNOWN = "UNKNOWN",
3824
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3825
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3826
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3827
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3828
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3764
3829
  BASE_TX = "BaseTx",
3830
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3831
+ UNKNOWN = "UNKNOWN",
3765
3832
  CREATE_ASSET_TX = "CreateAssetTx",
3766
3833
  OPERATION_TX = "OperationTx"
3767
3834
  }
@@ -3793,13 +3860,13 @@ declare class PrimaryNetworkTransactionsService {
3793
3860
  * List latest transactions
3794
3861
  * Lists the latest transactions on one of the Primary Network chains.
3795
3862
  *
3796
- * Transactions are filterable by addresses.
3863
+ * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3797
3864
  *
3798
3865
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3799
3866
  * @returns any
3800
3867
  * @throws ApiError
3801
3868
  */
3802
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3869
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3803
3870
  /**
3804
3871
  * A primary network blockchain id or alias.
3805
3872
  */
@@ -3824,14 +3891,14 @@ declare class PrimaryNetworkTransactionsService {
3824
3891
  * Query param for retrieving items before a specific timestamp.
3825
3892
  */
3826
3893
  endTimestamp?: number;
3827
- /**
3828
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3829
- */
3830
- pageSize?: number;
3831
3894
  /**
3832
3895
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3833
3896
  */
3834
3897
  pageToken?: string;
3898
+ /**
3899
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3900
+ */
3901
+ pageSize?: number;
3835
3902
  /**
3836
3903
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3837
3904
  */
@@ -3843,7 +3910,7 @@ declare class PrimaryNetworkTransactionsService {
3843
3910
  * @returns ListPChainTransactionsResponse
3844
3911
  * @throws ApiError
3845
3912
  */
3846
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3913
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3847
3914
  /**
3848
3915
  * A primary network blockchain id or alias.
3849
3916
  */
@@ -3868,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
3868
3935
  * Query param for retrieving items before a specific timestamp.
3869
3936
  */
3870
3937
  endTimestamp?: number;
3871
- /**
3872
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3873
- */
3874
- pageSize?: number;
3875
3938
  /**
3876
3939
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3877
3940
  */
3878
3941
  pageToken?: string;
3942
+ /**
3943
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3944
+ */
3945
+ pageSize?: number;
3879
3946
  /**
3880
3947
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3881
3948
  */
@@ -3887,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
3887
3954
  * @returns ListXChainTransactionsResponse
3888
3955
  * @throws ApiError
3889
3956
  */
3890
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3957
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3891
3958
  /**
3892
3959
  * A primary network blockchain id or alias.
3893
3960
  */
@@ -3912,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
3912
3979
  * Query param for retrieving items before a specific timestamp.
3913
3980
  */
3914
3981
  endTimestamp?: number;
3915
- /**
3916
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3917
- */
3918
- pageSize?: number;
3919
3982
  /**
3920
3983
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3921
3984
  */
3922
3985
  pageToken?: string;
3986
+ /**
3987
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3988
+ */
3989
+ pageSize?: number;
3923
3990
  }): CancelablePromise<ListXChainTransactionsResponse>;
3924
3991
  }
3925
3992
 
@@ -3950,7 +4017,7 @@ declare class PrimaryNetworkUtxOsService {
3950
4017
  * @returns any
3951
4018
  * @throws ApiError
3952
4019
  */
3953
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4020
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3954
4021
  /**
3955
4022
  * A primary network blockchain id or alias.
3956
4023
  */
@@ -3963,14 +4030,14 @@ declare class PrimaryNetworkUtxOsService {
3963
4030
  * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3964
4031
  */
3965
4032
  addresses?: string;
3966
- /**
3967
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3968
- */
3969
- pageSize?: number;
3970
4033
  /**
3971
4034
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3972
4035
  */
3973
4036
  pageToken?: string;
4037
+ /**
4038
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4039
+ */
4040
+ pageSize?: number;
3974
4041
  /**
3975
4042
  * Asset ID for any asset (only applicable X-Chain)
3976
4043
  */
@@ -4015,7 +4082,7 @@ declare class PrimaryNetworkVerticesService {
4015
4082
  * @returns ListXChainVerticesResponse
4016
4083
  * @throws ApiError
4017
4084
  */
4018
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4085
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4019
4086
  /**
4020
4087
  * A primary network blockchain id or alias.
4021
4088
  */
@@ -4024,14 +4091,14 @@ declare class PrimaryNetworkVerticesService {
4024
4091
  * Either mainnet or a testnet.
4025
4092
  */
4026
4093
  network: Network;
4027
- /**
4028
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4029
- */
4030
- pageSize?: number;
4031
4094
  /**
4032
4095
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4033
4096
  */
4034
4097
  pageToken?: string;
4098
+ /**
4099
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4100
+ */
4101
+ pageSize?: number;
4035
4102
  }): CancelablePromise<ListXChainVerticesResponse>;
4036
4103
  /**
4037
4104
  * Get vertex
@@ -4059,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
4059
4126
  * @returns ListXChainVerticesResponse
4060
4127
  * @throws ApiError
4061
4128
  */
4062
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4129
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4063
4130
  /**
4064
4131
  * The height of a vertex.
4065
4132
  */
@@ -4072,19 +4139,477 @@ declare class PrimaryNetworkVerticesService {
4072
4139
  * Either mainnet or a testnet.
4073
4140
  */
4074
4141
  network: Network;
4142
+ /**
4143
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4144
+ */
4145
+ pageToken?: string;
4075
4146
  /**
4076
4147
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4077
4148
  */
4078
4149
  pageSize?: number;
4150
+ /**
4151
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4152
+ */
4153
+ sortOrder?: SortOrder;
4154
+ }): CancelablePromise<ListXChainVerticesResponse>;
4155
+ }
4156
+
4157
+ type RpcErrorDto = {
4158
+ code: number;
4159
+ message: string;
4160
+ data?: Record<string, any>;
4161
+ };
4162
+
4163
+ type RpcErrorResponseDto = {
4164
+ jsonrpc: string;
4165
+ id?: (string | number);
4166
+ error: RpcErrorDto;
4167
+ };
4168
+
4169
+ type RpcRequestBodyDto = {
4170
+ method: string;
4171
+ params?: Record<string, any>;
4172
+ id?: (string | number);
4173
+ jsonrpc?: string;
4174
+ };
4175
+
4176
+ type RpcSuccessResponseDto = {
4177
+ jsonrpc: string;
4178
+ id?: (string | number);
4179
+ result: Record<string, any>;
4180
+ };
4181
+
4182
+ declare class RpcService {
4183
+ readonly httpRequest: BaseHttpRequest;
4184
+ constructor(httpRequest: BaseHttpRequest);
4185
+ /**
4186
+ * Calls JSON-RPC method
4187
+ * Calls JSON-RPC method.
4188
+ * @returns any
4189
+ * @throws ApiError
4190
+ */
4191
+ rpc({ chainId, requestBody, }: {
4192
+ /**
4193
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4194
+ */
4195
+ chainId: string;
4196
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4197
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4198
+ }
4199
+
4200
+ type TeleporterDestinationTransaction = {
4201
+ txHash: string;
4202
+ timestamp: number;
4203
+ gasSpent: string;
4204
+ rewardRedeemer: string;
4205
+ delivererAddress: string;
4206
+ };
4207
+
4208
+ type TeleporterReceipt = {
4209
+ receivedMessageNonce: string;
4210
+ relayerRewardAddress: string;
4211
+ };
4212
+
4213
+ type TeleporterRewardDetails = {
4214
+ /**
4215
+ * A wallet or contract address in mixed-case checksum encoding.
4216
+ */
4217
+ address: string;
4218
+ /**
4219
+ * The contract name.
4220
+ */
4221
+ name: string;
4222
+ /**
4223
+ * The contract symbol.
4224
+ */
4225
+ symbol: string;
4226
+ /**
4227
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4228
+ */
4229
+ decimals: number;
4230
+ /**
4231
+ * The logo uri for the address.
4232
+ */
4233
+ logoUri?: string;
4234
+ ercType: TeleporterRewardDetails.ercType;
4235
+ /**
4236
+ * The token price, if available.
4237
+ */
4238
+ price?: Money;
4239
+ value: string;
4240
+ };
4241
+ declare namespace TeleporterRewardDetails {
4242
+ enum ercType {
4243
+ ERC_20 = "ERC-20"
4244
+ }
4245
+ }
4246
+
4247
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4248
+ messageId: string;
4249
+ teleporterContractAddress: string;
4250
+ sourceBlockchainId: string;
4251
+ destinationBlockchainId: string;
4252
+ sourceEvmChainId: string;
4253
+ destinationEvmChainId: string;
4254
+ messageNonce: string;
4255
+ from: string;
4256
+ to: string;
4257
+ data?: string;
4258
+ messageExecuted: boolean;
4259
+ receipts: Array<TeleporterReceipt>;
4260
+ receiptDelivered: boolean;
4261
+ rewardDetails: TeleporterRewardDetails;
4262
+ destinationTransaction: TeleporterDestinationTransaction;
4263
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4264
+ };
4265
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4266
+ enum status {
4267
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4268
+ }
4269
+ }
4270
+
4271
+ type TeleporterSourceTransaction = {
4272
+ txHash: string;
4273
+ timestamp: number;
4274
+ gasSpent: string;
4275
+ };
4276
+
4277
+ type DeliveredTeleporterMessage = {
4278
+ messageId: string;
4279
+ teleporterContractAddress: string;
4280
+ sourceBlockchainId: string;
4281
+ destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4284
+ messageNonce: string;
4285
+ from: string;
4286
+ to: string;
4287
+ data?: string;
4288
+ messageExecuted: boolean;
4289
+ receipts: Array<TeleporterReceipt>;
4290
+ receiptDelivered: boolean;
4291
+ rewardDetails: TeleporterRewardDetails;
4292
+ sourceTransaction: TeleporterSourceTransaction;
4293
+ destinationTransaction: TeleporterDestinationTransaction;
4294
+ status: DeliveredTeleporterMessage.status;
4295
+ };
4296
+ declare namespace DeliveredTeleporterMessage {
4297
+ enum status {
4298
+ DELIVERED = "delivered"
4299
+ }
4300
+ }
4301
+
4302
+ type PendingTeleporterMessage = {
4303
+ messageId: string;
4304
+ teleporterContractAddress: string;
4305
+ sourceBlockchainId: string;
4306
+ destinationBlockchainId: string;
4307
+ sourceEvmChainId: string;
4308
+ destinationEvmChainId: string;
4309
+ messageNonce: string;
4310
+ from: string;
4311
+ to: string;
4312
+ data?: string;
4313
+ messageExecuted: boolean;
4314
+ receipts: Array<TeleporterReceipt>;
4315
+ receiptDelivered: boolean;
4316
+ rewardDetails: TeleporterRewardDetails;
4317
+ sourceTransaction: TeleporterSourceTransaction;
4318
+ status: PendingTeleporterMessage.status;
4319
+ };
4320
+ declare namespace PendingTeleporterMessage {
4321
+ enum status {
4322
+ PENDING = "pending"
4323
+ }
4324
+ }
4325
+
4326
+ type ListTeleporterMessagesResponse = {
4327
+ /**
4328
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4329
+ */
4330
+ nextPageToken?: string;
4331
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4332
+ };
4333
+
4334
+ declare class TeleporterService {
4335
+ readonly httpRequest: BaseHttpRequest;
4336
+ constructor(httpRequest: BaseHttpRequest);
4337
+ /**
4338
+ * Get a teleporter message
4339
+ * Gets a teleporter message by message ID.
4340
+ * @returns any
4341
+ * @throws ApiError
4342
+ */
4343
+ getTeleporterMessage({ messageId, }: {
4344
+ /**
4345
+ * The message ID of the teleporter message.
4346
+ */
4347
+ messageId: string;
4348
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4349
+ /**
4350
+ * List teleporter messages
4351
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4352
+ * @returns ListTeleporterMessagesResponse
4353
+ * @throws ApiError
4354
+ */
4355
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
4079
4356
  /**
4080
4357
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4081
4358
  */
4082
4359
  pageToken?: string;
4083
4360
  /**
4084
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4361
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4085
4362
  */
4086
- sortOrder?: SortOrder;
4087
- }): CancelablePromise<ListXChainVerticesResponse>;
4363
+ pageSize?: number;
4364
+ /**
4365
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4366
+ */
4367
+ sourceBlockchainId?: string;
4368
+ /**
4369
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4370
+ */
4371
+ destinationBlockchainId?: string;
4372
+ /**
4373
+ * The address of the recipient of the teleporter message.
4374
+ */
4375
+ to?: string;
4376
+ /**
4377
+ * The address of the sender of the teleporter message.
4378
+ */
4379
+ from?: string;
4380
+ /**
4381
+ * mainnet or testnet.
4382
+ */
4383
+ network?: NetworkType;
4384
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4385
+ }
4386
+
4387
+ type AddressesChangeRequest = {
4388
+ /**
4389
+ * Ethereum address(es) for the address_activity event type
4390
+ */
4391
+ addresses: Array<any[]>;
4392
+ };
4393
+
4394
+ type ListWebhookAddressesResponse = {
4395
+ /**
4396
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4397
+ */
4398
+ nextPageToken?: string;
4399
+ addresses: Array<string>;
4400
+ totalAddresses: number;
4401
+ };
4402
+
4403
+ type AddressActivityMetadata = {
4404
+ /**
4405
+ * Ethereum address(es) for the address_activity event type
4406
+ */
4407
+ addresses: Array<any[]>;
4408
+ /**
4409
+ * Array of hexadecimal strings of the event signatures.
4410
+ */
4411
+ eventSignatures?: Array<string>;
4412
+ };
4413
+
4414
+ declare enum EventType {
4415
+ ADDRESS_ACTIVITY = "address_activity"
4416
+ }
4417
+
4418
+ declare enum WebhookStatusType {
4419
+ ACTIVE = "active",
4420
+ INACTIVE = "inactive"
4421
+ }
4422
+
4423
+ type WebhookResponse = {
4424
+ id: string;
4425
+ eventType: EventType;
4426
+ metadata: AddressActivityMetadata;
4427
+ /**
4428
+ * Whether to include traces in the webhook payload.
4429
+ */
4430
+ includeInternalTxs?: boolean;
4431
+ /**
4432
+ * Whether to include logs in the webhook payload.
4433
+ */
4434
+ includeLogs?: boolean;
4435
+ url: string;
4436
+ chainId: string;
4437
+ status: WebhookStatusType;
4438
+ createdAt: number;
4439
+ name: string;
4440
+ description: string;
4441
+ };
4442
+
4443
+ type ListWebhooksResponse = {
4444
+ /**
4445
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4446
+ */
4447
+ nextPageToken?: string;
4448
+ webhooks: Array<WebhookResponse>;
4449
+ };
4450
+
4451
+ type RegisterWebhookRequest = {
4452
+ url: string;
4453
+ chainId: string;
4454
+ eventType: EventType;
4455
+ metadata: AddressActivityMetadata;
4456
+ /**
4457
+ * Whether to include traces in the webhook payload.
4458
+ */
4459
+ includeInternalTxs?: boolean;
4460
+ /**
4461
+ * Whether to include logs in the webhook payload.
4462
+ */
4463
+ includeLogs?: boolean;
4464
+ };
4465
+
4466
+ type SharedSecretsResponse = {
4467
+ secret: string;
4468
+ };
4469
+
4470
+ type UpdateWebhookRequest = {
4471
+ name?: string;
4472
+ description?: string;
4473
+ url?: string;
4474
+ status?: WebhookStatusType;
4475
+ includeInternalTxs?: boolean;
4476
+ includeLogs?: boolean;
4477
+ };
4478
+
4479
+ declare enum WebhookStatus {
4480
+ ACTIVE = "active",
4481
+ INACTIVE = "inactive"
4482
+ }
4483
+
4484
+ declare class WebhooksService {
4485
+ readonly httpRequest: BaseHttpRequest;
4486
+ constructor(httpRequest: BaseHttpRequest);
4487
+ /**
4488
+ * Create a webhook
4489
+ * Create a new webhook.
4490
+ * @returns WebhookResponse
4491
+ * @throws ApiError
4492
+ */
4493
+ registerWebhook({ requestBody, }: {
4494
+ requestBody: RegisterWebhookRequest;
4495
+ }): CancelablePromise<WebhookResponse>;
4496
+ /**
4497
+ * List webhooks
4498
+ * Lists webhooks for the user.
4499
+ * @returns ListWebhooksResponse
4500
+ * @throws ApiError
4501
+ */
4502
+ listWebhooks({ pageToken, pageSize, status, }: {
4503
+ /**
4504
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4505
+ */
4506
+ pageToken?: string;
4507
+ /**
4508
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4509
+ */
4510
+ pageSize?: number;
4511
+ /**
4512
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
4513
+ */
4514
+ status?: WebhookStatus;
4515
+ }): CancelablePromise<ListWebhooksResponse>;
4516
+ /**
4517
+ * Get a webhook by ID
4518
+ * Retrieves a webhook by ID.
4519
+ * @returns WebhookResponse
4520
+ * @throws ApiError
4521
+ */
4522
+ getWebhook({ id, }: {
4523
+ /**
4524
+ * The webhook identifier.
4525
+ */
4526
+ id: string;
4527
+ }): CancelablePromise<WebhookResponse>;
4528
+ /**
4529
+ * Deactivate a webhook
4530
+ * Deactivates a webhook by ID.
4531
+ * @returns WebhookResponse
4532
+ * @throws ApiError
4533
+ */
4534
+ deactivateWebhook({ id, }: {
4535
+ /**
4536
+ * The webhook identifier.
4537
+ */
4538
+ id: string;
4539
+ }): CancelablePromise<WebhookResponse>;
4540
+ /**
4541
+ * Update a webhook
4542
+ * Updates an existing webhook.
4543
+ * @returns WebhookResponse
4544
+ * @throws ApiError
4545
+ */
4546
+ updateWebhook({ id, requestBody, }: {
4547
+ /**
4548
+ * The webhook identifier.
4549
+ */
4550
+ id: string;
4551
+ requestBody: UpdateWebhookRequest;
4552
+ }): CancelablePromise<WebhookResponse>;
4553
+ /**
4554
+ * Generate a shared secret
4555
+ * Generates a new shared secret.
4556
+ * @returns SharedSecretsResponse
4557
+ * @throws ApiError
4558
+ */
4559
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4560
+ /**
4561
+ * Get a shared secret
4562
+ * Get a previously generated shared secret.
4563
+ * @returns SharedSecretsResponse
4564
+ * @throws ApiError
4565
+ */
4566
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4567
+ /**
4568
+ * Add addresses to webhook
4569
+ * Add addresses to webhook.
4570
+ * @returns WebhookResponse
4571
+ * @throws ApiError
4572
+ */
4573
+ addAddressesToWebhook({ id, requestBody, }: {
4574
+ /**
4575
+ * The webhook identifier.
4576
+ */
4577
+ id: string;
4578
+ requestBody: AddressesChangeRequest;
4579
+ }): CancelablePromise<WebhookResponse>;
4580
+ /**
4581
+ * Remove addresses from webhook
4582
+ * Remove addresses from webhook.
4583
+ * @returns WebhookResponse
4584
+ * @throws ApiError
4585
+ */
4586
+ removeAddressesFromWebhook({ id, requestBody, }: {
4587
+ /**
4588
+ * The webhook identifier.
4589
+ */
4590
+ id: string;
4591
+ requestBody: AddressesChangeRequest;
4592
+ }): CancelablePromise<WebhookResponse>;
4593
+ /**
4594
+ * List adresses by webhook
4595
+ * List adresses by webhook.
4596
+ * @returns ListWebhookAddressesResponse
4597
+ * @throws ApiError
4598
+ */
4599
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4600
+ /**
4601
+ * The webhook identifier.
4602
+ */
4603
+ id: string;
4604
+ /**
4605
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4606
+ */
4607
+ pageToken?: string;
4608
+ /**
4609
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4610
+ */
4611
+ pageSize?: number;
4612
+ }): CancelablePromise<ListWebhookAddressesResponse>;
4088
4613
  }
4089
4614
 
4090
4615
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4105,6 +4630,9 @@ declare class Glacier {
4105
4630
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4106
4631
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4107
4632
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4633
+ readonly rpc: RpcService;
4634
+ readonly teleporter: TeleporterService;
4635
+ readonly webhooks: WebhooksService;
4108
4636
  readonly request: BaseHttpRequest;
4109
4637
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4110
4638
  }
@@ -4126,4 +4654,11 @@ declare class ApiError extends Error {
4126
4654
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4127
4655
  }
4128
4656
 
4129
- 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, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, 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 };
4657
+ type NextPageToken = {
4658
+ /**
4659
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4660
+ */
4661
+ nextPageToken?: string;
4662
+ };
4663
+
4664
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };