@avalabs/glacier-sdk 2.8.0-canary.8b38735.0 → 2.8.0-canary.8f73dc7.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 (125) hide show
  1. package/dist/index.d.ts +934 -531
  2. package/dist/index.js +407 -212
  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 +41 -36
  7. package/esm/generated/core/OpenAPI.d.ts +5 -5
  8. package/esm/generated/core/request.js +25 -9
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +1 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  19. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  20. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  21. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  22. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  23. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  24. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  25. package/esm/generated/models/EVMInput.d.ts +3 -3
  26. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  27. package/esm/generated/models/EVMOperationType.js +6 -0
  28. package/esm/generated/models/EVMOutput.d.ts +3 -3
  29. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  30. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  31. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  32. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  33. package/esm/generated/models/GlacierApiFeature.js +6 -0
  34. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  35. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  36. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  37. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  38. package/esm/generated/models/Method.d.ts +0 -3
  39. package/esm/generated/models/Money.d.ts +0 -3
  40. package/esm/generated/models/NextPageToken.d.ts +8 -0
  41. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  42. package/esm/generated/models/OperationType.d.ts +4 -2
  43. package/esm/generated/models/OperationType.js +3 -1
  44. package/esm/generated/models/PChainBalance.d.ts +15 -15
  45. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  46. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  47. package/esm/generated/models/PChainTransactionType.d.ts +8 -5
  48. package/esm/generated/models/PChainTransactionType.js +8 -5
  49. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  50. package/esm/generated/models/PendingReward.d.ts +3 -3
  51. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  52. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  53. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  54. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  55. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  56. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  57. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  58. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  59. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  60. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
  61. package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
  62. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  63. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  64. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  65. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  66. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  67. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  68. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  69. package/esm/generated/models/Subnet.d.ts +17 -0
  70. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  71. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  72. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  73. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  74. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  75. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  76. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  77. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  78. package/esm/generated/models/Utxo.d.ts +30 -30
  79. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  80. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  81. package/esm/generated/models/ValidationStatusType.js +1 -0
  82. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  83. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  84. package/esm/generated/models/XChainBalances.d.ts +3 -3
  85. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  86. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  87. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  88. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  89. package/esm/generated/services/DefaultService.d.ts +0 -53
  90. package/esm/generated/services/DefaultService.js +0 -42
  91. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  92. package/esm/generated/services/EvmBalancesService.js +8 -8
  93. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  94. package/esm/generated/services/EvmBlocksService.js +4 -4
  95. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  96. package/esm/generated/services/EvmChainsService.js +4 -2
  97. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  98. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  99. package/esm/generated/services/EvmTransactionsService.js +32 -32
  100. package/esm/generated/services/NfTsService.d.ts +8 -8
  101. package/esm/generated/services/NfTsService.js +4 -4
  102. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  103. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  104. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  105. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  106. package/esm/generated/services/PrimaryNetworkService.d.ts +42 -42
  107. package/esm/generated/services/PrimaryNetworkService.js +20 -20
  108. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  109. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  110. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  111. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  112. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  113. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  114. package/esm/generated/services/RpcService.d.ts +25 -0
  115. package/esm/generated/services/RpcService.js +24 -0
  116. package/esm/generated/services/TeleporterService.d.ts +57 -0
  117. package/esm/generated/services/TeleporterService.js +39 -0
  118. package/esm/generated/services/WebhooksService.d.ts +95 -0
  119. package/esm/generated/services/WebhooksService.js +80 -0
  120. package/esm/index.d.ts +26 -3
  121. package/esm/index.js +13 -2
  122. package/package.json +3 -3
  123. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  124. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  125. 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>;
@@ -46,11 +40,11 @@ type OpenAPIConfig = {
46
40
  VERSION: string;
47
41
  WITH_CREDENTIALS: boolean;
48
42
  CREDENTIALS: 'include' | 'omit' | 'same-origin';
49
- TOKEN?: string | Resolver<string>;
50
- USERNAME?: string | Resolver<string>;
51
- PASSWORD?: string | Resolver<string>;
52
- HEADERS?: Headers | Resolver<Headers>;
53
- ENCODE_PATH?: (path: string) => string;
43
+ TOKEN?: string | Resolver<string> | undefined;
44
+ USERNAME?: string | Resolver<string> | undefined;
45
+ PASSWORD?: string | Resolver<string> | undefined;
46
+ HEADERS?: Headers | Resolver<Headers> | undefined;
47
+ ENCODE_PATH?: ((path: string) => string) | undefined;
54
48
  };
55
49
  declare const OpenAPI: OpenAPIConfig;
56
50
 
@@ -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, 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,14 @@ 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;
489
- /**
490
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
491
- */
492
- pageSize?: number;
493
378
  /**
494
379
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
495
380
  */
496
381
  pageToken?: string;
382
+ /**
383
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
384
+ */
385
+ pageSize?: number;
497
386
  /**
498
387
  * A comma separated list of contract addresses to filter by.
499
388
  */
@@ -511,23 +400,23 @@ declare class EvmBalancesService {
511
400
  * @returns ListErc721BalancesResponse
512
401
  * @throws ApiError
513
402
  */
514
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
403
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
515
404
  /**
516
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
517
406
  */
518
407
  chainId: string;
519
408
  /**
520
409
  * A wallet address.
521
410
  */
522
411
  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
412
  /**
528
413
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
529
414
  */
530
415
  pageToken?: string;
416
+ /**
417
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
418
+ */
419
+ pageSize?: number;
531
420
  /**
532
421
  * A contract addresses to filter by.
533
422
  */
@@ -543,9 +432,9 @@ declare class EvmBalancesService {
543
432
  * @returns ListErc1155BalancesResponse
544
433
  * @throws ApiError
545
434
  */
546
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
435
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
547
436
  /**
548
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
549
438
  */
550
439
  chainId: string;
551
440
  /**
@@ -556,14 +445,14 @@ declare class EvmBalancesService {
556
445
  * The block number, if not defined the block number will be the latest block.
557
446
  */
558
447
  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
448
  /**
564
449
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
565
450
  */
566
451
  pageToken?: string;
452
+ /**
453
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
454
+ */
455
+ pageSize?: number;
567
456
  /**
568
457
  * A contract addresses to filter by.
569
458
  */
@@ -577,23 +466,23 @@ declare class EvmBalancesService {
577
466
  * @returns ListCollectibleBalancesResponse
578
467
  * @throws ApiError
579
468
  */
580
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
469
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
581
470
  /**
582
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
583
472
  */
584
473
  chainId: string;
585
474
  /**
586
475
  * A wallet address.
587
476
  */
588
477
  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
478
  /**
594
479
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
595
480
  */
596
481
  pageToken?: string;
482
+ /**
483
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
484
+ */
485
+ pageSize?: number;
597
486
  /**
598
487
  * A contract addresses to filter by.
599
488
  */
@@ -706,19 +595,19 @@ declare class EvmBlocksService {
706
595
  * @returns ListEvmBlocksResponse
707
596
  * @throws ApiError
708
597
  */
709
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
598
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
710
599
  /**
711
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
712
601
  */
713
602
  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
603
  /**
719
604
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
720
605
  */
721
606
  pageToken?: string;
607
+ /**
608
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
609
+ */
610
+ pageSize?: number;
722
611
  }): CancelablePromise<ListEvmBlocksResponse>;
723
612
  /**
724
613
  * Get block
@@ -728,7 +617,7 @@ declare class EvmBlocksService {
728
617
  */
729
618
  getBlock({ chainId, blockId, }: {
730
619
  /**
731
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
732
621
  */
733
622
  chainId: string;
734
623
  /**
@@ -738,6 +627,9 @@ declare class EvmBlocksService {
738
627
  }): CancelablePromise<GetEvmBlockResponse>;
739
628
  }
740
629
 
630
+ /**
631
+ * 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.
632
+ */
741
633
  declare enum ChainStatus {
742
634
  OK = "OK",
743
635
  UNAVAILABLE = "UNAVAILABLE"
@@ -775,9 +667,6 @@ declare enum VmName {
775
667
 
776
668
  type GetChainResponse = {
777
669
  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
670
  status: ChainStatus;
782
671
  chainName: string;
783
672
  description: string;
@@ -793,13 +682,15 @@ type GetChainResponse = {
793
682
  networkToken: NetworkToken;
794
683
  chainLogoUri?: string;
795
684
  private?: boolean;
685
+ enabledFeatures?: Array<'nftIndexing'>;
796
686
  };
797
687
 
688
+ declare enum GlacierApiFeature {
689
+ NFT_INDEXING = "nftIndexing"
690
+ }
691
+
798
692
  type ChainInfo = {
799
693
  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
694
  status: ChainStatus;
804
695
  chainName: string;
805
696
  description: string;
@@ -815,6 +706,7 @@ type ChainInfo = {
815
706
  networkToken: NetworkToken;
816
707
  chainLogoUri?: string;
817
708
  private?: boolean;
709
+ enabledFeatures?: Array<'nftIndexing'>;
818
710
  };
819
711
 
820
712
  type ListChainsResponse = {
@@ -835,11 +727,15 @@ declare class EvmChainsService {
835
727
  * @returns ListChainsResponse
836
728
  * @throws ApiError
837
729
  */
838
- supportedChains({ network, }: {
730
+ supportedChains({ network, feature, }: {
839
731
  /**
840
732
  * mainnet or testnet.
841
733
  */
842
734
  network?: NetworkType;
735
+ /**
736
+ * Filter by feature.
737
+ */
738
+ feature?: GlacierApiFeature;
843
739
  }): CancelablePromise<ListChainsResponse>;
844
740
  /**
845
741
  * Get chain information
@@ -849,7 +745,7 @@ declare class EvmChainsService {
849
745
  */
850
746
  getChainInfo({ chainId, }: {
851
747
  /**
852
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
748
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
853
749
  */
854
750
  chainId: string;
855
751
  }): CancelablePromise<GetChainResponse>;
@@ -1144,7 +1040,7 @@ declare class EvmContractsService {
1144
1040
  */
1145
1041
  getContractMetadata({ chainId, address, }: {
1146
1042
  /**
1147
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1043
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1148
1044
  */
1149
1045
  chainId: string;
1150
1046
  /**
@@ -1160,7 +1056,7 @@ declare class EvmContractsService {
1160
1056
  */
1161
1057
  updateContractInfo({ chainId, address, requestBody, }: {
1162
1058
  /**
1163
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1059
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1164
1060
  */
1165
1061
  chainId: string;
1166
1062
  /**
@@ -1294,6 +1190,9 @@ type Erc721TransferDetails = {
1294
1190
  erc721Token: Erc721Token;
1295
1191
  };
1296
1192
 
1193
+ /**
1194
+ * 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.
1195
+ */
1297
1196
  declare enum TransactionMethodType {
1298
1197
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1299
1198
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1301,9 +1200,6 @@ declare enum TransactionMethodType {
1301
1200
  }
1302
1201
 
1303
1202
  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
1203
  callType: TransactionMethodType;
1308
1204
  /**
1309
1205
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1664,7 +1560,7 @@ type ListTransfersResponse = {
1664
1560
  * 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
1561
  */
1666
1562
  nextPageToken?: string;
1667
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1563
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1668
1564
  };
1669
1565
 
1670
1566
  declare enum SortOrder {
@@ -1688,7 +1584,7 @@ declare class EvmTransactionsService {
1688
1584
  */
1689
1585
  getDeploymentTransaction({ chainId, address, currency, }: {
1690
1586
  /**
1691
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1587
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1692
1588
  */
1693
1589
  chainId: string;
1694
1590
  /**
@@ -1706,23 +1602,23 @@ declare class EvmTransactionsService {
1706
1602
  * @returns ListContractsResponse
1707
1603
  * @throws ApiError
1708
1604
  */
1709
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1605
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1710
1606
  /**
1711
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1607
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1712
1608
  */
1713
1609
  chainId: string;
1714
1610
  /**
1715
1611
  * A wallet address.
1716
1612
  */
1717
1613
  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
1614
  /**
1723
1615
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1724
1616
  */
1725
1617
  pageToken?: string;
1618
+ /**
1619
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1620
+ */
1621
+ pageSize?: number;
1726
1622
  }): CancelablePromise<ListContractsResponse>;
1727
1623
  /**
1728
1624
  * List ERC transfers
@@ -1730,9 +1626,9 @@ declare class EvmTransactionsService {
1730
1626
  * @returns ListTransfersResponse
1731
1627
  * @throws ApiError
1732
1628
  */
1733
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1629
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1734
1630
  /**
1735
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1631
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1736
1632
  */
1737
1633
  chainId: string;
1738
1634
  /**
@@ -1747,14 +1643,14 @@ declare class EvmTransactionsService {
1747
1643
  * 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
1644
  */
1749
1645
  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
1646
  /**
1755
1647
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1756
1648
  */
1757
1649
  pageToken?: string;
1650
+ /**
1651
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1652
+ */
1653
+ pageSize?: number;
1758
1654
  }): CancelablePromise<ListTransfersResponse>;
1759
1655
  /**
1760
1656
  * List transactions
@@ -1764,23 +1660,23 @@ declare class EvmTransactionsService {
1764
1660
  * @returns ListTransactionDetailsResponse
1765
1661
  * @throws ApiError
1766
1662
  */
1767
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1663
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1768
1664
  /**
1769
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1665
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
1666
  */
1771
1667
  chainId: string;
1772
1668
  /**
1773
1669
  * A wallet address.
1774
1670
  */
1775
1671
  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
1672
  /**
1781
1673
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1782
1674
  */
1783
1675
  pageToken?: string;
1676
+ /**
1677
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1678
+ */
1679
+ pageSize?: number;
1784
1680
  /**
1785
1681
  * 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
1682
  */
@@ -1800,9 +1696,9 @@ declare class EvmTransactionsService {
1800
1696
  * @returns ListNativeTransactionsResponse
1801
1697
  * @throws ApiError
1802
1698
  */
1803
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1699
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1804
1700
  /**
1805
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1701
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1806
1702
  */
1807
1703
  chainId: string;
1808
1704
  /**
@@ -1817,14 +1713,14 @@ declare class EvmTransactionsService {
1817
1713
  * 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
1714
  */
1819
1715
  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
1716
  /**
1825
1717
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1826
1718
  */
1827
1719
  pageToken?: string;
1720
+ /**
1721
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1722
+ */
1723
+ pageSize?: number;
1828
1724
  }): CancelablePromise<ListNativeTransactionsResponse>;
1829
1725
  /**
1830
1726
  * List ERC-20 transfers
@@ -1832,9 +1728,9 @@ declare class EvmTransactionsService {
1832
1728
  * @returns ListErc20TransactionsResponse
1833
1729
  * @throws ApiError
1834
1730
  */
1835
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1731
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1836
1732
  /**
1837
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1733
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1838
1734
  */
1839
1735
  chainId: string;
1840
1736
  /**
@@ -1849,14 +1745,14 @@ declare class EvmTransactionsService {
1849
1745
  * 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
1746
  */
1851
1747
  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
1748
  /**
1857
1749
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1858
1750
  */
1859
1751
  pageToken?: string;
1752
+ /**
1753
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1754
+ */
1755
+ pageSize?: number;
1860
1756
  }): CancelablePromise<ListErc20TransactionsResponse>;
1861
1757
  /**
1862
1758
  * List ERC-721 transfers
@@ -1864,9 +1760,9 @@ declare class EvmTransactionsService {
1864
1760
  * @returns ListErc721TransactionsResponse
1865
1761
  * @throws ApiError
1866
1762
  */
1867
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1763
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1868
1764
  /**
1869
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1765
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1870
1766
  */
1871
1767
  chainId: string;
1872
1768
  /**
@@ -1881,14 +1777,14 @@ declare class EvmTransactionsService {
1881
1777
  * 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
1778
  */
1883
1779
  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
1780
  /**
1889
1781
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1890
1782
  */
1891
1783
  pageToken?: string;
1784
+ /**
1785
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1786
+ */
1787
+ pageSize?: number;
1892
1788
  }): CancelablePromise<ListErc721TransactionsResponse>;
1893
1789
  /**
1894
1790
  * List ERC-1155 transfers
@@ -1896,9 +1792,9 @@ declare class EvmTransactionsService {
1896
1792
  * @returns ListErc1155TransactionsResponse
1897
1793
  * @throws ApiError
1898
1794
  */
1899
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1795
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1900
1796
  /**
1901
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1797
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1902
1798
  */
1903
1799
  chainId: string;
1904
1800
  /**
@@ -1913,14 +1809,14 @@ declare class EvmTransactionsService {
1913
1809
  * 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
1810
  */
1915
1811
  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
1812
  /**
1921
1813
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1922
1814
  */
1923
1815
  pageToken?: string;
1816
+ /**
1817
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1818
+ */
1819
+ pageSize?: number;
1924
1820
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1925
1821
  /**
1926
1822
  * List internal transactions
@@ -1930,9 +1826,9 @@ declare class EvmTransactionsService {
1930
1826
  * @returns ListInternalTransactionsResponse
1931
1827
  * @throws ApiError
1932
1828
  */
1933
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1829
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1934
1830
  /**
1935
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1831
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1936
1832
  */
1937
1833
  chainId: string;
1938
1834
  /**
@@ -1947,14 +1843,14 @@ declare class EvmTransactionsService {
1947
1843
  * 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
1844
  */
1949
1845
  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
1846
  /**
1955
1847
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1956
1848
  */
1957
1849
  pageToken?: string;
1850
+ /**
1851
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1852
+ */
1853
+ pageSize?: number;
1958
1854
  }): CancelablePromise<ListInternalTransactionsResponse>;
1959
1855
  /**
1960
1856
  * Get transaction
@@ -1964,7 +1860,7 @@ declare class EvmTransactionsService {
1964
1860
  */
1965
1861
  getTransaction({ chainId, txHash, }: {
1966
1862
  /**
1967
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1863
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1968
1864
  */
1969
1865
  chainId: string;
1970
1866
  /**
@@ -1980,7 +1876,7 @@ declare class EvmTransactionsService {
1980
1876
  */
1981
1877
  getTransactionsForBlock({ chainId, blockId, }: {
1982
1878
  /**
1983
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1879
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1984
1880
  */
1985
1881
  chainId: string;
1986
1882
  /**
@@ -1994,19 +1890,19 @@ declare class EvmTransactionsService {
1994
1890
  * @returns ListNativeTransactionsResponse
1995
1891
  * @throws ApiError
1996
1892
  */
1997
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1893
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1998
1894
  /**
1999
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1895
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2000
1896
  */
2001
1897
  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
1898
  /**
2007
1899
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2008
1900
  */
2009
1901
  pageToken?: string;
1902
+ /**
1903
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1904
+ */
1905
+ pageSize?: number;
2010
1906
  /**
2011
1907
  * A status filter for listed transactions.
2012
1908
  */
@@ -2035,7 +1931,7 @@ type ListNftTokens = {
2035
1931
  * 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
1932
  */
2037
1933
  nextPageToken?: string;
2038
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1934
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2039
1935
  };
2040
1936
 
2041
1937
  declare class NfTsService {
@@ -2049,7 +1945,7 @@ declare class NfTsService {
2049
1945
  */
2050
1946
  reindexNft({ chainId, address, tokenId, }: {
2051
1947
  /**
2052
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1948
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2053
1949
  */
2054
1950
  chainId: string;
2055
1951
  /**
@@ -2067,23 +1963,23 @@ declare class NfTsService {
2067
1963
  * @returns ListNftTokens
2068
1964
  * @throws ApiError
2069
1965
  */
2070
- listTokens({ chainId, address, pageSize, pageToken, }: {
1966
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2071
1967
  /**
2072
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1968
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2073
1969
  */
2074
1970
  chainId: string;
2075
1971
  /**
2076
1972
  * Contract address on the relevant chain.
2077
1973
  */
2078
1974
  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
1975
  /**
2084
1976
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
1977
  */
2086
1978
  pageToken?: string;
1979
+ /**
1980
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1981
+ */
1982
+ pageSize?: number;
2087
1983
  }): CancelablePromise<ListNftTokens>;
2088
1984
  /**
2089
1985
  * Get token details
@@ -2093,7 +1989,7 @@ declare class NfTsService {
2093
1989
  */
2094
1990
  getTokenDetails({ chainId, address, tokenId, }: {
2095
1991
  /**
2096
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1992
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2097
1993
  */
2098
1994
  chainId: string;
2099
1995
  /**
@@ -2112,8 +2008,12 @@ type EvmNetworkOptions = {
2112
2008
  includeChains: Array<string>;
2113
2009
  };
2114
2010
 
2011
+ declare enum EVMOperationType {
2012
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2013
+ }
2014
+
2115
2015
  type CreateEvmTransactionExportRequest = {
2116
- type: CreateEvmTransactionExportRequest.type;
2016
+ type: EVMOperationType;
2117
2017
  firstDate: string;
2118
2018
  lastDate: string;
2119
2019
  /**
@@ -2126,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
2126
2026
  endDate: string;
2127
2027
  options: EvmNetworkOptions;
2128
2028
  };
2129
- declare namespace CreateEvmTransactionExportRequest {
2130
- enum type {
2131
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2132
- }
2029
+
2030
+ declare enum PrimaryNetworkOperationType {
2031
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2032
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2033
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2133
2034
  }
2134
2035
 
2135
2036
  type PrimaryNetworkOptions = {
2136
- addresses: Array<string>;
2037
+ addresses?: Array<string>;
2137
2038
  cChainEvmAddresses?: Array<string>;
2138
2039
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2139
2040
  };
2140
2041
 
2141
2042
  type CreatePrimaryNetworkTransactionExportRequest = {
2142
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2043
+ type: PrimaryNetworkOperationType;
2143
2044
  firstDate: string;
2144
2045
  lastDate: string;
2145
2046
  /**
@@ -2152,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2152
2053
  endDate: string;
2153
2054
  options: PrimaryNetworkOptions;
2154
2055
  };
2155
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2156
- enum type {
2157
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2158
- }
2159
- }
2160
2056
 
2161
2057
  declare enum OperationStatus {
2162
2058
  RUNNING = "RUNNING",
@@ -2166,8 +2062,10 @@ declare enum OperationStatus {
2166
2062
  }
2167
2063
 
2168
2064
  declare enum OperationType {
2169
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2170
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2065
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2066
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2067
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2068
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2171
2069
  }
2172
2070
 
2173
2071
  declare enum OperationStatusCode {
@@ -2359,13 +2257,44 @@ type BlockchainInfo = {
2359
2257
  blockchainId: string;
2360
2258
  };
2361
2259
 
2260
+ type SubnetOwnershipInfo = {
2261
+ /**
2262
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2263
+ */
2264
+ locktime: number;
2265
+ /**
2266
+ * Minimum number of signatures required to sign the Subnet update transactions.
2267
+ */
2268
+ threshold: number;
2269
+ /**
2270
+ * Addresses that are eligible to sign the Subnet update transactions.
2271
+ */
2272
+ addresses: Array<string>;
2273
+ };
2274
+
2362
2275
  type Subnet = {
2363
2276
  createBlockTimestamp: number;
2364
2277
  createBlockIndex: string;
2365
2278
  subnetId: string;
2279
+ /**
2280
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2281
+ * @deprecated
2282
+ */
2366
2283
  ownerAddresses: Array<string>;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2367
2288
  threshold: number;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2368
2293
  locktime: number;
2294
+ /**
2295
+ * Latest subnet owner details for this Subnet.
2296
+ */
2297
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2369
2298
  blockchains: Array<BlockchainInfo>;
2370
2299
  };
2371
2300
 
@@ -2461,6 +2390,24 @@ declare namespace PendingValidatorDetails {
2461
2390
  }
2462
2391
  }
2463
2392
 
2393
+ type RemovedValidatorDetails = {
2394
+ txHash: string;
2395
+ nodeId: string;
2396
+ subnetId: string;
2397
+ amountStaked: string;
2398
+ delegationFee?: string;
2399
+ startTimestamp: number;
2400
+ endTimestamp: number;
2401
+ removeTxHash: string;
2402
+ removeTimestamp: number;
2403
+ validationStatus: RemovedValidatorDetails.validationStatus;
2404
+ };
2405
+ declare namespace RemovedValidatorDetails {
2406
+ enum validationStatus {
2407
+ REMOVED = "removed"
2408
+ }
2409
+ }
2410
+
2464
2411
  type ListValidatorDetailsResponse = {
2465
2412
  /**
2466
2413
  * 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 +2416,7 @@ type ListValidatorDetailsResponse = {
2469
2416
  /**
2470
2417
  * The list of validator Details.
2471
2418
  */
2472
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2419
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2473
2420
  };
2474
2421
 
2475
2422
  declare enum Network {
@@ -2480,7 +2427,24 @@ declare enum Network {
2480
2427
  declare enum ValidationStatusType {
2481
2428
  COMPLETED = "completed",
2482
2429
  ACTIVE = "active",
2483
- PENDING = "pending"
2430
+ PENDING = "pending",
2431
+ REMOVED = "removed"
2432
+ }
2433
+
2434
+ /**
2435
+ * Cap represents if an asset is a variable or fixed cap asset.
2436
+ */
2437
+ declare enum PrimaryNetworkAssetCap {
2438
+ FIXED = "fixed",
2439
+ VARIABLE = "variable"
2440
+ }
2441
+
2442
+ /**
2443
+ * Type of asset like SECP256K1 or NFT.
2444
+ */
2445
+ declare enum PrimaryNetworkAssetType {
2446
+ SECP256K1 = "secp256k1",
2447
+ NFT = "nft"
2484
2448
  }
2485
2449
 
2486
2450
  type XChainAssetDetails = {
@@ -2500,18 +2464,12 @@ type XChainAssetDetails = {
2500
2464
  * Denomination of this asset to represent fungibility.
2501
2465
  */
2502
2466
  denomination: number;
2503
- /**
2504
- * Type of asset like SECP256K1 or NFT.
2505
- */
2506
- type: string;
2467
+ type: PrimaryNetworkAssetType;
2507
2468
  /**
2508
2469
  * Timestamp in seconds this asset was created on.
2509
2470
  */
2510
2471
  createdAtTimestamp: number;
2511
- /**
2512
- * Cap represents if an asset can be or is fixed cap.
2513
- */
2514
- cap: string;
2472
+ cap: PrimaryNetworkAssetCap;
2515
2473
  };
2516
2474
 
2517
2475
  declare enum XChainId {
@@ -2577,19 +2535,19 @@ declare class PrimaryNetworkService {
2577
2535
  * @returns ListBlockchainsResponse
2578
2536
  * @throws ApiError
2579
2537
  */
2580
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2538
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2581
2539
  /**
2582
2540
  * Either mainnet or a testnet.
2583
2541
  */
2584
2542
  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
2543
  /**
2590
2544
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2591
2545
  */
2592
2546
  pageToken?: string;
2547
+ /**
2548
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2549
+ */
2550
+ pageSize?: number;
2593
2551
  /**
2594
2552
  * 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
2553
  */
@@ -2601,19 +2559,19 @@ declare class PrimaryNetworkService {
2601
2559
  * @returns ListSubnetsResponse
2602
2560
  * @throws ApiError
2603
2561
  */
2604
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2562
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2605
2563
  /**
2606
2564
  * Either mainnet or a testnet.
2607
2565
  */
2608
2566
  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
2567
  /**
2614
2568
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2615
2569
  */
2616
2570
  pageToken?: string;
2571
+ /**
2572
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2573
+ */
2574
+ pageSize?: number;
2617
2575
  /**
2618
2576
  * 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
2577
  */
@@ -2625,59 +2583,59 @@ declare class PrimaryNetworkService {
2625
2583
  * @returns ListValidatorDetailsResponse
2626
2584
  * @throws ApiError
2627
2585
  */
2628
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2586
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2629
2587
  /**
2630
2588
  * Either mainnet or a testnet.
2631
2589
  */
2632
2590
  network: Network;
2591
+ /**
2592
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2593
+ */
2594
+ pageToken?: string;
2633
2595
  /**
2634
2596
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2635
2597
  */
2636
2598
  pageSize?: number;
2637
2599
  /**
2638
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2600
+ * A comma separated list of node ids to filter by.
2639
2601
  */
2640
- pageToken?: string;
2602
+ nodeIds?: string;
2641
2603
  /**
2642
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2604
+ * 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.
2643
2605
  */
2644
- minTimeRemaining?: any;
2606
+ sortOrder?: SortOrder;
2645
2607
  /**
2646
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2608
+ * Validation status of the node.
2647
2609
  */
2648
- maxTimeRemaining?: any;
2610
+ validationStatus?: ValidationStatusType;
2649
2611
  /**
2650
2612
  * 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
2613
  */
2652
- minDelegationCapacity?: number;
2614
+ minDelegationCapacity?: string;
2653
2615
  /**
2654
2616
  * 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
2617
  */
2656
- maxDelegationCapacity?: number;
2657
- /**
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.
2659
- */
2660
- minFeePercentage?: any;
2618
+ maxDelegationCapacity?: string;
2661
2619
  /**
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.
2620
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2621
  */
2664
- maxFeePercentage?: any;
2622
+ minTimeRemaining?: number;
2665
2623
  /**
2666
- * A comma separated list of node ids to filter by.
2624
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
2625
  */
2668
- nodeIds?: string;
2626
+ maxTimeRemaining?: number;
2669
2627
  /**
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.
2628
+ * 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.
2671
2629
  */
2672
- sortOrder?: SortOrder;
2630
+ minFeePercentage?: number;
2673
2631
  /**
2674
- * Validation status of the node.
2632
+ * 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.
2675
2633
  */
2676
- validationStatus?: ValidationStatusType;
2634
+ maxFeePercentage?: number;
2677
2635
  /**
2678
2636
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2637
  */
2680
- subnetId?: string;
2638
+ subnetId?: any;
2681
2639
  }): CancelablePromise<ListValidatorDetailsResponse>;
2682
2640
  /**
2683
2641
  * Get single validator details
@@ -2685,7 +2643,7 @@ declare class PrimaryNetworkService {
2685
2643
  * @returns ListValidatorDetailsResponse
2686
2644
  * @throws ApiError
2687
2645
  */
2688
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2646
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2689
2647
  /**
2690
2648
  * Either mainnet or a testnet.
2691
2649
  */
@@ -2694,14 +2652,14 @@ declare class PrimaryNetworkService {
2694
2652
  * A primary network (P or X chain) nodeId.
2695
2653
  */
2696
2654
  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
2655
  /**
2702
2656
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2703
2657
  */
2704
2658
  pageToken?: string;
2659
+ /**
2660
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2661
+ */
2662
+ pageSize?: number;
2705
2663
  /**
2706
2664
  * 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.
2707
2665
  */
@@ -2717,19 +2675,19 @@ declare class PrimaryNetworkService {
2717
2675
  * @returns ListDelegatorDetailsResponse
2718
2676
  * @throws ApiError
2719
2677
  */
2720
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2678
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2721
2679
  /**
2722
2680
  * Either mainnet or a testnet.
2723
2681
  */
2724
2682
  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
2683
  /**
2730
2684
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2731
2685
  */
2732
2686
  pageToken?: string;
2687
+ /**
2688
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2689
+ */
2690
+ pageSize?: number;
2733
2691
  /**
2734
2692
  * A comma separated list of reward addresses to filter by.
2735
2693
  */
@@ -2777,10 +2735,7 @@ type CChainSharedAssetBalance = {
2777
2735
  * Denomination of this asset to represent fungibility.
2778
2736
  */
2779
2737
  denomination: number;
2780
- /**
2781
- * Type of asset like SECP256K1 or NFT.
2782
- */
2783
- type: string;
2738
+ type: PrimaryNetworkAssetType;
2784
2739
  /**
2785
2740
  * Amount of the asset.
2786
2741
  */
@@ -2815,49 +2770,89 @@ type ListCChainAtomicBalancesResponse = {
2815
2770
  chainInfo: PrimaryNetworkChainInfo;
2816
2771
  };
2817
2772
 
2818
- type PChainAsset = {
2773
+ type AggregatedAssetAmount = {
2774
+ /**
2775
+ * Unique ID for an asset.
2776
+ */
2819
2777
  assetId: string;
2778
+ /**
2779
+ * Name of this asset.
2780
+ */
2781
+ name: string;
2782
+ /**
2783
+ * Symbol for this asset (max 4 characters).
2784
+ */
2785
+ symbol: string;
2786
+ /**
2787
+ * Denomination of this asset to represent fungibility.
2788
+ */
2789
+ denomination: number;
2790
+ type: PrimaryNetworkAssetType;
2791
+ /**
2792
+ * Amount of the asset.
2793
+ */
2820
2794
  amount: string;
2795
+ utxoCount: number;
2821
2796
  };
2822
2797
 
2823
2798
  type PChainSharedAsset = {
2799
+ /**
2800
+ * Unique ID for an asset.
2801
+ */
2824
2802
  assetId: string;
2803
+ /**
2804
+ * Name of this asset.
2805
+ */
2806
+ name: string;
2807
+ /**
2808
+ * Symbol for this asset (max 4 characters).
2809
+ */
2810
+ symbol: string;
2811
+ /**
2812
+ * Denomination of this asset to represent fungibility.
2813
+ */
2814
+ denomination: number;
2815
+ type: PrimaryNetworkAssetType;
2816
+ /**
2817
+ * Amount of the asset.
2818
+ */
2825
2819
  amount: string;
2820
+ utxoCount: number;
2826
2821
  sharedWithChainId: string;
2827
2822
  status: string;
2828
2823
  };
2829
2824
 
2830
2825
  type PChainBalance = {
2831
2826
  /**
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.
2827
+ * 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
2828
  */
2834
- unlockedUnstaked: Array<PChainAsset>;
2829
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2835
2830
  /**
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.
2831
+ * 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
2832
  */
2838
- unlockedStaked: Array<PChainAsset>;
2833
+ unlockedStaked: Array<AggregatedAssetAmount>;
2839
2834
  /**
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.
2835
+ * 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
2836
  */
2842
- lockedPlatform: Array<PChainAsset>;
2837
+ lockedPlatform: Array<AggregatedAssetAmount>;
2843
2838
  /**
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.
2839
+ * 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
2840
  */
2846
- lockedStakeable: Array<PChainAsset>;
2841
+ lockedStakeable: Array<AggregatedAssetAmount>;
2847
2842
  /**
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.
2843
+ * 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
2844
  */
2850
- lockedStaked: Array<PChainAsset>;
2845
+ lockedStaked: Array<AggregatedAssetAmount>;
2851
2846
  /**
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.
2847
+ * 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
2848
  */
2854
- pendingStaked: Array<PChainAsset>;
2849
+ pendingStaked: Array<AggregatedAssetAmount>;
2855
2850
  /**
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.
2851
+ * 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
2852
  */
2858
2853
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2859
2854
  /**
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.
2855
+ * 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
2856
  */
2862
2857
  atomicMemoryLocked: Array<PChainSharedAsset>;
2863
2858
  };
@@ -2867,34 +2862,6 @@ type ListPChainBalancesResponse = {
2867
2862
  chainInfo: PrimaryNetworkChainInfo;
2868
2863
  };
2869
2864
 
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
2865
  type XChainSharedAssetBalance = {
2899
2866
  /**
2900
2867
  * Unique ID for an asset.
@@ -2912,10 +2879,7 @@ type XChainSharedAssetBalance = {
2912
2879
  * Denomination of this asset to represent fungibility.
2913
2880
  */
2914
2881
  denomination: number;
2915
- /**
2916
- * Type of asset like SECP256K1 or NFT.
2917
- */
2918
- type: string;
2882
+ type: PrimaryNetworkAssetType;
2919
2883
  /**
2920
2884
  * Amount of the asset.
2921
2885
  */
@@ -2928,11 +2892,11 @@ type XChainBalances = {
2928
2892
  /**
2929
2893
  * A list of objects containing X-chain Asset balance information.
2930
2894
  */
2931
- locked: Array<XChainAssetBalance>;
2895
+ locked: Array<AggregatedAssetAmount>;
2932
2896
  /**
2933
2897
  * A list of objects containing X-chain Asset balance information.
2934
2898
  */
2935
- unlocked: Array<XChainAssetBalance>;
2899
+ unlocked: Array<AggregatedAssetAmount>;
2936
2900
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2937
2901
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2938
2902
  };
@@ -3045,7 +3009,7 @@ declare class PrimaryNetworkBlocksService {
3045
3009
  * @returns ListPrimaryNetworkBlocksResponse
3046
3010
  * @throws ApiError
3047
3011
  */
3048
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3012
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3049
3013
  /**
3050
3014
  * A primary network blockchain id or alias.
3051
3015
  */
@@ -3058,14 +3022,14 @@ declare class PrimaryNetworkBlocksService {
3058
3022
  * A primary network (P or X chain) nodeId.
3059
3023
  */
3060
3024
  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
3025
  /**
3066
3026
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3067
3027
  */
3068
3028
  pageToken?: string;
3029
+ /**
3030
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3031
+ */
3032
+ pageSize?: number;
3069
3033
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3070
3034
  /**
3071
3035
  * List latest blocks
@@ -3073,7 +3037,7 @@ declare class PrimaryNetworkBlocksService {
3073
3037
  * @returns ListPrimaryNetworkBlocksResponse
3074
3038
  * @throws ApiError
3075
3039
  */
3076
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3040
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3077
3041
  /**
3078
3042
  * A primary network blockchain id or alias.
3079
3043
  */
@@ -3082,17 +3046,45 @@ declare class PrimaryNetworkBlocksService {
3082
3046
  * Either mainnet or a testnet.
3083
3047
  */
3084
3048
  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
3049
  /**
3090
3050
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3091
3051
  */
3092
3052
  pageToken?: string;
3053
+ /**
3054
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3055
+ */
3056
+ pageSize?: number;
3093
3057
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3094
3058
  }
3095
3059
 
3060
+ type AssetWithPriceInfo = {
3061
+ /**
3062
+ * Unique ID for an asset.
3063
+ */
3064
+ assetId: string;
3065
+ /**
3066
+ * Name of this asset.
3067
+ */
3068
+ name: string;
3069
+ /**
3070
+ * Symbol for this asset (max 4 characters).
3071
+ */
3072
+ symbol: string;
3073
+ /**
3074
+ * Denomination of this asset to represent fungibility.
3075
+ */
3076
+ denomination: number;
3077
+ type: PrimaryNetworkAssetType;
3078
+ /**
3079
+ * Amount of the asset.
3080
+ */
3081
+ amount: string;
3082
+ /**
3083
+ * 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.
3084
+ */
3085
+ historicalPrice?: Money;
3086
+ };
3087
+
3096
3088
  declare enum RewardType {
3097
3089
  VALIDATOR = "VALIDATOR",
3098
3090
  DELEGATOR = "DELEGATOR",
@@ -3112,10 +3104,7 @@ type HistoricalReward = {
3112
3104
  rewardType: RewardType;
3113
3105
  utxoId: string;
3114
3106
  outputIndex: number;
3115
- /**
3116
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3117
- */
3118
- reward: PChainAsset;
3107
+ reward: AssetWithPriceInfo;
3119
3108
  rewardTxHash: string;
3120
3109
  };
3121
3110
 
@@ -3127,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
3127
3116
  historicalRewards: Array<HistoricalReward>;
3128
3117
  };
3129
3118
 
3119
+ type AssetAmount = {
3120
+ /**
3121
+ * Unique ID for an asset.
3122
+ */
3123
+ assetId: string;
3124
+ /**
3125
+ * Name of this asset.
3126
+ */
3127
+ name: string;
3128
+ /**
3129
+ * Symbol for this asset (max 4 characters).
3130
+ */
3131
+ symbol: string;
3132
+ /**
3133
+ * Denomination of this asset to represent fungibility.
3134
+ */
3135
+ denomination: number;
3136
+ type: PrimaryNetworkAssetType;
3137
+ /**
3138
+ * Amount of the asset.
3139
+ */
3140
+ amount: string;
3141
+ };
3142
+
3130
3143
  type PendingReward = {
3131
3144
  /**
3132
3145
  * An array of P-Chain wallet addresses.
@@ -3140,9 +3153,9 @@ type PendingReward = {
3140
3153
  rewardType: RewardType;
3141
3154
  progress: number;
3142
3155
  /**
3143
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3156
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3144
3157
  */
3145
- estimatedReward: PChainAsset;
3158
+ estimatedReward: AssetAmount;
3146
3159
  };
3147
3160
 
3148
3161
  type ListPendingRewardsResponse = {
@@ -3162,25 +3175,25 @@ declare class PrimaryNetworkRewardsService {
3162
3175
  * @returns ListPendingRewardsResponse
3163
3176
  * @throws ApiError
3164
3177
  */
3165
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3178
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3166
3179
  /**
3167
3180
  * Either mainnet or a testnet.
3168
3181
  */
3169
3182
  network: Network;
3170
3183
  /**
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".
3184
+ * 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
3185
  */
3173
3186
  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
3187
  /**
3179
3188
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3180
3189
  */
3181
3190
  pageToken?: string;
3182
3191
  /**
3183
- * A comma separated list of node ids to filter by.
3192
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3193
+ */
3194
+ pageSize?: number;
3195
+ /**
3196
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3184
3197
  */
3185
3198
  nodeIds?: string;
3186
3199
  /**
@@ -3194,81 +3207,58 @@ declare class PrimaryNetworkRewardsService {
3194
3207
  * @returns ListHistoricalRewardsResponse
3195
3208
  * @throws ApiError
3196
3209
  */
3197
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3210
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3198
3211
  /**
3199
3212
  * Either mainnet or a testnet.
3200
3213
  */
3201
3214
  network: Network;
3202
3215
  /**
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".
3216
+ * 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
3217
  */
3205
3218
  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
3219
  /**
3211
3220
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3212
3221
  */
3213
3222
  pageToken?: string;
3214
3223
  /**
3215
- * A comma separated list of node ids to filter by.
3224
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3225
+ */
3226
+ pageSize?: number;
3227
+ /**
3228
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3216
3229
  */
3217
3230
  nodeIds?: string;
3218
3231
  /**
3219
3232
  * 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
3233
  */
3221
3234
  sortOrder?: SortOrder;
3235
+ /**
3236
+ * The currency that return values should use. Defaults to USD.
3237
+ */
3238
+ currency?: CurrencyCode;
3222
3239
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3223
3240
  }
3224
3241
 
3225
- type Asset = {
3242
+ type UtxoCredential = {
3226
3243
  /**
3227
- * Unique ID for an asset.
3244
+ * Signature provided to consume the output.
3228
3245
  */
3229
- assetId: string;
3246
+ signature?: string;
3230
3247
  /**
3231
- * Name of this asset.
3248
+ * Public key associated with the signature.
3232
3249
  */
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
- };
3251
-
3252
- type UtxoCredential = {
3253
- /**
3254
- * Signature provided to consume the output
3255
- */
3256
- signature?: string;
3257
- /**
3258
- * Public key associated with the signature
3259
- */
3260
- publicKey?: string;
3261
- };
3262
-
3263
- type EVMInput = {
3250
+ publicKey?: string;
3251
+ };
3252
+
3253
+ type EVMInput = {
3264
3254
  /**
3265
3255
  * EVM address from which the asset is exported in ExportTx.
3266
3256
  */
3267
3257
  fromAddress: string;
3268
3258
  /**
3269
- * Asset details for the asset being transferred.
3259
+ * AssetAmount details for the asset being transferred.
3270
3260
  */
3271
- asset: Asset;
3261
+ asset: AssetAmount;
3272
3262
  /**
3273
3263
  * Credentials that signed this transaction.
3274
3264
  */
@@ -3277,66 +3267,66 @@ type EVMInput = {
3277
3267
 
3278
3268
  type Utxo = {
3279
3269
  /**
3280
- * UTXO ID for this output.
3270
+ * Addresses that are eligible to sign the consumption of this output.
3281
3271
  */
3282
- utxoId: string;
3283
- asset: Asset;
3272
+ addresses: Array<string>;
3273
+ asset: AssetAmount;
3284
3274
  /**
3285
- * Type of output.
3275
+ * Blockchain ID on which this output is consumed on.
3286
3276
  */
3287
- utxoType: string;
3277
+ consumedOnChainId: string;
3288
3278
  /**
3289
- * Blockchain ID on which this output is created on.
3279
+ * Transaction ID that consumed this output.
3290
3280
  */
3291
- createdOnChainId: string;
3281
+ consumingTxHash?: string;
3292
3282
  /**
3293
- * Blockchain ID on which this output is consumed on.
3283
+ * Blockchain ID on which this output is created on.
3294
3284
  */
3295
- consumedOnChainId: string;
3285
+ createdOnChainId: string;
3296
3286
  /**
3297
- * Transaction ID that created this output.
3287
+ * UTXO ID for this output.
3298
3288
  */
3299
- creationTxHash: string;
3289
+ utxoId: string;
3300
3290
  /**
3301
- * Transaction ID that consumed this output.
3291
+ * Unix timestamp in seconds at which this output was consumed.
3302
3292
  */
3303
- consumingTxHash?: string;
3293
+ consumingTxTimestamp?: number;
3304
3294
  /**
3305
- * Timestamp in seconds this output is consumed.
3295
+ * Transaction ID that created this output.
3306
3296
  */
3307
- consumingTxTimestamp?: number;
3297
+ creationTxHash: string;
3308
3298
  /**
3309
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3299
+ * Credentials that signed the transaction to consume this utxo
3310
3300
  */
3311
- outputIndex: string;
3301
+ credentials?: Array<UtxoCredential>;
3312
3302
  /**
3313
- * Timestamp in seconds this outptut is created on.
3303
+ * Index representing the minting set for the NFT mint output.
3314
3304
  */
3315
- timestamp: number;
3305
+ groupId?: number;
3316
3306
  /**
3317
3307
  * Locktime in seconds after which this output can be consumed.
3318
3308
  */
3319
3309
  locktime: number;
3320
3310
  /**
3321
- * Minimum number of signatures required to consume this output.
3311
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3322
3312
  */
3323
- threshold: number;
3313
+ outputIndex: string;
3324
3314
  /**
3325
- * Addresses that are eligible to sign the consumption of this output.
3315
+ * Hex encoded data for NFT assets.
3326
3316
  */
3327
- addresses: Array<string>;
3317
+ payload?: string;
3328
3318
  /**
3329
- * Hex encoded data for NFT assets
3319
+ * Minimum number of signatures required to consume this output.
3330
3320
  */
3331
- payload?: string;
3321
+ threshold: number;
3332
3322
  /**
3333
- * Index representing the minting set for the NFT mint output
3323
+ * Unix timestamp in seconds at which this outptut was created.
3334
3324
  */
3335
- groupId?: number;
3325
+ timestamp: number;
3336
3326
  /**
3337
- * Credentials that signed the transaction to consume this utxo
3327
+ * Type of output.
3338
3328
  */
3339
- credentials?: Array<UtxoCredential>;
3329
+ utxoType: string;
3340
3330
  };
3341
3331
 
3342
3332
  type CChainExportTransaction = {
@@ -3363,11 +3353,11 @@ type CChainExportTransaction = {
3363
3353
  /**
3364
3354
  * Assets unlocked by inputs of this transaction.
3365
3355
  */
3366
- amountUnlocked: Array<Asset>;
3356
+ amountUnlocked: Array<AssetAmount>;
3367
3357
  /**
3368
3358
  * Assets created by outputs of this transaction.
3369
3359
  */
3370
- amountCreated: Array<Asset>;
3360
+ amountCreated: Array<AssetAmount>;
3371
3361
  /**
3372
3362
  * Source chain for an atomic transaction.
3373
3363
  */
@@ -3398,9 +3388,9 @@ type EVMOutput = {
3398
3388
  */
3399
3389
  toAddress: string;
3400
3390
  /**
3401
- * Asset details for the asset being transferred.
3391
+ * AssetAmount details for the asset being transferred.
3402
3392
  */
3403
- asset: Asset;
3393
+ asset: AssetAmount;
3404
3394
  };
3405
3395
 
3406
3396
  type CChainImportTransaction = {
@@ -3427,11 +3417,11 @@ type CChainImportTransaction = {
3427
3417
  /**
3428
3418
  * Assets unlocked by inputs of this transaction.
3429
3419
  */
3430
- amountUnlocked: Array<Asset>;
3420
+ amountUnlocked: Array<AssetAmount>;
3431
3421
  /**
3432
3422
  * Assets created by outputs of this transaction.
3433
3423
  */
3434
- amountCreated: Array<Asset>;
3424
+ amountCreated: Array<AssetAmount>;
3435
3425
  /**
3436
3426
  * Source chain for an atomic transaction.
3437
3427
  */
@@ -3467,17 +3457,20 @@ type ListCChainAtomicTransactionsResponse = {
3467
3457
 
3468
3458
  declare enum PChainTransactionType {
3469
3459
  ADD_VALIDATOR_TX = "AddValidatorTx",
3470
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3471
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3473
3460
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3474
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3475
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3461
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3476
3462
  CREATE_CHAIN_TX = "CreateChainTx",
3477
3463
  CREATE_SUBNET_TX = "CreateSubnetTx",
3478
3464
  IMPORT_TX = "ImportTx",
3479
3465
  EXPORT_TX = "ExportTx",
3480
3466
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3467
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3468
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3469
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3470
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3471
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3472
+ BASE_TX = "BaseTx",
3473
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3481
3474
  UNKNOWN = "UNKNOWN"
3482
3475
  }
3483
3476
 
@@ -3488,29 +3481,48 @@ declare enum UtxoType {
3488
3481
 
3489
3482
  type PChainUtxo = {
3490
3483
  /**
3491
- * An array of P-Chain wallet addresses.
3484
+ * Addresses that are eligible to sign the consumption of this output.
3492
3485
  */
3493
3486
  addresses: Array<string>;
3487
+ asset: AssetAmount;
3488
+ /**
3489
+ * Blockchain ID on which this output is consumed on.
3490
+ */
3491
+ consumedOnChainId: string;
3492
+ /**
3493
+ * Transaction ID that consumed this output.
3494
+ */
3495
+ consumingTxHash?: string;
3496
+ /**
3497
+ * Blockchain ID on which this output is created on.
3498
+ */
3499
+ createdOnChainId: string;
3500
+ /**
3501
+ * UTXO ID for this output.
3502
+ */
3494
3503
  utxoId: string;
3495
- txHash: string;
3496
- outputIndex: number;
3504
+ /**
3505
+ * @deprecated
3506
+ */
3507
+ amount: string;
3508
+ /**
3509
+ * @deprecated
3510
+ */
3511
+ assetId: string;
3497
3512
  blockNumber: string;
3498
3513
  blockTimestamp: number;
3499
- consumingTxHash?: string;
3500
- consumingBlockTimestamp?: number;
3501
3514
  consumingBlockNumber?: string;
3502
- assetId: string;
3503
- utxoType: UtxoType;
3504
- amount: string;
3505
- stakeableLocktime?: number;
3515
+ consumingBlockTimestamp?: number;
3506
3516
  platformLocktime?: number;
3507
- threshold?: number;
3508
- createdOnChainId: string;
3509
- consumedOnChainId: string;
3517
+ outputIndex: number;
3518
+ rewardType?: RewardType;
3519
+ stakeableLocktime?: number;
3510
3520
  staked?: boolean;
3511
- utxoStartTimestamp?: number;
3521
+ threshold?: number;
3522
+ txHash: string;
3512
3523
  utxoEndTimestamp?: number;
3513
- rewardType?: RewardType;
3524
+ utxoStartTimestamp?: number;
3525
+ utxoType: UtxoType;
3514
3526
  };
3515
3527
 
3516
3528
  type PChainTransaction = {
@@ -3536,17 +3548,17 @@ type PChainTransaction = {
3536
3548
  */
3537
3549
  destinationChain?: string;
3538
3550
  /**
3539
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3551
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3540
3552
  */
3541
- value: Array<PChainAsset>;
3553
+ value: Array<AssetAmount>;
3542
3554
  /**
3543
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3555
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3544
3556
  */
3545
- amountBurned: Array<PChainAsset>;
3557
+ amountBurned: Array<AssetAmount>;
3546
3558
  /**
3547
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3559
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3548
3560
  */
3549
- amountStaked: Array<PChainAsset>;
3561
+ amountStaked: Array<AssetAmount>;
3550
3562
  /**
3551
3563
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3552
3564
  */
@@ -3578,6 +3590,10 @@ type PChainTransaction = {
3578
3590
  * Present for RewardValidatorTx
3579
3591
  */
3580
3592
  stakingTxHash?: string;
3593
+ /**
3594
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3595
+ */
3596
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3581
3597
  };
3582
3598
 
3583
3599
  type ListPChainTransactionsResponse = {
@@ -3589,6 +3605,9 @@ type ListPChainTransactionsResponse = {
3589
3605
  chainInfo: PrimaryNetworkChainInfo;
3590
3606
  };
3591
3607
 
3608
+ /**
3609
+ * Type of transaction.
3610
+ */
3592
3611
  declare enum XChainTransactionType {
3593
3612
  BASE_TX = "BaseTx",
3594
3613
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3611,9 +3630,6 @@ type XChainLinearTransaction = {
3611
3630
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3612
3631
  */
3613
3632
  timestamp: number;
3614
- /**
3615
- * Type of transaction.
3616
- */
3617
3633
  txType: XChainTransactionType;
3618
3634
  /**
3619
3635
  * Hex encoded memo bytes for this transaction.
@@ -3624,11 +3640,11 @@ type XChainLinearTransaction = {
3624
3640
  /**
3625
3641
  * Assets unlocked by inputs of this transaction.
3626
3642
  */
3627
- amountUnlocked: Array<Asset>;
3643
+ amountUnlocked: Array<AssetAmount>;
3628
3644
  /**
3629
3645
  * Assets created by outputs of this transaction.
3630
3646
  */
3631
- amountCreated: Array<Asset>;
3647
+ amountCreated: Array<AssetAmount>;
3632
3648
  /**
3633
3649
  * Source chain for an atomic transaction.
3634
3650
  */
@@ -3638,7 +3654,7 @@ type XChainLinearTransaction = {
3638
3654
  */
3639
3655
  destinationChain?: string;
3640
3656
  /**
3641
- * Asset details of the asset created in CreateAssetTx
3657
+ * AssetAmount details of the asset created in CreateAssetTx
3642
3658
  */
3643
3659
  assetCreated?: XChainAssetDetails;
3644
3660
  /**
@@ -3688,9 +3704,6 @@ type XChainNonLinearTransaction = {
3688
3704
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3689
3705
  */
3690
3706
  timestamp: number;
3691
- /**
3692
- * Type of transaction.
3693
- */
3694
3707
  txType: XChainTransactionType;
3695
3708
  /**
3696
3709
  * Hex encoded memo bytes for this transaction.
@@ -3701,11 +3714,11 @@ type XChainNonLinearTransaction = {
3701
3714
  /**
3702
3715
  * Assets unlocked by inputs of this transaction.
3703
3716
  */
3704
- amountUnlocked: Array<Asset>;
3717
+ amountUnlocked: Array<AssetAmount>;
3705
3718
  /**
3706
3719
  * Assets created by outputs of this transaction.
3707
3720
  */
3708
- amountCreated: Array<Asset>;
3721
+ amountCreated: Array<AssetAmount>;
3709
3722
  /**
3710
3723
  * Source chain for an atomic transaction.
3711
3724
  */
@@ -3715,7 +3728,7 @@ type XChainNonLinearTransaction = {
3715
3728
  */
3716
3729
  destinationChain?: string;
3717
3730
  /**
3718
- * Asset details of the asset created in CreateAssetTx
3731
+ * AssetAmount details of the asset created in CreateAssetTx
3719
3732
  */
3720
3733
  assetCreated?: XChainAssetDetails;
3721
3734
  /**
@@ -3749,19 +3762,21 @@ declare enum PChainId {
3749
3762
 
3750
3763
  declare enum PrimaryNetworkTxType {
3751
3764
  ADD_VALIDATOR_TX = "AddValidatorTx",
3752
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3753
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3754
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3755
3765
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3756
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3757
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3766
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3758
3767
  CREATE_CHAIN_TX = "CreateChainTx",
3759
3768
  CREATE_SUBNET_TX = "CreateSubnetTx",
3760
3769
  IMPORT_TX = "ImportTx",
3761
3770
  EXPORT_TX = "ExportTx",
3762
3771
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3763
- UNKNOWN = "UNKNOWN",
3772
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3773
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3774
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3775
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3776
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3764
3777
  BASE_TX = "BaseTx",
3778
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3779
+ UNKNOWN = "UNKNOWN",
3765
3780
  CREATE_ASSET_TX = "CreateAssetTx",
3766
3781
  OPERATION_TX = "OperationTx"
3767
3782
  }
@@ -3793,13 +3808,13 @@ declare class PrimaryNetworkTransactionsService {
3793
3808
  * List latest transactions
3794
3809
  * Lists the latest transactions on one of the Primary Network chains.
3795
3810
  *
3796
- * Transactions are filterable by addresses.
3811
+ * 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
3812
  *
3798
3813
  * 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
3814
  * @returns any
3800
3815
  * @throws ApiError
3801
3816
  */
3802
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3817
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3803
3818
  /**
3804
3819
  * A primary network blockchain id or alias.
3805
3820
  */
@@ -3824,14 +3839,14 @@ declare class PrimaryNetworkTransactionsService {
3824
3839
  * Query param for retrieving items before a specific timestamp.
3825
3840
  */
3826
3841
  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
3842
  /**
3832
3843
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3833
3844
  */
3834
3845
  pageToken?: string;
3846
+ /**
3847
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3848
+ */
3849
+ pageSize?: number;
3835
3850
  /**
3836
3851
  * 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
3852
  */
@@ -3843,7 +3858,7 @@ declare class PrimaryNetworkTransactionsService {
3843
3858
  * @returns ListPChainTransactionsResponse
3844
3859
  * @throws ApiError
3845
3860
  */
3846
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3861
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3847
3862
  /**
3848
3863
  * A primary network blockchain id or alias.
3849
3864
  */
@@ -3868,14 +3883,14 @@ declare class PrimaryNetworkTransactionsService {
3868
3883
  * Query param for retrieving items before a specific timestamp.
3869
3884
  */
3870
3885
  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
3886
  /**
3876
3887
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3877
3888
  */
3878
3889
  pageToken?: string;
3890
+ /**
3891
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3892
+ */
3893
+ pageSize?: number;
3879
3894
  /**
3880
3895
  * 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
3896
  */
@@ -3887,7 +3902,7 @@ declare class PrimaryNetworkTransactionsService {
3887
3902
  * @returns ListXChainTransactionsResponse
3888
3903
  * @throws ApiError
3889
3904
  */
3890
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3905
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3891
3906
  /**
3892
3907
  * A primary network blockchain id or alias.
3893
3908
  */
@@ -3912,14 +3927,14 @@ declare class PrimaryNetworkTransactionsService {
3912
3927
  * Query param for retrieving items before a specific timestamp.
3913
3928
  */
3914
3929
  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
3930
  /**
3920
3931
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3921
3932
  */
3922
3933
  pageToken?: string;
3934
+ /**
3935
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3936
+ */
3937
+ pageSize?: number;
3923
3938
  }): CancelablePromise<ListXChainTransactionsResponse>;
3924
3939
  }
3925
3940
 
@@ -3950,7 +3965,7 @@ declare class PrimaryNetworkUtxOsService {
3950
3965
  * @returns any
3951
3966
  * @throws ApiError
3952
3967
  */
3953
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3968
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3954
3969
  /**
3955
3970
  * A primary network blockchain id or alias.
3956
3971
  */
@@ -3963,14 +3978,14 @@ declare class PrimaryNetworkUtxOsService {
3963
3978
  * 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
3979
  */
3965
3980
  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
3981
  /**
3971
3982
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3972
3983
  */
3973
3984
  pageToken?: string;
3985
+ /**
3986
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3987
+ */
3988
+ pageSize?: number;
3974
3989
  /**
3975
3990
  * Asset ID for any asset (only applicable X-Chain)
3976
3991
  */
@@ -4015,7 +4030,7 @@ declare class PrimaryNetworkVerticesService {
4015
4030
  * @returns ListXChainVerticesResponse
4016
4031
  * @throws ApiError
4017
4032
  */
4018
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4033
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4019
4034
  /**
4020
4035
  * A primary network blockchain id or alias.
4021
4036
  */
@@ -4024,14 +4039,14 @@ declare class PrimaryNetworkVerticesService {
4024
4039
  * Either mainnet or a testnet.
4025
4040
  */
4026
4041
  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
4042
  /**
4032
4043
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4033
4044
  */
4034
4045
  pageToken?: string;
4046
+ /**
4047
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4048
+ */
4049
+ pageSize?: number;
4035
4050
  }): CancelablePromise<ListXChainVerticesResponse>;
4036
4051
  /**
4037
4052
  * Get vertex
@@ -4059,7 +4074,7 @@ declare class PrimaryNetworkVerticesService {
4059
4074
  * @returns ListXChainVerticesResponse
4060
4075
  * @throws ApiError
4061
4076
  */
4062
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4077
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4063
4078
  /**
4064
4079
  * The height of a vertex.
4065
4080
  */
@@ -4072,19 +4087,404 @@ declare class PrimaryNetworkVerticesService {
4072
4087
  * Either mainnet or a testnet.
4073
4088
  */
4074
4089
  network: Network;
4090
+ /**
4091
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4092
+ */
4093
+ pageToken?: string;
4075
4094
  /**
4076
4095
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4077
4096
  */
4078
4097
  pageSize?: number;
4098
+ /**
4099
+ * 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.
4100
+ */
4101
+ sortOrder?: SortOrder;
4102
+ }): CancelablePromise<ListXChainVerticesResponse>;
4103
+ }
4104
+
4105
+ type RpcErrorDto = {
4106
+ code: number;
4107
+ message: string;
4108
+ data?: Record<string, any>;
4109
+ };
4110
+
4111
+ type RpcErrorResponseDto = {
4112
+ jsonrpc: string;
4113
+ id?: (string | number);
4114
+ error: RpcErrorDto;
4115
+ };
4116
+
4117
+ type RpcRequestBodyDto = {
4118
+ method: string;
4119
+ params?: Record<string, any>;
4120
+ id?: (string | number);
4121
+ jsonrpc?: string;
4122
+ };
4123
+
4124
+ type RpcSuccessResponseDto = {
4125
+ jsonrpc: string;
4126
+ id?: (string | number);
4127
+ result: Record<string, any>;
4128
+ };
4129
+
4130
+ declare class RpcService {
4131
+ readonly httpRequest: BaseHttpRequest;
4132
+ constructor(httpRequest: BaseHttpRequest);
4133
+ /**
4134
+ * Calls JSON-RPC method
4135
+ * Calls JSON-RPC method.
4136
+ * @returns any
4137
+ * @throws ApiError
4138
+ */
4139
+ rpc({ chainId, requestBody, }: {
4140
+ /**
4141
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4142
+ */
4143
+ chainId: string;
4144
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4145
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4146
+ }
4147
+
4148
+ type TeleporterDestinationTransaction = {
4149
+ txHash: string;
4150
+ timestamp: number;
4151
+ gasSpent: string;
4152
+ rewardRedeemer: string;
4153
+ delivererAddress: string;
4154
+ };
4155
+
4156
+ type TeleporterReceipt = {
4157
+ receivedMessageNonce: string;
4158
+ relayerRewardAddress: string;
4159
+ };
4160
+
4161
+ type TeleporterRewardDetails = {
4162
+ /**
4163
+ * A wallet or contract address in mixed-case checksum encoding.
4164
+ */
4165
+ address: string;
4166
+ /**
4167
+ * The contract name.
4168
+ */
4169
+ name: string;
4170
+ /**
4171
+ * The contract symbol.
4172
+ */
4173
+ symbol: string;
4174
+ /**
4175
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4176
+ */
4177
+ decimals: number;
4178
+ /**
4179
+ * The logo uri for the address.
4180
+ */
4181
+ logoUri?: string;
4182
+ ercType: TeleporterRewardDetails.ercType;
4183
+ /**
4184
+ * The token price, if available.
4185
+ */
4186
+ price?: Money;
4187
+ value: string;
4188
+ };
4189
+ declare namespace TeleporterRewardDetails {
4190
+ enum ercType {
4191
+ ERC_20 = "ERC-20"
4192
+ }
4193
+ }
4194
+
4195
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4196
+ messageId: string;
4197
+ teleporterContractAddress: string;
4198
+ sourceBlockchainId: string;
4199
+ destinationBlockchainId: string;
4200
+ messageNonce: string;
4201
+ from: string;
4202
+ to: string;
4203
+ data?: string;
4204
+ messageExecuted: boolean;
4205
+ receipts: Array<TeleporterReceipt>;
4206
+ receiptDelivered: boolean;
4207
+ rewardDetails: TeleporterRewardDetails;
4208
+ destinationTransaction: TeleporterDestinationTransaction;
4209
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4210
+ };
4211
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4212
+ enum status {
4213
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4214
+ }
4215
+ }
4216
+
4217
+ type TeleporterSourceTransaction = {
4218
+ txHash: string;
4219
+ timestamp: number;
4220
+ gasSpent: string;
4221
+ };
4222
+
4223
+ type DeliveredTeleporterMessage = {
4224
+ messageId: string;
4225
+ teleporterContractAddress: string;
4226
+ sourceBlockchainId: string;
4227
+ destinationBlockchainId: string;
4228
+ messageNonce: string;
4229
+ from: string;
4230
+ to: string;
4231
+ data?: string;
4232
+ messageExecuted: boolean;
4233
+ receipts: Array<TeleporterReceipt>;
4234
+ receiptDelivered: boolean;
4235
+ rewardDetails: TeleporterRewardDetails;
4236
+ sourceTransaction: TeleporterSourceTransaction;
4237
+ destinationTransaction: TeleporterDestinationTransaction;
4238
+ status: DeliveredTeleporterMessage.status;
4239
+ };
4240
+ declare namespace DeliveredTeleporterMessage {
4241
+ enum status {
4242
+ DELIVERED = "delivered"
4243
+ }
4244
+ }
4245
+
4246
+ type NextPageToken = {
4247
+ /**
4248
+ * 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.
4249
+ */
4250
+ nextPageToken?: string;
4251
+ };
4252
+
4253
+ type PendingTeleporterMessage = {
4254
+ messageId: string;
4255
+ teleporterContractAddress: string;
4256
+ sourceBlockchainId: string;
4257
+ destinationBlockchainId: string;
4258
+ messageNonce: string;
4259
+ from: string;
4260
+ to: string;
4261
+ data?: string;
4262
+ messageExecuted: boolean;
4263
+ receipts: Array<TeleporterReceipt>;
4264
+ receiptDelivered: boolean;
4265
+ rewardDetails: TeleporterRewardDetails;
4266
+ sourceTransaction: TeleporterSourceTransaction;
4267
+ status: PendingTeleporterMessage.status;
4268
+ };
4269
+ declare namespace PendingTeleporterMessage {
4270
+ enum status {
4271
+ PENDING = "pending"
4272
+ }
4273
+ }
4274
+
4275
+ declare class TeleporterService {
4276
+ readonly httpRequest: BaseHttpRequest;
4277
+ constructor(httpRequest: BaseHttpRequest);
4278
+ /**
4279
+ * Get a teleporter message
4280
+ * Gets a teleporter message by message ID.
4281
+ * @returns any
4282
+ * @throws ApiError
4283
+ */
4284
+ getTeleporterMessage({ messageId, }: {
4285
+ /**
4286
+ * The message ID of the teleporter message.
4287
+ */
4288
+ messageId: string;
4289
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4290
+ /**
4291
+ * List teleporter messages
4292
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4293
+ * @returns any
4294
+ * @throws ApiError
4295
+ */
4296
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4079
4297
  /**
4080
4298
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4081
4299
  */
4082
4300
  pageToken?: string;
4083
4301
  /**
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.
4302
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4085
4303
  */
4086
- sortOrder?: SortOrder;
4087
- }): CancelablePromise<ListXChainVerticesResponse>;
4304
+ pageSize?: number;
4305
+ /**
4306
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4307
+ */
4308
+ sourceBlockchainId?: string;
4309
+ /**
4310
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4311
+ */
4312
+ destinationBlockchainId?: string;
4313
+ /**
4314
+ * The address of the recipient of the teleporter message.
4315
+ */
4316
+ to?: string;
4317
+ /**
4318
+ * The address of the sender of the teleporter message.
4319
+ */
4320
+ from?: string;
4321
+ }): CancelablePromise<NextPageToken>;
4322
+ }
4323
+
4324
+ type AddressActivityMetadata = {
4325
+ /**
4326
+ * Ethereum address for the address_activity event type
4327
+ */
4328
+ address: string;
4329
+ /**
4330
+ * Array of hexadecimal strings of the event signatures.
4331
+ */
4332
+ eventSignatures?: Array<string>;
4333
+ };
4334
+
4335
+ declare enum EventType {
4336
+ ADDRESS_ACTIVITY = "address_activity"
4337
+ }
4338
+
4339
+ declare enum WebhookStatusType {
4340
+ ACTIVE = "active",
4341
+ INACTIVE = "inactive"
4342
+ }
4343
+
4344
+ type WebhookResponse = {
4345
+ id: string;
4346
+ eventType: EventType;
4347
+ metadata: AddressActivityMetadata;
4348
+ /**
4349
+ * Whether to include traces in the webhook payload.
4350
+ */
4351
+ includeInternalTxs?: boolean;
4352
+ /**
4353
+ * Whether to include logs in the webhook payload.
4354
+ */
4355
+ includeLogs?: boolean;
4356
+ url: string;
4357
+ chainId: string;
4358
+ status: WebhookStatusType;
4359
+ createdAt: number;
4360
+ name: string;
4361
+ description: string;
4362
+ };
4363
+
4364
+ type ListWebhooksResponse = {
4365
+ /**
4366
+ * 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.
4367
+ */
4368
+ nextPageToken?: string;
4369
+ webhooks: Array<WebhookResponse>;
4370
+ };
4371
+
4372
+ type RegisterWebhookRequest = {
4373
+ url: string;
4374
+ chainId: string;
4375
+ eventType: EventType;
4376
+ metadata: AddressActivityMetadata;
4377
+ /**
4378
+ * Whether to include traces in the webhook payload.
4379
+ */
4380
+ includeInternalTxs?: boolean;
4381
+ /**
4382
+ * Whether to include logs in the webhook payload.
4383
+ */
4384
+ includeLogs?: boolean;
4385
+ };
4386
+
4387
+ type SharedSecretsResponse = {
4388
+ secret: string;
4389
+ };
4390
+
4391
+ type UpdateWebhookRequest = {
4392
+ name?: string;
4393
+ description?: string;
4394
+ url?: string;
4395
+ status?: WebhookStatusType;
4396
+ includeInternalTxs?: boolean;
4397
+ includeLogs?: boolean;
4398
+ };
4399
+
4400
+ declare enum WebhookStatus {
4401
+ ACTIVE = "active",
4402
+ INACTIVE = "inactive"
4403
+ }
4404
+
4405
+ declare class WebhooksService {
4406
+ readonly httpRequest: BaseHttpRequest;
4407
+ constructor(httpRequest: BaseHttpRequest);
4408
+ /**
4409
+ * Register a webhook
4410
+ * Registers a new webhook.
4411
+ * @returns WebhookResponse
4412
+ * @throws ApiError
4413
+ */
4414
+ registerWebhook({ requestBody, }: {
4415
+ requestBody: RegisterWebhookRequest;
4416
+ }): CancelablePromise<WebhookResponse>;
4417
+ /**
4418
+ * List webhooks
4419
+ * Lists webhooks for the user.
4420
+ * @returns ListWebhooksResponse
4421
+ * @throws ApiError
4422
+ */
4423
+ listWebhooks({ pageToken, pageSize, status, }: {
4424
+ /**
4425
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4426
+ */
4427
+ pageToken?: string;
4428
+ /**
4429
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4430
+ */
4431
+ pageSize?: number;
4432
+ /**
4433
+ * 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.
4434
+ */
4435
+ status?: WebhookStatus;
4436
+ }): CancelablePromise<ListWebhooksResponse>;
4437
+ /**
4438
+ * Get a webhook by ID
4439
+ * Retrieves a webhook by ID.
4440
+ * @returns WebhookResponse
4441
+ * @throws ApiError
4442
+ */
4443
+ getWebhook({ id, }: {
4444
+ /**
4445
+ * The webhook identifier.
4446
+ */
4447
+ id: string;
4448
+ }): CancelablePromise<WebhookResponse>;
4449
+ /**
4450
+ * Deactivate a webhook
4451
+ * Deactivates a webhook by ID.
4452
+ * @returns WebhookResponse
4453
+ * @throws ApiError
4454
+ */
4455
+ deactivateWebhook({ id, }: {
4456
+ /**
4457
+ * The webhook identifier.
4458
+ */
4459
+ id: string;
4460
+ }): CancelablePromise<WebhookResponse>;
4461
+ /**
4462
+ * Update a webhook
4463
+ * Updates an existing webhook.
4464
+ * @returns WebhookResponse
4465
+ * @throws ApiError
4466
+ */
4467
+ updateWebhook({ id, requestBody, }: {
4468
+ /**
4469
+ * The webhook identifier.
4470
+ */
4471
+ id: string;
4472
+ requestBody: UpdateWebhookRequest;
4473
+ }): CancelablePromise<WebhookResponse>;
4474
+ /**
4475
+ * Generate a shared secret
4476
+ * Generates a new shared secret.
4477
+ * @returns SharedSecretsResponse
4478
+ * @throws ApiError
4479
+ */
4480
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4481
+ /**
4482
+ * Get a shared secret
4483
+ * Get a previously generated shared secret.
4484
+ * @returns SharedSecretsResponse
4485
+ * @throws ApiError
4486
+ */
4487
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4088
4488
  }
4089
4489
 
4090
4490
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4105,6 +4505,9 @@ declare class Glacier {
4105
4505
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4106
4506
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4107
4507
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4508
+ readonly rpc: RpcService;
4509
+ readonly teleporter: TeleporterService;
4510
+ readonly webhooks: WebhooksService;
4108
4511
  readonly request: BaseHttpRequest;
4109
4512
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4110
4513
  }
@@ -4126,4 +4529,4 @@ declare class ApiError extends Error {
4126
4529
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4127
4530
  }
4128
4531
 
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 };
4532
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, 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, 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 };