@avalabs/glacier-sdk 2.8.0-canary.fe6d2a3.0 → 2.8.0-canary.fedc8b0.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 (102) hide show
  1. package/dist/index.d.ts +671 -272
  2. package/dist/index.js +320 -109
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
  9. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  10. package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
  11. package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
  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 +0 -3
  16. package/esm/generated/models/ChainInfo.d.ts +1 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  19. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  20. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  21. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  22. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  23. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  24. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  25. package/esm/generated/models/EVMInput.d.ts +3 -3
  26. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  27. package/esm/generated/models/EVMOperationType.js +6 -0
  28. package/esm/generated/models/EVMOutput.d.ts +3 -3
  29. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  30. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  31. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  32. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  33. package/esm/generated/models/GlacierApiFeature.js +7 -0
  34. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  35. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  36. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  37. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  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 +1 -3
  46. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  47. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  48. package/esm/generated/models/PChainTransactionType.js +2 -0
  49. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  50. package/esm/generated/models/PendingReward.d.ts +3 -3
  51. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  52. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  53. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
  54. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
  55. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  56. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  57. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  58. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  59. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  60. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  61. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  62. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  63. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  64. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  65. package/esm/generated/models/SortByOption.d.ts +9 -0
  66. package/esm/generated/models/SortByOption.js +10 -0
  67. package/esm/generated/models/Subnet.d.ts +17 -0
  68. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  69. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  70. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  71. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  72. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  73. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  74. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  75. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  76. package/esm/generated/models/Utxo.d.ts +2 -2
  77. package/esm/generated/models/WebhookResponse.d.ts +8 -0
  78. package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
  79. package/esm/generated/models/XChainBalances.d.ts +3 -3
  80. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  81. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  82. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
  83. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  84. package/esm/generated/services/DefaultService.d.ts +0 -60
  85. package/esm/generated/services/DefaultService.js +0 -48
  86. package/esm/generated/services/EvmBalancesService.d.ts +5 -1
  87. package/esm/generated/services/EvmBalancesService.js +2 -0
  88. package/esm/generated/services/EvmChainsService.d.ts +6 -1
  89. package/esm/generated/services/EvmChainsService.js +4 -2
  90. package/esm/generated/services/PrimaryNetworkService.d.ts +24 -9
  91. package/esm/generated/services/PrimaryNetworkService.js +11 -5
  92. package/esm/generated/services/RpcService.d.ts +25 -0
  93. package/esm/generated/services/RpcService.js +24 -0
  94. package/esm/generated/services/TeleporterService.d.ts +62 -0
  95. package/esm/generated/services/TeleporterService.js +41 -0
  96. package/esm/generated/services/WebhooksService.d.ts +143 -0
  97. package/esm/generated/services/WebhooksService.js +125 -0
  98. package/esm/index.d.ts +26 -2
  99. package/esm/index.js +11 -2
  100. package/package.json +3 -3
  101. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  102. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,65 +54,6 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- /**
69
- * Array of hexadecimal strings of the event signatures.
70
- */
71
- eventSignatures?: Array<string>;
72
- };
73
-
74
- declare enum EventType {
75
- ADDRESS_ACTIVITY = "address_activity"
76
- }
77
-
78
- declare enum WebhookStatusType {
79
- ACTIVE = "active",
80
- INACTIVE = "inactive"
81
- }
82
-
83
- type WebhookResponse = {
84
- id: string;
85
- eventType: EventType;
86
- metadata: AddressActivityMetadata;
87
- url: string;
88
- chainId: string;
89
- status: WebhookStatusType;
90
- createdAt: number;
91
- name: string;
92
- description: string;
93
- };
94
-
95
- type ListWebhooksResponse = {
96
- /**
97
- * 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.
98
- */
99
- nextPageToken?: string;
100
- webhooks: Array<WebhookResponse>;
101
- };
102
-
103
- type RegisterWebhookRequest = {
104
- url: string;
105
- chainId: string;
106
- /**
107
- * The type of event for the webhook
108
- */
109
- eventType: EventType;
110
- metadata: AddressActivityMetadata;
111
- };
112
-
113
- type SharedSecretsResponse = {
114
- secret: string;
115
- };
116
-
117
- declare enum WebhookStatus {
118
- ACTIVE = "active",
119
- INACTIVE = "inactive"
120
- }
121
-
122
57
  declare class DefaultService {
123
58
  readonly httpRequest: BaseHttpRequest;
124
59
  constructor(httpRequest: BaseHttpRequest);
@@ -127,63 +62,11 @@ declare class DefaultService {
127
62
  * @throws ApiError
128
63
  */
129
64
  mediaControllerUploadImage(): CancelablePromise<any>;
130
- /**
131
- * Register a webhook
132
- * Registers a new webhook.
133
- * @returns WebhookResponse
134
- * @throws ApiError
135
- */
136
- registerWebhook({ requestBody, }: {
137
- requestBody: RegisterWebhookRequest;
138
- }): CancelablePromise<WebhookResponse>;
139
- /**
140
- * List webhooks
141
- * Lists webhooks for the user.
142
- * @returns ListWebhooksResponse
143
- * @throws ApiError
144
- */
145
- listWebhooks({ pageToken, pageSize, status, }: {
146
- /**
147
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
148
- */
149
- pageToken?: string;
150
- /**
151
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
152
- */
153
- pageSize?: number;
154
- /**
155
- * 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.
156
- */
157
- status?: WebhookStatus;
158
- }): CancelablePromise<ListWebhooksResponse>;
159
- /**
160
- * Deactivate a webhook
161
- * Deactivates a webhook by ID.
162
- * @returns WebhookResponse
163
- * @throws ApiError
164
- */
165
- deactivateWebhook({ id, }: {
166
- /**
167
- * The webhook identifier.
168
- */
169
- id: string;
170
- }): CancelablePromise<WebhookResponse>;
171
- /**
172
- * Generate a shared secret
173
- * Generates a new shared secret.
174
- * @returns SharedSecretsResponse
175
- * @throws ApiError
176
- */
177
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
- /**
179
- * Get a shared secret
180
- * Get a previously generated shared secret.
181
- * @returns SharedSecretsResponse
182
- * @throws ApiError
183
- */
184
- getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
185
65
  }
186
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
187
70
  declare enum CurrencyCode {
188
71
  USD = "usd",
189
72
  EUR = "eur",
@@ -202,9 +85,6 @@ declare enum CurrencyCode {
202
85
  }
203
86
 
204
87
  type Money = {
205
- /**
206
- * ISO 4217 currency code.
207
- */
208
88
  currencyCode: CurrencyCode;
209
89
  /**
210
90
  * Monetary value in base 10 decimals.
@@ -254,6 +134,9 @@ type GetNativeBalanceResponse = {
254
134
  nativeTokenBalance: NativeTokenBalance;
255
135
  };
256
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
257
140
  declare enum NftTokenMetadataStatus {
258
141
  UNKNOWN = "UNKNOWN",
259
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -269,9 +152,6 @@ declare enum NftTokenMetadataStatus {
269
152
  }
270
153
 
271
154
  type Erc1155TokenMetadata = {
272
- /**
273
- * The metadata indexing status of the nft.
274
- */
275
155
  indexStatus: NftTokenMetadataStatus;
276
156
  metadataLastUpdatedTimestamp?: number;
277
157
  name?: string;
@@ -310,9 +190,6 @@ declare namespace Erc1155TokenBalance {
310
190
  }
311
191
 
312
192
  type Erc721TokenMetadata = {
313
- /**
314
- * The metadata indexing status of the nft.
315
- */
316
193
  indexStatus: NftTokenMetadataStatus;
317
194
  metadataLastUpdatedTimestamp?: number;
318
195
  name?: string;
@@ -485,7 +362,7 @@ declare class EvmBalancesService {
485
362
  * @returns ListErc20BalancesResponse
486
363
  * @throws ApiError
487
364
  */
488
- listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
489
366
  /**
490
367
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
491
368
  */
@@ -506,6 +383,10 @@ declare class EvmBalancesService {
506
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
507
384
  */
508
385
  pageSize?: number;
386
+ /**
387
+ * whether to filter out spam tokens from the response. Default is true.
388
+ */
389
+ filterSpamTokens?: boolean;
509
390
  /**
510
391
  * A comma separated list of contract addresses to filter by.
511
392
  */
@@ -750,6 +631,9 @@ declare class EvmBlocksService {
750
631
  }): CancelablePromise<GetEvmBlockResponse>;
751
632
  }
752
633
 
634
+ /**
635
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
+ */
753
637
  declare enum ChainStatus {
754
638
  OK = "OK",
755
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -787,9 +671,6 @@ declare enum VmName {
787
671
 
788
672
  type GetChainResponse = {
789
673
  chainId: string;
790
- /**
791
- * 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.
792
- */
793
674
  status: ChainStatus;
794
675
  chainName: string;
795
676
  description: string;
@@ -805,13 +686,16 @@ type GetChainResponse = {
805
686
  networkToken: NetworkToken;
806
687
  chainLogoUri?: string;
807
688
  private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
808
690
  };
809
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
810
697
  type ChainInfo = {
811
698
  chainId: string;
812
- /**
813
- * 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.
814
- */
815
699
  status: ChainStatus;
816
700
  chainName: string;
817
701
  description: string;
@@ -827,6 +711,7 @@ type ChainInfo = {
827
711
  networkToken: NetworkToken;
828
712
  chainLogoUri?: string;
829
713
  private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
830
715
  };
831
716
 
832
717
  type ListChainsResponse = {
@@ -847,11 +732,15 @@ declare class EvmChainsService {
847
732
  * @returns ListChainsResponse
848
733
  * @throws ApiError
849
734
  */
850
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
851
736
  /**
852
737
  * mainnet or testnet.
853
738
  */
854
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
855
744
  }): CancelablePromise<ListChainsResponse>;
856
745
  /**
857
746
  * Get chain information
@@ -1306,6 +1195,9 @@ type Erc721TransferDetails = {
1306
1195
  erc721Token: Erc721Token;
1307
1196
  };
1308
1197
 
1198
+ /**
1199
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
+ */
1309
1201
  declare enum TransactionMethodType {
1310
1202
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1311
1203
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1313,9 +1205,6 @@ declare enum TransactionMethodType {
1313
1205
  }
1314
1206
 
1315
1207
  type Method = {
1316
- /**
1317
- * 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.
1318
- */
1319
1208
  callType: TransactionMethodType;
1320
1209
  /**
1321
1210
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1676,7 +1565,7 @@ type ListTransfersResponse = {
1676
1565
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1677
1566
  */
1678
1567
  nextPageToken?: string;
1679
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1680
1569
  };
1681
1570
 
1682
1571
  declare enum SortOrder {
@@ -2047,7 +1936,7 @@ type ListNftTokens = {
2047
1936
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2048
1937
  */
2049
1938
  nextPageToken?: string;
2050
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2051
1940
  };
2052
1941
 
2053
1942
  declare class NfTsService {
@@ -2124,8 +2013,12 @@ type EvmNetworkOptions = {
2124
2013
  includeChains: Array<string>;
2125
2014
  };
2126
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
2127
2020
  type CreateEvmTransactionExportRequest = {
2128
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
2129
2022
  firstDate: string;
2130
2023
  lastDate: string;
2131
2024
  /**
@@ -2138,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
2138
2031
  endDate: string;
2139
2032
  options: EvmNetworkOptions;
2140
2033
  };
2141
- declare namespace CreateEvmTransactionExportRequest {
2142
- enum type {
2143
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2144
- }
2034
+
2035
+ declare enum PrimaryNetworkOperationType {
2036
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2145
2039
  }
2146
2040
 
2147
2041
  type PrimaryNetworkOptions = {
2148
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
2149
2043
  cChainEvmAddresses?: Array<string>;
2150
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2151
2045
  };
2152
2046
 
2153
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
2154
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
2155
2049
  firstDate: string;
2156
2050
  lastDate: string;
2157
2051
  /**
@@ -2164,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2164
2058
  endDate: string;
2165
2059
  options: PrimaryNetworkOptions;
2166
2060
  };
2167
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2168
- enum type {
2169
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2170
- }
2171
- }
2172
2061
 
2173
2062
  declare enum OperationStatus {
2174
2063
  RUNNING = "RUNNING",
@@ -2178,8 +2067,10 @@ declare enum OperationStatus {
2178
2067
  }
2179
2068
 
2180
2069
  declare enum OperationType {
2181
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2182
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2070
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2073
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2183
2074
  }
2184
2075
 
2185
2076
  declare enum OperationStatusCode {
@@ -2371,13 +2262,44 @@ type BlockchainInfo = {
2371
2262
  blockchainId: string;
2372
2263
  };
2373
2264
 
2265
+ type SubnetOwnershipInfo = {
2266
+ /**
2267
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2268
+ */
2269
+ locktime: number;
2270
+ /**
2271
+ * Minimum number of signatures required to sign the Subnet update transactions.
2272
+ */
2273
+ threshold: number;
2274
+ /**
2275
+ * Addresses that are eligible to sign the Subnet update transactions.
2276
+ */
2277
+ addresses: Array<string>;
2278
+ };
2279
+
2374
2280
  type Subnet = {
2375
2281
  createBlockTimestamp: number;
2376
2282
  createBlockIndex: string;
2377
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2378
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2379
2293
  threshold: number;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2380
2298
  locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2381
2303
  blockchains: Array<BlockchainInfo>;
2382
2304
  };
2383
2305
 
@@ -2507,6 +2429,14 @@ declare enum Network {
2507
2429
  FUJI = "fuji"
2508
2430
  }
2509
2431
 
2432
+ declare enum SortByOption {
2433
+ BLOCK_INDEX = "blockIndex",
2434
+ DELEGATION_CAPACITY = "delegationCapacity",
2435
+ TIME_REMAINING = "timeRemaining",
2436
+ DELEGATION_FEE = "delegationFee",
2437
+ UPTIME_PERFORMANCE = "uptimePerformance"
2438
+ }
2439
+
2510
2440
  declare enum ValidationStatusType {
2511
2441
  COMPLETED = "completed",
2512
2442
  ACTIVE = "active",
@@ -2514,11 +2444,17 @@ declare enum ValidationStatusType {
2514
2444
  REMOVED = "removed"
2515
2445
  }
2516
2446
 
2447
+ /**
2448
+ * Cap represents if an asset is a variable or fixed cap asset.
2449
+ */
2517
2450
  declare enum PrimaryNetworkAssetCap {
2518
2451
  FIXED = "fixed",
2519
2452
  VARIABLE = "variable"
2520
2453
  }
2521
2454
 
2455
+ /**
2456
+ * Type of asset like SECP256K1 or NFT.
2457
+ */
2522
2458
  declare enum PrimaryNetworkAssetType {
2523
2459
  SECP256K1 = "secp256k1",
2524
2460
  NFT = "nft"
@@ -2541,17 +2477,11 @@ type XChainAssetDetails = {
2541
2477
  * Denomination of this asset to represent fungibility.
2542
2478
  */
2543
2479
  denomination: number;
2544
- /**
2545
- * Type of asset like SECP256K1 or NFT.
2546
- */
2547
2480
  type: PrimaryNetworkAssetType;
2548
2481
  /**
2549
2482
  * Timestamp in seconds this asset was created on.
2550
2483
  */
2551
2484
  createdAtTimestamp: number;
2552
- /**
2553
- * Cap represents if an asset is a variable or fixed cap asset.
2554
- */
2555
2485
  cap: PrimaryNetworkAssetCap;
2556
2486
  };
2557
2487
 
@@ -2666,7 +2596,7 @@ declare class PrimaryNetworkService {
2666
2596
  * @returns ListValidatorDetailsResponse
2667
2597
  * @throws ApiError
2668
2598
  */
2669
- listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2599
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2670
2600
  /**
2671
2601
  * Either mainnet or a testnet.
2672
2602
  */
@@ -2683,6 +2613,12 @@ declare class PrimaryNetworkService {
2683
2613
  * A comma separated list of node ids to filter by.
2684
2614
  */
2685
2615
  nodeIds?: string;
2616
+ /**
2617
+ * Which property to sort by, in conjunction with sortOrder.
2618
+ *
2619
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2620
+ */
2621
+ sortBy?: SortByOption;
2686
2622
  /**
2687
2623
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2688
2624
  */
@@ -2708,17 +2644,25 @@ declare class PrimaryNetworkService {
2708
2644
  */
2709
2645
  maxTimeRemaining?: number;
2710
2646
  /**
2711
- * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2647
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2712
2648
  */
2713
2649
  minFeePercentage?: number;
2714
2650
  /**
2715
- * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2651
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
2716
2652
  */
2717
2653
  maxFeePercentage?: number;
2654
+ /**
2655
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2656
+ */
2657
+ minUptimePerformance?: number;
2658
+ /**
2659
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2660
+ */
2661
+ maxUptimePerformance?: number;
2718
2662
  /**
2719
2663
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2720
2664
  */
2721
- subnetId?: string;
2665
+ subnetId?: any;
2722
2666
  }): CancelablePromise<ListValidatorDetailsResponse>;
2723
2667
  /**
2724
2668
  * Get single validator details
@@ -2726,7 +2670,7 @@ declare class PrimaryNetworkService {
2726
2670
  * @returns ListValidatorDetailsResponse
2727
2671
  * @throws ApiError
2728
2672
  */
2729
- getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2673
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2730
2674
  /**
2731
2675
  * Either mainnet or a testnet.
2732
2676
  */
@@ -2743,14 +2687,14 @@ declare class PrimaryNetworkService {
2743
2687
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2744
2688
  */
2745
2689
  pageSize?: number;
2746
- /**
2747
- * 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.
2748
- */
2749
- sortOrder?: SortOrder;
2750
2690
  /**
2751
2691
  * Validation status of the node.
2752
2692
  */
2753
2693
  validationStatus?: ValidationStatusType;
2694
+ /**
2695
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2696
+ */
2697
+ sortOrder?: SortOrder;
2754
2698
  }): CancelablePromise<ListValidatorDetailsResponse>;
2755
2699
  /**
2756
2700
  * List delegators
@@ -2818,9 +2762,6 @@ type CChainSharedAssetBalance = {
2818
2762
  * Denomination of this asset to represent fungibility.
2819
2763
  */
2820
2764
  denomination: number;
2821
- /**
2822
- * Type of asset like SECP256K1 or NFT.
2823
- */
2824
2765
  type: PrimaryNetworkAssetType;
2825
2766
  /**
2826
2767
  * Amount of the asset.
@@ -2856,7 +2797,7 @@ type ListCChainAtomicBalancesResponse = {
2856
2797
  chainInfo: PrimaryNetworkChainInfo;
2857
2798
  };
2858
2799
 
2859
- type Asset = {
2800
+ type AggregatedAssetAmount = {
2860
2801
  /**
2861
2802
  * Unique ID for an asset.
2862
2803
  */
@@ -2873,14 +2814,12 @@ type Asset = {
2873
2814
  * Denomination of this asset to represent fungibility.
2874
2815
  */
2875
2816
  denomination: number;
2876
- /**
2877
- * Type of asset like SECP256K1 or NFT.
2878
- */
2879
2817
  type: PrimaryNetworkAssetType;
2880
2818
  /**
2881
2819
  * Amount of the asset.
2882
2820
  */
2883
2821
  amount: string;
2822
+ utxoCount: number;
2884
2823
  };
2885
2824
 
2886
2825
  type PChainSharedAsset = {
@@ -2900,49 +2839,47 @@ type PChainSharedAsset = {
2900
2839
  * Denomination of this asset to represent fungibility.
2901
2840
  */
2902
2841
  denomination: number;
2903
- /**
2904
- * Type of asset like SECP256K1 or NFT.
2905
- */
2906
2842
  type: PrimaryNetworkAssetType;
2907
2843
  /**
2908
2844
  * Amount of the asset.
2909
2845
  */
2910
2846
  amount: string;
2847
+ utxoCount: number;
2911
2848
  sharedWithChainId: string;
2912
2849
  status: string;
2913
2850
  };
2914
2851
 
2915
2852
  type PChainBalance = {
2916
2853
  /**
2917
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2854
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2918
2855
  */
2919
- unlockedUnstaked: Array<Asset>;
2856
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2920
2857
  /**
2921
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2858
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2922
2859
  */
2923
- unlockedStaked: Array<Asset>;
2860
+ unlockedStaked: Array<AggregatedAssetAmount>;
2924
2861
  /**
2925
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2862
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2926
2863
  */
2927
- lockedPlatform: Array<Asset>;
2864
+ lockedPlatform: Array<AggregatedAssetAmount>;
2928
2865
  /**
2929
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2866
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2930
2867
  */
2931
- lockedStakeable: Array<Asset>;
2868
+ lockedStakeable: Array<AggregatedAssetAmount>;
2932
2869
  /**
2933
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2870
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2934
2871
  */
2935
- lockedStaked: Array<Asset>;
2872
+ lockedStaked: Array<AggregatedAssetAmount>;
2936
2873
  /**
2937
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2874
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2938
2875
  */
2939
- pendingStaked: Array<Asset>;
2876
+ pendingStaked: Array<AggregatedAssetAmount>;
2940
2877
  /**
2941
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2878
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2942
2879
  */
2943
2880
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2944
2881
  /**
2945
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2882
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2946
2883
  */
2947
2884
  atomicMemoryLocked: Array<PChainSharedAsset>;
2948
2885
  };
@@ -2952,34 +2889,6 @@ type ListPChainBalancesResponse = {
2952
2889
  chainInfo: PrimaryNetworkChainInfo;
2953
2890
  };
2954
2891
 
2955
- type XChainAssetBalance = {
2956
- /**
2957
- * Unique ID for an asset.
2958
- */
2959
- assetId: string;
2960
- /**
2961
- * Name of this asset.
2962
- */
2963
- name: string;
2964
- /**
2965
- * Symbol for this asset (max 4 characters).
2966
- */
2967
- symbol: string;
2968
- /**
2969
- * Denomination of this asset to represent fungibility.
2970
- */
2971
- denomination: number;
2972
- /**
2973
- * Type of asset like SECP256K1 or NFT.
2974
- */
2975
- type: PrimaryNetworkAssetType;
2976
- /**
2977
- * Amount of the asset.
2978
- */
2979
- amount: string;
2980
- utxoCount: number;
2981
- };
2982
-
2983
2892
  type XChainSharedAssetBalance = {
2984
2893
  /**
2985
2894
  * Unique ID for an asset.
@@ -2997,9 +2906,6 @@ type XChainSharedAssetBalance = {
2997
2906
  * Denomination of this asset to represent fungibility.
2998
2907
  */
2999
2908
  denomination: number;
3000
- /**
3001
- * Type of asset like SECP256K1 or NFT.
3002
- */
3003
2909
  type: PrimaryNetworkAssetType;
3004
2910
  /**
3005
2911
  * Amount of the asset.
@@ -3013,11 +2919,11 @@ type XChainBalances = {
3013
2919
  /**
3014
2920
  * A list of objects containing X-chain Asset balance information.
3015
2921
  */
3016
- locked: Array<XChainAssetBalance>;
2922
+ locked: Array<AggregatedAssetAmount>;
3017
2923
  /**
3018
2924
  * A list of objects containing X-chain Asset balance information.
3019
2925
  */
3020
- unlocked: Array<XChainAssetBalance>;
2926
+ unlocked: Array<AggregatedAssetAmount>;
3021
2927
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
3022
2928
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
3023
2929
  };
@@ -3195,9 +3101,6 @@ type AssetWithPriceInfo = {
3195
3101
  * Denomination of this asset to represent fungibility.
3196
3102
  */
3197
3103
  denomination: number;
3198
- /**
3199
- * Type of asset like SECP256K1 or NFT.
3200
- */
3201
3104
  type: PrimaryNetworkAssetType;
3202
3105
  /**
3203
3106
  * Amount of the asset.
@@ -3240,6 +3143,30 @@ type ListHistoricalRewardsResponse = {
3240
3143
  historicalRewards: Array<HistoricalReward>;
3241
3144
  };
3242
3145
 
3146
+ type AssetAmount = {
3147
+ /**
3148
+ * Unique ID for an asset.
3149
+ */
3150
+ assetId: string;
3151
+ /**
3152
+ * Name of this asset.
3153
+ */
3154
+ name: string;
3155
+ /**
3156
+ * Symbol for this asset (max 4 characters).
3157
+ */
3158
+ symbol: string;
3159
+ /**
3160
+ * Denomination of this asset to represent fungibility.
3161
+ */
3162
+ denomination: number;
3163
+ type: PrimaryNetworkAssetType;
3164
+ /**
3165
+ * Amount of the asset.
3166
+ */
3167
+ amount: string;
3168
+ };
3169
+
3243
3170
  type PendingReward = {
3244
3171
  /**
3245
3172
  * An array of P-Chain wallet addresses.
@@ -3253,9 +3180,9 @@ type PendingReward = {
3253
3180
  rewardType: RewardType;
3254
3181
  progress: number;
3255
3182
  /**
3256
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3183
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3257
3184
  */
3258
- estimatedReward: Asset;
3185
+ estimatedReward: AssetAmount;
3259
3186
  };
3260
3187
 
3261
3188
  type ListPendingRewardsResponse = {
@@ -3356,9 +3283,9 @@ type EVMInput = {
3356
3283
  */
3357
3284
  fromAddress: string;
3358
3285
  /**
3359
- * Asset details for the asset being transferred.
3286
+ * AssetAmount details for the asset being transferred.
3360
3287
  */
3361
- asset: Asset;
3288
+ asset: AssetAmount;
3362
3289
  /**
3363
3290
  * Credentials that signed this transaction.
3364
3291
  */
@@ -3370,7 +3297,7 @@ type Utxo = {
3370
3297
  * Addresses that are eligible to sign the consumption of this output.
3371
3298
  */
3372
3299
  addresses: Array<string>;
3373
- asset: Asset;
3300
+ asset: AssetAmount;
3374
3301
  /**
3375
3302
  * Blockchain ID on which this output is consumed on.
3376
3303
  */
@@ -3453,11 +3380,11 @@ type CChainExportTransaction = {
3453
3380
  /**
3454
3381
  * Assets unlocked by inputs of this transaction.
3455
3382
  */
3456
- amountUnlocked: Array<Asset>;
3383
+ amountUnlocked: Array<AssetAmount>;
3457
3384
  /**
3458
3385
  * Assets created by outputs of this transaction.
3459
3386
  */
3460
- amountCreated: Array<Asset>;
3387
+ amountCreated: Array<AssetAmount>;
3461
3388
  /**
3462
3389
  * Source chain for an atomic transaction.
3463
3390
  */
@@ -3488,9 +3415,9 @@ type EVMOutput = {
3488
3415
  */
3489
3416
  toAddress: string;
3490
3417
  /**
3491
- * Asset details for the asset being transferred.
3418
+ * AssetAmount details for the asset being transferred.
3492
3419
  */
3493
- asset: Asset;
3420
+ asset: AssetAmount;
3494
3421
  };
3495
3422
 
3496
3423
  type CChainImportTransaction = {
@@ -3517,11 +3444,11 @@ type CChainImportTransaction = {
3517
3444
  /**
3518
3445
  * Assets unlocked by inputs of this transaction.
3519
3446
  */
3520
- amountUnlocked: Array<Asset>;
3447
+ amountUnlocked: Array<AssetAmount>;
3521
3448
  /**
3522
3449
  * Assets created by outputs of this transaction.
3523
3450
  */
3524
- amountCreated: Array<Asset>;
3451
+ amountCreated: Array<AssetAmount>;
3525
3452
  /**
3526
3453
  * Source chain for an atomic transaction.
3527
3454
  */
@@ -3569,6 +3496,8 @@ declare enum PChainTransactionType {
3569
3496
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3570
3497
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3571
3498
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3499
+ BASE_TX = "BaseTx",
3500
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3572
3501
  UNKNOWN = "UNKNOWN"
3573
3502
  }
3574
3503
 
@@ -3582,7 +3511,7 @@ type PChainUtxo = {
3582
3511
  * Addresses that are eligible to sign the consumption of this output.
3583
3512
  */
3584
3513
  addresses: Array<string>;
3585
- asset: Asset;
3514
+ asset: AssetAmount;
3586
3515
  /**
3587
3516
  * Blockchain ID on which this output is consumed on.
3588
3517
  */
@@ -3646,17 +3575,17 @@ type PChainTransaction = {
3646
3575
  */
3647
3576
  destinationChain?: string;
3648
3577
  /**
3649
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3578
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3650
3579
  */
3651
- value: Array<Asset>;
3580
+ value: Array<AssetAmount>;
3652
3581
  /**
3653
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3582
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3654
3583
  */
3655
- amountBurned: Array<Asset>;
3584
+ amountBurned: Array<AssetAmount>;
3656
3585
  /**
3657
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3586
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3658
3587
  */
3659
- amountStaked: Array<Asset>;
3588
+ amountStaked: Array<AssetAmount>;
3660
3589
  /**
3661
3590
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3662
3591
  */
@@ -3688,6 +3617,10 @@ type PChainTransaction = {
3688
3617
  * Present for RewardValidatorTx
3689
3618
  */
3690
3619
  stakingTxHash?: string;
3620
+ /**
3621
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3622
+ */
3623
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3691
3624
  };
3692
3625
 
3693
3626
  type ListPChainTransactionsResponse = {
@@ -3699,6 +3632,9 @@ type ListPChainTransactionsResponse = {
3699
3632
  chainInfo: PrimaryNetworkChainInfo;
3700
3633
  };
3701
3634
 
3635
+ /**
3636
+ * Type of transaction.
3637
+ */
3702
3638
  declare enum XChainTransactionType {
3703
3639
  BASE_TX = "BaseTx",
3704
3640
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3721,9 +3657,6 @@ type XChainLinearTransaction = {
3721
3657
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3722
3658
  */
3723
3659
  timestamp: number;
3724
- /**
3725
- * Type of transaction.
3726
- */
3727
3660
  txType: XChainTransactionType;
3728
3661
  /**
3729
3662
  * Hex encoded memo bytes for this transaction.
@@ -3734,11 +3667,11 @@ type XChainLinearTransaction = {
3734
3667
  /**
3735
3668
  * Assets unlocked by inputs of this transaction.
3736
3669
  */
3737
- amountUnlocked: Array<Asset>;
3670
+ amountUnlocked: Array<AssetAmount>;
3738
3671
  /**
3739
3672
  * Assets created by outputs of this transaction.
3740
3673
  */
3741
- amountCreated: Array<Asset>;
3674
+ amountCreated: Array<AssetAmount>;
3742
3675
  /**
3743
3676
  * Source chain for an atomic transaction.
3744
3677
  */
@@ -3748,7 +3681,7 @@ type XChainLinearTransaction = {
3748
3681
  */
3749
3682
  destinationChain?: string;
3750
3683
  /**
3751
- * Asset details of the asset created in CreateAssetTx
3684
+ * AssetAmount details of the asset created in CreateAssetTx
3752
3685
  */
3753
3686
  assetCreated?: XChainAssetDetails;
3754
3687
  /**
@@ -3798,9 +3731,6 @@ type XChainNonLinearTransaction = {
3798
3731
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3799
3732
  */
3800
3733
  timestamp: number;
3801
- /**
3802
- * Type of transaction.
3803
- */
3804
3734
  txType: XChainTransactionType;
3805
3735
  /**
3806
3736
  * Hex encoded memo bytes for this transaction.
@@ -3811,11 +3741,11 @@ type XChainNonLinearTransaction = {
3811
3741
  /**
3812
3742
  * Assets unlocked by inputs of this transaction.
3813
3743
  */
3814
- amountUnlocked: Array<Asset>;
3744
+ amountUnlocked: Array<AssetAmount>;
3815
3745
  /**
3816
3746
  * Assets created by outputs of this transaction.
3817
3747
  */
3818
- amountCreated: Array<Asset>;
3748
+ amountCreated: Array<AssetAmount>;
3819
3749
  /**
3820
3750
  * Source chain for an atomic transaction.
3821
3751
  */
@@ -3825,7 +3755,7 @@ type XChainNonLinearTransaction = {
3825
3755
  */
3826
3756
  destinationChain?: string;
3827
3757
  /**
3828
- * Asset details of the asset created in CreateAssetTx
3758
+ * AssetAmount details of the asset created in CreateAssetTx
3829
3759
  */
3830
3760
  assetCreated?: XChainAssetDetails;
3831
3761
  /**
@@ -3871,8 +3801,9 @@ declare enum PrimaryNetworkTxType {
3871
3801
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3872
3802
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3873
3803
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3874
- UNKNOWN = "UNKNOWN",
3875
3804
  BASE_TX = "BaseTx",
3805
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3806
+ UNKNOWN = "UNKNOWN",
3876
3807
  CREATE_ASSET_TX = "CreateAssetTx",
3877
3808
  OPERATION_TX = "OperationTx"
3878
3809
  }
@@ -4198,13 +4129,471 @@ declare class PrimaryNetworkVerticesService {
4198
4129
  }): CancelablePromise<ListXChainVerticesResponse>;
4199
4130
  }
4200
4131
 
4201
- type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4202
- declare class Glacier {
4203
- readonly default: DefaultService;
4204
- readonly evmBalances: EvmBalancesService;
4205
- readonly evmBlocks: EvmBlocksService;
4206
- readonly evmChains: EvmChainsService;
4207
- readonly evmContracts: EvmContractsService;
4132
+ type RpcErrorDto = {
4133
+ code: number;
4134
+ message: string;
4135
+ data?: Record<string, any>;
4136
+ };
4137
+
4138
+ type RpcErrorResponseDto = {
4139
+ jsonrpc: string;
4140
+ id?: (string | number);
4141
+ error: RpcErrorDto;
4142
+ };
4143
+
4144
+ type RpcRequestBodyDto = {
4145
+ method: string;
4146
+ params?: Record<string, any>;
4147
+ id?: (string | number);
4148
+ jsonrpc?: string;
4149
+ };
4150
+
4151
+ type RpcSuccessResponseDto = {
4152
+ jsonrpc: string;
4153
+ id?: (string | number);
4154
+ result: Record<string, any>;
4155
+ };
4156
+
4157
+ declare class RpcService {
4158
+ readonly httpRequest: BaseHttpRequest;
4159
+ constructor(httpRequest: BaseHttpRequest);
4160
+ /**
4161
+ * Calls JSON-RPC method
4162
+ * Calls JSON-RPC method.
4163
+ * @returns any
4164
+ * @throws ApiError
4165
+ */
4166
+ rpc({ chainId, requestBody, }: {
4167
+ /**
4168
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4169
+ */
4170
+ chainId: string;
4171
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4172
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4173
+ }
4174
+
4175
+ type TeleporterDestinationTransaction = {
4176
+ txHash: string;
4177
+ timestamp: number;
4178
+ gasSpent: string;
4179
+ rewardRedeemer: string;
4180
+ delivererAddress: string;
4181
+ };
4182
+
4183
+ type TeleporterReceipt = {
4184
+ receivedMessageNonce: string;
4185
+ relayerRewardAddress: string;
4186
+ };
4187
+
4188
+ type TeleporterRewardDetails = {
4189
+ /**
4190
+ * A wallet or contract address in mixed-case checksum encoding.
4191
+ */
4192
+ address: string;
4193
+ /**
4194
+ * The contract name.
4195
+ */
4196
+ name: string;
4197
+ /**
4198
+ * The contract symbol.
4199
+ */
4200
+ symbol: string;
4201
+ /**
4202
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4203
+ */
4204
+ decimals: number;
4205
+ /**
4206
+ * The logo uri for the address.
4207
+ */
4208
+ logoUri?: string;
4209
+ ercType: TeleporterRewardDetails.ercType;
4210
+ /**
4211
+ * The token price, if available.
4212
+ */
4213
+ price?: Money;
4214
+ value: string;
4215
+ };
4216
+ declare namespace TeleporterRewardDetails {
4217
+ enum ercType {
4218
+ ERC_20 = "ERC-20"
4219
+ }
4220
+ }
4221
+
4222
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4223
+ messageId: string;
4224
+ teleporterContractAddress: string;
4225
+ sourceBlockchainId: string;
4226
+ destinationBlockchainId: string;
4227
+ sourceEvmChainId: string;
4228
+ destinationEvmChainId: string;
4229
+ messageNonce: string;
4230
+ from: string;
4231
+ to: string;
4232
+ data?: string;
4233
+ messageExecuted: boolean;
4234
+ receipts: Array<TeleporterReceipt>;
4235
+ receiptDelivered: boolean;
4236
+ rewardDetails: TeleporterRewardDetails;
4237
+ destinationTransaction: TeleporterDestinationTransaction;
4238
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4239
+ };
4240
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4241
+ enum status {
4242
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4243
+ }
4244
+ }
4245
+
4246
+ type TeleporterSourceTransaction = {
4247
+ txHash: string;
4248
+ timestamp: number;
4249
+ gasSpent: string;
4250
+ };
4251
+
4252
+ type DeliveredTeleporterMessage = {
4253
+ messageId: string;
4254
+ teleporterContractAddress: string;
4255
+ sourceBlockchainId: string;
4256
+ destinationBlockchainId: string;
4257
+ sourceEvmChainId: string;
4258
+ destinationEvmChainId: string;
4259
+ messageNonce: string;
4260
+ from: string;
4261
+ to: string;
4262
+ data?: string;
4263
+ messageExecuted: boolean;
4264
+ receipts: Array<TeleporterReceipt>;
4265
+ receiptDelivered: boolean;
4266
+ rewardDetails: TeleporterRewardDetails;
4267
+ sourceTransaction: TeleporterSourceTransaction;
4268
+ destinationTransaction: TeleporterDestinationTransaction;
4269
+ status: DeliveredTeleporterMessage.status;
4270
+ };
4271
+ declare namespace DeliveredTeleporterMessage {
4272
+ enum status {
4273
+ DELIVERED = "delivered"
4274
+ }
4275
+ }
4276
+
4277
+ type PendingTeleporterMessage = {
4278
+ messageId: string;
4279
+ teleporterContractAddress: string;
4280
+ sourceBlockchainId: string;
4281
+ destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4284
+ messageNonce: string;
4285
+ from: string;
4286
+ to: string;
4287
+ data?: string;
4288
+ messageExecuted: boolean;
4289
+ receipts: Array<TeleporterReceipt>;
4290
+ receiptDelivered: boolean;
4291
+ rewardDetails: TeleporterRewardDetails;
4292
+ sourceTransaction: TeleporterSourceTransaction;
4293
+ status: PendingTeleporterMessage.status;
4294
+ };
4295
+ declare namespace PendingTeleporterMessage {
4296
+ enum status {
4297
+ PENDING = "pending"
4298
+ }
4299
+ }
4300
+
4301
+ type ListTeleporterMessagesResponse = {
4302
+ /**
4303
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4304
+ */
4305
+ nextPageToken?: string;
4306
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4307
+ };
4308
+
4309
+ declare class TeleporterService {
4310
+ readonly httpRequest: BaseHttpRequest;
4311
+ constructor(httpRequest: BaseHttpRequest);
4312
+ /**
4313
+ * Get a teleporter message
4314
+ * Gets a teleporter message by message ID.
4315
+ * @returns any
4316
+ * @throws ApiError
4317
+ */
4318
+ getTeleporterMessage({ messageId, }: {
4319
+ /**
4320
+ * The message ID of the teleporter message.
4321
+ */
4322
+ messageId: string;
4323
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4324
+ /**
4325
+ * List teleporter messages
4326
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4327
+ * @returns ListTeleporterMessagesResponse
4328
+ * @throws ApiError
4329
+ */
4330
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
4331
+ /**
4332
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4333
+ */
4334
+ pageToken?: string;
4335
+ /**
4336
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4337
+ */
4338
+ pageSize?: number;
4339
+ /**
4340
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4341
+ */
4342
+ sourceBlockchainId?: string;
4343
+ /**
4344
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4345
+ */
4346
+ destinationBlockchainId?: string;
4347
+ /**
4348
+ * The address of the recipient of the teleporter message.
4349
+ */
4350
+ to?: string;
4351
+ /**
4352
+ * The address of the sender of the teleporter message.
4353
+ */
4354
+ from?: string;
4355
+ /**
4356
+ * mainnet or testnet.
4357
+ */
4358
+ network?: NetworkType;
4359
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4360
+ }
4361
+
4362
+ type AddressesChangeRequest = {
4363
+ /**
4364
+ * Ethereum address(es) for the address_activity event type
4365
+ */
4366
+ addresses: Array<any[]>;
4367
+ };
4368
+
4369
+ type ListWebhookAddressesResponse = {
4370
+ /**
4371
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4372
+ */
4373
+ nextPageToken?: string;
4374
+ addresses: Array<string>;
4375
+ totalAddresses: number;
4376
+ };
4377
+
4378
+ type AddressActivityMetadata = {
4379
+ /**
4380
+ * Ethereum address(es) for the address_activity event type
4381
+ */
4382
+ addresses: Array<any[]>;
4383
+ /**
4384
+ * Array of hexadecimal strings of the event signatures.
4385
+ */
4386
+ eventSignatures?: Array<string>;
4387
+ };
4388
+
4389
+ declare enum EventType {
4390
+ ADDRESS_ACTIVITY = "address_activity"
4391
+ }
4392
+
4393
+ declare enum WebhookStatusType {
4394
+ ACTIVE = "active",
4395
+ INACTIVE = "inactive"
4396
+ }
4397
+
4398
+ type WebhookResponse = {
4399
+ id: string;
4400
+ eventType: EventType;
4401
+ metadata: AddressActivityMetadata;
4402
+ /**
4403
+ * Whether to include traces in the webhook payload.
4404
+ */
4405
+ includeInternalTxs?: boolean;
4406
+ /**
4407
+ * Whether to include logs in the webhook payload.
4408
+ */
4409
+ includeLogs?: boolean;
4410
+ url: string;
4411
+ chainId: string;
4412
+ status: WebhookStatusType;
4413
+ createdAt: number;
4414
+ name: string;
4415
+ description: string;
4416
+ };
4417
+
4418
+ type ListWebhooksResponse = {
4419
+ /**
4420
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4421
+ */
4422
+ nextPageToken?: string;
4423
+ webhooks: Array<WebhookResponse>;
4424
+ };
4425
+
4426
+ type RegisterWebhookRequest = {
4427
+ url: string;
4428
+ chainId: string;
4429
+ eventType: EventType;
4430
+ metadata: AddressActivityMetadata;
4431
+ /**
4432
+ * Whether to include traces in the webhook payload.
4433
+ */
4434
+ includeInternalTxs?: boolean;
4435
+ /**
4436
+ * Whether to include logs in the webhook payload.
4437
+ */
4438
+ includeLogs?: boolean;
4439
+ };
4440
+
4441
+ type SharedSecretsResponse = {
4442
+ secret: string;
4443
+ };
4444
+
4445
+ type UpdateWebhookRequest = {
4446
+ name?: string;
4447
+ description?: string;
4448
+ url?: string;
4449
+ status?: WebhookStatusType;
4450
+ includeInternalTxs?: boolean;
4451
+ includeLogs?: boolean;
4452
+ };
4453
+
4454
+ declare enum WebhookStatus {
4455
+ ACTIVE = "active",
4456
+ INACTIVE = "inactive"
4457
+ }
4458
+
4459
+ declare class WebhooksService {
4460
+ readonly httpRequest: BaseHttpRequest;
4461
+ constructor(httpRequest: BaseHttpRequest);
4462
+ /**
4463
+ * Create a webhook
4464
+ * Create a new webhook.
4465
+ * @returns WebhookResponse
4466
+ * @throws ApiError
4467
+ */
4468
+ registerWebhook({ requestBody, }: {
4469
+ requestBody: RegisterWebhookRequest;
4470
+ }): CancelablePromise<WebhookResponse>;
4471
+ /**
4472
+ * List webhooks
4473
+ * Lists webhooks for the user.
4474
+ * @returns ListWebhooksResponse
4475
+ * @throws ApiError
4476
+ */
4477
+ listWebhooks({ pageToken, pageSize, status, }: {
4478
+ /**
4479
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4480
+ */
4481
+ pageToken?: string;
4482
+ /**
4483
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4484
+ */
4485
+ pageSize?: number;
4486
+ /**
4487
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
4488
+ */
4489
+ status?: WebhookStatus;
4490
+ }): CancelablePromise<ListWebhooksResponse>;
4491
+ /**
4492
+ * Get a webhook by ID
4493
+ * Retrieves a webhook by ID.
4494
+ * @returns WebhookResponse
4495
+ * @throws ApiError
4496
+ */
4497
+ getWebhook({ id, }: {
4498
+ /**
4499
+ * The webhook identifier.
4500
+ */
4501
+ id: string;
4502
+ }): CancelablePromise<WebhookResponse>;
4503
+ /**
4504
+ * Deactivate a webhook
4505
+ * Deactivates a webhook by ID.
4506
+ * @returns WebhookResponse
4507
+ * @throws ApiError
4508
+ */
4509
+ deactivateWebhook({ id, }: {
4510
+ /**
4511
+ * The webhook identifier.
4512
+ */
4513
+ id: string;
4514
+ }): CancelablePromise<WebhookResponse>;
4515
+ /**
4516
+ * Update a webhook
4517
+ * Updates an existing webhook.
4518
+ * @returns WebhookResponse
4519
+ * @throws ApiError
4520
+ */
4521
+ updateWebhook({ id, requestBody, }: {
4522
+ /**
4523
+ * The webhook identifier.
4524
+ */
4525
+ id: string;
4526
+ requestBody: UpdateWebhookRequest;
4527
+ }): CancelablePromise<WebhookResponse>;
4528
+ /**
4529
+ * Generate a shared secret
4530
+ * Generates a new shared secret.
4531
+ * @returns SharedSecretsResponse
4532
+ * @throws ApiError
4533
+ */
4534
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4535
+ /**
4536
+ * Get a shared secret
4537
+ * Get a previously generated shared secret.
4538
+ * @returns SharedSecretsResponse
4539
+ * @throws ApiError
4540
+ */
4541
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4542
+ /**
4543
+ * Add address(es) to a webhook
4544
+ * Adding address(es) to a given webhook.
4545
+ * @returns WebhookResponse
4546
+ * @throws ApiError
4547
+ */
4548
+ addAddressesToWebhook({ id, requestBody, }: {
4549
+ /**
4550
+ * The webhook identifier.
4551
+ */
4552
+ id: string;
4553
+ requestBody: AddressesChangeRequest;
4554
+ }): CancelablePromise<WebhookResponse>;
4555
+ /**
4556
+ * Remove address(es) from a webhook
4557
+ * Removing address(es) from a given webhook.
4558
+ * @returns WebhookResponse
4559
+ * @throws ApiError
4560
+ */
4561
+ removeAddressesFromWebhook({ id, requestBody, }: {
4562
+ /**
4563
+ * The webhook identifier.
4564
+ */
4565
+ id: string;
4566
+ requestBody: AddressesChangeRequest;
4567
+ }): CancelablePromise<WebhookResponse>;
4568
+ /**
4569
+ * Get address(es) from a given webhook
4570
+ * Retrieving address(es) from a given webhook.
4571
+ * @returns ListWebhookAddressesResponse
4572
+ * @throws ApiError
4573
+ */
4574
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4575
+ /**
4576
+ * The webhook identifier.
4577
+ */
4578
+ id: string;
4579
+ /**
4580
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4581
+ */
4582
+ pageToken?: string;
4583
+ /**
4584
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4585
+ */
4586
+ pageSize?: number;
4587
+ }): CancelablePromise<ListWebhookAddressesResponse>;
4588
+ }
4589
+
4590
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4591
+ declare class Glacier {
4592
+ readonly default: DefaultService;
4593
+ readonly evmBalances: EvmBalancesService;
4594
+ readonly evmBlocks: EvmBlocksService;
4595
+ readonly evmChains: EvmChainsService;
4596
+ readonly evmContracts: EvmContractsService;
4208
4597
  readonly evmTransactions: EvmTransactionsService;
4209
4598
  readonly healthCheck: HealthCheckService;
4210
4599
  readonly nfTs: NfTsService;
@@ -4216,6 +4605,9 @@ declare class Glacier {
4216
4605
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4217
4606
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4218
4607
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4608
+ readonly rpc: RpcService;
4609
+ readonly teleporter: TeleporterService;
4610
+ readonly webhooks: WebhooksService;
4219
4611
  readonly request: BaseHttpRequest;
4220
4612
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4221
4613
  }
@@ -4237,4 +4629,11 @@ declare class ApiError extends Error {
4237
4629
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4238
4630
  }
4239
4631
 
4240
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4632
+ type NextPageToken = {
4633
+ /**
4634
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4635
+ */
4636
+ nextPageToken?: string;
4637
+ };
4638
+
4639
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };