@avalabs/glacier-sdk 3.1.0-canary.9fc81c6.0 → 3.1.0-canary.a32c8a3.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 (208) hide show
  1. package/dist/index.d.ts +2488 -514
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +8 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessListData.d.ts +12 -0
  6. package/esm/generated/models/AccessRequest.d.ts +12 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  8. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  9. package/esm/generated/models/ApiFeature.d.ts +7 -0
  10. package/esm/generated/models/ApiFeature.js +1 -0
  11. package/esm/generated/models/BadGateway.d.ts +16 -0
  12. package/esm/generated/models/BadRequest.d.ts +16 -0
  13. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  14. package/esm/generated/models/BlockchainId.d.ts +2 -0
  15. package/esm/generated/models/BlockchainId.js +1 -1
  16. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  17. package/esm/generated/models/BlockchainIds.js +1 -1
  18. package/esm/generated/models/ChainInfo.d.ts +1 -1
  19. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  20. package/esm/generated/models/CommonBalanceType.js +1 -0
  21. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  22. package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
  23. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  24. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  25. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  26. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  27. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  28. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  29. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  30. package/esm/generated/models/ERCToken.d.ts +24 -0
  31. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  32. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  33. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  34. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  35. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  36. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  37. package/esm/generated/models/EventType.d.ts +3 -1
  38. package/esm/generated/models/EventType.js +1 -1
  39. package/esm/generated/models/EvmBlock.d.ts +4 -0
  40. package/esm/generated/models/Forbidden.d.ts +16 -0
  41. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  42. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  43. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  44. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  45. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  46. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  47. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  48. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  49. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  50. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  51. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  52. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  53. package/esm/generated/models/IcmRewardDetails.js +1 -0
  54. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  55. package/esm/generated/models/InternalServerError.d.ts +16 -0
  56. package/esm/generated/models/InternalTransaction.d.ts +15 -16
  57. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  58. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  59. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  60. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  61. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  62. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  63. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  64. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  65. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  66. package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
  67. package/esm/generated/models/Log.d.ts +40 -0
  68. package/esm/generated/models/LogsFormat.d.ts +60 -0
  69. package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
  70. package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
  71. package/esm/generated/models/Metric.d.ts +14 -0
  72. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  73. package/esm/generated/models/Network.d.ts +2 -1
  74. package/esm/generated/models/Network.js +1 -1
  75. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  76. package/esm/generated/models/NotFound.d.ts +16 -0
  77. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  78. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  79. package/esm/generated/models/PChainTransaction.d.ts +33 -7
  80. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  81. package/esm/generated/models/PChainTransactionType.js +1 -1
  82. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  83. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  84. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  85. package/esm/generated/models/PendingIcmMessage.js +1 -0
  86. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  87. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  88. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  89. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  90. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  91. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  92. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  93. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  94. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  95. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  96. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  97. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  98. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  99. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  100. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  101. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  102. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  103. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  104. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  105. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  106. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  107. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  108. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  109. package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
  110. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  111. package/esm/generated/models/RequestType.d.ts +9 -0
  112. package/esm/generated/models/RequestType.js +1 -0
  113. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  114. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  115. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  116. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
  117. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  118. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  119. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  120. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  121. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  122. package/esm/generated/models/Subnet.d.ts +15 -2
  123. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  124. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  125. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  126. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  127. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  128. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  129. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  130. package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
  131. package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
  132. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  133. package/esm/generated/models/Transaction.d.ts +121 -0
  134. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  135. package/esm/generated/models/TransactionDirectionType.js +1 -0
  136. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  137. package/esm/generated/models/Unauthorized.d.ts +16 -0
  138. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  139. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  140. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
  141. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
  142. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
  143. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  144. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  145. package/esm/generated/models/UtxoType.d.ts +3 -0
  146. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  147. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  148. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  149. package/esm/generated/models/XChainId.d.ts +1 -0
  150. package/esm/generated/models/XChainId.js +1 -1
  151. package/esm/generated/services/DataApiUsageMetricsService.d.ts +253 -0
  152. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  153. package/esm/generated/services/EvmBalancesService.d.ts +14 -14
  154. package/esm/generated/services/EvmBalancesService.js +1 -1
  155. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  156. package/esm/generated/services/EvmBlocksService.js +1 -1
  157. package/esm/generated/services/EvmChainsService.d.ts +88 -10
  158. package/esm/generated/services/EvmChainsService.js +1 -1
  159. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  160. package/esm/generated/services/EvmContractsService.js +1 -1
  161. package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
  162. package/esm/generated/services/EvmTransactionsService.js +1 -1
  163. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  164. package/esm/generated/services/HealthCheckService.js +1 -1
  165. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  166. package/esm/generated/services/InterchainMessagingService.js +1 -0
  167. package/esm/generated/services/NfTsService.d.ts +6 -6
  168. package/esm/generated/services/NfTsService.js +1 -1
  169. package/esm/generated/services/NotificationsService.d.ts +51 -0
  170. package/esm/generated/services/NotificationsService.js +1 -0
  171. package/esm/generated/services/OperationsService.d.ts +2 -2
  172. package/esm/generated/services/OperationsService.js +1 -1
  173. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  174. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  175. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  176. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  177. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  178. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  179. package/esm/generated/services/PrimaryNetworkService.d.ts +69 -18
  180. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  181. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  182. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  183. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  184. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  185. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  186. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  187. package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
  188. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  189. package/esm/generated/services/TeleporterService.d.ts +44 -10
  190. package/esm/generated/services/TeleporterService.js +1 -1
  191. package/esm/generated/services/WebhooksService.d.ts +30 -28
  192. package/esm/generated/services/WebhooksService.js +1 -1
  193. package/esm/index.d.ts +76 -11
  194. package/esm/index.js +1 -1
  195. package/package.json +2 -2
  196. package/esm/generated/models/BlockchainInfo.d.ts +0 -5
  197. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  198. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  199. package/esm/generated/models/GlacierApiFeature.js +0 -1
  200. package/esm/generated/models/NetworkType.d.ts +0 -6
  201. package/esm/generated/models/NetworkType.js +0 -1
  202. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  203. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  204. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  205. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  206. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  207. package/esm/generated/services/RpcService.d.ts +0 -25
  208. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,571 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type LogsFormatMetadata = {
58
+ /**
59
+ * The IP address of the client that made the request.
60
+ */
61
+ ipAddress: string;
62
+ /**
63
+ * The host for the request made by the client.
64
+ */
65
+ host: string;
66
+ /**
67
+ * The user agent of the client that made the request.
68
+ */
69
+ userAgent: string;
70
+ };
71
+
72
+ /**
73
+ * The type of request made by the client.
74
+ */
75
+ declare enum RequestType {
76
+ DATA = "data",
77
+ RPC = "rpc"
78
+ }
79
+
80
+ type LogsFormat = {
81
+ /**
82
+ * The organization id of the request.
83
+ */
84
+ orgId: string;
85
+ /**
86
+ * The unique log id of the request.
87
+ */
88
+ logId: string;
89
+ /**
90
+ * The timestamp of the request.
91
+ */
92
+ eventTimestamp: number;
93
+ /**
94
+ * The apiKey used to make the request.
95
+ */
96
+ apiKeyId: string;
97
+ /**
98
+ * The alias of the apiKey used to make the request.
99
+ */
100
+ apiKeyAlias: string;
101
+ /**
102
+ * The region of the host for the request made by the client.
103
+ */
104
+ hostRegion: string;
105
+ requestType: RequestType;
106
+ /**
107
+ * The path of the request made by the client.
108
+ */
109
+ requestPath: string;
110
+ /**
111
+ * The number of API credits consumed by the request.
112
+ */
113
+ apiCreditsConsumed: number;
114
+ /**
115
+ * The duration of the request in milliseconds.
116
+ */
117
+ requestDurationMsecs: number;
118
+ /**
119
+ * The response code of the request.
120
+ */
121
+ responseCode: number;
122
+ /**
123
+ * The chain id of the request.
124
+ */
125
+ chainId?: string;
126
+ /**
127
+ * The rpc method of the request.
128
+ */
129
+ rpcMethod?: string;
130
+ /**
131
+ * The metadata of the request.
132
+ */
133
+ metadata: LogsFormatMetadata;
134
+ };
135
+
136
+ type LogsResponseDTO = {
137
+ /**
138
+ * 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.
139
+ */
140
+ nextPageToken?: string;
141
+ /**
142
+ * The organization id of the request.
143
+ */
144
+ orgId: string;
145
+ /**
146
+ * An array of logs representing the requests made by clients.
147
+ */
148
+ logs: Array<LogsFormat>;
149
+ };
150
+
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet"
155
+ }
156
+
157
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
158
+ RPC_METHOD = "rpcMethod",
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
167
+ HOURLY = "hourly",
168
+ DAILY = "daily",
169
+ WEEKLY = "weekly",
170
+ MONTHLY = "monthly"
171
+ }
172
+
173
+ type RpcUsageMetricsValueAggregated = {
174
+ /**
175
+ * The total number of requests
176
+ */
177
+ totalRequests: number;
178
+ /**
179
+ * The number of API credits used
180
+ */
181
+ apiCreditsUsed: number;
182
+ /**
183
+ * The number of requests per second
184
+ */
185
+ requestsPerSecond: number;
186
+ /**
187
+ * The success rate percentage
188
+ */
189
+ successRatePercent: number;
190
+ /**
191
+ * The median response time in milliseconds
192
+ */
193
+ medianResponseTimeMsecs: number;
194
+ /**
195
+ * The number of invalid requests
196
+ */
197
+ invalidRequests: number;
198
+ /**
199
+ * The number of API credits wasted on invalid requests
200
+ */
201
+ apiCreditsWasted: number;
202
+ /**
203
+ * Column name used for data aggregation
204
+ */
205
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
206
+ /**
207
+ * The value of the column used for data aggregation
208
+ */
209
+ groupValue?: (string | number);
210
+ };
211
+ declare namespace RpcUsageMetricsValueAggregated {
212
+ /**
213
+ * Column name used for data aggregation
214
+ */
215
+ enum groupedBy {
216
+ RPC_METHOD = "rpcMethod",
217
+ RESPONSE_CODE = "responseCode",
218
+ RL_BYPASS_TOKEN = "rlBypassToken",
219
+ REQUEST_PATH = "requestPath",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent",
223
+ NONE = "None"
224
+ }
225
+ }
226
+
227
+ type RpcMetrics = {
228
+ /**
229
+ * The timestamp of the metrics value
230
+ */
231
+ timestamp: number;
232
+ /**
233
+ * The metrics values for the timestamp
234
+ */
235
+ values: Array<RpcUsageMetricsValueAggregated>;
236
+ };
237
+
238
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
239
+ /**
240
+ * Duration in which the metrics value is aggregated
241
+ */
242
+ aggregateDuration: string;
243
+ /**
244
+ * Metrics values
245
+ */
246
+ metrics: Array<RpcMetrics>;
247
+ /**
248
+ * Network type for which the metrics are aggregated
249
+ */
250
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
251
+ };
252
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
253
+ /**
254
+ * Network type for which the metrics are aggregated
255
+ */
256
+ enum network {
257
+ MAINNET = "mainnet",
258
+ TESTNET = "testnet"
259
+ }
260
+ }
261
+
262
+ declare enum RpcUsageMetricsGroupByEnum {
263
+ RPC_METHOD = "rpcMethod",
264
+ RESPONSE_CODE = "responseCode",
265
+ RL_BYPASS_TOKEN = "rlBypassToken"
266
+ }
267
+
268
+ declare enum SubnetRpcTimeIntervalGranularity {
269
+ HOURLY = "hourly",
270
+ DAILY = "daily",
271
+ WEEKLY = "weekly",
272
+ MONTHLY = "monthly"
273
+ }
274
+
275
+ type SubnetRpcUsageMetricsResponseDTO = {
276
+ /**
277
+ * Duration in which the metrics value is aggregated
278
+ */
279
+ aggregateDuration: string;
280
+ /**
281
+ * Metrics values
282
+ */
283
+ metrics: Array<RpcMetrics>;
284
+ /**
285
+ * ChainId for which the metrics are aggregated
286
+ */
287
+ chainId: string;
288
+ };
289
+
290
+ declare enum TimeIntervalGranularityExtended {
291
+ MINUTE = "minute",
292
+ HOURLY = "hourly",
293
+ DAILY = "daily",
294
+ WEEKLY = "weekly",
295
+ MONTHLY = "monthly"
296
+ }
297
+
298
+ declare enum UsageMetricsGroupByEnum {
299
+ REQUEST_PATH = "requestPath",
300
+ RESPONSE_CODE = "responseCode",
301
+ CHAIN_ID = "chainId",
302
+ API_KEY_ID = "apiKeyId",
303
+ REQUEST_TYPE = "requestType"
304
+ }
305
+
306
+ type UsageMetricsValueDTO = {
307
+ /**
308
+ * Column name used for data aggregation
309
+ */
310
+ groupedBy: UsageMetricsValueDTO.groupedBy;
311
+ /**
312
+ * The value of the column used for data aggregation
313
+ */
314
+ groupValue?: (string | number);
315
+ /**
316
+ * The total number of requests
317
+ */
318
+ totalRequests: number;
319
+ /**
320
+ * The number of requests per second
321
+ */
322
+ requestsPerSecond: number;
323
+ /**
324
+ * The success rate percentage
325
+ */
326
+ successRatePercent: number;
327
+ /**
328
+ * The median response time in milliseconds
329
+ */
330
+ medianResponseTimeMsecs: number;
331
+ /**
332
+ * The number of invalid requests
333
+ */
334
+ invalidRequests: number;
335
+ /**
336
+ * The number of API credits used
337
+ */
338
+ apiCreditsUsed: number;
339
+ /**
340
+ * The number of API credits wasted on invalid requests
341
+ */
342
+ apiCreditsWasted: number;
343
+ };
344
+ declare namespace UsageMetricsValueDTO {
345
+ /**
346
+ * Column name used for data aggregation
347
+ */
348
+ enum groupedBy {
349
+ REQUEST_PATH = "requestPath",
350
+ RESPONSE_CODE = "responseCode",
351
+ CHAIN_ID = "chainId",
352
+ API_KEY_ID = "apiKeyId",
353
+ REQUEST_TYPE = "requestType",
354
+ NONE = "None"
355
+ }
356
+ }
357
+
358
+ type Metric = {
359
+ /**
360
+ * The timestamp of the metrics value
361
+ */
362
+ timestamp: number;
363
+ /**
364
+ * The metrics values for the timestamp
365
+ */
366
+ values: Array<UsageMetricsValueDTO>;
367
+ };
368
+
369
+ type UsageMetricsResponseDTO = {
370
+ /**
371
+ * Duration in which the metrics value is aggregated
372
+ */
373
+ aggregateDuration: string;
374
+ /**
375
+ * Org ID for which the metrics are aggregated
376
+ */
377
+ orgId: string;
378
+ /**
379
+ * Metrics values
380
+ */
381
+ metrics: Array<Metric>;
382
+ };
383
+
384
+ declare class DataApiUsageMetricsService {
385
+ readonly httpRequest: BaseHttpRequest;
386
+ constructor(httpRequest: BaseHttpRequest);
387
+ /**
388
+ * Get usage metrics for the Data API
389
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
390
+ * @returns UsageMetricsResponseDTO Successful response
391
+ * @throws ApiError
392
+ */
393
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
394
+ /**
395
+ * Organization ID to fetch usage metrics for
396
+ */
397
+ orgId?: string;
398
+ /**
399
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
400
+ */
401
+ startTimestamp?: number;
402
+ /**
403
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
404
+ */
405
+ endTimestamp?: number;
406
+ /**
407
+ * Time interval granularity for data aggregation
408
+ */
409
+ timeInterval?: TimeIntervalGranularityExtended;
410
+ /**
411
+ * Query param for the criterion used for grouping metrics
412
+ */
413
+ groupBy?: UsageMetricsGroupByEnum;
414
+ /**
415
+ * Filter data by chain ID.
416
+ */
417
+ chainId?: string;
418
+ /**
419
+ * Filter data by response status code.
420
+ */
421
+ responseCode?: string;
422
+ /**
423
+ * Filter data by request type.
424
+ */
425
+ requestType?: 'data' | 'rpc';
426
+ /**
427
+ * Filter data by API key ID.
428
+ */
429
+ apiKeyId?: string;
430
+ /**
431
+ * Filter data by request path.
432
+ */
433
+ requestPath?: string;
434
+ }): CancelablePromise<UsageMetricsResponseDTO>;
435
+ /**
436
+ * Get logs for requests made by client
437
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
438
+ * @returns LogsResponseDTO Successful response
439
+ * @throws ApiError
440
+ */
441
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
442
+ /**
443
+ * Organization ID to fetch usage metrics for
444
+ */
445
+ orgId?: string;
446
+ /**
447
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
448
+ */
449
+ startTimestamp?: number;
450
+ /**
451
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
452
+ */
453
+ endTimestamp?: number;
454
+ /**
455
+ * Filter data by chain ID.
456
+ */
457
+ chainId?: string;
458
+ /**
459
+ * Filter data by response status code.
460
+ */
461
+ responseCode?: string;
462
+ /**
463
+ * Filter data by request type.
464
+ */
465
+ requestType?: 'data' | 'rpc';
466
+ /**
467
+ * Filter data by API key ID.
468
+ */
469
+ apiKeyId?: string;
470
+ /**
471
+ * Filter data by request path.
472
+ */
473
+ requestPath?: string;
474
+ /**
475
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
476
+ */
477
+ pageToken?: string;
478
+ /**
479
+ * The maximum number of items to return.
480
+ */
481
+ pageSize?: number;
482
+ }): CancelablePromise<LogsResponseDTO>;
483
+ /**
484
+ * Get usage metrics for the Subnet RPC
485
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
486
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
487
+ * @throws ApiError
488
+ */
489
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
490
+ /**
491
+ * Time interval granularity for data aggregation for subnet
492
+ * rpc metrics
493
+ */
494
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
495
+ /**
496
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
497
+ */
498
+ startTimestamp?: number;
499
+ /**
500
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
501
+ */
502
+ endTimestamp?: number;
503
+ /**
504
+ * Query param for the criterion used for grouping metrics
505
+ */
506
+ groupBy?: RpcUsageMetricsGroupByEnum;
507
+ /**
508
+ * Filter data by chain ID.
509
+ */
510
+ chainId?: string;
511
+ /**
512
+ * Filter data by response status code.
513
+ */
514
+ responseCode?: string;
515
+ /**
516
+ * Filter data by RPC method.
517
+ */
518
+ rpcMethod?: string;
519
+ /**
520
+ * Filter data by Rl Bypass API Token.
521
+ */
522
+ rlBypassApiToken?: string;
523
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
524
+ /**
525
+ * @deprecated
526
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
527
+ *
528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
529
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
530
+ * @throws ApiError
531
+ */
532
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
533
+ /**
534
+ * Time interval granularity for data aggregation for subnet
535
+ * rpc metrics
536
+ */
537
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
538
+ /**
539
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
540
+ */
541
+ startTimestamp?: number;
542
+ /**
543
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
544
+ */
545
+ endTimestamp?: number;
546
+ /**
547
+ * Query param for the criterion used for grouping metrics
548
+ */
549
+ groupBy?: RpcUsageMetricsGroupByEnum;
550
+ /**
551
+ * Filter data by chain ID.
552
+ */
553
+ chainId?: string;
554
+ /**
555
+ * Filter data by response status code.
556
+ */
557
+ responseCode?: string;
558
+ /**
559
+ * Filter data by RPC method.
560
+ */
561
+ rpcMethod?: string;
562
+ /**
563
+ * Filter data by Rl Bypass API Token.
564
+ */
565
+ rlBypassApiToken?: string;
566
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
567
+ /**
568
+ * Get usage metrics for the Primary Network RPC
569
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
570
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
571
+ * @throws ApiError
572
+ */
573
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
574
+ /**
575
+ * Either mainnet or testnet/fuji.
576
+ */
577
+ network: Network;
578
+ /**
579
+ * Time interval granularity for data aggregation for subnet
580
+ * rpc metrics
581
+ */
582
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
583
+ /**
584
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
585
+ */
586
+ startTimestamp?: number;
587
+ /**
588
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
589
+ */
590
+ endTimestamp?: number;
591
+ /**
592
+ * Query param for the criterion used for grouping metrics
593
+ */
594
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
595
+ /**
596
+ * Filter data by response status code.
597
+ */
598
+ responseCode?: string;
599
+ /**
600
+ * Filter data by request path.
601
+ */
602
+ requestPath?: string;
603
+ /**
604
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
605
+ */
606
+ country?: string;
607
+ /**
608
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
609
+ */
610
+ continent?: string;
611
+ /**
612
+ * Filter data by User Agent.
613
+ */
614
+ userAgent?: string;
615
+ /**
616
+ * Filter data by RPC method.
617
+ */
618
+ rpcMethod?: string;
619
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
620
+ }
621
+
57
622
  declare class DefaultService {
58
623
  readonly httpRequest: BaseHttpRequest;
59
624
  constructor(httpRequest: BaseHttpRequest);
@@ -250,6 +815,10 @@ type ListErc1155BalancesResponse = {
250
815
  * 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.
251
816
  */
252
817
  nextPageToken?: string;
818
+ /**
819
+ * The native token balance for the address.
820
+ */
821
+ nativeTokenBalance: NativeTokenBalance;
253
822
  /**
254
823
  * The list of ERC-1155 token balances for the address.
255
824
  */
@@ -294,11 +863,22 @@ type Erc20TokenBalance = {
294
863
  * The monetary value of the balance, if a price is available for the token.
295
864
  */
296
865
  balanceValue?: Money;
866
+ /**
867
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
868
+ */
869
+ tokenReputation: Erc20TokenBalance.tokenReputation;
297
870
  };
298
871
  declare namespace Erc20TokenBalance {
299
872
  enum ercType {
300
873
  ERC_20 = "ERC-20"
301
874
  }
875
+ /**
876
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
877
+ */
878
+ enum tokenReputation {
879
+ MALICIOUS = "Malicious",
880
+ BENIGN = "Benign"
881
+ }
302
882
  }
303
883
 
304
884
  type ListErc20BalancesResponse = {
@@ -306,6 +886,10 @@ type ListErc20BalancesResponse = {
306
886
  * 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.
307
887
  */
308
888
  nextPageToken?: string;
889
+ /**
890
+ * The native token balance for the address.
891
+ */
892
+ nativeTokenBalance: NativeTokenBalance;
309
893
  /**
310
894
  * The list of ERC-20 token balances for the address.
311
895
  */
@@ -317,6 +901,10 @@ type ListErc721BalancesResponse = {
317
901
  * 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.
318
902
  */
319
903
  nextPageToken?: string;
904
+ /**
905
+ * The native token balance for the address.
906
+ */
907
+ nativeTokenBalance: NativeTokenBalance;
320
908
  /**
321
909
  * The list of ERC-721 token balances for the address.
322
910
  */
@@ -331,12 +919,12 @@ declare class EvmBalancesService {
331
919
  * Gets native token balance of a wallet address.
332
920
  *
333
921
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
334
- * @returns GetNativeBalanceResponse
922
+ * @returns GetNativeBalanceResponse Successful response
335
923
  * @throws ApiError
336
924
  */
337
925
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
338
926
  /**
339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
927
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
340
928
  */
341
929
  chainId: string;
342
930
  /**
@@ -359,12 +947,12 @@ declare class EvmBalancesService {
359
947
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
360
948
  *
361
949
  * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
362
- * @returns ListErc20BalancesResponse
950
+ * @returns ListErc20BalancesResponse Successful response
363
951
  * @throws ApiError
364
952
  */
365
953
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
366
954
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
955
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
368
956
  */
369
957
  chainId: string;
370
958
  /**
@@ -380,7 +968,7 @@ declare class EvmBalancesService {
380
968
  */
381
969
  pageToken?: string;
382
970
  /**
383
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
971
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
384
972
  */
385
973
  pageSize?: number;
386
974
  /**
@@ -401,12 +989,12 @@ declare class EvmBalancesService {
401
989
  * Lists ERC-721 token balances of a wallet address.
402
990
  *
403
991
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
404
- * @returns ListErc721BalancesResponse
992
+ * @returns ListErc721BalancesResponse Successful response
405
993
  * @throws ApiError
406
994
  */
407
995
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
408
996
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
997
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
410
998
  */
411
999
  chainId: string;
412
1000
  /**
@@ -418,7 +1006,7 @@ declare class EvmBalancesService {
418
1006
  */
419
1007
  pageToken?: string;
420
1008
  /**
421
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1009
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
422
1010
  */
423
1011
  pageSize?: number;
424
1012
  /**
@@ -433,12 +1021,12 @@ declare class EvmBalancesService {
433
1021
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
434
1022
  *
435
1023
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
436
- * @returns ListErc1155BalancesResponse
1024
+ * @returns ListErc1155BalancesResponse Successful response
437
1025
  * @throws ApiError
438
1026
  */
439
1027
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
440
1028
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1029
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
442
1030
  */
443
1031
  chainId: string;
444
1032
  /**
@@ -454,7 +1042,7 @@ declare class EvmBalancesService {
454
1042
  */
455
1043
  pageToken?: string;
456
1044
  /**
457
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1045
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
458
1046
  */
459
1047
  pageSize?: number;
460
1048
  /**
@@ -467,12 +1055,12 @@ declare class EvmBalancesService {
467
1055
  * Lists ERC-721 and ERC-1155 token balances of a wallet address.
468
1056
  *
469
1057
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
470
- * @returns ListCollectibleBalancesResponse
1058
+ * @returns ListCollectibleBalancesResponse Successful response
471
1059
  * @throws ApiError
472
1060
  */
473
1061
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
474
1062
  /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1063
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
476
1064
  */
477
1065
  chainId: string;
478
1066
  /**
@@ -484,7 +1072,7 @@ declare class EvmBalancesService {
484
1072
  */
485
1073
  pageToken?: string;
486
1074
  /**
487
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1075
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
488
1076
  */
489
1077
  pageSize?: number;
490
1078
  /**
@@ -495,6 +1083,10 @@ declare class EvmBalancesService {
495
1083
  }
496
1084
 
497
1085
  type GetEvmBlockResponse = {
1086
+ /**
1087
+ * The EVM chain ID on which the block was created.
1088
+ */
1089
+ chainId: string;
498
1090
  /**
499
1091
  * The block number on the chain.
500
1092
  */
@@ -539,6 +1131,10 @@ type GetEvmBlockResponse = {
539
1131
  };
540
1132
 
541
1133
  type EvmBlock = {
1134
+ /**
1135
+ * The EVM chain ID on which the block was created.
1136
+ */
1137
+ chainId: string;
542
1138
  /**
543
1139
  * The block number on the chain.
544
1140
  */
@@ -593,15 +1189,35 @@ type ListEvmBlocksResponse = {
593
1189
  declare class EvmBlocksService {
594
1190
  readonly httpRequest: BaseHttpRequest;
595
1191
  constructor(httpRequest: BaseHttpRequest);
1192
+ /**
1193
+ * List latest blocks across all supported EVM chains
1194
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1195
+ * @returns ListEvmBlocksResponse Successful response
1196
+ * @throws ApiError
1197
+ */
1198
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1199
+ /**
1200
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1201
+ */
1202
+ pageToken?: string;
1203
+ /**
1204
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1205
+ */
1206
+ pageSize?: number;
1207
+ /**
1208
+ * Either mainnet or testnet/fuji.
1209
+ */
1210
+ network?: Network;
1211
+ }): CancelablePromise<ListEvmBlocksResponse>;
596
1212
  /**
597
1213
  * List latest blocks
598
1214
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
599
- * @returns ListEvmBlocksResponse
1215
+ * @returns ListEvmBlocksResponse Successful response
600
1216
  * @throws ApiError
601
1217
  */
602
1218
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
603
1219
  /**
604
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1220
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
605
1221
  */
606
1222
  chainId: string;
607
1223
  /**
@@ -616,12 +1232,12 @@ declare class EvmBlocksService {
616
1232
  /**
617
1233
  * Get block
618
1234
  * Gets the details of an individual block on the EVM-compatible chain.
619
- * @returns GetEvmBlockResponse
1235
+ * @returns GetEvmBlockResponse Successful response
620
1236
  * @throws ApiError
621
1237
  */
622
1238
  getBlock({ chainId, blockId, }: {
623
1239
  /**
624
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1240
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
625
1241
  */
626
1242
  chainId: string;
627
1243
  /**
@@ -631,6 +1247,12 @@ declare class EvmBlocksService {
631
1247
  }): CancelablePromise<GetEvmBlockResponse>;
632
1248
  }
633
1249
 
1250
+ declare enum ApiFeature {
1251
+ NFT_INDEXING = "nftIndexing",
1252
+ WEBHOOKS = "webhooks",
1253
+ TELEPORTER = "teleporter"
1254
+ }
1255
+
634
1256
  /**
635
1257
  * 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
1258
  */
@@ -651,109 +1273,290 @@ type NetworkToken = {
651
1273
  /**
652
1274
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
653
1275
  */
654
- decimals: number;
1276
+ decimals: number;
1277
+ /**
1278
+ * The logo uri for the address.
1279
+ */
1280
+ logoUri?: string;
1281
+ description?: string;
1282
+ };
1283
+
1284
+ type UtilityAddresses = {
1285
+ multicall?: string;
1286
+ };
1287
+
1288
+ declare enum VmName {
1289
+ EVM = "EVM",
1290
+ BITCOIN = "BITCOIN",
1291
+ ETHEREUM = "ETHEREUM"
1292
+ }
1293
+
1294
+ type GetChainResponse = {
1295
+ chainId: string;
1296
+ status: ChainStatus;
1297
+ chainName: string;
1298
+ description: string;
1299
+ platformChainId?: string;
1300
+ subnetId?: string;
1301
+ vmId?: string;
1302
+ vmName: VmName;
1303
+ explorerUrl?: string;
1304
+ rpcUrl: string;
1305
+ wsUrl?: string;
1306
+ isTestnet: boolean;
1307
+ utilityAddresses?: UtilityAddresses;
1308
+ networkToken: NetworkToken;
1309
+ chainLogoUri?: string;
1310
+ private?: boolean;
1311
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1312
+ };
1313
+
1314
+ type ChainInfo = {
1315
+ chainId: string;
1316
+ status: ChainStatus;
1317
+ chainName: string;
1318
+ description: string;
1319
+ platformChainId?: string;
1320
+ subnetId?: string;
1321
+ vmId?: string;
1322
+ vmName: VmName;
1323
+ explorerUrl?: string;
1324
+ rpcUrl: string;
1325
+ wsUrl?: string;
1326
+ isTestnet: boolean;
1327
+ utilityAddresses?: UtilityAddresses;
1328
+ networkToken: NetworkToken;
1329
+ chainLogoUri?: string;
1330
+ private?: boolean;
1331
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1332
+ };
1333
+
1334
+ type ListAddressChainsResponse = {
1335
+ indexedChains?: Array<ChainInfo>;
1336
+ unindexedChains?: Array<string>;
1337
+ };
1338
+
1339
+ type ListChainsResponse = {
1340
+ chains: Array<ChainInfo>;
1341
+ };
1342
+
1343
+ /**
1344
+ * 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.
1345
+ */
1346
+ declare enum TransactionMethodType {
1347
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1348
+ CONTRACT_CALL = "CONTRACT_CALL",
1349
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1350
+ }
1351
+
1352
+ type Method = {
1353
+ callType: TransactionMethodType;
1354
+ /**
1355
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1356
+ */
1357
+ methodHash: string;
1358
+ /**
1359
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1360
+ */
1361
+ methodName?: string;
1362
+ };
1363
+
1364
+ type RichAddress = {
1365
+ /**
1366
+ * The contract name.
1367
+ */
1368
+ name?: string;
1369
+ /**
1370
+ * The contract symbol.
1371
+ */
1372
+ symbol?: string;
1373
+ /**
1374
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1375
+ */
1376
+ decimals?: number;
1377
+ /**
1378
+ * The logo uri for the address.
1379
+ */
1380
+ logoUri?: string;
1381
+ /**
1382
+ * A wallet or contract address in mixed-case checksum encoding.
1383
+ */
1384
+ address: string;
1385
+ };
1386
+
1387
+ type NativeTransaction = {
1388
+ /**
1389
+ * The block number on the chain.
1390
+ */
1391
+ blockNumber: string;
1392
+ /**
1393
+ * The block finality timestamp.
1394
+ */
1395
+ blockTimestamp: number;
1396
+ /**
1397
+ * The block hash identifier.
1398
+ */
1399
+ blockHash: string;
1400
+ /**
1401
+ * The EVM chain ID on which the transaction occured.
1402
+ */
1403
+ chainId: string;
1404
+ /**
1405
+ * The index at which the transaction occured in the block (0-indexed).
1406
+ */
1407
+ blockIndex: number;
1408
+ /**
1409
+ * The transaction hash identifier.
1410
+ */
1411
+ txHash: string;
1412
+ /**
1413
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1414
+ */
1415
+ txStatus: string;
1416
+ /**
1417
+ * The transaction type.
1418
+ */
1419
+ txType: number;
1420
+ /**
1421
+ * The gas limit set for the transaction.
1422
+ */
1423
+ gasLimit: string;
1424
+ /**
1425
+ * The amount of gas used.
1426
+ */
1427
+ gasUsed: string;
1428
+ /**
1429
+ * The gas price denominated by the number of decimals of the native token.
1430
+ */
1431
+ gasPrice: string;
655
1432
  /**
656
- * The logo uri for the address.
1433
+ * The nonce used by the sender of the transaction.
657
1434
  */
658
- logoUri?: string;
659
- description?: string;
660
- };
661
-
662
- type UtilityAddresses = {
663
- multicall?: string;
664
- };
665
-
666
- declare enum VmName {
667
- EVM = "EVM",
668
- BITCOIN = "BITCOIN",
669
- ETHEREUM = "ETHEREUM"
670
- }
671
-
672
- type GetChainResponse = {
673
- chainId: string;
674
- status: ChainStatus;
675
- chainName: string;
676
- description: string;
677
- platformChainId?: string;
678
- subnetId?: string;
679
- vmId?: string;
680
- vmName: VmName;
681
- explorerUrl?: string;
682
- rpcUrl: string;
683
- wsUrl?: string;
684
- isTestnet: boolean;
685
- utilityAddresses?: UtilityAddresses;
686
- networkToken: NetworkToken;
687
- chainLogoUri?: string;
688
- private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
690
- };
691
-
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
- type ChainInfo = {
698
- chainId: string;
699
- status: ChainStatus;
700
- chainName: string;
701
- description: string;
702
- platformChainId?: string;
703
- subnetId?: string;
704
- vmId?: string;
705
- vmName: VmName;
706
- explorerUrl?: string;
707
- rpcUrl: string;
708
- wsUrl?: string;
709
- isTestnet: boolean;
710
- utilityAddresses?: UtilityAddresses;
711
- networkToken: NetworkToken;
712
- chainLogoUri?: string;
713
- private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1435
+ nonce: string;
1436
+ from: RichAddress;
1437
+ to: RichAddress;
1438
+ method?: Method;
1439
+ value: string;
715
1440
  };
716
1441
 
717
- type ListChainsResponse = {
718
- chains: Array<ChainInfo>;
1442
+ type ListNativeTransactionsResponse = {
1443
+ /**
1444
+ * 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.
1445
+ */
1446
+ nextPageToken?: string;
1447
+ transactions: Array<NativeTransaction>;
719
1448
  };
720
1449
 
721
- declare enum NetworkType {
722
- MAINNET = "mainnet",
723
- TESTNET = "testnet"
1450
+ declare enum TransactionStatus {
1451
+ FAILED = "failed",
1452
+ SUCCESS = "success"
724
1453
  }
725
1454
 
726
1455
  declare class EvmChainsService {
727
1456
  readonly httpRequest: BaseHttpRequest;
728
1457
  constructor(httpRequest: BaseHttpRequest);
1458
+ /**
1459
+ * List all chains associated with a given address
1460
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1461
+ * @returns ListAddressChainsResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAddressChains({ address, }: {
1465
+ /**
1466
+ * A wallet address.
1467
+ */
1468
+ address: string;
1469
+ }): CancelablePromise<ListAddressChainsResponse>;
729
1470
  /**
730
1471
  * List chains
731
- * Lists the supported EVM-compatible chains. Filterable by network.
732
- * @returns ListChainsResponse
1472
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1473
+ * @returns ListChainsResponse Successful response
733
1474
  * @throws ApiError
734
1475
  */
735
1476
  supportedChains({ network, feature, }: {
736
1477
  /**
737
- * mainnet or testnet.
1478
+ * Either mainnet or testnet/fuji.
738
1479
  */
739
- network?: NetworkType;
1480
+ network?: Network;
740
1481
  /**
741
1482
  * Filter by feature.
742
1483
  */
743
- feature?: GlacierApiFeature;
1484
+ feature?: ApiFeature;
744
1485
  }): CancelablePromise<ListChainsResponse>;
745
1486
  /**
746
1487
  * Get chain information
747
- * Gets chain information for the EVM-compatible chain if supported by the api.
748
- * @returns GetChainResponse
1488
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1489
+ * @returns GetChainResponse Successful response
749
1490
  * @throws ApiError
750
1491
  */
751
1492
  getChainInfo({ chainId, }: {
752
1493
  /**
753
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1494
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
1495
  */
755
1496
  chainId: string;
756
1497
  }): CancelablePromise<GetChainResponse>;
1498
+ /**
1499
+ * @deprecated
1500
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1501
+ *
1502
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1503
+ * @returns ListAddressChainsResponse Successful response
1504
+ * @throws ApiError
1505
+ */
1506
+ getAddressChains({ address, }: {
1507
+ /**
1508
+ * A wallet address.
1509
+ */
1510
+ address: string;
1511
+ }): CancelablePromise<ListAddressChainsResponse>;
1512
+ /**
1513
+ * @deprecated
1514
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1515
+ *
1516
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1517
+ * @returns ListNativeTransactionsResponse Successful response
1518
+ * @throws ApiError
1519
+ */
1520
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1521
+ /**
1522
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1523
+ */
1524
+ pageToken?: string;
1525
+ /**
1526
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1527
+ */
1528
+ pageSize?: number;
1529
+ /**
1530
+ * Either mainnet or testnet/fuji.
1531
+ */
1532
+ network?: Network;
1533
+ /**
1534
+ * A status filter for listed transactions.
1535
+ */
1536
+ status?: TransactionStatus;
1537
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1538
+ /**
1539
+ * @deprecated
1540
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1541
+ *
1542
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1543
+ * @returns ListEvmBlocksResponse Successful response
1544
+ * @throws ApiError
1545
+ */
1546
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1547
+ /**
1548
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1549
+ */
1550
+ pageToken?: string;
1551
+ /**
1552
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1553
+ */
1554
+ pageSize?: number;
1555
+ /**
1556
+ * Either mainnet or testnet/fuji.
1557
+ */
1558
+ network?: Network;
1559
+ }): CancelablePromise<ListEvmBlocksResponse>;
757
1560
  }
758
1561
 
759
1562
  type ImageAsset = {
@@ -1040,12 +1843,12 @@ declare class EvmContractsService {
1040
1843
  /**
1041
1844
  * Get contract metadata
1042
1845
  * Gets metadata about the contract at the given address.
1043
- * @returns any
1846
+ * @returns any Successful response
1044
1847
  * @throws ApiError
1045
1848
  */
1046
1849
  getContractMetadata({ chainId, address, }: {
1047
1850
  /**
1048
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1851
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
1852
  */
1050
1853
  chainId: string;
1051
1854
  /**
@@ -1056,12 +1859,12 @@ declare class EvmContractsService {
1056
1859
  /**
1057
1860
  * Update contract information
1058
1861
  * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
- * @returns UpdateContractResponse
1862
+ * @returns UpdateContractResponse Successful response
1060
1863
  * @throws ApiError
1061
1864
  */
1062
1865
  updateContractInfo({ chainId, address, requestBody, }: {
1063
1866
  /**
1064
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1867
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
1868
  */
1066
1869
  chainId: string;
1067
1870
  /**
@@ -1088,29 +1891,6 @@ declare namespace Erc1155Token {
1088
1891
  }
1089
1892
  }
1090
1893
 
1091
- type RichAddress = {
1092
- /**
1093
- * The contract name.
1094
- */
1095
- name?: string;
1096
- /**
1097
- * The contract symbol.
1098
- */
1099
- symbol?: string;
1100
- /**
1101
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1102
- */
1103
- decimals?: number;
1104
- /**
1105
- * The logo uri for the address.
1106
- */
1107
- logoUri?: string;
1108
- /**
1109
- * A wallet or contract address in mixed-case checksum encoding.
1110
- */
1111
- address: string;
1112
- };
1113
-
1114
1894
  type Erc1155TransferDetails = {
1115
1895
  from: RichAddress;
1116
1896
  to: RichAddress;
@@ -1195,27 +1975,6 @@ type Erc721TransferDetails = {
1195
1975
  erc721Token: Erc721Token;
1196
1976
  };
1197
1977
 
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
- */
1201
- declare enum TransactionMethodType {
1202
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1203
- CONTRACT_CALL = "CONTRACT_CALL",
1204
- CONTRACT_CREATION = "CONTRACT_CREATION"
1205
- }
1206
-
1207
- type Method = {
1208
- callType: TransactionMethodType;
1209
- /**
1210
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1211
- */
1212
- methodHash: string;
1213
- /**
1214
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1215
- */
1216
- methodName?: string;
1217
- };
1218
-
1219
1978
  type FullNativeTransactionDetails = {
1220
1979
  /**
1221
1980
  * The block number on the chain.
@@ -1229,6 +1988,10 @@ type FullNativeTransactionDetails = {
1229
1988
  * The block hash identifier.
1230
1989
  */
1231
1990
  blockHash: string;
1991
+ /**
1992
+ * The EVM chain ID on which the transaction occured.
1993
+ */
1994
+ chainId: string;
1232
1995
  /**
1233
1996
  * The index at which the transaction occured in the block (0-indexed).
1234
1997
  */
@@ -1309,6 +2072,24 @@ type NetworkTokenDetails = {
1309
2072
  historicalPrice?: Money;
1310
2073
  };
1311
2074
 
2075
+ declare enum TransactionDirectionType {
2076
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
2077
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
2078
+ }
2079
+
2080
+ type TeleporterMessageInfo = {
2081
+ teleporterMessageId: string;
2082
+ direction: TransactionDirectionType;
2083
+ /**
2084
+ * chain id of the source chain. valid only for destination transactions
2085
+ */
2086
+ sourceChainId?: Record<string, any>;
2087
+ /**
2088
+ * chain id of the destination chain. valid only for source transactions
2089
+ */
2090
+ destinationChainId?: Record<string, any>;
2091
+ };
2092
+
1312
2093
  type GetTransactionResponse = {
1313
2094
  /**
1314
2095
  * The list of ERC-20 transfers.
@@ -1328,6 +2109,10 @@ type GetTransactionResponse = {
1328
2109
  internalTransactions?: Array<InternalTransactionDetails>;
1329
2110
  networkTokenDetails: NetworkTokenDetails;
1330
2111
  nativeTransaction: FullNativeTransactionDetails;
2112
+ /**
2113
+ * Corresponding teleporter message info if available.
2114
+ */
2115
+ teleporterMessageInfo?: TeleporterMessageInfo;
1331
2116
  };
1332
2117
 
1333
2118
  type ListContractsResponse = {
@@ -1435,98 +2220,41 @@ type ListErc721TransactionsResponse = {
1435
2220
 
1436
2221
  type InternalTransaction = {
1437
2222
  /**
1438
- * The block number on the chain.
2223
+ * Sender address
1439
2224
  */
1440
- blockNumber: string;
2225
+ from: string;
1441
2226
  /**
1442
- * The block finality timestamp.
2227
+ * Recipient address
1443
2228
  */
1444
- blockTimestamp: number;
2229
+ to: string;
1445
2230
  /**
1446
- * The block hash identifier.
2231
+ * Internal transaction type
1447
2232
  */
1448
- blockHash: string;
2233
+ internalTxType: string;
1449
2234
  /**
1450
- * The transaction hash identifier.
2235
+ * Value transferred
1451
2236
  */
1452
- txHash: string;
1453
- from: RichAddress;
1454
- to: RichAddress;
1455
- internalTxType: InternalTransactionOpCall;
1456
2237
  value: string;
1457
2238
  /**
1458
- * True if the internal transaction was reverted.
2239
+ * Gas used
1459
2240
  */
1460
- isReverted: boolean;
1461
2241
  gasUsed: string;
1462
- gasLimit: string;
1463
- };
1464
-
1465
- type ListInternalTransactionsResponse = {
1466
- /**
1467
- * 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.
1468
- */
1469
- nextPageToken?: string;
1470
- transactions: Array<InternalTransaction>;
1471
- };
1472
-
1473
- type NativeTransaction = {
1474
- /**
1475
- * The block number on the chain.
1476
- */
1477
- blockNumber: string;
1478
- /**
1479
- * The block finality timestamp.
1480
- */
1481
- blockTimestamp: number;
1482
- /**
1483
- * The block hash identifier.
1484
- */
1485
- blockHash: string;
1486
2242
  /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
- /**
1491
- * The transaction hash identifier.
1492
- */
1493
- txHash: string;
1494
- /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
1496
- */
1497
- txStatus: string;
1498
- /**
1499
- * The transaction type.
1500
- */
1501
- txType: number;
1502
- /**
1503
- * The gas limit set for the transaction.
2243
+ * Gas limit
1504
2244
  */
1505
2245
  gasLimit: string;
1506
2246
  /**
1507
- * The amount of gas used.
1508
- */
1509
- gasUsed: string;
1510
- /**
1511
- * The gas price denominated by the number of decimals of the native token.
1512
- */
1513
- gasPrice: string;
1514
- /**
1515
- * The nonce used by the sender of the transaction.
2247
+ * Transaction hash
1516
2248
  */
1517
- nonce: string;
1518
- from: RichAddress;
1519
- to: RichAddress;
1520
- method?: Method;
1521
- value: string;
2249
+ transactionHash: string;
1522
2250
  };
1523
2251
 
1524
- type ListNativeTransactionsResponse = {
2252
+ type ListInternalTransactionsResponse = {
1525
2253
  /**
1526
2254
  * 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.
1527
2255
  */
1528
2256
  nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
2257
+ transactions: Array<InternalTransaction>;
1530
2258
  };
1531
2259
 
1532
2260
  type TransactionDetails = {
@@ -1573,23 +2301,42 @@ declare enum SortOrder {
1573
2301
  DESC = "desc"
1574
2302
  }
1575
2303
 
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
2304
  declare class EvmTransactionsService {
1582
2305
  readonly httpRequest: BaseHttpRequest;
1583
2306
  constructor(httpRequest: BaseHttpRequest);
2307
+ /**
2308
+ * List the latest transactions across all supported EVM chains
2309
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2310
+ * @returns ListNativeTransactionsResponse Successful response
2311
+ * @throws ApiError
2312
+ */
2313
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2314
+ /**
2315
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2316
+ */
2317
+ pageToken?: string;
2318
+ /**
2319
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2320
+ */
2321
+ pageSize?: number;
2322
+ /**
2323
+ * Either mainnet or testnet/fuji.
2324
+ */
2325
+ network?: Network;
2326
+ /**
2327
+ * A status filter for listed transactions.
2328
+ */
2329
+ status?: TransactionStatus;
2330
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1584
2331
  /**
1585
2332
  * Get deployment transaction
1586
2333
  * If the address is a smart contract, returns the transaction in which it was deployed.
1587
- * @returns GetTransactionResponse
2334
+ * @returns GetTransactionResponse Successful response
1588
2335
  * @throws ApiError
1589
2336
  */
1590
2337
  getDeploymentTransaction({ chainId, address, currency, }: {
1591
2338
  /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2339
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
2340
  */
1594
2341
  chainId: string;
1595
2342
  /**
@@ -1604,12 +2351,12 @@ declare class EvmTransactionsService {
1604
2351
  /**
1605
2352
  * List deployed contracts
1606
2353
  * Lists all contracts deployed by the given address.
1607
- * @returns ListContractsResponse
2354
+ * @returns ListContractsResponse Successful response
1608
2355
  * @throws ApiError
1609
2356
  */
1610
2357
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
2358
  /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2359
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
2360
  */
1614
2361
  chainId: string;
1615
2362
  /**
@@ -1628,12 +2375,12 @@ declare class EvmTransactionsService {
1628
2375
  /**
1629
2376
  * List ERC transfers
1630
2377
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse
2378
+ * @returns ListTransfersResponse Successful response
1632
2379
  * @throws ApiError
1633
2380
  */
1634
2381
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
2382
  /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2383
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
2384
  */
1638
2385
  chainId: string;
1639
2386
  /**
@@ -1662,12 +2409,12 @@ declare class EvmTransactionsService {
1662
2409
  * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1663
2410
  *
1664
2411
  * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse
2412
+ * @returns ListTransactionDetailsResponse Successful response
1666
2413
  * @throws ApiError
1667
2414
  */
1668
2415
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
2416
  /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2417
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
2418
  */
1672
2419
  chainId: string;
1673
2420
  /**
@@ -1698,12 +2445,12 @@ declare class EvmTransactionsService {
1698
2445
  /**
1699
2446
  * List native transactions
1700
2447
  * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse
2448
+ * @returns ListNativeTransactionsResponse Successful response
1702
2449
  * @throws ApiError
1703
2450
  */
1704
2451
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
2452
  /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2453
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
2454
  */
1708
2455
  chainId: string;
1709
2456
  /**
@@ -1730,12 +2477,12 @@ declare class EvmTransactionsService {
1730
2477
  /**
1731
2478
  * List ERC-20 transfers
1732
2479
  * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse
2480
+ * @returns ListErc20TransactionsResponse Successful response
1734
2481
  * @throws ApiError
1735
2482
  */
1736
2483
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
2484
  /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2485
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
2486
  */
1740
2487
  chainId: string;
1741
2488
  /**
@@ -1762,12 +2509,12 @@ declare class EvmTransactionsService {
1762
2509
  /**
1763
2510
  * List ERC-721 transfers
1764
2511
  * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse
2512
+ * @returns ListErc721TransactionsResponse Successful response
1766
2513
  * @throws ApiError
1767
2514
  */
1768
2515
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
2516
  /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2517
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
2518
  */
1772
2519
  chainId: string;
1773
2520
  /**
@@ -1792,28 +2539,335 @@ declare class EvmTransactionsService {
1792
2539
  pageSize?: number;
1793
2540
  }): CancelablePromise<ListErc721TransactionsResponse>;
1794
2541
  /**
1795
- * List ERC-1155 transfers
1796
- * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse
2542
+ * List ERC-1155 transfers
2543
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
2544
+ * @returns ListErc1155TransactionsResponse Successful response
2545
+ * @throws ApiError
2546
+ */
2547
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2548
+ /**
2549
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2550
+ */
2551
+ chainId: string;
2552
+ /**
2553
+ * A wallet address.
2554
+ */
2555
+ address: string;
2556
+ /**
2557
+ * 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.
2558
+ */
2559
+ startBlock?: number;
2560
+ /**
2561
+ * 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.
2562
+ */
2563
+ endBlock?: number;
2564
+ /**
2565
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2566
+ */
2567
+ pageToken?: string;
2568
+ /**
2569
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2570
+ */
2571
+ pageSize?: number;
2572
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
2573
+ /**
2574
+ * List internal transactions
2575
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
2576
+ *
2577
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2578
+ * @returns ListInternalTransactionsResponse Successful response
2579
+ * @throws ApiError
2580
+ */
2581
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2582
+ /**
2583
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2584
+ */
2585
+ chainId: string;
2586
+ /**
2587
+ * A wallet address.
2588
+ */
2589
+ address: string;
2590
+ /**
2591
+ * 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.
2592
+ */
2593
+ startBlock?: number;
2594
+ /**
2595
+ * 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.
2596
+ */
2597
+ endBlock?: number;
2598
+ /**
2599
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2600
+ */
2601
+ pageToken?: string;
2602
+ /**
2603
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2604
+ */
2605
+ pageSize?: number;
2606
+ }): CancelablePromise<ListInternalTransactionsResponse>;
2607
+ /**
2608
+ * Get transaction
2609
+ * Gets the details of a single transaction.
2610
+ * @returns GetTransactionResponse Successful response
2611
+ * @throws ApiError
2612
+ */
2613
+ getTransaction({ chainId, txHash, }: {
2614
+ /**
2615
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2616
+ */
2617
+ chainId: string;
2618
+ /**
2619
+ * A transaction hash.
2620
+ */
2621
+ txHash: string;
2622
+ }): CancelablePromise<GetTransactionResponse>;
2623
+ /**
2624
+ * List transactions for a block
2625
+ * Lists the transactions that occured in a given block.
2626
+ * @returns ListNativeTransactionsResponse Successful response
2627
+ * @throws ApiError
2628
+ */
2629
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2630
+ /**
2631
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2632
+ */
2633
+ chainId: string;
2634
+ /**
2635
+ * A block identifier which is either a block number or the block hash.
2636
+ */
2637
+ blockId: string;
2638
+ /**
2639
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2640
+ */
2641
+ pageToken?: string;
2642
+ /**
2643
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2644
+ */
2645
+ pageSize?: number;
2646
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2647
+ /**
2648
+ * List latest transactions
2649
+ * Lists the latest transactions. Filterable by status.
2650
+ * @returns ListNativeTransactionsResponse Successful response
2651
+ * @throws ApiError
2652
+ */
2653
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2654
+ /**
2655
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2656
+ */
2657
+ chainId: string;
2658
+ /**
2659
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2660
+ */
2661
+ pageToken?: string;
2662
+ /**
2663
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2664
+ */
2665
+ pageSize?: number;
2666
+ /**
2667
+ * A status filter for listed transactions.
2668
+ */
2669
+ status?: TransactionStatus;
2670
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2671
+ }
2672
+
2673
+ type HealthIndicatorResultDto = {
2674
+ /**
2675
+ * Status of the health indicator.
2676
+ */
2677
+ status?: HealthIndicatorResultDto.status;
2678
+ };
2679
+ declare namespace HealthIndicatorResultDto {
2680
+ /**
2681
+ * Status of the health indicator.
2682
+ */
2683
+ enum status {
2684
+ UP = "up",
2685
+ DOWN = "down"
2686
+ }
2687
+ }
2688
+
2689
+ type HealthCheckResultDto = {
2690
+ status?: HealthCheckResultDto.status;
2691
+ info?: any | null;
2692
+ error?: any | null;
2693
+ details?: Record<string, HealthIndicatorResultDto>;
2694
+ };
2695
+ declare namespace HealthCheckResultDto {
2696
+ enum status {
2697
+ ERROR = "error",
2698
+ OK = "ok",
2699
+ SHUTTING_DOWN = "shutting_down"
2700
+ }
2701
+ }
2702
+
2703
+ declare class HealthCheckService {
2704
+ readonly httpRequest: BaseHttpRequest;
2705
+ constructor(httpRequest: BaseHttpRequest);
2706
+ /**
2707
+ * Get the health of the service
2708
+ * Check the health of the service.
2709
+ * @returns HealthCheckResultDto The health of the service
2710
+ * @throws ApiError
2711
+ */
2712
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2713
+ }
2714
+
2715
+ type IcmDestinationTransaction = {
2716
+ txHash: string;
2717
+ timestamp: number;
2718
+ gasSpent: string;
2719
+ rewardRedeemer: string;
2720
+ delivererAddress: string;
2721
+ };
2722
+
2723
+ type IcmReceipt = {
2724
+ receivedMessageNonce: string;
2725
+ relayerRewardAddress: string;
2726
+ };
2727
+
2728
+ type IcmRewardDetails = {
2729
+ /**
2730
+ * A wallet or contract address in mixed-case checksum encoding.
2731
+ */
2732
+ address: string;
2733
+ /**
2734
+ * The contract name.
2735
+ */
2736
+ name: string;
2737
+ /**
2738
+ * The contract symbol.
2739
+ */
2740
+ symbol: string;
2741
+ /**
2742
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2743
+ */
2744
+ decimals: number;
2745
+ /**
2746
+ * The logo uri for the address.
2747
+ */
2748
+ logoUri?: string;
2749
+ ercType: IcmRewardDetails.ercType;
2750
+ /**
2751
+ * The token price, if available.
2752
+ */
2753
+ price?: Money;
2754
+ value: string;
2755
+ };
2756
+ declare namespace IcmRewardDetails {
2757
+ enum ercType {
2758
+ ERC_20 = "ERC-20"
2759
+ }
2760
+ }
2761
+
2762
+ type IcmSourceTransaction = {
2763
+ txHash: string;
2764
+ timestamp: number;
2765
+ gasSpent: string;
2766
+ };
2767
+
2768
+ type DeliveredIcmMessage = {
2769
+ messageId: string;
2770
+ icmContractAddress: string;
2771
+ sourceBlockchainId: string;
2772
+ destinationBlockchainId: string;
2773
+ sourceEvmChainId: string;
2774
+ destinationEvmChainId: string;
2775
+ messageNonce: string;
2776
+ from: string;
2777
+ to: string;
2778
+ data?: string;
2779
+ messageExecuted: boolean;
2780
+ receipts: Array<IcmReceipt>;
2781
+ receiptDelivered: boolean;
2782
+ rewardDetails: IcmRewardDetails;
2783
+ sourceTransaction: IcmSourceTransaction;
2784
+ destinationTransaction: IcmDestinationTransaction;
2785
+ status: DeliveredIcmMessage.status;
2786
+ };
2787
+ declare namespace DeliveredIcmMessage {
2788
+ enum status {
2789
+ DELIVERED = "delivered"
2790
+ }
2791
+ }
2792
+
2793
+ type DeliveredSourceNotIndexedIcmMessage = {
2794
+ messageId: string;
2795
+ icmContractAddress: string;
2796
+ sourceBlockchainId: string;
2797
+ destinationBlockchainId: string;
2798
+ sourceEvmChainId: string;
2799
+ destinationEvmChainId: string;
2800
+ messageNonce: string;
2801
+ from: string;
2802
+ to: string;
2803
+ data?: string;
2804
+ messageExecuted: boolean;
2805
+ receipts: Array<IcmReceipt>;
2806
+ receiptDelivered: boolean;
2807
+ rewardDetails: IcmRewardDetails;
2808
+ destinationTransaction: IcmDestinationTransaction;
2809
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2810
+ };
2811
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2812
+ enum status {
2813
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2814
+ }
2815
+ }
2816
+
2817
+ type PendingIcmMessage = {
2818
+ messageId: string;
2819
+ icmContractAddress: string;
2820
+ sourceBlockchainId: string;
2821
+ destinationBlockchainId: string;
2822
+ sourceEvmChainId: string;
2823
+ destinationEvmChainId: string;
2824
+ messageNonce: string;
2825
+ from: string;
2826
+ to: string;
2827
+ data?: string;
2828
+ messageExecuted: boolean;
2829
+ receipts: Array<IcmReceipt>;
2830
+ receiptDelivered: boolean;
2831
+ rewardDetails: IcmRewardDetails;
2832
+ sourceTransaction: IcmSourceTransaction;
2833
+ status: PendingIcmMessage.status;
2834
+ };
2835
+ declare namespace PendingIcmMessage {
2836
+ enum status {
2837
+ PENDING = "pending"
2838
+ }
2839
+ }
2840
+
2841
+ type ListIcmMessagesResponse = {
2842
+ /**
2843
+ * 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.
2844
+ */
2845
+ nextPageToken?: string;
2846
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2847
+ };
2848
+
2849
+ declare class InterchainMessagingService {
2850
+ readonly httpRequest: BaseHttpRequest;
2851
+ constructor(httpRequest: BaseHttpRequest);
2852
+ /**
2853
+ * Get an ICM message
2854
+ * Gets an ICM message by message ID.
2855
+ * @returns any Successful response
1798
2856
  * @throws ApiError
1799
2857
  */
1800
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
- /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
- */
1804
- chainId: string;
1805
- /**
1806
- * A wallet address.
1807
- */
1808
- address: string;
1809
- /**
1810
- * 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.
1811
- */
1812
- startBlock?: number;
2858
+ getIcmMessage({ messageId, }: {
1813
2859
  /**
1814
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2860
+ * The message ID of the ICM message.
1815
2861
  */
1816
- endBlock?: number;
2862
+ messageId: string;
2863
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2864
+ /**
2865
+ * List ICM messages
2866
+ * Lists ICM messages. Ordered by timestamp in descending order.
2867
+ * @returns ListIcmMessagesResponse Successful response
2868
+ * @throws ApiError
2869
+ */
2870
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
1817
2871
  /**
1818
2872
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1819
2873
  */
@@ -1822,84 +2876,42 @@ declare class EvmTransactionsService {
1822
2876
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
2877
  */
1824
2878
  pageSize?: number;
1825
- }): CancelablePromise<ListErc1155TransactionsResponse>;
1826
- /**
1827
- * List internal transactions
1828
- * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
- *
1830
- * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1831
- * @returns ListInternalTransactionsResponse
1832
- * @throws ApiError
1833
- */
1834
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
2879
  /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
- */
1838
- chainId: string;
1839
- /**
1840
- * A wallet address.
1841
- */
1842
- address: string;
1843
- /**
1844
- * 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.
1845
- */
1846
- startBlock?: number;
1847
- /**
1848
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1849
- */
1850
- endBlock?: number;
1851
- /**
1852
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2880
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
1853
2881
  */
1854
- pageToken?: string;
2882
+ sourceBlockchainId?: string;
1855
2883
  /**
1856
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2884
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
1857
2885
  */
1858
- pageSize?: number;
1859
- }): CancelablePromise<ListInternalTransactionsResponse>;
1860
- /**
1861
- * Get transaction
1862
- * Gets the details of a single transaction.
1863
- * @returns GetTransactionResponse
1864
- * @throws ApiError
1865
- */
1866
- getTransaction({ chainId, txHash, }: {
2886
+ destinationBlockchainId?: string;
1867
2887
  /**
1868
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2888
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
1869
2889
  */
1870
- chainId: string;
2890
+ blockchainId?: string;
1871
2891
  /**
1872
- * A transaction hash.
2892
+ * The address of the recipient of the ICM message.
1873
2893
  */
1874
- txHash: string;
1875
- }): CancelablePromise<GetTransactionResponse>;
1876
- /**
1877
- * List transactions for a block
1878
- * Lists the transactions that occured in a given block.
1879
- * @returns ListNativeTransactionsResponse
1880
- * @throws ApiError
1881
- */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
2894
+ to?: string;
1883
2895
  /**
1884
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2896
+ * The address of the sender of the ICM message.
1885
2897
  */
1886
- chainId: string;
2898
+ from?: string;
1887
2899
  /**
1888
- * A block identifier which is either a block number or the block hash.
2900
+ * Either mainnet or testnet/fuji.
1889
2901
  */
1890
- blockId: string;
1891
- }): CancelablePromise<ListNativeTransactionsResponse>;
2902
+ network?: Network;
2903
+ }): CancelablePromise<ListIcmMessagesResponse>;
1892
2904
  /**
1893
- * List latest transactions
1894
- * Lists the latest transactions. Filterable by status.
1895
- * @returns ListNativeTransactionsResponse
2905
+ * List ICM messages by address
2906
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2907
+ * @returns ListIcmMessagesResponse Successful response
1896
2908
  * @throws ApiError
1897
2909
  */
1898
- listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2910
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
1899
2911
  /**
1900
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2912
+ * An EVM address.
1901
2913
  */
1902
- chainId: string;
2914
+ address: string;
1903
2915
  /**
1904
2916
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1905
2917
  */
@@ -1909,26 +2921,10 @@ declare class EvmTransactionsService {
1909
2921
  */
1910
2922
  pageSize?: number;
1911
2923
  /**
1912
- * A status filter for listed transactions.
2924
+ * Either mainnet or testnet/fuji.
1913
2925
  */
1914
- status?: TransactionStatus;
1915
- }): CancelablePromise<ListNativeTransactionsResponse>;
1916
- }
1917
-
1918
- declare class HealthCheckService {
1919
- readonly httpRequest: BaseHttpRequest;
1920
- constructor(httpRequest: BaseHttpRequest);
1921
- /**
1922
- * Get the health of the service
1923
- * @returns any The Health Check is successful
1924
- * @throws ApiError
1925
- */
1926
- healthCheck(): CancelablePromise<{
1927
- status?: string;
1928
- info?: Record<string, Record<string, string>> | null;
1929
- error?: Record<string, Record<string, string>> | null;
1930
- details?: Record<string, Record<string, string>>;
1931
- }>;
2926
+ network?: Network;
2927
+ }): CancelablePromise<ListIcmMessagesResponse>;
1932
2928
  }
1933
2929
 
1934
2930
  type ListNftTokens = {
@@ -1945,12 +2941,12 @@ declare class NfTsService {
1945
2941
  /**
1946
2942
  * Reindex NFT metadata
1947
2943
  * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1948
- * @returns any
2944
+ * @returns any Successful response
1949
2945
  * @throws ApiError
1950
2946
  */
1951
2947
  reindexNft({ chainId, address, tokenId, }: {
1952
2948
  /**
1953
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2949
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1954
2950
  */
1955
2951
  chainId: string;
1956
2952
  /**
@@ -1965,12 +2961,12 @@ declare class NfTsService {
1965
2961
  /**
1966
2962
  * List tokens
1967
2963
  * Lists tokens for an NFT contract.
1968
- * @returns ListNftTokens
2964
+ * @returns ListNftTokens Successful response
1969
2965
  * @throws ApiError
1970
2966
  */
1971
2967
  listTokens({ chainId, address, pageToken, pageSize, }: {
1972
2968
  /**
1973
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2969
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1974
2970
  */
1975
2971
  chainId: string;
1976
2972
  /**
@@ -1989,12 +2985,12 @@ declare class NfTsService {
1989
2985
  /**
1990
2986
  * Get token details
1991
2987
  * Gets token details for a specific token of an NFT contract.
1992
- * @returns any
2988
+ * @returns any Successful response
1993
2989
  * @throws ApiError
1994
2990
  */
1995
2991
  getTokenDetails({ chainId, address, tokenId, }: {
1996
2992
  /**
1997
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2993
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1998
2994
  */
1999
2995
  chainId: string;
2000
2996
  /**
@@ -2008,6 +3004,108 @@ declare class NfTsService {
2008
3004
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2009
3005
  }
2010
3006
 
3007
+ type AccessRequest = {
3008
+ /**
3009
+ * The email address to send the access token to
3010
+ */
3011
+ email: string;
3012
+ /**
3013
+ * The captcha to verify the user
3014
+ */
3015
+ captcha: string;
3016
+ };
3017
+
3018
+ type NotificationsResponse = {
3019
+ message: string;
3020
+ };
3021
+
3022
+ type SubscribeRequest = {
3023
+ /**
3024
+ * The access token to use for authentication
3025
+ */
3026
+ accessToken: string;
3027
+ /**
3028
+ * The node ID to subscribe to
3029
+ */
3030
+ nodeId: string;
3031
+ /**
3032
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3033
+ */
3034
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3035
+ };
3036
+
3037
+ type SubscriptionsRequest = {
3038
+ /**
3039
+ * The access token to use for authentication
3040
+ */
3041
+ accessToken: string;
3042
+ };
3043
+
3044
+ type SubscriptionsResponse = {
3045
+ /**
3046
+ * The email address of the user
3047
+ */
3048
+ email: string;
3049
+ /**
3050
+ * The subscriptions of the user
3051
+ */
3052
+ subscriptions: Record<string, {
3053
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3054
+ }>;
3055
+ };
3056
+
3057
+ type UnsubscribeRequest = {
3058
+ /**
3059
+ * The access token to use for authentication
3060
+ */
3061
+ accessToken: string;
3062
+ /**
3063
+ * The node ID to subscribe to
3064
+ */
3065
+ nodeId: string;
3066
+ };
3067
+
3068
+ declare class NotificationsService {
3069
+ readonly httpRequest: BaseHttpRequest;
3070
+ constructor(httpRequest: BaseHttpRequest);
3071
+ /**
3072
+ * Access Notifications
3073
+ * Access notifications.
3074
+ * @returns NotificationsResponse Successful response
3075
+ * @throws ApiError
3076
+ */
3077
+ access({ requestBody, }: {
3078
+ requestBody: AccessRequest;
3079
+ }): CancelablePromise<NotificationsResponse>;
3080
+ /**
3081
+ * Subscribe to Notifications
3082
+ * Subscribe to receive notifications.
3083
+ * @returns NotificationsResponse Successful response
3084
+ * @throws ApiError
3085
+ */
3086
+ subscribe({ requestBody, }: {
3087
+ requestBody: SubscribeRequest;
3088
+ }): CancelablePromise<NotificationsResponse>;
3089
+ /**
3090
+ * Unsubscribe from Notifications
3091
+ * Unsubscribe from receiving notifications.
3092
+ * @returns NotificationsResponse Successful response
3093
+ * @throws ApiError
3094
+ */
3095
+ unsubscribe({ requestBody, }: {
3096
+ requestBody: UnsubscribeRequest;
3097
+ }): CancelablePromise<NotificationsResponse>;
3098
+ /**
3099
+ * Get Subscriptions
3100
+ * Get subscriptions.
3101
+ * @returns SubscriptionsResponse Successful response
3102
+ * @throws ApiError
3103
+ */
3104
+ subscriptions({ requestBody, }: {
3105
+ requestBody: SubscriptionsRequest;
3106
+ }): CancelablePromise<SubscriptionsResponse>;
3107
+ }
3108
+
2011
3109
  type EvmNetworkOptions = {
2012
3110
  addresses: Array<string>;
2013
3111
  includeChains: Array<string>;
@@ -2019,16 +3117,16 @@ declare enum EVMOperationType {
2019
3117
 
2020
3118
  type CreateEvmTransactionExportRequest = {
2021
3119
  type: EVMOperationType;
2022
- firstDate: string;
2023
- lastDate: string;
3120
+ firstDate?: string;
3121
+ lastDate?: string;
2024
3122
  /**
2025
3123
  * @deprecated
2026
3124
  */
2027
- startDate: string;
3125
+ startDate?: string;
2028
3126
  /**
2029
3127
  * @deprecated
2030
3128
  */
2031
- endDate: string;
3129
+ endDate?: string;
2032
3130
  options: EvmNetworkOptions;
2033
3131
  };
2034
3132
 
@@ -2041,21 +3139,21 @@ declare enum PrimaryNetworkOperationType {
2041
3139
  type PrimaryNetworkOptions = {
2042
3140
  addresses?: Array<string>;
2043
3141
  cChainEvmAddresses?: Array<string>;
2044
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
3142
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2045
3143
  };
2046
3144
 
2047
3145
  type CreatePrimaryNetworkTransactionExportRequest = {
2048
3146
  type: PrimaryNetworkOperationType;
2049
- firstDate: string;
2050
- lastDate: string;
3147
+ firstDate?: string;
3148
+ lastDate?: string;
2051
3149
  /**
2052
3150
  * @deprecated
2053
3151
  */
2054
- startDate: string;
3152
+ startDate?: string;
2055
3153
  /**
2056
3154
  * @deprecated
2057
3155
  */
2058
- endDate: string;
3156
+ endDate?: string;
2059
3157
  options: PrimaryNetworkOptions;
2060
3158
  };
2061
3159
 
@@ -2096,7 +3194,7 @@ type OperationStatusResponse = {
2096
3194
  operationType: OperationType;
2097
3195
  operationStatus: OperationStatus;
2098
3196
  message?: string;
2099
- metadata: TransactionExportMetadata;
3197
+ metadata?: TransactionExportMetadata;
2100
3198
  createdAtTimestamp: number;
2101
3199
  updatedAtTimestamp: number;
2102
3200
  };
@@ -2107,7 +3205,7 @@ declare class OperationsService {
2107
3205
  /**
2108
3206
  * Get operation
2109
3207
  * Gets operation details for the given operation id.
2110
- * @returns OperationStatusResponse
3208
+ * @returns OperationStatusResponse Successful response
2111
3209
  * @throws ApiError
2112
3210
  */
2113
3211
  getOperationResult({ operationId, }: {
@@ -2121,7 +3219,7 @@ declare class OperationsService {
2121
3219
  * Trigger a transaction export operation with given parameters.
2122
3220
  *
2123
3221
  * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2124
- * @returns OperationStatusResponse
3222
+ * @returns OperationStatusResponse Successful response
2125
3223
  * @throws ApiError
2126
3224
  */
2127
3225
  postTransactionExportJob({ requestBody, }: {
@@ -2129,12 +3227,23 @@ declare class OperationsService {
2129
3227
  }): CancelablePromise<OperationStatusResponse>;
2130
3228
  }
2131
3229
 
3230
+ type Blockchain = {
3231
+ createBlockTimestamp: number;
3232
+ createBlockNumber: string;
3233
+ blockchainId: string;
3234
+ vmId: string;
3235
+ subnetId: string;
3236
+ blockchainName: string;
3237
+ };
3238
+
2132
3239
  declare enum BlockchainIds {
2133
3240
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2134
3241
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2135
3242
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3243
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2136
3244
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2137
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
3245
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3246
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2138
3247
  }
2139
3248
 
2140
3249
  type ChainAddressChainIdMap = {
@@ -2158,16 +3267,31 @@ type DelegatorsDetails = {
2158
3267
  };
2159
3268
 
2160
3269
  type StakingDistribution = {
3270
+ /**
3271
+ * AvalancheGo version for the validator node.
3272
+ */
2161
3273
  version: string;
3274
+ /**
3275
+ * The total amount staked by validators using this version.
3276
+ */
2162
3277
  amountStaked: string;
3278
+ /**
3279
+ * The number of validators using this version.
3280
+ */
2163
3281
  validatorCount: number;
2164
3282
  };
2165
3283
 
2166
3284
  type ValidatorsDetails = {
2167
3285
  validatorCount: number;
2168
3286
  totalAmountStaked: string;
3287
+ /**
3288
+ * Total potential rewards from currently active validations and delegations.
3289
+ */
2169
3290
  estimatedAnnualStakingReward: string;
2170
3291
  stakingDistributionByVersion: Array<StakingDistribution>;
3292
+ /**
3293
+ * Ratio of total active stake amount to the current supply.
3294
+ */
2171
3295
  stakingRatio: string;
2172
3296
  };
2173
3297
 
@@ -2176,15 +3300,6 @@ type GetNetworkDetailsResponse = {
2176
3300
  delegatorDetails: DelegatorsDetails;
2177
3301
  };
2178
3302
 
2179
- type Blockchain = {
2180
- createBlockTimestamp: number;
2181
- createBlockNumber: string;
2182
- blockchainId: string;
2183
- vmId: string;
2184
- subnetId: string;
2185
- blockchainName: string;
2186
- };
2187
-
2188
3303
  type ListBlockchainsResponse = {
2189
3304
  /**
2190
3305
  * 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.
@@ -2219,7 +3334,13 @@ type CompletedDelegatorDetails = {
2219
3334
  delegationFee: string;
2220
3335
  startTimestamp: number;
2221
3336
  endTimestamp: number;
3337
+ /**
3338
+ * Total rewards distributed for the successful delegation.
3339
+ */
2222
3340
  grossReward: string;
3341
+ /**
3342
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3343
+ */
2223
3344
  netReward: string;
2224
3345
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2225
3346
  };
@@ -2237,7 +3358,13 @@ type PendingDelegatorDetails = {
2237
3358
  delegationFee: string;
2238
3359
  startTimestamp: number;
2239
3360
  endTimestamp: number;
3361
+ /**
3362
+ * Estimated total rewards that will be distributed for the successful delegation.
3363
+ */
2240
3364
  estimatedGrossReward: string;
3365
+ /**
3366
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3367
+ */
2241
3368
  estimatedNetReward: string;
2242
3369
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2243
3370
  };
@@ -2258,8 +3385,59 @@ type ListDelegatorDetailsResponse = {
2258
3385
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2259
3386
  };
2260
3387
 
2261
- type BlockchainInfo = {
3388
+ type BalanceOwner = {
3389
+ addresses: Array<string>;
3390
+ threshold: number;
3391
+ };
3392
+
3393
+ type L1ValidatorDetailsFull = {
3394
+ /**
3395
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3396
+ */
3397
+ validationId: string;
3398
+ /**
3399
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3400
+ */
3401
+ validationIdHex: string;
3402
+ nodeId: string;
3403
+ subnetId: string;
3404
+ /**
3405
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
3406
+ */
3407
+ weight: number;
3408
+ /**
3409
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3410
+ */
3411
+ remainingBalance: number;
3412
+ /**
3413
+ * The timestamp of the transaction which created this L1 validator
3414
+ */
3415
+ creationTimestamp: number;
3416
+ blsCredentials: Record<string, any>;
3417
+ /**
3418
+ * The L1 validator owner's balance, returned after it's disabled or removed
3419
+ */
3420
+ remainingBalanceOwner: BalanceOwner;
3421
+ /**
3422
+ * Owner ddresses details which can disable or remove the L1 validator
3423
+ */
3424
+ deactivationOwner: BalanceOwner;
3425
+ };
3426
+
3427
+ type ListL1ValidatorsResponse = {
3428
+ /**
3429
+ * 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.
3430
+ */
3431
+ nextPageToken?: string;
3432
+ /**
3433
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3434
+ */
3435
+ validators: Array<L1ValidatorDetailsFull>;
3436
+ };
3437
+
3438
+ type L1ValidatorManagerDetails = {
2262
3439
  blockchainId: string;
3440
+ contractAddress: string;
2263
3441
  };
2264
3442
 
2265
3443
  type SubnetOwnershipInfo = {
@@ -2300,7 +3478,19 @@ type Subnet = {
2300
3478
  * Latest subnet owner details for this Subnet.
2301
3479
  */
2302
3480
  subnetOwnershipInfo: SubnetOwnershipInfo;
2303
- blockchains: Array<BlockchainInfo>;
3481
+ /**
3482
+ * Whether the subnet is an L1 or not.
3483
+ */
3484
+ isL1: boolean;
3485
+ /**
3486
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3487
+ */
3488
+ l1ConversionTransactionHash?: string;
3489
+ /**
3490
+ * L1 validator manager details.
3491
+ */
3492
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3493
+ blockchains: Array<Blockchain>;
2304
3494
  };
2305
3495
 
2306
3496
  type ListSubnetsResponse = {
@@ -2347,6 +3537,9 @@ type ActiveValidatorDetails = {
2347
3537
  nodeId: string;
2348
3538
  subnetId: string;
2349
3539
  amountStaked: string;
3540
+ /**
3541
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3542
+ */
2350
3543
  delegationFee?: string;
2351
3544
  startTimestamp: number;
2352
3545
  endTimestamp: number;
@@ -2354,12 +3547,30 @@ type ActiveValidatorDetails = {
2354
3547
  * Present for AddPermissionlessValidatorTx
2355
3548
  */
2356
3549
  blsCredentials?: BlsCredentials;
3550
+ /**
3551
+ * The percentage of this validator's stake amount to the total active stake.
3552
+ */
2357
3553
  stakePercentage: number;
3554
+ /**
3555
+ * The number of delegators linked to the validator.
3556
+ */
2358
3557
  delegatorCount: number;
3558
+ /**
3559
+ * The total amount in nAVAX delegated to the validator.
3560
+ */
2359
3561
  amountDelegated?: string;
3562
+ /**
3563
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3564
+ */
2360
3565
  uptimePerformance: number;
2361
3566
  avalancheGoVersion?: string;
3567
+ /**
3568
+ * The amount of stake in nAVAX that can be delegated to this validator.
3569
+ */
2362
3570
  delegationCapacity?: string;
3571
+ /**
3572
+ * Estimated rewards for the validator if the validation is successful.
3573
+ */
2363
3574
  potentialRewards: Rewards;
2364
3575
  validationStatus: ActiveValidatorDetails.validationStatus;
2365
3576
  validatorHealth: ValidatorHealthDetails;
@@ -2375,6 +3586,9 @@ type CompletedValidatorDetails = {
2375
3586
  nodeId: string;
2376
3587
  subnetId: string;
2377
3588
  amountStaked: string;
3589
+ /**
3590
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3591
+ */
2378
3592
  delegationFee?: string;
2379
3593
  startTimestamp: number;
2380
3594
  endTimestamp: number;
@@ -2383,6 +3597,7 @@ type CompletedValidatorDetails = {
2383
3597
  */
2384
3598
  blsCredentials?: BlsCredentials;
2385
3599
  delegatorCount: number;
3600
+ amountDelegated?: string;
2386
3601
  rewards: Rewards;
2387
3602
  validationStatus: CompletedValidatorDetails.validationStatus;
2388
3603
  };
@@ -2397,6 +3612,9 @@ type PendingValidatorDetails = {
2397
3612
  nodeId: string;
2398
3613
  subnetId: string;
2399
3614
  amountStaked: string;
3615
+ /**
3616
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3617
+ */
2400
3618
  delegationFee?: string;
2401
3619
  startTimestamp: number;
2402
3620
  endTimestamp: number;
@@ -2417,6 +3635,9 @@ type RemovedValidatorDetails = {
2417
3635
  nodeId: string;
2418
3636
  subnetId: string;
2419
3637
  amountStaked: string;
3638
+ /**
3639
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3640
+ */
2420
3641
  delegationFee?: string;
2421
3642
  startTimestamp: number;
2422
3643
  endTimestamp: number;
@@ -2424,7 +3645,13 @@ type RemovedValidatorDetails = {
2424
3645
  * Present for AddPermissionlessValidatorTx
2425
3646
  */
2426
3647
  blsCredentials?: BlsCredentials;
3648
+ /**
3649
+ * The transaction hash that removed the permissioned subnet validator.
3650
+ */
2427
3651
  removeTxHash: string;
3652
+ /**
3653
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3654
+ */
2428
3655
  removeTimestamp: number;
2429
3656
  validationStatus: RemovedValidatorDetails.validationStatus;
2430
3657
  };
@@ -2445,11 +3672,6 @@ type ListValidatorDetailsResponse = {
2445
3672
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2446
3673
  };
2447
3674
 
2448
- declare enum Network {
2449
- MAINNET = "mainnet",
2450
- FUJI = "fuji"
2451
- }
2452
-
2453
3675
  declare enum SortByOption {
2454
3676
  BLOCK_INDEX = "blockIndex",
2455
3677
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2509,6 +3731,7 @@ type XChainAssetDetails = {
2509
3731
  declare enum XChainId {
2510
3732
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2511
3733
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3734
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2512
3735
  X_CHAIN = "x-chain"
2513
3736
  }
2514
3737
 
@@ -2518,7 +3741,7 @@ declare class PrimaryNetworkService {
2518
3741
  /**
2519
3742
  * Get asset details
2520
3743
  * Gets asset details corresponding to the given asset id on the X-Chain.
2521
- * @returns XChainAssetDetails
3744
+ * @returns XChainAssetDetails Successful response
2522
3745
  * @throws ApiError
2523
3746
  */
2524
3747
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -2527,7 +3750,7 @@ declare class PrimaryNetworkService {
2527
3750
  */
2528
3751
  blockchainId: XChainId;
2529
3752
  /**
2530
- * Either mainnet or a testnet.
3753
+ * Either mainnet or testnet/fuji.
2531
3754
  */
2532
3755
  network: Network;
2533
3756
  /**
@@ -2538,7 +3761,7 @@ declare class PrimaryNetworkService {
2538
3761
  /**
2539
3762
  * Get chain interactions for addresses
2540
3763
  * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
2541
- * @returns ChainAddressChainIdMapListResponse
3764
+ * @returns ChainAddressChainIdMapListResponse Successful response
2542
3765
  * @throws ApiError
2543
3766
  */
2544
3767
  getChainIdsForAddresses({ addresses, network, }: {
@@ -2547,31 +3770,31 @@ declare class PrimaryNetworkService {
2547
3770
  */
2548
3771
  addresses: string;
2549
3772
  /**
2550
- * Either mainnet or a testnet.
3773
+ * Either mainnet or testnet/fuji.
2551
3774
  */
2552
3775
  network: Network;
2553
3776
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2554
3777
  /**
2555
3778
  * Get network details
2556
3779
  * Gets network details such as validator and delegator stats.
2557
- * @returns GetNetworkDetailsResponse
3780
+ * @returns GetNetworkDetailsResponse Successful response
2558
3781
  * @throws ApiError
2559
3782
  */
2560
3783
  getNetworkDetails({ network, }: {
2561
3784
  /**
2562
- * Either mainnet or a testnet.
3785
+ * Either mainnet or testnet/fuji.
2563
3786
  */
2564
3787
  network: Network;
2565
3788
  }): CancelablePromise<GetNetworkDetailsResponse>;
2566
3789
  /**
2567
3790
  * List blockchains
2568
3791
  * Lists all blockchains registered on the network.
2569
- * @returns ListBlockchainsResponse
3792
+ * @returns ListBlockchainsResponse Successful response
2570
3793
  * @throws ApiError
2571
3794
  */
2572
3795
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2573
3796
  /**
2574
- * Either mainnet or a testnet.
3797
+ * Either mainnet or testnet/fuji.
2575
3798
  */
2576
3799
  network: Network;
2577
3800
  /**
@@ -2587,15 +3810,31 @@ declare class PrimaryNetworkService {
2587
3810
  */
2588
3811
  sortOrder?: SortOrder;
2589
3812
  }): CancelablePromise<ListBlockchainsResponse>;
3813
+ /**
3814
+ * Get blockchain details by ID
3815
+ * Get details of the blockchain registered on the network.
3816
+ * @returns Blockchain Successful response
3817
+ * @throws ApiError
3818
+ */
3819
+ getBlockchainById({ blockchainId, network, }: {
3820
+ /**
3821
+ * The blockchain ID of the blockchain to retrieve.
3822
+ */
3823
+ blockchainId: string;
3824
+ /**
3825
+ * Either mainnet or testnet/fuji.
3826
+ */
3827
+ network: Network;
3828
+ }): CancelablePromise<Blockchain>;
2590
3829
  /**
2591
3830
  * List subnets
2592
3831
  * Lists all subnets registered on the network.
2593
- * @returns ListSubnetsResponse
3832
+ * @returns ListSubnetsResponse Successful response
2594
3833
  * @throws ApiError
2595
3834
  */
2596
3835
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2597
3836
  /**
2598
- * Either mainnet or a testnet.
3837
+ * Either mainnet or testnet/fuji.
2599
3838
  */
2600
3839
  network: Network;
2601
3840
  /**
@@ -2614,12 +3853,12 @@ declare class PrimaryNetworkService {
2614
3853
  /**
2615
3854
  * Get Subnet details by ID
2616
3855
  * Get details of the Subnet registered on the network.
2617
- * @returns Subnet
3856
+ * @returns Subnet Successful response
2618
3857
  * @throws ApiError
2619
3858
  */
2620
3859
  getSubnetById({ network, subnetId, }: {
2621
3860
  /**
2622
- * Either mainnet or a testnet.
3861
+ * Either mainnet or testnet/fuji.
2623
3862
  */
2624
3863
  network: Network;
2625
3864
  /**
@@ -2630,12 +3869,12 @@ declare class PrimaryNetworkService {
2630
3869
  /**
2631
3870
  * List validators
2632
3871
  * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2633
- * @returns ListValidatorDetailsResponse
3872
+ * @returns ListValidatorDetailsResponse Successful response
2634
3873
  * @throws ApiError
2635
3874
  */
2636
3875
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2637
3876
  /**
2638
- * Either mainnet or a testnet.
3877
+ * Either mainnet or testnet/fuji.
2639
3878
  */
2640
3879
  network: Network;
2641
3880
  /**
@@ -2704,12 +3943,12 @@ declare class PrimaryNetworkService {
2704
3943
  /**
2705
3944
  * Get single validator details
2706
3945
  * List validator details for a single validator. Filterable by validation status.
2707
- * @returns ListValidatorDetailsResponse
3946
+ * @returns ListValidatorDetailsResponse Successful response
2708
3947
  * @throws ApiError
2709
3948
  */
2710
3949
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2711
3950
  /**
2712
- * Either mainnet or a testnet.
3951
+ * Either mainnet or testnet/fuji.
2713
3952
  */
2714
3953
  network: Network;
2715
3954
  /**
@@ -2736,12 +3975,12 @@ declare class PrimaryNetworkService {
2736
3975
  /**
2737
3976
  * List delegators
2738
3977
  * Lists details for delegators.
2739
- * @returns ListDelegatorDetailsResponse
3978
+ * @returns ListDelegatorDetailsResponse Successful response
2740
3979
  * @throws ApiError
2741
3980
  */
2742
3981
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2743
3982
  /**
2744
- * Either mainnet or a testnet.
3983
+ * Either mainnet or testnet/fuji.
2745
3984
  */
2746
3985
  network: Network;
2747
3986
  /**
@@ -2769,14 +4008,49 @@ declare class PrimaryNetworkService {
2769
4008
  */
2770
4009
  nodeIds?: string;
2771
4010
  }): CancelablePromise<ListDelegatorDetailsResponse>;
4011
+ /**
4012
+ * List L1 validators
4013
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4014
+ * @returns ListL1ValidatorsResponse Successful response
4015
+ * @throws ApiError
4016
+ */
4017
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4018
+ /**
4019
+ * Either mainnet or testnet/fuji.
4020
+ */
4021
+ network: Network;
4022
+ /**
4023
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4024
+ */
4025
+ pageToken?: string;
4026
+ /**
4027
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4028
+ */
4029
+ pageSize?: number;
4030
+ /**
4031
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4032
+ */
4033
+ l1ValidationId?: any;
4034
+ includeInactiveL1Validators?: boolean;
4035
+ /**
4036
+ * A valid node ID in format 'NodeID-HASH'.
4037
+ */
4038
+ nodeId?: string;
4039
+ /**
4040
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4041
+ */
4042
+ subnetId?: any;
4043
+ }): CancelablePromise<ListL1ValidatorsResponse>;
2772
4044
  }
2773
4045
 
2774
4046
  declare enum BlockchainId {
2775
4047
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2776
4048
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2777
4049
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4050
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2778
4051
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2779
4052
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4053
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
2780
4054
  P_CHAIN = "p-chain",
2781
4055
  X_CHAIN = "x-chain",
2782
4056
  C_CHAIN = "c-chain"
@@ -2813,11 +4087,6 @@ type CChainAtomicBalances = {
2813
4087
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
2814
4088
  };
2815
4089
 
2816
- declare enum PrimaryNetwork {
2817
- MAINNET = "mainnet",
2818
- FUJI = "fuji"
2819
- }
2820
-
2821
4090
  declare enum PrimaryNetworkChainName {
2822
4091
  P_CHAIN = "p-chain",
2823
4092
  X_CHAIN = "x-chain",
@@ -2826,7 +4095,7 @@ declare enum PrimaryNetworkChainName {
2826
4095
 
2827
4096
  type PrimaryNetworkChainInfo = {
2828
4097
  chainName: PrimaryNetworkChainName;
2829
- network: PrimaryNetwork;
4098
+ network: Network;
2830
4099
  };
2831
4100
 
2832
4101
  type ListCChainAtomicBalancesResponse = {
@@ -2978,7 +4247,7 @@ declare class PrimaryNetworkBalancesService {
2978
4247
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
2979
4248
  *
2980
4249
  * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
2981
- * @returns any
4250
+ * @returns any Successful response
2982
4251
  * @throws ApiError
2983
4252
  */
2984
4253
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -2987,7 +4256,7 @@ declare class PrimaryNetworkBalancesService {
2987
4256
  */
2988
4257
  blockchainId: BlockchainId;
2989
4258
  /**
2990
- * Either mainnet or a testnet.
4259
+ * Either mainnet or testnet/fuji.
2991
4260
  */
2992
4261
  network: Network;
2993
4262
  /**
@@ -3018,6 +4287,8 @@ type GetPrimaryNetworkBlockResponse = {
3018
4287
  txCount: number;
3019
4288
  transactions: Array<string>;
3020
4289
  blockSizeBytes: number;
4290
+ l1ValidatorsAccruedFees?: number;
4291
+ activeL1Validators?: number;
3021
4292
  currentSupply?: string;
3022
4293
  proposerDetails?: ProposerDetails;
3023
4294
  };
@@ -3031,6 +4302,8 @@ type PrimaryNetworkBlock = {
3031
4302
  txCount: number;
3032
4303
  transactions: Array<string>;
3033
4304
  blockSizeBytes: number;
4305
+ l1ValidatorsAccruedFees?: number;
4306
+ activeL1Validators?: number;
3034
4307
  currentSupply?: string;
3035
4308
  proposerDetails?: ProposerDetails;
3036
4309
  };
@@ -3050,7 +4323,7 @@ declare class PrimaryNetworkBlocksService {
3050
4323
  /**
3051
4324
  * Get block
3052
4325
  * Gets a block by block height or block hash on one of the Primary Network chains.
3053
- * @returns GetPrimaryNetworkBlockResponse
4326
+ * @returns GetPrimaryNetworkBlockResponse Successful response
3054
4327
  * @throws ApiError
3055
4328
  */
3056
4329
  getBlockById({ blockchainId, network, blockId, }: {
@@ -3059,7 +4332,7 @@ declare class PrimaryNetworkBlocksService {
3059
4332
  */
3060
4333
  blockchainId: BlockchainId;
3061
4334
  /**
3062
- * Either mainnet or a testnet.
4335
+ * Either mainnet or testnet/fuji.
3063
4336
  */
3064
4337
  network: Network;
3065
4338
  /**
@@ -3070,22 +4343,30 @@ declare class PrimaryNetworkBlocksService {
3070
4343
  /**
3071
4344
  * List blocks proposed by node
3072
4345
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3073
- * @returns ListPrimaryNetworkBlocksResponse
4346
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3074
4347
  * @throws ApiError
3075
4348
  */
3076
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4349
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3077
4350
  /**
3078
4351
  * A primary network blockchain id or alias.
3079
4352
  */
3080
4353
  blockchainId: BlockchainId;
3081
4354
  /**
3082
- * Either mainnet or a testnet.
4355
+ * Either mainnet or testnet/fuji.
3083
4356
  */
3084
4357
  network: Network;
3085
4358
  /**
3086
4359
  * A primary network (P or X chain) nodeId.
3087
4360
  */
3088
4361
  nodeId: string;
4362
+ /**
4363
+ * Query param for retrieving items after a specific timestamp.
4364
+ */
4365
+ startTimestamp?: number;
4366
+ /**
4367
+ * Query param for retrieving items before a specific timestamp.
4368
+ */
4369
+ endTimestamp?: number;
3089
4370
  /**
3090
4371
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3091
4372
  */
@@ -3098,18 +4379,26 @@ declare class PrimaryNetworkBlocksService {
3098
4379
  /**
3099
4380
  * List latest blocks
3100
4381
  * Lists latest blocks on one of the Primary Network chains.
3101
- * @returns ListPrimaryNetworkBlocksResponse
4382
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3102
4383
  * @throws ApiError
3103
4384
  */
3104
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4385
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3105
4386
  /**
3106
4387
  * A primary network blockchain id or alias.
3107
4388
  */
3108
4389
  blockchainId: BlockchainId;
3109
4390
  /**
3110
- * Either mainnet or a testnet.
4391
+ * Either mainnet or testnet/fuji.
3111
4392
  */
3112
4393
  network: Network;
4394
+ /**
4395
+ * Query param for retrieving items after a specific timestamp.
4396
+ */
4397
+ startTimestamp?: number;
4398
+ /**
4399
+ * Query param for retrieving items before a specific timestamp.
4400
+ */
4401
+ endTimestamp?: number;
3113
4402
  /**
3114
4403
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3115
4404
  */
@@ -3236,12 +4525,12 @@ declare class PrimaryNetworkRewardsService {
3236
4525
  /**
3237
4526
  * List pending rewards
3238
4527
  * Lists pending rewards on the Primary Network for the supplied addresses.
3239
- * @returns ListPendingRewardsResponse
4528
+ * @returns ListPendingRewardsResponse Successful response
3240
4529
  * @throws ApiError
3241
4530
  */
3242
4531
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3243
4532
  /**
3244
- * Either mainnet or a testnet.
4533
+ * Either mainnet or testnet/fuji.
3245
4534
  */
3246
4535
  network: Network;
3247
4536
  /**
@@ -3268,12 +4557,12 @@ declare class PrimaryNetworkRewardsService {
3268
4557
  /**
3269
4558
  * List historical rewards
3270
4559
  * Lists historical rewards on the Primary Network for the supplied addresses.
3271
- * @returns ListHistoricalRewardsResponse
4560
+ * @returns ListHistoricalRewardsResponse Successful response
3272
4561
  * @throws ApiError
3273
4562
  */
3274
4563
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3275
4564
  /**
3276
- * Either mainnet or a testnet.
4565
+ * Either mainnet or testnet/fuji.
3277
4566
  */
3278
4567
  network: Network;
3279
4568
  /**
@@ -3519,6 +4808,32 @@ type ListCChainAtomicTransactionsResponse = {
3519
4808
  chainInfo: PrimaryNetworkChainInfo;
3520
4809
  };
3521
4810
 
4811
+ type L1ValidatorDetailsTransaction = {
4812
+ /**
4813
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4814
+ */
4815
+ validationId: string;
4816
+ /**
4817
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4818
+ */
4819
+ validationIdHex: string;
4820
+ nodeId: string;
4821
+ subnetId: string;
4822
+ /**
4823
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
4824
+ */
4825
+ weight: number;
4826
+ /**
4827
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4828
+ */
4829
+ remainingBalance: number;
4830
+ /**
4831
+ * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
4832
+ */
4833
+ balanceChange?: number;
4834
+ blsCredentials?: Record<string, any>;
4835
+ };
4836
+
3522
4837
  declare enum PChainTransactionType {
3523
4838
  ADD_VALIDATOR_TX = "AddValidatorTx",
3524
4839
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3535,9 +4850,17 @@ declare enum PChainTransactionType {
3535
4850
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3536
4851
  BASE_TX = "BaseTx",
3537
4852
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4853
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4854
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4855
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4856
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4857
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3538
4858
  UNKNOWN = "UNKNOWN"
3539
4859
  }
3540
4860
 
4861
+ /**
4862
+ * Indicates whether the UTXO is staked or transferable
4863
+ */
3541
4864
  declare enum UtxoType {
3542
4865
  STAKE = "STAKE",
3543
4866
  TRANSFER = "TRANSFER"
@@ -3575,16 +4898,43 @@ type PChainUtxo = {
3575
4898
  assetId: string;
3576
4899
  blockNumber: string;
3577
4900
  blockTimestamp: number;
4901
+ /**
4902
+ * Block height in which the transaction consuming this UTXO was included
4903
+ */
3578
4904
  consumingBlockNumber?: string;
4905
+ /**
4906
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4907
+ */
3579
4908
  consumingBlockTimestamp?: number;
4909
+ /**
4910
+ * Timestamp in seconds after which this UTXO can be consumed
4911
+ */
3580
4912
  platformLocktime?: number;
4913
+ /**
4914
+ * The index of the UTXO in the transaction
4915
+ */
3581
4916
  outputIndex: number;
3582
4917
  rewardType?: RewardType;
4918
+ /**
4919
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4920
+ */
3583
4921
  stakeableLocktime?: number;
3584
4922
  staked?: boolean;
4923
+ /**
4924
+ * The minimum number of signatures required to spend this UTXO
4925
+ */
3585
4926
  threshold?: number;
4927
+ /**
4928
+ * The hash of the transaction that created this UTXO
4929
+ */
3586
4930
  txHash: string;
4931
+ /**
4932
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4933
+ */
3587
4934
  utxoEndTimestamp?: number;
4935
+ /**
4936
+ * Timestamp in seconds at which the staked UTXO was locked.
4937
+ */
3588
4938
  utxoStartTimestamp?: number;
3589
4939
  utxoType: UtxoType;
3590
4940
  };
@@ -3599,9 +4949,18 @@ type PChainTransaction = {
3599
4949
  * The block finality timestamp.
3600
4950
  */
3601
4951
  blockTimestamp: number;
4952
+ /**
4953
+ * The height of the block in which the transaction was included
4954
+ */
3602
4955
  blockNumber: string;
3603
4956
  blockHash: string;
4957
+ /**
4958
+ * The consumed UTXOs of the transaction
4959
+ */
3604
4960
  consumedUtxos: Array<PChainUtxo>;
4961
+ /**
4962
+ * The newly created UTXOs of the transaction
4963
+ */
3605
4964
  emittedUtxos: Array<PChainUtxo>;
3606
4965
  /**
3607
4966
  * Source chain for an atomic transaction.
@@ -3612,17 +4971,21 @@ type PChainTransaction = {
3612
4971
  */
3613
4972
  destinationChain?: string;
3614
4973
  /**
3615
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4974
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
3616
4975
  */
3617
4976
  value: Array<AssetAmount>;
3618
4977
  /**
3619
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4978
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
3620
4979
  */
3621
4980
  amountBurned: Array<AssetAmount>;
3622
4981
  /**
3623
4982
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3624
4983
  */
3625
4984
  amountStaked: Array<AssetAmount>;
4985
+ /**
4986
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
4987
+ */
4988
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3626
4989
  /**
3627
4990
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3628
4991
  */
@@ -3632,11 +4995,11 @@ type PChainTransaction = {
3632
4995
  */
3633
4996
  endTimestamp?: number;
3634
4997
  /**
3635
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
4998
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3636
4999
  */
3637
5000
  delegationFeePercent?: string;
3638
5001
  /**
3639
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5002
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3640
5003
  */
3641
5004
  nodeId?: string;
3642
5005
  /**
@@ -3644,14 +5007,25 @@ type PChainTransaction = {
3644
5007
  */
3645
5008
  subnetId?: string;
3646
5009
  /**
3647
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5010
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5011
+ */
5012
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5013
+ /**
5014
+ * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
5015
+ */
5016
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5017
+ /**
5018
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3648
5019
  */
3649
5020
  estimatedReward?: string;
5021
+ /**
5022
+ * Reward transaction hash for the completed validations or delegations
5023
+ */
3650
5024
  rewardTxHash?: string;
3651
5025
  rewardAddresses?: Array<string>;
3652
5026
  memo?: string;
3653
5027
  /**
3654
- * Present for RewardValidatorTx
5028
+ * Staking transaction corresponding to the RewardValidatorTx
3655
5029
  */
3656
5030
  stakingTxHash?: string;
3657
5031
  /**
@@ -3659,7 +5033,7 @@ type PChainTransaction = {
3659
5033
  */
3660
5034
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3661
5035
  /**
3662
- * Present for AddPermissionlessValidatorTx
5036
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3663
5037
  */
3664
5038
  blsCredentials?: BlsCredentials;
3665
5039
  };
@@ -3844,6 +5218,11 @@ declare enum PrimaryNetworkTxType {
3844
5218
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3845
5219
  BASE_TX = "BaseTx",
3846
5220
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5221
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5222
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5223
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5224
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5225
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3847
5226
  UNKNOWN = "UNKNOWN",
3848
5227
  CREATE_ASSET_TX = "CreateAssetTx",
3849
5228
  OPERATION_TX = "OperationTx"
@@ -3855,7 +5234,7 @@ declare class PrimaryNetworkTransactionsService {
3855
5234
  /**
3856
5235
  * Get transaction
3857
5236
  * Gets the details of a single transaction on one of the Primary Network chains.
3858
- * @returns any
5237
+ * @returns any Successful response
3859
5238
  * @throws ApiError
3860
5239
  */
3861
5240
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -3864,7 +5243,7 @@ declare class PrimaryNetworkTransactionsService {
3864
5243
  */
3865
5244
  blockchainId: BlockchainId;
3866
5245
  /**
3867
- * Either mainnet or a testnet.
5246
+ * Either mainnet or testnet/fuji.
3868
5247
  */
3869
5248
  network: Network;
3870
5249
  /**
@@ -3878,23 +5257,26 @@ declare class PrimaryNetworkTransactionsService {
3878
5257
  *
3879
5258
  * 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.
3880
5259
  *
5260
+ * For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
5261
+ *
3881
5262
  * 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.
3882
- * @returns any
5263
+ * @returns any Successful response
3883
5264
  * @throws ApiError
3884
5265
  */
3885
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5266
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3886
5267
  /**
3887
5268
  * A primary network blockchain id or alias.
3888
5269
  */
3889
5270
  blockchainId: BlockchainId;
3890
5271
  /**
3891
- * Either mainnet or a testnet.
5272
+ * Either mainnet or testnet/fuji.
3892
5273
  */
3893
5274
  network: Network;
3894
5275
  /**
3895
- * 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".
5276
+ * 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". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
3896
5277
  */
3897
5278
  addresses?: string;
5279
+ l1ValidationId?: string;
3898
5280
  /**
3899
5281
  * Query param for filtering items based on transaction types.
3900
5282
  */
@@ -3923,7 +5305,7 @@ declare class PrimaryNetworkTransactionsService {
3923
5305
  /**
3924
5306
  * List staking transactions
3925
5307
  * Lists active staking transactions on the P-Chain for the supplied addresses.
3926
- * @returns ListPChainTransactionsResponse
5308
+ * @returns ListPChainTransactionsResponse Successful response
3927
5309
  * @throws ApiError
3928
5310
  */
3929
5311
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -3932,7 +5314,7 @@ declare class PrimaryNetworkTransactionsService {
3932
5314
  */
3933
5315
  blockchainId: PChainId;
3934
5316
  /**
3935
- * Either mainnet or a testnet.
5317
+ * Either mainnet or testnet/fuji.
3936
5318
  */
3937
5319
  network: Network;
3938
5320
  /**
@@ -3967,7 +5349,7 @@ declare class PrimaryNetworkTransactionsService {
3967
5349
  /**
3968
5350
  * List asset transactions
3969
5351
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
3970
- * @returns ListXChainTransactionsResponse
5352
+ * @returns ListXChainTransactionsResponse Successful response
3971
5353
  * @throws ApiError
3972
5354
  */
3973
5355
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -3976,7 +5358,7 @@ declare class PrimaryNetworkTransactionsService {
3976
5358
  */
3977
5359
  blockchainId: XChainId;
3978
5360
  /**
3979
- * Either mainnet or a testnet.
5361
+ * Either mainnet or testnet/fuji.
3980
5362
  */
3981
5363
  network: Network;
3982
5364
  /**
@@ -4030,7 +5412,7 @@ declare class PrimaryNetworkUtxOsService {
4030
5412
  /**
4031
5413
  * List UTXOs
4032
5414
  * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
4033
- * @returns any
5415
+ * @returns any Successful response
4034
5416
  * @throws ApiError
4035
5417
  */
4036
5418
  getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
@@ -4039,7 +5421,7 @@ declare class PrimaryNetworkUtxOsService {
4039
5421
  */
4040
5422
  blockchainId: BlockchainId;
4041
5423
  /**
4042
- * Either mainnet or a testnet.
5424
+ * Either mainnet or testnet/fuji.
4043
5425
  */
4044
5426
  network: Network;
4045
5427
  /**
@@ -4095,7 +5477,7 @@ declare class PrimaryNetworkVerticesService {
4095
5477
  /**
4096
5478
  * List vertices
4097
5479
  * Lists latest vertices on the X-Chain.
4098
- * @returns ListXChainVerticesResponse
5480
+ * @returns ListXChainVerticesResponse Successful response
4099
5481
  * @throws ApiError
4100
5482
  */
4101
5483
  listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
@@ -4104,7 +5486,7 @@ declare class PrimaryNetworkVerticesService {
4104
5486
  */
4105
5487
  blockchainId: XChainId;
4106
5488
  /**
4107
- * Either mainnet or a testnet.
5489
+ * Either mainnet or testnet/fuji.
4108
5490
  */
4109
5491
  network: Network;
4110
5492
  /**
@@ -4119,7 +5501,7 @@ declare class PrimaryNetworkVerticesService {
4119
5501
  /**
4120
5502
  * Get vertex
4121
5503
  * Gets a single vertex on the X-Chain.
4122
- * @returns XChainVertex
5504
+ * @returns XChainVertex Successful response
4123
5505
  * @throws ApiError
4124
5506
  */
4125
5507
  getVertexByHash({ vertexHash, blockchainId, network, }: {
@@ -4132,14 +5514,14 @@ declare class PrimaryNetworkVerticesService {
4132
5514
  */
4133
5515
  blockchainId: XChainId;
4134
5516
  /**
4135
- * Either mainnet or a testnet.
5517
+ * Either mainnet or testnet/fuji.
4136
5518
  */
4137
5519
  network: Network;
4138
5520
  }): CancelablePromise<XChainVertex>;
4139
5521
  /**
4140
5522
  * List vertices by height
4141
5523
  * Lists vertices at the given vertex height on the X-Chain.
4142
- * @returns ListXChainVerticesResponse
5524
+ * @returns ListXChainVerticesResponse Successful response
4143
5525
  * @throws ApiError
4144
5526
  */
4145
5527
  getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
@@ -4152,7 +5534,7 @@ declare class PrimaryNetworkVerticesService {
4152
5534
  */
4153
5535
  blockchainId: XChainId;
4154
5536
  /**
4155
- * Either mainnet or a testnet.
5537
+ * Either mainnet or testnet/fuji.
4156
5538
  */
4157
5539
  network: Network;
4158
5540
  /**
@@ -4170,47 +5552,49 @@ declare class PrimaryNetworkVerticesService {
4170
5552
  }): CancelablePromise<ListXChainVerticesResponse>;
4171
5553
  }
4172
5554
 
4173
- type RpcErrorDto = {
4174
- code: number;
4175
- message: string;
4176
- data?: Record<string, any>;
4177
- };
4178
-
4179
- type RpcErrorResponseDto = {
4180
- jsonrpc: string;
4181
- id?: (string | number);
4182
- error: RpcErrorDto;
4183
- };
4184
-
4185
- type RpcRequestBodyDto = {
4186
- method: string;
4187
- params?: Record<string, any>;
4188
- id?: (string | number);
4189
- jsonrpc?: string;
5555
+ type SignatureAggregationResponse = {
5556
+ signedMessage: string;
4190
5557
  };
4191
5558
 
4192
- type RpcSuccessResponseDto = {
4193
- jsonrpc: string;
4194
- id?: (string | number);
4195
- result: Record<string, any>;
5559
+ type SignatureAggregatorRequest = {
5560
+ message: string;
5561
+ justification?: string;
5562
+ signingSubnetId?: string;
5563
+ quorumPercentage?: number;
4196
5564
  };
4197
5565
 
4198
- declare class RpcService {
5566
+ declare class SignatureAggregatorService {
4199
5567
  readonly httpRequest: BaseHttpRequest;
4200
5568
  constructor(httpRequest: BaseHttpRequest);
4201
5569
  /**
4202
- * Calls JSON-RPC method
4203
- * Calls JSON-RPC method.
4204
- * @returns any
5570
+ * Aggregate Signatures
5571
+ * Aggregates Signatures for a Warp message from Subnet validators.
5572
+ * @returns SignatureAggregationResponse Successful response
4205
5573
  * @throws ApiError
4206
5574
  */
4207
- rpc({ chainId, requestBody, }: {
5575
+ aggregateSignatures({ network, requestBody, }: {
4208
5576
  /**
4209
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5577
+ * Either mainnet or testnet/fuji.
4210
5578
  */
4211
- chainId: string;
4212
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4213
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5579
+ network: Network;
5580
+ requestBody: SignatureAggregatorRequest;
5581
+ }): CancelablePromise<SignatureAggregationResponse>;
5582
+ /**
5583
+ * Get Aggregated Signatures
5584
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5585
+ * @returns SignatureAggregationResponse Successful response
5586
+ * @throws ApiError
5587
+ */
5588
+ getAggregatedSignatures({ network, txHash, }: {
5589
+ /**
5590
+ * Either mainnet or testnet/fuji.
5591
+ */
5592
+ network: Network;
5593
+ /**
5594
+ * A primary network (P or X chain) transaction hash.
5595
+ */
5596
+ txHash: string;
5597
+ }): CancelablePromise<SignatureAggregationResponse>;
4214
5598
  }
4215
5599
 
4216
5600
  type TeleporterDestinationTransaction = {
@@ -4351,9 +5735,11 @@ declare class TeleporterService {
4351
5735
  readonly httpRequest: BaseHttpRequest;
4352
5736
  constructor(httpRequest: BaseHttpRequest);
4353
5737
  /**
4354
- * Get a teleporter message
4355
- * Gets a teleporter message by message ID.
4356
- * @returns any
5738
+ * @deprecated
5739
+ * **[Deprecated]** Gets a teleporter message by message ID.
5740
+ *
5741
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
5742
+ * @returns any Successful response
4357
5743
  * @throws ApiError
4358
5744
  */
4359
5745
  getTeleporterMessage({ messageId, }: {
@@ -4363,12 +5749,14 @@ declare class TeleporterService {
4363
5749
  messageId: string;
4364
5750
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4365
5751
  /**
4366
- * List teleporter messages
4367
- * Lists teleporter messages. Ordered by timestamp in descending order.
4368
- * @returns ListTeleporterMessagesResponse
5752
+ * @deprecated
5753
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5754
+ *
5755
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
5756
+ * @returns ListTeleporterMessagesResponse Successful response
4369
5757
  * @throws ApiError
4370
5758
  */
4371
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
5759
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
4372
5760
  /**
4373
5761
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4374
5762
  */
@@ -4385,6 +5773,10 @@ declare class TeleporterService {
4385
5773
  * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4386
5774
  */
4387
5775
  destinationBlockchainId?: string;
5776
+ /**
5777
+ * The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
5778
+ */
5779
+ blockchainId?: string;
4388
5780
  /**
4389
5781
  * The address of the recipient of the teleporter message.
4390
5782
  */
@@ -4394,9 +5786,35 @@ declare class TeleporterService {
4394
5786
  */
4395
5787
  from?: string;
4396
5788
  /**
4397
- * mainnet or testnet.
5789
+ * Either mainnet or testnet/fuji.
5790
+ */
5791
+ network?: Network;
5792
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
5793
+ /**
5794
+ * @deprecated
5795
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5796
+ *
5797
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
5798
+ * @returns ListTeleporterMessagesResponse Successful response
5799
+ * @throws ApiError
5800
+ */
5801
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
5802
+ /**
5803
+ * An EVM address.
5804
+ */
5805
+ address: string;
5806
+ /**
5807
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5808
+ */
5809
+ pageToken?: string;
5810
+ /**
5811
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5812
+ */
5813
+ pageSize?: number;
5814
+ /**
5815
+ * Either mainnet or testnet/fuji.
4398
5816
  */
4399
- network?: NetworkType;
5817
+ network?: Network;
4400
5818
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4401
5819
  }
4402
5820
 
@@ -4404,7 +5822,7 @@ type AddressesChangeRequest = {
4404
5822
  /**
4405
5823
  * Ethereum address(es) for the address_activity event type
4406
5824
  */
4407
- addresses: Array<any[]>;
5825
+ addresses: Array<string>;
4408
5826
  };
4409
5827
 
4410
5828
  type AddressActivityMetadata = {
@@ -4418,17 +5836,55 @@ type AddressActivityMetadata = {
4418
5836
  eventSignatures?: Array<string>;
4419
5837
  };
4420
5838
 
4421
- declare enum EventType {
4422
- ADDRESS_ACTIVITY = "address_activity"
5839
+ declare enum PrimaryNetworkType {
5840
+ MAINNET = "mainnet",
5841
+ FUJI = "fuji"
4423
5842
  }
4424
5843
 
4425
- type CreateWebhookRequest = {
5844
+ type EVMAddressActivityRequest = {
5845
+ eventType: EVMAddressActivityRequest.eventType;
4426
5846
  url: string;
4427
5847
  chainId: string;
4428
- eventType: EventType;
4429
- metadata: AddressActivityMetadata;
5848
+ network?: PrimaryNetworkType;
4430
5849
  name?: string;
4431
5850
  description?: string;
5851
+ /**
5852
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5853
+ */
5854
+ includeInternalTxs?: boolean;
5855
+ /**
5856
+ * Whether to include logs in the webhook payload.
5857
+ */
5858
+ includeLogs?: boolean;
5859
+ metadata: AddressActivityMetadata;
5860
+ };
5861
+ declare namespace EVMAddressActivityRequest {
5862
+ enum eventType {
5863
+ ADDRESS_ACTIVITY = "address_activity"
5864
+ }
5865
+ }
5866
+
5867
+ declare enum EventType {
5868
+ ADDRESS_ACTIVITY = "address_activity",
5869
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5870
+ VALIDATOR_ACTIVITY = "validator_activity"
5871
+ }
5872
+
5873
+ declare enum WebhookStatusType {
5874
+ ACTIVE = "active",
5875
+ INACTIVE = "inactive"
5876
+ }
5877
+
5878
+ type EVMAddressActivityResponse = {
5879
+ id: string;
5880
+ eventType: EventType;
5881
+ url: string;
5882
+ chainId: string;
5883
+ status: WebhookStatusType;
5884
+ createdAt: number;
5885
+ name: string;
5886
+ description: string;
5887
+ metadata: AddressActivityMetadata;
4432
5888
  /**
4433
5889
  * Whether to include traces in the webhook payload.
4434
5890
  */
@@ -4448,38 +5904,134 @@ type ListWebhookAddressesResponse = {
4448
5904
  totalAddresses: number;
4449
5905
  };
4450
5906
 
4451
- declare enum WebhookStatusType {
4452
- ACTIVE = "active",
4453
- INACTIVE = "inactive"
5907
+ /**
5908
+ * The type of key for platform activity depending on the event type
5909
+ */
5910
+ declare enum PlatformActivityKeyType {
5911
+ ADDRESSES = "addresses",
5912
+ NODE_ID = "nodeId",
5913
+ SUBNET_ID = "subnetId"
5914
+ }
5915
+
5916
+ /**
5917
+ * Array of address activity sub-event types
5918
+ */
5919
+ declare enum PlatformAddressActivitySubEventType {
5920
+ BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5921
+ BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
5922
+ REWARD_DISTRIBUTION = "reward_distribution"
5923
+ }
5924
+
5925
+ type PlatformActivitySubEvents = {
5926
+ /**
5927
+ * Array of validator activity sub-event types
5928
+ */
5929
+ validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5930
+ addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
5931
+ };
5932
+
5933
+ /**
5934
+ * Type of balance to monitor
5935
+ */
5936
+ declare enum CommonBalanceType {
5937
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5938
+ UNLOCKED_STAKED = "unlockedStaked",
5939
+ LOCKED_PLATFORM = "lockedPlatform",
5940
+ LOCKED_STAKEABLE = "lockedStakeable",
5941
+ LOCKED_STAKED = "lockedStaked",
5942
+ PENDING_STAKED = "pendingStaked",
5943
+ UNLOCKED = "unlocked",
5944
+ LOCKED = "locked",
5945
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
5946
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
4454
5947
  }
4455
5948
 
4456
- type WebhookResponse = {
5949
+ type PlatformBalanceThresholdFilter = {
5950
+ balanceType: CommonBalanceType;
5951
+ /**
5952
+ * Threshold for balance corresponding to balanceType in nAVAX
5953
+ */
5954
+ balanceThreshold: string;
5955
+ };
5956
+
5957
+ type PlatformActivityMetadata = {
5958
+ keyType: PlatformActivityKeyType;
5959
+ /**
5960
+ * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
5961
+ */
5962
+ keys: Array<string>;
5963
+ /**
5964
+ * Sub-events to monitor
5965
+ */
5966
+ subEvents?: PlatformActivitySubEvents;
5967
+ /**
5968
+ * Array of hexadecimal strings of the event signatures.
5969
+ */
5970
+ eventSignatures?: Array<string>;
5971
+ /**
5972
+ * Array of node IDs to filter the events
5973
+ */
5974
+ nodeIds?: Array<string>;
5975
+ /**
5976
+ * Array of subnet IDs to filter the events
5977
+ */
5978
+ subnetIds?: Array<string>;
5979
+ /**
5980
+ * Balance threshold filter
5981
+ */
5982
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
5983
+ /**
5984
+ * L1 validator fee balance threshold in nAVAX
5985
+ */
5986
+ l1ValidatorFeeBalanceThreshold?: string;
5987
+ };
5988
+
5989
+ type PlatformActivityResponse = {
4457
5990
  id: string;
4458
5991
  eventType: EventType;
4459
- metadata: AddressActivityMetadata;
5992
+ url: string;
5993
+ chainId: string;
5994
+ status: WebhookStatusType;
5995
+ createdAt: number;
5996
+ name: string;
5997
+ description: string;
5998
+ metadata: PlatformActivityMetadata;
5999
+ };
6000
+
6001
+ type ListWebhooksResponse = {
4460
6002
  /**
4461
- * Whether to include traces in the webhook payload.
6003
+ * 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.
6004
+ */
6005
+ nextPageToken?: string;
6006
+ webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6007
+ };
6008
+
6009
+ type PlatformActivityRequest = {
6010
+ eventType: PlatformActivityRequest.eventType;
6011
+ url: string;
6012
+ chainId: string;
6013
+ network?: PrimaryNetworkType;
6014
+ name?: string;
6015
+ description?: string;
6016
+ /**
6017
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4462
6018
  */
4463
6019
  includeInternalTxs?: boolean;
4464
6020
  /**
4465
6021
  * Whether to include logs in the webhook payload.
4466
6022
  */
4467
6023
  includeLogs?: boolean;
4468
- url: string;
4469
- chainId: string;
4470
- status: WebhookStatusType;
4471
- createdAt: number;
4472
- name: string;
4473
- description: string;
4474
- };
4475
-
4476
- type ListWebhooksResponse = {
4477
6024
  /**
4478
- * 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.
6025
+ * Metadata for platform activity
4479
6026
  */
4480
- nextPageToken?: string;
4481
- webhooks: Array<WebhookResponse>;
6027
+ metadata: PlatformActivityMetadata;
4482
6028
  };
6029
+ declare namespace PlatformActivityRequest {
6030
+ enum eventType {
6031
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6032
+ VALIDATOR_ACTIVITY = "validator_activity"
6033
+ }
6034
+ }
4483
6035
 
4484
6036
  type SharedSecretsResponse = {
4485
6037
  secret: string;
@@ -4490,6 +6042,9 @@ type UpdateWebhookRequest = {
4490
6042
  description?: string;
4491
6043
  url?: string;
4492
6044
  status?: WebhookStatusType;
6045
+ /**
6046
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6047
+ */
4493
6048
  includeInternalTxs?: boolean;
4494
6049
  includeLogs?: boolean;
4495
6050
  };
@@ -4505,16 +6060,16 @@ declare class WebhooksService {
4505
6060
  /**
4506
6061
  * Create a webhook
4507
6062
  * Create a new webhook.
4508
- * @returns WebhookResponse
6063
+ * @returns any Successful response
4509
6064
  * @throws ApiError
4510
6065
  */
4511
6066
  createWebhook({ requestBody, }: {
4512
- requestBody: CreateWebhookRequest;
4513
- }): CancelablePromise<WebhookResponse>;
6067
+ requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6068
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4514
6069
  /**
4515
6070
  * List webhooks
4516
6071
  * Lists webhooks for the user.
4517
- * @returns ListWebhooksResponse
6072
+ * @returns ListWebhooksResponse Successful response
4518
6073
  * @throws ApiError
4519
6074
  */
4520
6075
  listWebhooks({ pageToken, pageSize, status, }: {
@@ -4534,7 +6089,7 @@ declare class WebhooksService {
4534
6089
  /**
4535
6090
  * Get a webhook by ID
4536
6091
  * Retrieves a webhook by ID.
4537
- * @returns WebhookResponse
6092
+ * @returns any Successful response
4538
6093
  * @throws ApiError
4539
6094
  */
4540
6095
  getWebhook({ id, }: {
@@ -4542,11 +6097,11 @@ declare class WebhooksService {
4542
6097
  * The webhook identifier.
4543
6098
  */
4544
6099
  id: string;
4545
- }): CancelablePromise<WebhookResponse>;
6100
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4546
6101
  /**
4547
6102
  * Deactivate a webhook
4548
6103
  * Deactivates a webhook by ID.
4549
- * @returns WebhookResponse
6104
+ * @returns any Successful response
4550
6105
  * @throws ApiError
4551
6106
  */
4552
6107
  deactivateWebhook({ id, }: {
@@ -4554,11 +6109,11 @@ declare class WebhooksService {
4554
6109
  * The webhook identifier.
4555
6110
  */
4556
6111
  id: string;
4557
- }): CancelablePromise<WebhookResponse>;
6112
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4558
6113
  /**
4559
6114
  * Update a webhook
4560
6115
  * Updates an existing webhook.
4561
- * @returns WebhookResponse
6116
+ * @returns any Successful response
4562
6117
  * @throws ApiError
4563
6118
  */
4564
6119
  updateWebhook({ id, requestBody, }: {
@@ -4567,25 +6122,25 @@ declare class WebhooksService {
4567
6122
  */
4568
6123
  id: string;
4569
6124
  requestBody: UpdateWebhookRequest;
4570
- }): CancelablePromise<WebhookResponse>;
6125
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4571
6126
  /**
4572
- * Generate a shared secret
4573
- * Generates a new shared secret.
4574
- * @returns SharedSecretsResponse
6127
+ * Generate or rotate a shared secret
6128
+ * Generates a new shared secret or rotate an existing one.
6129
+ * @returns SharedSecretsResponse Successful response
4575
6130
  * @throws ApiError
4576
6131
  */
4577
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6132
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4578
6133
  /**
4579
6134
  * Get a shared secret
4580
6135
  * Get a previously generated shared secret.
4581
- * @returns SharedSecretsResponse
6136
+ * @returns SharedSecretsResponse Successful response
4582
6137
  * @throws ApiError
4583
6138
  */
4584
6139
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4585
6140
  /**
4586
- * Add addresses to webhook
4587
- * Add addresses to webhook.
4588
- * @returns WebhookResponse
6141
+ * Add addresses to EVM activity webhook
6142
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6143
+ * @returns EVMAddressActivityResponse Successful response
4589
6144
  * @throws ApiError
4590
6145
  */
4591
6146
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4594,11 +6149,11 @@ declare class WebhooksService {
4594
6149
  */
4595
6150
  id: string;
4596
6151
  requestBody: AddressesChangeRequest;
4597
- }): CancelablePromise<WebhookResponse>;
6152
+ }): CancelablePromise<EVMAddressActivityResponse>;
4598
6153
  /**
4599
- * Remove addresses from webhook
4600
- * Remove addresses from webhook.
4601
- * @returns WebhookResponse
6154
+ * Remove addresses from EVM activity webhook
6155
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6156
+ * @returns EVMAddressActivityResponse Successful response
4602
6157
  * @throws ApiError
4603
6158
  */
4604
6159
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4607,11 +6162,11 @@ declare class WebhooksService {
4607
6162
  */
4608
6163
  id: string;
4609
6164
  requestBody: AddressesChangeRequest;
4610
- }): CancelablePromise<WebhookResponse>;
6165
+ }): CancelablePromise<EVMAddressActivityResponse>;
4611
6166
  /**
4612
- * List adresses by webhook
4613
- * List adresses by webhook.
4614
- * @returns ListWebhookAddressesResponse
6167
+ * List adresses by EVM activity webhooks
6168
+ * List adresses by webhook. Only valid for EVM activity webhooks.
6169
+ * @returns ListWebhookAddressesResponse Successful response
4615
6170
  * @throws ApiError
4616
6171
  */
4617
6172
  getAddressesFromWebhook({ id, pageToken, pageSize, }: {
@@ -4632,6 +6187,7 @@ declare class WebhooksService {
4632
6187
 
4633
6188
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4634
6189
  declare class Glacier {
6190
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4635
6191
  readonly default: DefaultService;
4636
6192
  readonly evmBalances: EvmBalancesService;
4637
6193
  readonly evmBlocks: EvmBlocksService;
@@ -4639,7 +6195,9 @@ declare class Glacier {
4639
6195
  readonly evmContracts: EvmContractsService;
4640
6196
  readonly evmTransactions: EvmTransactionsService;
4641
6197
  readonly healthCheck: HealthCheckService;
6198
+ readonly interchainMessaging: InterchainMessagingService;
4642
6199
  readonly nfTs: NfTsService;
6200
+ readonly notifications: NotificationsService;
4643
6201
  readonly operations: OperationsService;
4644
6202
  readonly primaryNetwork: PrimaryNetworkService;
4645
6203
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4648,7 +6206,7 @@ declare class Glacier {
4648
6206
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4649
6207
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4650
6208
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4651
- readonly rpc: RpcService;
6209
+ readonly signatureAggregator: SignatureAggregatorService;
4652
6210
  readonly teleporter: TeleporterService;
4653
6211
  readonly webhooks: WebhooksService;
4654
6212
  readonly request: BaseHttpRequest;
@@ -4672,6 +6230,209 @@ declare class ApiError extends Error {
4672
6230
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4673
6231
  }
4674
6232
 
6233
+ type AccessListData = {
6234
+ /**
6235
+ * Access Address
6236
+ */
6237
+ accessAddresses: string;
6238
+ /**
6239
+ * Storage keys
6240
+ */
6241
+ storageKeys: Array<string>;
6242
+ };
6243
+
6244
+ type BadGateway = {
6245
+ /**
6246
+ * The error message describing the reason for the exception
6247
+ */
6248
+ message: (string | Array<string>);
6249
+ /**
6250
+ * The HTTP status code of the response
6251
+ */
6252
+ statusCode: number;
6253
+ /**
6254
+ * The type of error
6255
+ */
6256
+ error: string;
6257
+ };
6258
+
6259
+ type BadRequest = {
6260
+ /**
6261
+ * The error message describing the reason for the exception
6262
+ */
6263
+ message: (string | Array<string>);
6264
+ /**
6265
+ * The HTTP status code of the response
6266
+ */
6267
+ statusCode: number;
6268
+ /**
6269
+ * The type of error
6270
+ */
6271
+ error: string;
6272
+ };
6273
+
6274
+ type DataListChainsResponse = {
6275
+ chains: Array<ChainInfo>;
6276
+ };
6277
+
6278
+ type ERCToken = {
6279
+ /**
6280
+ * Token contract address
6281
+ */
6282
+ address: string;
6283
+ /**
6284
+ * Token name
6285
+ */
6286
+ name: string;
6287
+ /**
6288
+ * Token symbol
6289
+ */
6290
+ symbol: string;
6291
+ /**
6292
+ * Token decimals
6293
+ */
6294
+ decimals: number;
6295
+ /**
6296
+ * Value including decimals
6297
+ */
6298
+ valueWithDecimals: string;
6299
+ };
6300
+
6301
+ type ERCTransfer = {
6302
+ /**
6303
+ * Transaction hash
6304
+ */
6305
+ transactionHash: string;
6306
+ /**
6307
+ * Transfer type
6308
+ */
6309
+ type: string;
6310
+ /**
6311
+ * Sender address
6312
+ */
6313
+ from: string;
6314
+ /**
6315
+ * Recipient address
6316
+ */
6317
+ to: string;
6318
+ /**
6319
+ * Amount transferred
6320
+ */
6321
+ value: string;
6322
+ /**
6323
+ * Token Id
6324
+ */
6325
+ tokenId?: string;
6326
+ /**
6327
+ * Block timestamp
6328
+ */
6329
+ blockTimestamp: number;
6330
+ /**
6331
+ * Log index
6332
+ */
6333
+ logIndex: number;
6334
+ /**
6335
+ * erc20 Token details
6336
+ */
6337
+ erc20Token?: ERCToken;
6338
+ /**
6339
+ * erc721 Token details
6340
+ */
6341
+ erc721Token?: ERCToken;
6342
+ /**
6343
+ * erc1155 Token details
6344
+ */
6345
+ erc1155Token?: ERCToken;
6346
+ };
6347
+
6348
+ type Forbidden = {
6349
+ /**
6350
+ * The error message describing the reason for the exception
6351
+ */
6352
+ message: (string | Array<string>);
6353
+ /**
6354
+ * The HTTP status code of the response
6355
+ */
6356
+ statusCode: number;
6357
+ /**
6358
+ * The type of error
6359
+ */
6360
+ error: string;
6361
+ };
6362
+
6363
+ type InternalServerError = {
6364
+ /**
6365
+ * The error message describing the reason for the exception
6366
+ */
6367
+ message: (string | Array<string>);
6368
+ /**
6369
+ * The HTTP status code of the response
6370
+ */
6371
+ statusCode: number;
6372
+ /**
6373
+ * The type of error
6374
+ */
6375
+ error: string;
6376
+ };
6377
+
6378
+ type Log = {
6379
+ /**
6380
+ * Contract address
6381
+ */
6382
+ address: string;
6383
+ /**
6384
+ * First topic
6385
+ */
6386
+ topic0: string;
6387
+ /**
6388
+ * Second topic (optional)
6389
+ */
6390
+ topic1?: string;
6391
+ /**
6392
+ * Third topic (optional)
6393
+ */
6394
+ topic2?: string;
6395
+ /**
6396
+ * Fourth topic (optional)
6397
+ */
6398
+ topic3?: string;
6399
+ /**
6400
+ * Event data
6401
+ */
6402
+ data: string;
6403
+ /**
6404
+ * Transaction index
6405
+ */
6406
+ transactionIndex: number;
6407
+ /**
6408
+ * Log index
6409
+ */
6410
+ logIndex: number;
6411
+ /**
6412
+ * Indicates if the log was removed
6413
+ */
6414
+ removed: boolean;
6415
+ };
6416
+
6417
+ type NetworkTokenInfo = {
6418
+ /**
6419
+ * Token name
6420
+ */
6421
+ tokenName?: string;
6422
+ /**
6423
+ * Token symbol
6424
+ */
6425
+ tokenSymbol?: string;
6426
+ /**
6427
+ * Token decimals
6428
+ */
6429
+ tokenDecimals?: number;
6430
+ /**
6431
+ * Value including decimals
6432
+ */
6433
+ valueWithDecimals?: string;
6434
+ };
6435
+
4675
6436
  type NextPageToken = {
4676
6437
  /**
4677
6438
  * 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.
@@ -4679,4 +6440,217 @@ type NextPageToken = {
4679
6440
  nextPageToken?: string;
4680
6441
  };
4681
6442
 
4682
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, 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, 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 };
6443
+ type NotFound = {
6444
+ /**
6445
+ * The error message describing the reason for the exception
6446
+ */
6447
+ message: (string | Array<string>);
6448
+ /**
6449
+ * The HTTP status code of the response
6450
+ */
6451
+ statusCode: number;
6452
+ /**
6453
+ * The type of error
6454
+ */
6455
+ error: string;
6456
+ };
6457
+
6458
+ type ServiceUnavailable = {
6459
+ /**
6460
+ * The error message describing the reason for the exception
6461
+ */
6462
+ message: (string | Array<string>);
6463
+ /**
6464
+ * The HTTP status code of the response
6465
+ */
6466
+ statusCode: number;
6467
+ /**
6468
+ * The type of error
6469
+ */
6470
+ error: string;
6471
+ };
6472
+
6473
+ type TooManyRequests = {
6474
+ /**
6475
+ * The error message describing the reason for the exception
6476
+ */
6477
+ message: (string | Array<string>);
6478
+ /**
6479
+ * The HTTP status code of the response
6480
+ */
6481
+ statusCode: number;
6482
+ /**
6483
+ * The type of error
6484
+ */
6485
+ error: string;
6486
+ };
6487
+
6488
+ type Transaction = {
6489
+ /**
6490
+ * Block hash of the transaction
6491
+ */
6492
+ blockHash: string;
6493
+ /**
6494
+ * Block number of the transaction
6495
+ */
6496
+ blockNumber: string;
6497
+ /**
6498
+ * Sender address
6499
+ */
6500
+ from: string;
6501
+ /**
6502
+ * Gas limit for the transaction
6503
+ */
6504
+ gas: string;
6505
+ /**
6506
+ * Gas price used
6507
+ */
6508
+ gasPrice: string;
6509
+ /**
6510
+ * Maximum fee per gas
6511
+ */
6512
+ maxFeePerGas: string;
6513
+ /**
6514
+ * Maximum priority fee per gas
6515
+ */
6516
+ maxPriorityFeePerGas: string;
6517
+ /**
6518
+ * Transaction hash
6519
+ */
6520
+ txHash: string;
6521
+ /**
6522
+ * Transaction status
6523
+ */
6524
+ txStatus: string;
6525
+ /**
6526
+ * Input data
6527
+ */
6528
+ input: string;
6529
+ /**
6530
+ * Nonce value
6531
+ */
6532
+ nonce: string;
6533
+ /**
6534
+ * Recipient address
6535
+ */
6536
+ to: string;
6537
+ /**
6538
+ * Transaction index
6539
+ */
6540
+ transactionIndex: number;
6541
+ /**
6542
+ * Value transferred in the transaction
6543
+ */
6544
+ value: string;
6545
+ /**
6546
+ * Transaction type
6547
+ */
6548
+ type: number;
6549
+ /**
6550
+ * Chain ID of the network
6551
+ */
6552
+ chainId: string;
6553
+ /**
6554
+ * Cumulative gas used
6555
+ */
6556
+ receiptCumulativeGasUsed: string;
6557
+ /**
6558
+ * Gas used
6559
+ */
6560
+ receiptGasUsed: string;
6561
+ /**
6562
+ * Effective gas price
6563
+ */
6564
+ receiptEffectiveGasPrice: string;
6565
+ /**
6566
+ * Receipt root
6567
+ */
6568
+ receiptRoot: string;
6569
+ /**
6570
+ * Block timestamp
6571
+ */
6572
+ blockTimestamp: number;
6573
+ /**
6574
+ * Contract address (optional)
6575
+ */
6576
+ contractAddress?: string;
6577
+ /**
6578
+ * ERC20 transfers
6579
+ */
6580
+ erc20Transfers: Array<ERCTransfer>;
6581
+ /**
6582
+ * ERC721 transfers
6583
+ */
6584
+ erc721Transfers: Array<ERCTransfer>;
6585
+ /**
6586
+ * ERC1155 transfers
6587
+ */
6588
+ erc1155Transfers: Array<ERCTransfer>;
6589
+ /**
6590
+ * Internal transactions (optional)
6591
+ */
6592
+ internalTransactions?: Array<InternalTransaction>;
6593
+ /**
6594
+ * Access list (optional)
6595
+ */
6596
+ accessList?: Array<AccessListData>;
6597
+ /**
6598
+ * Network token info (optional)
6599
+ */
6600
+ networkToken?: NetworkTokenInfo;
6601
+ };
6602
+
6603
+ type TransactionEvent = {
6604
+ /**
6605
+ * Transaction details
6606
+ */
6607
+ transaction: Transaction;
6608
+ /**
6609
+ * Array of log events
6610
+ */
6611
+ logs?: Array<Log>;
6612
+ };
6613
+
6614
+ type Unauthorized = {
6615
+ /**
6616
+ * The error message describing the reason for the exception
6617
+ */
6618
+ message: (string | Array<string>);
6619
+ /**
6620
+ * The HTTP status code of the response
6621
+ */
6622
+ statusCode: number;
6623
+ /**
6624
+ * The type of error
6625
+ */
6626
+ error: string;
6627
+ };
6628
+
6629
+ type WebhookAddressActivityResponse = {
6630
+ /**
6631
+ * Webhook ID
6632
+ */
6633
+ webhookId: string;
6634
+ /**
6635
+ * Event type
6636
+ */
6637
+ eventType: WebhookAddressActivityResponse.eventType;
6638
+ /**
6639
+ * Message ID
6640
+ */
6641
+ messageId: string;
6642
+ /**
6643
+ * Event details
6644
+ */
6645
+ event: TransactionEvent;
6646
+ };
6647
+ declare namespace WebhookAddressActivityResponse {
6648
+ /**
6649
+ * Event type
6650
+ */
6651
+ enum eventType {
6652
+ ADDRESS_ACTIVITY = "address_activity"
6653
+ }
6654
+ }
6655
+
6656
+ export { AccessListData, AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, ERCToken, ERCTransfer, EVMAddressActivityRequest, EVMAddressActivityResponse, 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, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityMetadata, PlatformActivityRequest, PlatformActivityResponse, PlatformActivitySubEvents, PlatformAddressActivitySubEventType, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, Transaction, TransactionDetails, TransactionDirectionType, TransactionEvent, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };