@avalabs/glacier-sdk 3.1.0-canary.639f9ba.0 → 3.1.0-canary.6f6b151.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 (56) hide show
  1. package/dist/index.d.ts +1696 -1531
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/ApiFeature.d.ts +7 -0
  6. package/esm/generated/models/ApiFeature.js +1 -0
  7. package/esm/generated/models/BlockchainId.d.ts +2 -0
  8. package/esm/generated/models/BlockchainId.js +1 -1
  9. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  10. package/esm/generated/models/BlockchainIds.js +1 -1
  11. package/esm/generated/models/ChainInfo.d.ts +1 -1
  12. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  13. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  14. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  15. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  16. package/esm/generated/models/Network.d.ts +3 -1
  17. package/esm/generated/models/Network.js +1 -1
  18. package/esm/generated/models/PrimaryNetwork.d.ts +2 -1
  19. package/esm/generated/models/PrimaryNetwork.js +1 -1
  20. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  21. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  22. package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
  23. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
  24. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  25. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  26. package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
  27. package/esm/generated/models/XChainId.d.ts +1 -0
  28. package/esm/generated/models/XChainId.js +1 -1
  29. package/esm/generated/services/{GlacierApiUsageMetricsService.d.ts → DataApiUsageMetricsService.d.ts} +67 -22
  30. package/esm/generated/services/{GlacierApiUsageMetricsService.js → DataApiUsageMetricsService.js} +1 -1
  31. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  32. package/esm/generated/services/EvmBlocksService.d.ts +2 -2
  33. package/esm/generated/services/EvmChainsService.d.ts +18 -6
  34. package/esm/generated/services/EvmChainsService.js +1 -1
  35. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  36. package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
  37. package/esm/generated/services/NfTsService.d.ts +3 -3
  38. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  39. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +3 -3
  40. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  41. package/esm/generated/services/PrimaryNetworkService.d.ts +9 -9
  42. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
  43. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  44. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
  45. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  46. package/esm/generated/services/RpcService.d.ts +1 -1
  47. package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
  48. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  49. package/esm/generated/services/TeleporterService.d.ts +5 -5
  50. package/esm/index.d.ts +8 -3
  51. package/esm/index.js +1 -1
  52. package/package.json +2 -2
  53. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  54. package/esm/generated/models/GlacierApiFeature.js +0 -1
  55. package/esm/generated/models/NetworkType.d.ts +0 -6
  56. package/esm/generated/models/NetworkType.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,592 +54,618 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
- declare class DefaultService {
58
- readonly httpRequest: BaseHttpRequest;
59
- constructor(httpRequest: BaseHttpRequest);
57
+ type LogsFormatMetadata = {
60
58
  /**
61
- * @returns any
62
- * @throws ApiError
59
+ * The IP address of the client that made the request.
63
60
  */
64
- mediaControllerUploadImage(): CancelablePromise<any>;
65
- }
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
+ };
66
71
 
67
72
  /**
68
- * ISO 4217 currency code.
73
+ * The type of request made by the client.
69
74
  */
70
- declare enum CurrencyCode {
71
- USD = "usd",
72
- EUR = "eur",
73
- AUD = "aud",
74
- CAD = "cad",
75
- CHF = "chf",
76
- CLP = "clp",
77
- CNY = "cny",
78
- CZK = "czk",
79
- DKK = "dkk",
80
- GBP = "gbp",
81
- HKD = "hkd",
82
- HUF = "huf",
83
- JPY = "jpy",
84
- NZD = "nzd"
75
+ declare enum RequestType {
76
+ DATA = "data",
77
+ RPC = "rpc"
85
78
  }
86
79
 
87
- type Money = {
88
- currencyCode: CurrencyCode;
80
+ type LogsFormat = {
89
81
  /**
90
- * Monetary value in base 10 decimals.
82
+ * The organization id of the request.
91
83
  */
92
- value: number;
93
- };
94
-
95
- type NativeTokenBalance = {
84
+ orgId: string;
96
85
  /**
97
- * The contract name.
86
+ * The unique log id of the request.
98
87
  */
99
- name: string;
88
+ logId: string;
100
89
  /**
101
- * The contract symbol.
90
+ * The timestamp of the request.
102
91
  */
103
- symbol: string;
92
+ eventTimestamp: number;
104
93
  /**
105
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
94
+ * The apiKey used to make the request.
106
95
  */
107
- decimals: number;
96
+ apiKeyId: string;
108
97
  /**
109
- * The logo uri for the address.
98
+ * The alias of the apiKey used to make the request.
110
99
  */
111
- logoUri?: string;
100
+ apiKeyAlias: string;
112
101
  /**
113
- * The evm chain id.
102
+ * The region of the host for the request made by the client.
114
103
  */
115
- chainId: string;
104
+ hostRegion: string;
105
+ requestType: RequestType;
116
106
  /**
117
- * The token price, if available.
107
+ * The path of the request made by the client.
118
108
  */
119
- price?: Money;
109
+ requestPath: string;
120
110
  /**
121
- * The address balance for the token, in units specified by the `decimals` value for the contract.
111
+ * The number of API credits consumed by the request.
122
112
  */
123
- balance: string;
113
+ apiCreditsConsumed: number;
124
114
  /**
125
- * The monetary value of the balance, if a price is available for the token.
115
+ * The duration of the request in milliseconds.
126
116
  */
127
- balanceValue?: Money;
128
- };
129
-
130
- type GetNativeBalanceResponse = {
117
+ requestDurationMsecs: number;
131
118
  /**
132
- * The native token balance for the address.
119
+ * The response code of the request.
133
120
  */
134
- nativeTokenBalance: NativeTokenBalance;
135
- };
136
-
137
- /**
138
- * The metadata indexing status of the nft.
139
- */
140
- declare enum NftTokenMetadataStatus {
141
- UNKNOWN = "UNKNOWN",
142
- MISSING_TOKEN = "MISSING_TOKEN",
143
- INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
144
- INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
145
- UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
146
- THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
147
- METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
148
- INVALID_METADATA = "INVALID_METADATA",
149
- INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
150
- INDEXED = "INDEXED",
151
- UNINDEXED = "UNINDEXED"
152
- }
153
-
154
- type Erc1155TokenMetadata = {
155
- indexStatus: NftTokenMetadataStatus;
156
- metadataLastUpdatedTimestamp?: number;
157
- name?: string;
158
- symbol?: string;
159
- imageUri?: string;
160
- description?: string;
161
- animationUri?: string;
162
- externalUrl?: string;
163
- background?: string;
164
- decimals?: number;
165
- properties?: string;
166
- };
167
-
168
- type Erc1155TokenBalance = {
121
+ responseCode: number;
169
122
  /**
170
- * A wallet or contract address in mixed-case checksum encoding.
123
+ * The chain id of the request.
171
124
  */
172
- address: string;
173
- ercType: Erc1155TokenBalance.ercType;
174
- tokenId: string;
175
- tokenUri: string;
176
- metadata: Erc1155TokenMetadata;
125
+ chainId?: string;
177
126
  /**
178
- * The evm chain id.
127
+ * The rpc method of the request.
179
128
  */
180
- chainId: string;
129
+ rpcMethod?: string;
181
130
  /**
182
- * The address balance for the token, in units specified by the `decimals` value for the contract.
131
+ * The metadata of the request.
183
132
  */
184
- balance: string;
185
- };
186
- declare namespace Erc1155TokenBalance {
187
- enum ercType {
188
- ERC_1155 = "ERC-1155"
189
- }
190
- }
191
-
192
- type Erc721TokenMetadata = {
193
- indexStatus: NftTokenMetadataStatus;
194
- metadataLastUpdatedTimestamp?: number;
195
- name?: string;
196
- symbol?: string;
197
- imageUri?: string;
198
- description?: string;
199
- animationUri?: string;
200
- externalUrl?: string;
201
- background?: string;
202
- attributes?: string;
133
+ metadata: LogsFormatMetadata;
203
134
  };
204
135
 
205
- type Erc721TokenBalance = {
136
+ type LogsResponseDTO = {
206
137
  /**
207
- * A wallet or contract address in mixed-case checksum encoding.
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.
208
139
  */
209
- address: string;
140
+ nextPageToken?: string;
210
141
  /**
211
- * The contract name.
142
+ * The organization id of the request.
212
143
  */
213
- name: string;
144
+ orgId: string;
214
145
  /**
215
- * The contract symbol.
146
+ * An array of logs representing the requests made by clients.
216
147
  */
217
- symbol: string;
218
- ercType: Erc721TokenBalance.ercType;
219
- tokenId: string;
220
- tokenUri: string;
221
- metadata: Erc721TokenMetadata;
148
+ logs: Array<LogsFormat>;
149
+ };
150
+
151
+ type RpcUsageMetricsValueAggregated = {
222
152
  /**
223
- * A wallet or contract address in mixed-case checksum encoding.
153
+ * The total number of requests
224
154
  */
225
- ownerAddress?: string;
155
+ totalRequests: number;
226
156
  /**
227
- * The evm chain id.
157
+ * The number of API credits used
228
158
  */
229
- chainId: string;
230
- };
231
- declare namespace Erc721TokenBalance {
232
- enum ercType {
233
- ERC_721 = "ERC-721"
234
- }
235
- }
236
-
237
- type ListCollectibleBalancesResponse = {
159
+ apiCreditsUsed: number;
238
160
  /**
239
- * 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.
161
+ * The number of requests per second
240
162
  */
241
- nextPageToken?: string;
163
+ requestsPerSecond: number;
242
164
  /**
243
- * The list of ERC-721 and ERC-1155 token balances for the address.
165
+ * The success rate percentage
244
166
  */
245
- collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
246
- };
247
-
248
- type ListErc1155BalancesResponse = {
167
+ successRatePercent: number;
249
168
  /**
250
- * 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.
169
+ * The median response time in milliseconds
251
170
  */
252
- nextPageToken?: string;
171
+ medianResponseTimeMsecs: number;
253
172
  /**
254
- * The list of ERC-1155 token balances for the address.
173
+ * The number of invalid requests
255
174
  */
256
- erc1155TokenBalances: Array<Erc1155TokenBalance>;
257
- };
258
-
259
- type Erc20TokenBalance = {
175
+ invalidRequests: number;
260
176
  /**
261
- * A wallet or contract address in mixed-case checksum encoding.
177
+ * Column name used for data aggregation
262
178
  */
263
- address: string;
179
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
264
180
  /**
265
- * The contract name.
181
+ * The value of the column used for data aggregation
266
182
  */
267
- name: string;
183
+ groupValue?: (string | number);
184
+ };
185
+ declare namespace RpcUsageMetricsValueAggregated {
268
186
  /**
269
- * The contract symbol.
187
+ * Column name used for data aggregation
270
188
  */
271
- symbol: string;
189
+ enum groupedBy {
190
+ RPC_METHOD = "rpcMethod",
191
+ RESPONSE_CODE = "responseCode",
192
+ RL_BYPASS_TOKEN = "rlBypassToken",
193
+ NONE = "None"
194
+ }
195
+ }
196
+
197
+ type RpcMetrics = {
272
198
  /**
273
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
199
+ * The timestamp of the metrics value
274
200
  */
275
- decimals: number;
201
+ timestamp: number;
276
202
  /**
277
- * The logo uri for the address.
203
+ * The metrics values for the timestamp
278
204
  */
279
- logoUri?: string;
280
- ercType: Erc20TokenBalance.ercType;
205
+ values: Array<RpcUsageMetricsValueAggregated>;
206
+ };
207
+
208
+ type RpcUsageMetricsResponseDTO = {
281
209
  /**
282
- * The token price, if available.
210
+ * Duration in which the metrics value is aggregated
283
211
  */
284
- price?: Money;
212
+ aggregateDuration: string;
285
213
  /**
286
- * The evm chain id.
214
+ * ChainId for which the metrics are aggregated
287
215
  */
288
216
  chainId: string;
289
217
  /**
290
- * The address balance for the token, in units specified by the `decimals` value for the contract.
291
- */
292
- balance: string;
293
- /**
294
- * The monetary value of the balance, if a price is available for the token.
218
+ * Metrics values
295
219
  */
296
- balanceValue?: Money;
220
+ metrics: Array<RpcMetrics>;
297
221
  };
298
- declare namespace Erc20TokenBalance {
299
- enum ercType {
300
- ERC_20 = "ERC-20"
222
+
223
+ declare enum TimeIntervalGranularityExtended {
224
+ MINUTE = "minute",
225
+ HOURLY = "hourly",
226
+ DAILY = "daily",
227
+ WEEKLY = "weekly",
228
+ MONTHLY = "monthly"
229
+ }
230
+
231
+ declare enum UsageMetricsGroupByEnum {
232
+ REQUEST_PATH = "requestPath",
233
+ RESPONSE_CODE = "responseCode",
234
+ CHAIN_ID = "chainId",
235
+ API_KEY_ID = "apiKeyId",
236
+ REQUEST_TYPE = "requestType"
237
+ }
238
+
239
+ type UsageMetricsValueDTO = {
240
+ /**
241
+ * Column name used for data aggregation
242
+ */
243
+ groupedBy: UsageMetricsValueDTO.groupedBy;
244
+ /**
245
+ * The value of the column used for data aggregation
246
+ */
247
+ groupValue?: (string | number);
248
+ /**
249
+ * The total number of requests
250
+ */
251
+ totalRequests: number;
252
+ /**
253
+ * The number of requests per second
254
+ */
255
+ requestsPerSecond: number;
256
+ /**
257
+ * The success rate percentage
258
+ */
259
+ successRatePercent: number;
260
+ /**
261
+ * The median response time in milliseconds
262
+ */
263
+ medianResponseTimeMsecs: number;
264
+ /**
265
+ * The number of invalid requests
266
+ */
267
+ invalidRequests: number;
268
+ /**
269
+ * The number of API credits used
270
+ */
271
+ apiCreditsUsed: number;
272
+ /**
273
+ * The number of API credits wasted on invalid requests
274
+ */
275
+ apiCreditsWasted: number;
276
+ };
277
+ declare namespace UsageMetricsValueDTO {
278
+ /**
279
+ * Column name used for data aggregation
280
+ */
281
+ enum groupedBy {
282
+ REQUEST_PATH = "requestPath",
283
+ RESPONSE_CODE = "responseCode",
284
+ CHAIN_ID = "chainId",
285
+ API_KEY_ID = "apiKeyId",
286
+ REQUEST_TYPE = "requestType",
287
+ NONE = "None"
301
288
  }
302
289
  }
303
290
 
304
- type ListErc20BalancesResponse = {
291
+ type Metric = {
305
292
  /**
306
- * 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.
293
+ * The timestamp of the metrics value
307
294
  */
308
- nextPageToken?: string;
295
+ timestamp: number;
309
296
  /**
310
- * The list of ERC-20 token balances for the address.
297
+ * The metrics values for the timestamp
311
298
  */
312
- erc20TokenBalances: Array<Erc20TokenBalance>;
299
+ values: Array<UsageMetricsValueDTO>;
313
300
  };
314
301
 
315
- type ListErc721BalancesResponse = {
302
+ type UsageMetricsResponseDTO = {
316
303
  /**
317
- * 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.
304
+ * Duration in which the metrics value is aggregated
318
305
  */
319
- nextPageToken?: string;
306
+ aggregateDuration: string;
320
307
  /**
321
- * The list of ERC-721 token balances for the address.
308
+ * Org ID for which the metrics are aggregated
322
309
  */
323
- erc721TokenBalances: Array<Erc721TokenBalance>;
310
+ orgId: string;
311
+ /**
312
+ * Metrics values
313
+ */
314
+ metrics: Array<Metric>;
324
315
  };
325
316
 
326
- declare class EvmBalancesService {
317
+ declare class DataApiUsageMetricsService {
327
318
  readonly httpRequest: BaseHttpRequest;
328
319
  constructor(httpRequest: BaseHttpRequest);
329
320
  /**
330
- * Get native token balance
331
- * Gets native token balance of a wallet address.
332
- *
333
- * Balance at a given block can be retrieved with the `blockNumber` parameter.
334
- * @returns GetNativeBalanceResponse Successful response
321
+ * Get usage metrics for the Data API
322
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
323
+ * @returns UsageMetricsResponseDTO Successful response
335
324
  * @throws ApiError
336
325
  */
337
- getNativeBalance({ chainId, address, blockNumber, currency, }: {
338
- /**
339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
340
- */
341
- chainId: string;
342
- /**
343
- * A wallet address.
344
- */
345
- address: string;
326
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
346
327
  /**
347
- * The block number, if not defined the block number will be the latest block.
328
+ * Organization ID to fetch usage metrics for
348
329
  */
349
- blockNumber?: string;
330
+ orgId?: string;
350
331
  /**
351
- * The currency that return values should use. Defaults to USD.
332
+ * 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.
352
333
  */
353
- currency?: CurrencyCode;
354
- }): CancelablePromise<GetNativeBalanceResponse>;
355
- /**
356
- * List ERC-20 balances
357
- * Lists ERC-20 token balances of a wallet address.
358
- *
359
- * Balance at a given block can be retrieved with the `blockNumber` parameter.
360
- *
361
- * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
362
- * @returns ListErc20BalancesResponse Successful response
363
- * @throws ApiError
364
- */
365
- listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
334
+ startTimestamp?: number;
366
335
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
336
+ * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
368
337
  */
369
- chainId: string;
338
+ endTimestamp?: number;
370
339
  /**
371
- * A wallet address.
340
+ * Time interval granularity for data aggregation
372
341
  */
373
- address: string;
342
+ timeInterval?: TimeIntervalGranularityExtended;
374
343
  /**
375
- * The block number, if not defined the block number will be the latest block.
344
+ * Query param for the criterion used for grouping metrics
376
345
  */
377
- blockNumber?: string;
346
+ groupBy?: UsageMetricsGroupByEnum;
378
347
  /**
379
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
348
+ * Filter data by chain ID.
380
349
  */
381
- pageToken?: string;
350
+ chainId?: string;
382
351
  /**
383
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
352
+ * Filter data by request path.
384
353
  */
385
- pageSize?: number;
354
+ requestPath?: string;
386
355
  /**
387
- * whether to filter out spam tokens from the response. Default is true.
356
+ * Filter data by response status code.
388
357
  */
389
- filterSpamTokens?: boolean;
358
+ responseCode?: string;
390
359
  /**
391
- * A comma separated list of contract addresses to filter by.
360
+ * Filter data by request type.
392
361
  */
393
- contractAddresses?: string;
362
+ requestType?: 'data' | 'rpc';
394
363
  /**
395
- * The currency that return values should use. Defaults to USD.
364
+ * Filter data by API key ID.
396
365
  */
397
- currency?: CurrencyCode;
398
- }): CancelablePromise<ListErc20BalancesResponse>;
366
+ apiKeyId?: string;
367
+ }): CancelablePromise<UsageMetricsResponseDTO>;
399
368
  /**
400
- * List ERC-721 balances
401
- * Lists ERC-721 token balances of a wallet address.
402
- *
403
- * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
404
- * @returns ListErc721BalancesResponse Successful response
369
+ * Get logs for requests made by client
370
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
371
+ * @returns LogsResponseDTO Successful response
405
372
  * @throws ApiError
406
373
  */
407
- listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
374
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
408
375
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
376
+ * Organization ID to fetch usage metrics for
410
377
  */
411
- chainId: string;
378
+ orgId?: string;
412
379
  /**
413
- * A wallet address.
380
+ * 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.
414
381
  */
415
- address: string;
382
+ startTimestamp?: number;
416
383
  /**
417
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
384
+ * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
418
385
  */
419
- pageToken?: string;
386
+ endTimestamp?: number;
420
387
  /**
421
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
388
+ * Filter data by chain ID.
422
389
  */
423
- pageSize?: number;
390
+ chainId?: string;
424
391
  /**
425
- * A contract addresses to filter by.
392
+ * Filter data by request path.
426
393
  */
427
- contractAddress?: string;
428
- }): CancelablePromise<ListErc721BalancesResponse>;
429
- /**
430
- * List ERC-1155 balances
431
- * Lists ERC-1155 token balances of a wallet address.
432
- *
433
- * Balance at a given block can be retrieved with the `blockNumber` parameter.
434
- *
435
- * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
436
- * @returns ListErc1155BalancesResponse Successful response
437
- * @throws ApiError
438
- */
439
- listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
394
+ requestPath?: string;
440
395
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
396
+ * Filter data by response status code.
442
397
  */
443
- chainId: string;
398
+ responseCode?: string;
444
399
  /**
445
- * A wallet address.
400
+ * Filter data by request type.
446
401
  */
447
- address: string;
402
+ requestType?: 'data' | 'rpc';
448
403
  /**
449
- * The block number, if not defined the block number will be the latest block.
404
+ * Filter data by API key ID.
450
405
  */
451
- blockNumber?: string;
406
+ apiKeyId?: string;
452
407
  /**
453
408
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
454
409
  */
455
410
  pageToken?: string;
456
411
  /**
457
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
412
+ * The maximum number of items to return.
458
413
  */
459
414
  pageSize?: number;
460
- /**
461
- * A contract addresses to filter by.
462
- */
463
- contractAddress?: string;
464
- }): CancelablePromise<ListErc1155BalancesResponse>;
415
+ }): CancelablePromise<LogsResponseDTO>;
465
416
  /**
466
- * List collectible (ERC-721/ERC-1155) balances
467
- * Lists ERC-721 and ERC-1155 token balances of a wallet address.
468
- *
469
- * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
470
- * @returns ListCollectibleBalancesResponse Successful response
417
+ * Get usage metrics for the Subnet RPC
418
+ * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
+ * @returns RpcUsageMetricsResponseDTO Successful response
471
420
  * @throws ApiError
472
421
  */
473
- listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
422
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
474
423
  /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
424
+ * Query param for setting time interval of data aggregation.
476
425
  */
477
- chainId: string;
426
+ timeInterval?: string;
478
427
  /**
479
- * A wallet address.
428
+ * 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.
480
429
  */
481
- address: string;
430
+ startTimestamp?: number;
482
431
  /**
483
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
432
+ * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
484
433
  */
485
- pageToken?: string;
434
+ endTimestamp?: number;
486
435
  /**
487
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
436
+ * Query param for the criterion used for grouping metrics
488
437
  */
489
- pageSize?: number;
438
+ groupBy?: UsageMetricsGroupByEnum;
490
439
  /**
491
- * A contract addresses to filter by.
440
+ * Filter data by chain ID.
492
441
  */
493
- contractAddress?: string;
494
- }): CancelablePromise<ListCollectibleBalancesResponse>;
442
+ chainId?: string;
443
+ /**
444
+ * Filter data by request path.
445
+ */
446
+ requestPath?: string;
447
+ /**
448
+ * Filter data by response status code.
449
+ */
450
+ responseCode?: string;
451
+ /**
452
+ * Filter data by RPC method.
453
+ */
454
+ rpcMethod?: string;
455
+ /**
456
+ * Filter data by Rl Bypass API Token.
457
+ */
458
+ rlBypassApiToken?: string;
459
+ }): CancelablePromise<RpcUsageMetricsResponseDTO>;
495
460
  }
496
461
 
497
- type GetEvmBlockResponse = {
462
+ declare class DefaultService {
463
+ readonly httpRequest: BaseHttpRequest;
464
+ constructor(httpRequest: BaseHttpRequest);
498
465
  /**
499
- * The block number on the chain.
466
+ * @returns any
467
+ * @throws ApiError
500
468
  */
501
- blockNumber: string;
469
+ mediaControllerUploadImage(): CancelablePromise<any>;
470
+ }
471
+
472
+ /**
473
+ * ISO 4217 currency code.
474
+ */
475
+ declare enum CurrencyCode {
476
+ USD = "usd",
477
+ EUR = "eur",
478
+ AUD = "aud",
479
+ CAD = "cad",
480
+ CHF = "chf",
481
+ CLP = "clp",
482
+ CNY = "cny",
483
+ CZK = "czk",
484
+ DKK = "dkk",
485
+ GBP = "gbp",
486
+ HKD = "hkd",
487
+ HUF = "huf",
488
+ JPY = "jpy",
489
+ NZD = "nzd"
490
+ }
491
+
492
+ type Money = {
493
+ currencyCode: CurrencyCode;
502
494
  /**
503
- * The block finality timestamp.
495
+ * Monetary value in base 10 decimals.
504
496
  */
505
- blockTimestamp: number;
497
+ value: number;
498
+ };
499
+
500
+ type NativeTokenBalance = {
506
501
  /**
507
- * The block hash identifier.
502
+ * The contract name.
508
503
  */
509
- blockHash: string;
504
+ name: string;
510
505
  /**
511
- * The number of evm transactions in the block.
506
+ * The contract symbol.
512
507
  */
513
- txCount: number;
508
+ symbol: string;
514
509
  /**
515
- * The base gas fee for a transaction to be included in the block.
510
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
516
511
  */
517
- baseFee: string;
512
+ decimals: number;
518
513
  /**
519
- * The gas used for transactions in the block.
514
+ * The logo uri for the address.
520
515
  */
521
- gasUsed: string;
516
+ logoUri?: string;
522
517
  /**
523
- * The total gas limit set for transactions in the block.
518
+ * The evm chain id.
524
519
  */
525
- gasLimit: string;
526
- gasCost: string;
520
+ chainId: string;
527
521
  /**
528
- * The hash of the parent block.
522
+ * The token price, if available.
529
523
  */
530
- parentHash: string;
524
+ price?: Money;
531
525
  /**
532
- * The amount of fees spent/burned for transactions in the block.
526
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
533
527
  */
534
- feesSpent: string;
528
+ balance: string;
535
529
  /**
536
- * The cumulative number of transactions for the chain including this block.
530
+ * The monetary value of the balance, if a price is available for the token.
537
531
  */
538
- cumulativeTransactions: string;
532
+ balanceValue?: Money;
539
533
  };
540
534
 
541
- type EvmBlock = {
542
- /**
543
- * The block number on the chain.
544
- */
545
- blockNumber: string;
535
+ type GetNativeBalanceResponse = {
546
536
  /**
547
- * The block finality timestamp.
537
+ * The native token balance for the address.
548
538
  */
549
- blockTimestamp: number;
539
+ nativeTokenBalance: NativeTokenBalance;
540
+ };
541
+
542
+ /**
543
+ * The metadata indexing status of the nft.
544
+ */
545
+ declare enum NftTokenMetadataStatus {
546
+ UNKNOWN = "UNKNOWN",
547
+ MISSING_TOKEN = "MISSING_TOKEN",
548
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
549
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
550
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
551
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
552
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
553
+ INVALID_METADATA = "INVALID_METADATA",
554
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
555
+ INDEXED = "INDEXED",
556
+ UNINDEXED = "UNINDEXED"
557
+ }
558
+
559
+ type Erc1155TokenMetadata = {
560
+ indexStatus: NftTokenMetadataStatus;
561
+ metadataLastUpdatedTimestamp?: number;
562
+ name?: string;
563
+ symbol?: string;
564
+ imageUri?: string;
565
+ description?: string;
566
+ animationUri?: string;
567
+ externalUrl?: string;
568
+ background?: string;
569
+ decimals?: number;
570
+ properties?: string;
571
+ };
572
+
573
+ type Erc1155TokenBalance = {
550
574
  /**
551
- * The block hash identifier.
575
+ * A wallet or contract address in mixed-case checksum encoding.
552
576
  */
553
- blockHash: string;
577
+ address: string;
578
+ ercType: Erc1155TokenBalance.ercType;
579
+ tokenId: string;
580
+ tokenUri: string;
581
+ metadata: Erc1155TokenMetadata;
554
582
  /**
555
- * The number of evm transactions in the block.
583
+ * The evm chain id.
556
584
  */
557
- txCount: number;
585
+ chainId: string;
558
586
  /**
559
- * The base gas fee for a transaction to be included in the block.
587
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
560
588
  */
561
- baseFee: string;
589
+ balance: string;
590
+ };
591
+ declare namespace Erc1155TokenBalance {
592
+ enum ercType {
593
+ ERC_1155 = "ERC-1155"
594
+ }
595
+ }
596
+
597
+ type Erc721TokenMetadata = {
598
+ indexStatus: NftTokenMetadataStatus;
599
+ metadataLastUpdatedTimestamp?: number;
600
+ name?: string;
601
+ symbol?: string;
602
+ imageUri?: string;
603
+ description?: string;
604
+ animationUri?: string;
605
+ externalUrl?: string;
606
+ background?: string;
607
+ attributes?: string;
608
+ };
609
+
610
+ type Erc721TokenBalance = {
562
611
  /**
563
- * The gas used for transactions in the block.
612
+ * A wallet or contract address in mixed-case checksum encoding.
564
613
  */
565
- gasUsed: string;
614
+ address: string;
566
615
  /**
567
- * The total gas limit set for transactions in the block.
616
+ * The contract name.
568
617
  */
569
- gasLimit: string;
570
- gasCost: string;
618
+ name: string;
571
619
  /**
572
- * The hash of the parent block.
620
+ * The contract symbol.
573
621
  */
574
- parentHash: string;
622
+ symbol: string;
623
+ ercType: Erc721TokenBalance.ercType;
624
+ tokenId: string;
625
+ tokenUri: string;
626
+ metadata: Erc721TokenMetadata;
575
627
  /**
576
- * The amount of fees spent/burned for transactions in the block.
628
+ * A wallet or contract address in mixed-case checksum encoding.
577
629
  */
578
- feesSpent: string;
630
+ ownerAddress?: string;
579
631
  /**
580
- * The cumulative number of transactions for the chain including this block.
632
+ * The evm chain id.
581
633
  */
582
- cumulativeTransactions: string;
634
+ chainId: string;
583
635
  };
636
+ declare namespace Erc721TokenBalance {
637
+ enum ercType {
638
+ ERC_721 = "ERC-721"
639
+ }
640
+ }
584
641
 
585
- type ListEvmBlocksResponse = {
642
+ type ListCollectibleBalancesResponse = {
586
643
  /**
587
644
  * 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.
588
645
  */
589
646
  nextPageToken?: string;
590
- blocks: Array<EvmBlock>;
647
+ /**
648
+ * The list of ERC-721 and ERC-1155 token balances for the address.
649
+ */
650
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
591
651
  };
592
652
 
593
- declare class EvmBlocksService {
594
- readonly httpRequest: BaseHttpRequest;
595
- constructor(httpRequest: BaseHttpRequest);
653
+ type ListErc1155BalancesResponse = {
596
654
  /**
597
- * List latest blocks
598
- * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
599
- * @returns ListEvmBlocksResponse Successful response
600
- * @throws ApiError
655
+ * 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.
601
656
  */
602
- getLatestBlocks({ chainId, pageToken, pageSize, }: {
603
- /**
604
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
605
- */
606
- chainId: string;
607
- /**
608
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
609
- */
610
- pageToken?: string;
611
- /**
612
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
613
- */
614
- pageSize?: number;
615
- }): CancelablePromise<ListEvmBlocksResponse>;
657
+ nextPageToken?: string;
616
658
  /**
617
- * Get block
618
- * Gets the details of an individual block on the EVM-compatible chain.
619
- * @returns GetEvmBlockResponse Successful response
620
- * @throws ApiError
659
+ * The list of ERC-1155 token balances for the address.
621
660
  */
622
- getBlock({ chainId, blockId, }: {
623
- /**
624
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
625
- */
626
- chainId: string;
627
- /**
628
- * A block identifier which is either a block number or the block hash.
629
- */
630
- blockId: string;
631
- }): CancelablePromise<GetEvmBlockResponse>;
632
- }
633
-
634
- /**
635
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
- */
637
- declare enum ChainStatus {
638
- OK = "OK",
639
- UNAVAILABLE = "UNAVAILABLE"
640
- }
661
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
662
+ };
641
663
 
642
- type NetworkToken = {
664
+ type Erc20TokenBalance = {
665
+ /**
666
+ * A wallet or contract address in mixed-case checksum encoding.
667
+ */
668
+ address: string;
643
669
  /**
644
670
  * The contract name.
645
671
  */
@@ -656,727 +682,856 @@ type NetworkToken = {
656
682
  * The logo uri for the address.
657
683
  */
658
684
  logoUri?: string;
659
- description?: string;
685
+ ercType: Erc20TokenBalance.ercType;
686
+ /**
687
+ * The token price, if available.
688
+ */
689
+ price?: Money;
690
+ /**
691
+ * The evm chain id.
692
+ */
693
+ chainId: string;
694
+ /**
695
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
696
+ */
697
+ balance: string;
698
+ /**
699
+ * The monetary value of the balance, if a price is available for the token.
700
+ */
701
+ balanceValue?: Money;
660
702
  };
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"
703
+ declare namespace Erc20TokenBalance {
704
+ enum ercType {
705
+ ERC_20 = "ERC-20"
706
+ }
695
707
  }
696
708
 
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'>;
709
+ type ListErc20BalancesResponse = {
710
+ /**
711
+ * 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.
712
+ */
713
+ nextPageToken?: string;
714
+ /**
715
+ * The list of ERC-20 token balances for the address.
716
+ */
717
+ erc20TokenBalances: Array<Erc20TokenBalance>;
715
718
  };
716
719
 
717
- type ListChainsResponse = {
718
- chains: Array<ChainInfo>;
720
+ type ListErc721BalancesResponse = {
721
+ /**
722
+ * 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.
723
+ */
724
+ nextPageToken?: string;
725
+ /**
726
+ * The list of ERC-721 token balances for the address.
727
+ */
728
+ erc721TokenBalances: Array<Erc721TokenBalance>;
719
729
  };
720
730
 
721
- declare enum NetworkType {
722
- MAINNET = "mainnet",
723
- TESTNET = "testnet"
724
- }
725
-
726
- declare class EvmChainsService {
731
+ declare class EvmBalancesService {
727
732
  readonly httpRequest: BaseHttpRequest;
728
733
  constructor(httpRequest: BaseHttpRequest);
729
734
  /**
730
- * List chains
731
- * Lists the supported EVM-compatible chains. Filterable by network.
732
- * @returns ListChainsResponse Successful response
735
+ * Get native token balance
736
+ * Gets native token balance of a wallet address.
737
+ *
738
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
739
+ * @returns GetNativeBalanceResponse Successful response
733
740
  * @throws ApiError
734
741
  */
735
- supportedChains({ network, feature, }: {
742
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
736
743
  /**
737
- * mainnet or testnet.
744
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
738
745
  */
739
- network?: NetworkType;
746
+ chainId: string;
740
747
  /**
741
- * Filter by feature.
748
+ * A wallet address.
742
749
  */
743
- feature?: GlacierApiFeature;
744
- }): CancelablePromise<ListChainsResponse>;
750
+ address: string;
751
+ /**
752
+ * The block number, if not defined the block number will be the latest block.
753
+ */
754
+ blockNumber?: string;
755
+ /**
756
+ * The currency that return values should use. Defaults to USD.
757
+ */
758
+ currency?: CurrencyCode;
759
+ }): CancelablePromise<GetNativeBalanceResponse>;
745
760
  /**
746
- * Get chain information
747
- * Gets chain information for the EVM-compatible chain if supported by the api.
748
- * @returns GetChainResponse Successful response
761
+ * List ERC-20 balances
762
+ * Lists ERC-20 token balances of a wallet address.
763
+ *
764
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
765
+ *
766
+ * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
767
+ * @returns ListErc20BalancesResponse Successful response
749
768
  * @throws ApiError
750
769
  */
751
- getChainInfo({ chainId, }: {
770
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
752
771
  /**
753
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
772
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
773
  */
755
774
  chainId: string;
756
- }): CancelablePromise<GetChainResponse>;
757
- }
758
-
759
- type ImageAsset = {
760
- assetId?: string;
775
+ /**
776
+ * A wallet address.
777
+ */
778
+ address: string;
779
+ /**
780
+ * The block number, if not defined the block number will be the latest block.
781
+ */
782
+ blockNumber?: string;
783
+ /**
784
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
785
+ */
786
+ pageToken?: string;
787
+ /**
788
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
789
+ */
790
+ pageSize?: number;
791
+ /**
792
+ * whether to filter out spam tokens from the response. Default is true.
793
+ */
794
+ filterSpamTokens?: boolean;
795
+ /**
796
+ * A comma separated list of contract addresses to filter by.
797
+ */
798
+ contractAddresses?: string;
799
+ /**
800
+ * The currency that return values should use. Defaults to USD.
801
+ */
802
+ currency?: CurrencyCode;
803
+ }): CancelablePromise<ListErc20BalancesResponse>;
761
804
  /**
762
- * OUTPUT ONLY
805
+ * List ERC-721 balances
806
+ * Lists ERC-721 token balances of a wallet address.
807
+ *
808
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
809
+ * @returns ListErc721BalancesResponse Successful response
810
+ * @throws ApiError
763
811
  */
764
- imageUri?: string;
765
- };
766
-
767
- type PricingProviders = {
768
- coingeckoCoinId?: string;
769
- };
770
-
771
- declare enum ResourceLinkType {
772
- BLOG = "Blog",
773
- COIN_GECKO = "CoinGecko",
774
- COIN_MARKET_CAP = "CoinMarketCap",
775
- DISCORD = "Discord",
776
- DOCUMENTATION = "Documentation",
777
- FACEBOOK = "Facebook",
778
- GITHUB = "Github",
779
- INSTAGRAM = "Instagram",
780
- LINKED_IN = "LinkedIn",
781
- MEDIUM = "Medium",
782
- REDDIT = "Reddit",
783
- SUPPORT = "Support",
784
- TELEGRAM = "Telegram",
785
- TIK_TOK = "TikTok",
786
- TWITTER = "Twitter",
787
- WEBSITE = "Website",
788
- WHITEPAPER = "Whitepaper",
789
- YOUTUBE = "Youtube"
790
- }
791
-
792
- type ResourceLink = {
793
- type: ResourceLinkType;
794
- url: string;
795
- };
796
-
797
- type ContractSubmissionErc1155 = {
798
- description?: string;
799
- officialSite?: string;
800
- email?: string;
801
- logoAsset?: ImageAsset;
802
- bannerAsset?: ImageAsset;
803
- color?: string;
804
- resourceLinks?: Array<ResourceLink>;
805
- tags?: Array<string>;
812
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
813
+ /**
814
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
815
+ */
816
+ chainId: string;
817
+ /**
818
+ * A wallet address.
819
+ */
820
+ address: string;
821
+ /**
822
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
823
+ */
824
+ pageToken?: string;
825
+ /**
826
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
827
+ */
828
+ pageSize?: number;
829
+ /**
830
+ * A contract addresses to filter by.
831
+ */
832
+ contractAddress?: string;
833
+ }): CancelablePromise<ListErc721BalancesResponse>;
806
834
  /**
807
- * The contract name.
835
+ * List ERC-1155 balances
836
+ * Lists ERC-1155 token balances of a wallet address.
837
+ *
838
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
839
+ *
840
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
841
+ * @returns ListErc1155BalancesResponse Successful response
842
+ * @throws ApiError
808
843
  */
809
- name: string;
810
- ercType: ContractSubmissionErc1155.ercType;
844
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
845
+ /**
846
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
847
+ */
848
+ chainId: string;
849
+ /**
850
+ * A wallet address.
851
+ */
852
+ address: string;
853
+ /**
854
+ * The block number, if not defined the block number will be the latest block.
855
+ */
856
+ blockNumber?: string;
857
+ /**
858
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
859
+ */
860
+ pageToken?: string;
861
+ /**
862
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
863
+ */
864
+ pageSize?: number;
865
+ /**
866
+ * A contract addresses to filter by.
867
+ */
868
+ contractAddress?: string;
869
+ }): CancelablePromise<ListErc1155BalancesResponse>;
811
870
  /**
812
- * The contract symbol.
813
- */
814
- symbol: string;
815
- pricingProviders?: PricingProviders;
816
- };
817
- declare namespace ContractSubmissionErc1155 {
818
- enum ercType {
819
- ERC_1155 = "ERC-1155"
820
- }
871
+ * List collectible (ERC-721/ERC-1155) balances
872
+ * Lists ERC-721 and ERC-1155 token balances of a wallet address.
873
+ *
874
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
875
+ * @returns ListCollectibleBalancesResponse Successful response
876
+ * @throws ApiError
877
+ */
878
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
879
+ /**
880
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
881
+ */
882
+ chainId: string;
883
+ /**
884
+ * A wallet address.
885
+ */
886
+ address: string;
887
+ /**
888
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
889
+ */
890
+ pageToken?: string;
891
+ /**
892
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
893
+ */
894
+ pageSize?: number;
895
+ /**
896
+ * A contract addresses to filter by.
897
+ */
898
+ contractAddress?: string;
899
+ }): CancelablePromise<ListCollectibleBalancesResponse>;
821
900
  }
822
901
 
823
- type ContractSubmissionErc20 = {
824
- description?: string;
825
- officialSite?: string;
826
- email?: string;
827
- logoAsset?: ImageAsset;
828
- bannerAsset?: ImageAsset;
829
- color?: string;
830
- resourceLinks?: Array<ResourceLink>;
831
- tags?: Array<string>;
902
+ type GetEvmBlockResponse = {
832
903
  /**
833
- * The contract name.
904
+ * The block number on the chain.
834
905
  */
835
- name: string;
836
- ercType: ContractSubmissionErc20.ercType;
906
+ blockNumber: string;
837
907
  /**
838
- * The contract symbol.
908
+ * The block finality timestamp.
839
909
  */
840
- symbol: string;
841
- pricingProviders?: PricingProviders;
842
- };
843
- declare namespace ContractSubmissionErc20 {
844
- enum ercType {
845
- ERC_20 = "ERC-20"
846
- }
847
- }
848
-
849
- type ContractSubmissionErc721 = {
850
- description?: string;
851
- officialSite?: string;
852
- email?: string;
853
- logoAsset?: ImageAsset;
854
- bannerAsset?: ImageAsset;
855
- color?: string;
856
- resourceLinks?: Array<ResourceLink>;
857
- tags?: Array<string>;
910
+ blockTimestamp: number;
858
911
  /**
859
- * The contract name.
912
+ * The block hash identifier.
860
913
  */
861
- name: string;
862
- ercType: ContractSubmissionErc721.ercType;
914
+ blockHash: string;
863
915
  /**
864
- * The contract symbol.
916
+ * The number of evm transactions in the block.
865
917
  */
866
- symbol: string;
867
- };
868
- declare namespace ContractSubmissionErc721 {
869
- enum ercType {
870
- ERC_721 = "ERC-721"
871
- }
872
- }
873
-
874
- type ContractSubmissionUnknown = {
875
- description?: string;
876
- officialSite?: string;
877
- email?: string;
878
- logoAsset?: ImageAsset;
879
- bannerAsset?: ImageAsset;
880
- color?: string;
881
- resourceLinks?: Array<ResourceLink>;
882
- tags?: Array<string>;
918
+ txCount: number;
883
919
  /**
884
- * The contract name.
920
+ * The base gas fee for a transaction to be included in the block.
885
921
  */
886
- name: string;
887
- ercType: ContractSubmissionUnknown.ercType;
888
- };
889
- declare namespace ContractSubmissionUnknown {
890
- enum ercType {
891
- UNKNOWN = "UNKNOWN"
892
- }
893
- }
894
-
895
- type ContractSubmissionBody = {
896
- contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
897
- };
898
-
899
- type ContractDeploymentDetails = {
900
- txHash: string;
922
+ baseFee: string;
901
923
  /**
902
- * The address that initiated the transaction which deployed this contract.
924
+ * The gas used for transactions in the block.
903
925
  */
904
- deployerAddress: string;
926
+ gasUsed: string;
905
927
  /**
906
- * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
928
+ * The total gas limit set for transactions in the block.
907
929
  */
908
- deployerContractAddress?: string;
909
- };
910
-
911
- type Erc1155Contract = {
930
+ gasLimit: string;
931
+ gasCost: string;
912
932
  /**
913
- * The contract name.
933
+ * The hash of the parent block.
914
934
  */
915
- name?: string;
916
- description?: string;
917
- officialSite?: string;
918
- email?: string;
919
- logoAsset?: ImageAsset;
920
- bannerAsset?: ImageAsset;
921
- color?: string;
922
- resourceLinks?: Array<ResourceLink>;
923
- tags?: Array<string>;
935
+ parentHash: string;
924
936
  /**
925
- * A wallet or contract address in mixed-case checksum encoding.
937
+ * The amount of fees spent/burned for transactions in the block.
926
938
  */
927
- address: string;
928
- deploymentDetails: ContractDeploymentDetails;
929
- ercType: Erc1155Contract.ercType;
939
+ feesSpent: string;
930
940
  /**
931
- * The contract symbol.
941
+ * The cumulative number of transactions for the chain including this block.
932
942
  */
933
- symbol?: string;
934
- pricingProviders?: PricingProviders;
943
+ cumulativeTransactions: string;
935
944
  };
936
- declare namespace Erc1155Contract {
937
- enum ercType {
938
- ERC_1155 = "ERC-1155"
939
- }
940
- }
941
945
 
942
- type Erc20Contract = {
946
+ type EvmBlock = {
943
947
  /**
944
- * The contract name.
948
+ * The block number on the chain.
945
949
  */
946
- name?: string;
947
- description?: string;
948
- officialSite?: string;
949
- email?: string;
950
- logoAsset?: ImageAsset;
951
- bannerAsset?: ImageAsset;
952
- color?: string;
953
- resourceLinks?: Array<ResourceLink>;
954
- tags?: Array<string>;
950
+ blockNumber: string;
955
951
  /**
956
- * A wallet or contract address in mixed-case checksum encoding.
952
+ * The block finality timestamp.
957
953
  */
958
- address: string;
959
- deploymentDetails: ContractDeploymentDetails;
960
- ercType: Erc20Contract.ercType;
954
+ blockTimestamp: number;
961
955
  /**
962
- * The contract symbol.
956
+ * The block hash identifier.
963
957
  */
964
- symbol?: string;
958
+ blockHash: string;
965
959
  /**
966
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
960
+ * The number of evm transactions in the block.
967
961
  */
968
- decimals: number;
969
- pricingProviders?: PricingProviders;
970
- };
971
- declare namespace Erc20Contract {
972
- enum ercType {
973
- ERC_20 = "ERC-20"
974
- }
975
- }
976
-
977
- type Erc721Contract = {
962
+ txCount: number;
978
963
  /**
979
- * The contract name.
964
+ * The base gas fee for a transaction to be included in the block.
980
965
  */
981
- name?: string;
982
- description?: string;
983
- officialSite?: string;
984
- email?: string;
985
- logoAsset?: ImageAsset;
986
- bannerAsset?: ImageAsset;
987
- color?: string;
988
- resourceLinks?: Array<ResourceLink>;
989
- tags?: Array<string>;
966
+ baseFee: string;
990
967
  /**
991
- * A wallet or contract address in mixed-case checksum encoding.
968
+ * The gas used for transactions in the block.
992
969
  */
993
- address: string;
994
- deploymentDetails: ContractDeploymentDetails;
995
- ercType: Erc721Contract.ercType;
970
+ gasUsed: string;
996
971
  /**
997
- * The contract symbol.
972
+ * The total gas limit set for transactions in the block.
998
973
  */
999
- symbol?: string;
1000
- };
1001
- declare namespace Erc721Contract {
1002
- enum ercType {
1003
- ERC_721 = "ERC-721"
1004
- }
1005
- }
1006
-
1007
- type UnknownContract = {
974
+ gasLimit: string;
975
+ gasCost: string;
1008
976
  /**
1009
- * The contract name.
977
+ * The hash of the parent block.
1010
978
  */
1011
- name?: string;
1012
- description?: string;
1013
- officialSite?: string;
1014
- email?: string;
1015
- logoAsset?: ImageAsset;
1016
- bannerAsset?: ImageAsset;
1017
- color?: string;
1018
- resourceLinks?: Array<ResourceLink>;
1019
- tags?: Array<string>;
979
+ parentHash: string;
1020
980
  /**
1021
- * A wallet or contract address in mixed-case checksum encoding.
981
+ * The amount of fees spent/burned for transactions in the block.
1022
982
  */
1023
- address: string;
1024
- deploymentDetails: ContractDeploymentDetails;
1025
- ercType: UnknownContract.ercType;
983
+ feesSpent: string;
984
+ /**
985
+ * The cumulative number of transactions for the chain including this block.
986
+ */
987
+ cumulativeTransactions: string;
1026
988
  };
1027
- declare namespace UnknownContract {
1028
- enum ercType {
1029
- UNKNOWN = "UNKNOWN"
1030
- }
1031
- }
1032
989
 
1033
- type UpdateContractResponse = {
1034
- contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
990
+ type ListEvmBlocksResponse = {
991
+ /**
992
+ * 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.
993
+ */
994
+ nextPageToken?: string;
995
+ blocks: Array<EvmBlock>;
1035
996
  };
1036
997
 
1037
- declare class EvmContractsService {
998
+ declare class EvmBlocksService {
1038
999
  readonly httpRequest: BaseHttpRequest;
1039
1000
  constructor(httpRequest: BaseHttpRequest);
1040
1001
  /**
1041
- * Get contract metadata
1042
- * Gets metadata about the contract at the given address.
1043
- * @returns any Successful response
1002
+ * List latest blocks
1003
+ * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
1004
+ * @returns ListEvmBlocksResponse Successful response
1044
1005
  * @throws ApiError
1045
1006
  */
1046
- getContractMetadata({ chainId, address, }: {
1007
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
1047
1008
  /**
1048
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1009
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
1010
  */
1050
1011
  chainId: string;
1051
1012
  /**
1052
- * Contract address on the relevant chain.
1013
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1053
1014
  */
1054
- address: string;
1055
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1015
+ pageToken?: string;
1016
+ /**
1017
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1018
+ */
1019
+ pageSize?: number;
1020
+ }): CancelablePromise<ListEvmBlocksResponse>;
1056
1021
  /**
1057
- * Update contract information
1058
- * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
- * @returns UpdateContractResponse Successful response
1022
+ * Get block
1023
+ * Gets the details of an individual block on the EVM-compatible chain.
1024
+ * @returns GetEvmBlockResponse Successful response
1060
1025
  * @throws ApiError
1061
1026
  */
1062
- updateContractInfo({ chainId, address, requestBody, }: {
1027
+ getBlock({ chainId, blockId, }: {
1063
1028
  /**
1064
- * 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.
1065
1030
  */
1066
1031
  chainId: string;
1067
1032
  /**
1068
- * Contract address on the relevant chain.
1033
+ * A block identifier which is either a block number or the block hash.
1069
1034
  */
1070
- address: string;
1071
- requestBody: ContractSubmissionBody;
1072
- }): CancelablePromise<UpdateContractResponse>;
1035
+ blockId: string;
1036
+ }): CancelablePromise<GetEvmBlockResponse>;
1073
1037
  }
1074
1038
 
1075
- type Erc1155Token = {
1076
- /**
1077
- * A wallet or contract address in mixed-case checksum encoding.
1078
- */
1079
- address: string;
1080
- ercType: Erc1155Token.ercType;
1081
- tokenId: string;
1082
- tokenUri: string;
1083
- metadata: Erc1155TokenMetadata;
1084
- };
1085
- declare namespace Erc1155Token {
1086
- enum ercType {
1087
- ERC_1155 = "ERC-1155"
1088
- }
1039
+ declare enum ApiFeature {
1040
+ NFT_INDEXING = "nftIndexing",
1041
+ WEBHOOKS = "webhooks",
1042
+ TELEPORTER = "teleporter"
1089
1043
  }
1090
1044
 
1091
- type RichAddress = {
1045
+ /**
1046
+ * 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.
1047
+ */
1048
+ declare enum ChainStatus {
1049
+ OK = "OK",
1050
+ UNAVAILABLE = "UNAVAILABLE"
1051
+ }
1052
+
1053
+ type NetworkToken = {
1092
1054
  /**
1093
1055
  * The contract name.
1094
1056
  */
1095
- name?: string;
1057
+ name: string;
1096
1058
  /**
1097
1059
  * The contract symbol.
1098
1060
  */
1099
- symbol?: string;
1061
+ symbol: string;
1100
1062
  /**
1101
1063
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1102
1064
  */
1103
- decimals?: number;
1065
+ decimals: number;
1104
1066
  /**
1105
1067
  * The logo uri for the address.
1106
1068
  */
1107
1069
  logoUri?: string;
1108
- /**
1109
- * A wallet or contract address in mixed-case checksum encoding.
1110
- */
1111
- address: string;
1070
+ description?: string;
1112
1071
  };
1113
1072
 
1114
- type Erc1155TransferDetails = {
1115
- from: RichAddress;
1116
- to: RichAddress;
1117
- logIndex: number;
1118
- value: string;
1119
- erc1155Token: Erc1155Token;
1073
+ type UtilityAddresses = {
1074
+ multicall?: string;
1120
1075
  };
1121
1076
 
1122
- type Erc20Token = {
1123
- /**
1124
- * A wallet or contract address in mixed-case checksum encoding.
1125
- */
1126
- address: string;
1127
- /**
1128
- * The contract name.
1129
- */
1130
- name: string;
1077
+ declare enum VmName {
1078
+ EVM = "EVM",
1079
+ BITCOIN = "BITCOIN",
1080
+ ETHEREUM = "ETHEREUM"
1081
+ }
1082
+
1083
+ type GetChainResponse = {
1084
+ chainId: string;
1085
+ status: ChainStatus;
1086
+ chainName: string;
1087
+ description: string;
1088
+ platformChainId?: string;
1089
+ subnetId?: string;
1090
+ vmId?: string;
1091
+ vmName: VmName;
1092
+ explorerUrl?: string;
1093
+ rpcUrl: string;
1094
+ wsUrl?: string;
1095
+ isTestnet: boolean;
1096
+ utilityAddresses?: UtilityAddresses;
1097
+ networkToken: NetworkToken;
1098
+ chainLogoUri?: string;
1099
+ private?: boolean;
1100
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1101
+ };
1102
+
1103
+ type ChainInfo = {
1104
+ chainId: string;
1105
+ status: ChainStatus;
1106
+ chainName: string;
1107
+ description: string;
1108
+ platformChainId?: string;
1109
+ subnetId?: string;
1110
+ vmId?: string;
1111
+ vmName: VmName;
1112
+ explorerUrl?: string;
1113
+ rpcUrl: string;
1114
+ wsUrl?: string;
1115
+ isTestnet: boolean;
1116
+ utilityAddresses?: UtilityAddresses;
1117
+ networkToken: NetworkToken;
1118
+ chainLogoUri?: string;
1119
+ private?: boolean;
1120
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
+ };
1122
+
1123
+ type ListChainsResponse = {
1124
+ chains: Array<ChainInfo>;
1125
+ };
1126
+
1127
+ declare enum Network {
1128
+ MAINNET = "mainnet",
1129
+ FUJI = "fuji",
1130
+ TESTNET = "testnet",
1131
+ DEVNET = "devnet"
1132
+ }
1133
+
1134
+ declare class EvmChainsService {
1135
+ readonly httpRequest: BaseHttpRequest;
1136
+ constructor(httpRequest: BaseHttpRequest);
1131
1137
  /**
1132
- * The contract symbol.
1138
+ * List chains
1139
+ * Lists the supported EVM-compatible chains. Filterable by network.
1140
+ * @returns ListChainsResponse Successful response
1141
+ * @throws ApiError
1133
1142
  */
1134
- symbol: string;
1143
+ supportedChains({ network, feature, }: {
1144
+ /**
1145
+ * Either mainnet or testnet/fuji.
1146
+ */
1147
+ network?: Network;
1148
+ /**
1149
+ * Filter by feature.
1150
+ */
1151
+ feature?: ApiFeature;
1152
+ }): CancelablePromise<ListChainsResponse>;
1135
1153
  /**
1136
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1154
+ * Get chain information
1155
+ * Gets chain information for the EVM-compatible chain if supported by the api.
1156
+ * @returns GetChainResponse Successful response
1157
+ * @throws ApiError
1137
1158
  */
1138
- decimals: number;
1159
+ getChainInfo({ chainId, }: {
1160
+ /**
1161
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1162
+ */
1163
+ chainId: string;
1164
+ }): CancelablePromise<GetChainResponse>;
1139
1165
  /**
1140
- * The logo uri for the address.
1166
+ * Get chains for address
1167
+ * Gets the list of chains an address has interacted with.
1168
+ * @returns ListChainsResponse Successful response
1169
+ * @throws ApiError
1141
1170
  */
1142
- logoUri?: string;
1143
- ercType: Erc20Token.ercType;
1171
+ getAddressChains({ address, }: {
1172
+ /**
1173
+ * A wallet address.
1174
+ */
1175
+ address: string;
1176
+ }): CancelablePromise<ListChainsResponse>;
1177
+ }
1178
+
1179
+ type ImageAsset = {
1180
+ assetId?: string;
1144
1181
  /**
1145
- * The token price, if available.
1182
+ * OUTPUT ONLY
1146
1183
  */
1147
- price?: Money;
1184
+ imageUri?: string;
1148
1185
  };
1149
- declare namespace Erc20Token {
1150
- enum ercType {
1151
- ERC_20 = "ERC-20"
1152
- }
1186
+
1187
+ type PricingProviders = {
1188
+ coingeckoCoinId?: string;
1189
+ };
1190
+
1191
+ declare enum ResourceLinkType {
1192
+ BLOG = "Blog",
1193
+ COIN_GECKO = "CoinGecko",
1194
+ COIN_MARKET_CAP = "CoinMarketCap",
1195
+ DISCORD = "Discord",
1196
+ DOCUMENTATION = "Documentation",
1197
+ FACEBOOK = "Facebook",
1198
+ GITHUB = "Github",
1199
+ INSTAGRAM = "Instagram",
1200
+ LINKED_IN = "LinkedIn",
1201
+ MEDIUM = "Medium",
1202
+ REDDIT = "Reddit",
1203
+ SUPPORT = "Support",
1204
+ TELEGRAM = "Telegram",
1205
+ TIK_TOK = "TikTok",
1206
+ TWITTER = "Twitter",
1207
+ WEBSITE = "Website",
1208
+ WHITEPAPER = "Whitepaper",
1209
+ YOUTUBE = "Youtube"
1153
1210
  }
1154
1211
 
1155
- type Erc20TransferDetails = {
1156
- from: RichAddress;
1157
- to: RichAddress;
1158
- logIndex: number;
1159
- value: string;
1160
- erc20Token: Erc20Token;
1212
+ type ResourceLink = {
1213
+ type: ResourceLinkType;
1214
+ url: string;
1161
1215
  };
1162
1216
 
1163
- type Erc721Token = {
1164
- /**
1165
- * A wallet or contract address in mixed-case checksum encoding.
1166
- */
1167
- address: string;
1217
+ type ContractSubmissionErc1155 = {
1218
+ description?: string;
1219
+ officialSite?: string;
1220
+ email?: string;
1221
+ logoAsset?: ImageAsset;
1222
+ bannerAsset?: ImageAsset;
1223
+ color?: string;
1224
+ resourceLinks?: Array<ResourceLink>;
1225
+ tags?: Array<string>;
1168
1226
  /**
1169
1227
  * The contract name.
1170
1228
  */
1171
1229
  name: string;
1230
+ ercType: ContractSubmissionErc1155.ercType;
1172
1231
  /**
1173
1232
  * The contract symbol.
1174
1233
  */
1175
1234
  symbol: string;
1176
- ercType: Erc721Token.ercType;
1177
- tokenId: string;
1178
- tokenUri: string;
1179
- metadata: Erc721TokenMetadata;
1180
- /**
1181
- * A wallet or contract address in mixed-case checksum encoding.
1182
- */
1183
- ownerAddress?: string;
1235
+ pricingProviders?: PricingProviders;
1184
1236
  };
1185
- declare namespace Erc721Token {
1237
+ declare namespace ContractSubmissionErc1155 {
1186
1238
  enum ercType {
1187
- ERC_721 = "ERC-721"
1239
+ ERC_1155 = "ERC-1155"
1188
1240
  }
1189
1241
  }
1190
1242
 
1191
- type Erc721TransferDetails = {
1192
- from: RichAddress;
1193
- to: RichAddress;
1194
- logIndex: number;
1195
- erc721Token: Erc721Token;
1196
- };
1197
-
1198
- /**
1199
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
- */
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;
1243
+ type ContractSubmissionErc20 = {
1244
+ description?: string;
1245
+ officialSite?: string;
1246
+ email?: string;
1247
+ logoAsset?: ImageAsset;
1248
+ bannerAsset?: ImageAsset;
1249
+ color?: string;
1250
+ resourceLinks?: Array<ResourceLink>;
1251
+ tags?: Array<string>;
1209
1252
  /**
1210
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1253
+ * The contract name.
1211
1254
  */
1212
- methodHash: string;
1255
+ name: string;
1256
+ ercType: ContractSubmissionErc20.ercType;
1213
1257
  /**
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'.
1258
+ * The contract symbol.
1215
1259
  */
1216
- methodName?: string;
1260
+ symbol: string;
1261
+ pricingProviders?: PricingProviders;
1217
1262
  };
1263
+ declare namespace ContractSubmissionErc20 {
1264
+ enum ercType {
1265
+ ERC_20 = "ERC-20"
1266
+ }
1267
+ }
1218
1268
 
1219
- type FullNativeTransactionDetails = {
1269
+ type ContractSubmissionErc721 = {
1270
+ description?: string;
1271
+ officialSite?: string;
1272
+ email?: string;
1273
+ logoAsset?: ImageAsset;
1274
+ bannerAsset?: ImageAsset;
1275
+ color?: string;
1276
+ resourceLinks?: Array<ResourceLink>;
1277
+ tags?: Array<string>;
1220
1278
  /**
1221
- * The block number on the chain.
1279
+ * The contract name.
1222
1280
  */
1223
- blockNumber: string;
1281
+ name: string;
1282
+ ercType: ContractSubmissionErc721.ercType;
1224
1283
  /**
1225
- * The block finality timestamp.
1284
+ * The contract symbol.
1226
1285
  */
1227
- blockTimestamp: number;
1286
+ symbol: string;
1287
+ };
1288
+ declare namespace ContractSubmissionErc721 {
1289
+ enum ercType {
1290
+ ERC_721 = "ERC-721"
1291
+ }
1292
+ }
1293
+
1294
+ type ContractSubmissionUnknown = {
1295
+ description?: string;
1296
+ officialSite?: string;
1297
+ email?: string;
1298
+ logoAsset?: ImageAsset;
1299
+ bannerAsset?: ImageAsset;
1300
+ color?: string;
1301
+ resourceLinks?: Array<ResourceLink>;
1302
+ tags?: Array<string>;
1228
1303
  /**
1229
- * The block hash identifier.
1304
+ * The contract name.
1230
1305
  */
1231
- blockHash: string;
1306
+ name: string;
1307
+ ercType: ContractSubmissionUnknown.ercType;
1308
+ };
1309
+ declare namespace ContractSubmissionUnknown {
1310
+ enum ercType {
1311
+ UNKNOWN = "UNKNOWN"
1312
+ }
1313
+ }
1314
+
1315
+ type ContractSubmissionBody = {
1316
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
1317
+ };
1318
+
1319
+ type ContractDeploymentDetails = {
1320
+ txHash: string;
1232
1321
  /**
1233
- * The index at which the transaction occured in the block (0-indexed).
1322
+ * The address that initiated the transaction which deployed this contract.
1234
1323
  */
1235
- blockIndex: number;
1324
+ deployerAddress: string;
1236
1325
  /**
1237
- * The transaction hash identifier.
1326
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1238
1327
  */
1239
- txHash: string;
1328
+ deployerContractAddress?: string;
1329
+ };
1330
+
1331
+ type Erc1155Contract = {
1240
1332
  /**
1241
- * The transaction status, which is either 0 (failed) or 1 (successful).
1333
+ * The contract name.
1242
1334
  */
1243
- txStatus: string;
1335
+ name?: string;
1336
+ description?: string;
1337
+ officialSite?: string;
1338
+ email?: string;
1339
+ logoAsset?: ImageAsset;
1340
+ bannerAsset?: ImageAsset;
1341
+ color?: string;
1342
+ resourceLinks?: Array<ResourceLink>;
1343
+ tags?: Array<string>;
1244
1344
  /**
1245
- * The transaction type.
1345
+ * A wallet or contract address in mixed-case checksum encoding.
1246
1346
  */
1247
- txType: number;
1347
+ address: string;
1348
+ deploymentDetails: ContractDeploymentDetails;
1349
+ ercType: Erc1155Contract.ercType;
1248
1350
  /**
1249
- * The gas limit set for the transaction.
1351
+ * The contract symbol.
1250
1352
  */
1251
- gasLimit: string;
1353
+ symbol?: string;
1354
+ pricingProviders?: PricingProviders;
1355
+ };
1356
+ declare namespace Erc1155Contract {
1357
+ enum ercType {
1358
+ ERC_1155 = "ERC-1155"
1359
+ }
1360
+ }
1361
+
1362
+ type Erc20Contract = {
1252
1363
  /**
1253
- * The amount of gas used.
1364
+ * The contract name.
1254
1365
  */
1255
- gasUsed: string;
1366
+ name?: string;
1367
+ description?: string;
1368
+ officialSite?: string;
1369
+ email?: string;
1370
+ logoAsset?: ImageAsset;
1371
+ bannerAsset?: ImageAsset;
1372
+ color?: string;
1373
+ resourceLinks?: Array<ResourceLink>;
1374
+ tags?: Array<string>;
1256
1375
  /**
1257
- * The gas price denominated by the number of decimals of the native token.
1376
+ * A wallet or contract address in mixed-case checksum encoding.
1258
1377
  */
1259
- gasPrice: string;
1378
+ address: string;
1379
+ deploymentDetails: ContractDeploymentDetails;
1380
+ ercType: Erc20Contract.ercType;
1260
1381
  /**
1261
- * The nonce used by the sender of the transaction.
1382
+ * The contract symbol.
1262
1383
  */
1263
- nonce: string;
1264
- from: RichAddress;
1265
- to: RichAddress;
1266
- method?: Method;
1267
- value: string;
1384
+ symbol?: string;
1268
1385
  /**
1269
- * The data sent for the transaction.
1386
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1270
1387
  */
1271
- input: string;
1272
- baseFeePerGas: string;
1273
- maxFeePerGas?: string;
1274
- maxPriorityFeePerGas?: string;
1388
+ decimals: number;
1389
+ pricingProviders?: PricingProviders;
1275
1390
  };
1276
-
1277
- declare enum InternalTransactionOpCall {
1278
- UNKNOWN = "UNKNOWN",
1279
- CALL = "CALL",
1280
- CREATE = "CREATE",
1281
- CREATE2 = "CREATE2",
1282
- CALLCODE = "CALLCODE",
1283
- DELEGATECALL = "DELEGATECALL",
1284
- STATICCALL = "STATICCALL"
1391
+ declare namespace Erc20Contract {
1392
+ enum ercType {
1393
+ ERC_20 = "ERC-20"
1394
+ }
1285
1395
  }
1286
1396
 
1287
- type InternalTransactionDetails = {
1288
- from: RichAddress;
1289
- to: RichAddress;
1290
- internalTxType: InternalTransactionOpCall;
1291
- value: string;
1397
+ type Erc721Contract = {
1292
1398
  /**
1293
- * True if the internal transaction was reverted.
1399
+ * The contract name.
1294
1400
  */
1295
- isReverted: boolean;
1296
- gasUsed: string;
1297
- gasLimit: string;
1298
- };
1299
-
1300
- type NetworkTokenDetails = {
1301
- networkToken: NetworkToken;
1401
+ name?: string;
1402
+ description?: string;
1403
+ officialSite?: string;
1404
+ email?: string;
1405
+ logoAsset?: ImageAsset;
1406
+ bannerAsset?: ImageAsset;
1407
+ color?: string;
1408
+ resourceLinks?: Array<ResourceLink>;
1409
+ tags?: Array<string>;
1302
1410
  /**
1303
- * The current token price, if available.
1411
+ * A wallet or contract address in mixed-case checksum encoding.
1304
1412
  */
1305
- currentPrice?: Money;
1413
+ address: string;
1414
+ deploymentDetails: ContractDeploymentDetails;
1415
+ ercType: Erc721Contract.ercType;
1306
1416
  /**
1307
- * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1417
+ * The contract symbol.
1308
1418
  */
1309
- historicalPrice?: Money;
1419
+ symbol?: string;
1310
1420
  };
1311
-
1312
- declare enum TransactionDirectionType {
1313
- SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
1314
- DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
1421
+ declare namespace Erc721Contract {
1422
+ enum ercType {
1423
+ ERC_721 = "ERC-721"
1424
+ }
1315
1425
  }
1316
1426
 
1317
- type TeleporterMessageInfo = {
1318
- teleporterMessageId: string;
1319
- direction: TransactionDirectionType;
1427
+ type UnknownContract = {
1320
1428
  /**
1321
- * chain id of the source chain. valid only for destination transactions
1429
+ * The contract name.
1322
1430
  */
1323
- sourceChainId?: Record<string, any>;
1431
+ name?: string;
1432
+ description?: string;
1433
+ officialSite?: string;
1434
+ email?: string;
1435
+ logoAsset?: ImageAsset;
1436
+ bannerAsset?: ImageAsset;
1437
+ color?: string;
1438
+ resourceLinks?: Array<ResourceLink>;
1439
+ tags?: Array<string>;
1324
1440
  /**
1325
- * chain id of the destination chain. valid only for source transactions
1441
+ * A wallet or contract address in mixed-case checksum encoding.
1326
1442
  */
1327
- destinationChainId?: Record<string, any>;
1443
+ address: string;
1444
+ deploymentDetails: ContractDeploymentDetails;
1445
+ ercType: UnknownContract.ercType;
1328
1446
  };
1447
+ declare namespace UnknownContract {
1448
+ enum ercType {
1449
+ UNKNOWN = "UNKNOWN"
1450
+ }
1451
+ }
1329
1452
 
1330
- type GetTransactionResponse = {
1453
+ type UpdateContractResponse = {
1454
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1455
+ };
1456
+
1457
+ declare class EvmContractsService {
1458
+ readonly httpRequest: BaseHttpRequest;
1459
+ constructor(httpRequest: BaseHttpRequest);
1331
1460
  /**
1332
- * The list of ERC-20 transfers.
1333
- */
1334
- erc20Transfers?: Array<Erc20TransferDetails>;
1335
- /**
1336
- * The list of ERC-721 transfers.
1337
- */
1338
- erc721Transfers?: Array<Erc721TransferDetails>;
1339
- /**
1340
- * The list of ERC-1155 transfers.
1461
+ * Get contract metadata
1462
+ * Gets metadata about the contract at the given address.
1463
+ * @returns any Successful response
1464
+ * @throws ApiError
1341
1465
  */
1342
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1466
+ getContractMetadata({ chainId, address, }: {
1467
+ /**
1468
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1469
+ */
1470
+ chainId: string;
1471
+ /**
1472
+ * Contract address on the relevant chain.
1473
+ */
1474
+ address: string;
1475
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1343
1476
  /**
1344
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1477
+ * Update contract information
1478
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1479
+ * @returns UpdateContractResponse Successful response
1480
+ * @throws ApiError
1345
1481
  */
1346
- internalTransactions?: Array<InternalTransactionDetails>;
1347
- networkTokenDetails: NetworkTokenDetails;
1348
- nativeTransaction: FullNativeTransactionDetails;
1482
+ updateContractInfo({ chainId, address, requestBody, }: {
1483
+ /**
1484
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1485
+ */
1486
+ chainId: string;
1487
+ /**
1488
+ * Contract address on the relevant chain.
1489
+ */
1490
+ address: string;
1491
+ requestBody: ContractSubmissionBody;
1492
+ }): CancelablePromise<UpdateContractResponse>;
1493
+ }
1494
+
1495
+ type Erc1155Token = {
1349
1496
  /**
1350
- * Corresponding teleporter message info if available.
1497
+ * A wallet or contract address in mixed-case checksum encoding.
1351
1498
  */
1352
- teleporterMessageInfo?: TeleporterMessageInfo;
1499
+ address: string;
1500
+ ercType: Erc1155Token.ercType;
1501
+ tokenId: string;
1502
+ tokenUri: string;
1503
+ metadata: Erc1155TokenMetadata;
1353
1504
  };
1505
+ declare namespace Erc1155Token {
1506
+ enum ercType {
1507
+ ERC_1155 = "ERC-1155"
1508
+ }
1509
+ }
1354
1510
 
1355
- type ListContractsResponse = {
1511
+ type RichAddress = {
1356
1512
  /**
1357
- * 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.
1513
+ * The contract name.
1358
1514
  */
1359
- nextPageToken?: string;
1360
- contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1361
- };
1362
-
1363
- type Erc1155Transfer = {
1515
+ name?: string;
1364
1516
  /**
1365
- * The block number on the chain.
1517
+ * The contract symbol.
1366
1518
  */
1367
- blockNumber: string;
1519
+ symbol?: string;
1368
1520
  /**
1369
- * The block finality timestamp.
1521
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1370
1522
  */
1371
- blockTimestamp: number;
1523
+ decimals?: number;
1372
1524
  /**
1373
- * The block hash identifier.
1525
+ * The logo uri for the address.
1374
1526
  */
1375
- blockHash: string;
1527
+ logoUri?: string;
1376
1528
  /**
1377
- * The transaction hash identifier.
1529
+ * A wallet or contract address in mixed-case checksum encoding.
1378
1530
  */
1379
- txHash: string;
1531
+ address: string;
1532
+ };
1533
+
1534
+ type Erc1155TransferDetails = {
1380
1535
  from: RichAddress;
1381
1536
  to: RichAddress;
1382
1537
  logIndex: number;
@@ -1384,31 +1539,40 @@ type Erc1155Transfer = {
1384
1539
  erc1155Token: Erc1155Token;
1385
1540
  };
1386
1541
 
1387
- type ListErc1155TransactionsResponse = {
1542
+ type Erc20Token = {
1388
1543
  /**
1389
- * 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.
1544
+ * A wallet or contract address in mixed-case checksum encoding.
1390
1545
  */
1391
- nextPageToken?: string;
1392
- transactions: Array<Erc1155Transfer>;
1393
- };
1394
-
1395
- type Erc20Transfer = {
1546
+ address: string;
1396
1547
  /**
1397
- * The block number on the chain.
1548
+ * The contract name.
1398
1549
  */
1399
- blockNumber: string;
1550
+ name: string;
1400
1551
  /**
1401
- * The block finality timestamp.
1552
+ * The contract symbol.
1402
1553
  */
1403
- blockTimestamp: number;
1554
+ symbol: string;
1404
1555
  /**
1405
- * The block hash identifier.
1556
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1406
1557
  */
1407
- blockHash: string;
1558
+ decimals: number;
1408
1559
  /**
1409
- * The transaction hash identifier.
1560
+ * The logo uri for the address.
1410
1561
  */
1411
- txHash: string;
1562
+ logoUri?: string;
1563
+ ercType: Erc20Token.ercType;
1564
+ /**
1565
+ * The token price, if available.
1566
+ */
1567
+ price?: Money;
1568
+ };
1569
+ declare namespace Erc20Token {
1570
+ enum ercType {
1571
+ ERC_20 = "ERC-20"
1572
+ }
1573
+ }
1574
+
1575
+ type Erc20TransferDetails = {
1412
1576
  from: RichAddress;
1413
1577
  to: RichAddress;
1414
1578
  logIndex: number;
@@ -1416,83 +1580,63 @@ type Erc20Transfer = {
1416
1580
  erc20Token: Erc20Token;
1417
1581
  };
1418
1582
 
1419
- type ListErc20TransactionsResponse = {
1420
- /**
1421
- * 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.
1422
- */
1423
- nextPageToken?: string;
1424
- transactions: Array<Erc20Transfer>;
1425
- };
1426
-
1427
- type Erc721Transfer = {
1583
+ type Erc721Token = {
1428
1584
  /**
1429
- * The block number on the chain.
1585
+ * A wallet or contract address in mixed-case checksum encoding.
1430
1586
  */
1431
- blockNumber: string;
1587
+ address: string;
1432
1588
  /**
1433
- * The block finality timestamp.
1589
+ * The contract name.
1434
1590
  */
1435
- blockTimestamp: number;
1591
+ name: string;
1436
1592
  /**
1437
- * The block hash identifier.
1593
+ * The contract symbol.
1438
1594
  */
1439
- blockHash: string;
1595
+ symbol: string;
1596
+ ercType: Erc721Token.ercType;
1597
+ tokenId: string;
1598
+ tokenUri: string;
1599
+ metadata: Erc721TokenMetadata;
1440
1600
  /**
1441
- * The transaction hash identifier.
1601
+ * A wallet or contract address in mixed-case checksum encoding.
1442
1602
  */
1443
- txHash: string;
1603
+ ownerAddress?: string;
1604
+ };
1605
+ declare namespace Erc721Token {
1606
+ enum ercType {
1607
+ ERC_721 = "ERC-721"
1608
+ }
1609
+ }
1610
+
1611
+ type Erc721TransferDetails = {
1444
1612
  from: RichAddress;
1445
1613
  to: RichAddress;
1446
1614
  logIndex: number;
1447
1615
  erc721Token: Erc721Token;
1448
1616
  };
1449
1617
 
1450
- type ListErc721TransactionsResponse = {
1451
- /**
1452
- * 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.
1453
- */
1454
- nextPageToken?: string;
1455
- transactions: Array<Erc721Transfer>;
1456
- };
1618
+ /**
1619
+ * 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.
1620
+ */
1621
+ declare enum TransactionMethodType {
1622
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1623
+ CONTRACT_CALL = "CONTRACT_CALL",
1624
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1625
+ }
1457
1626
 
1458
- type InternalTransaction = {
1459
- /**
1460
- * The block number on the chain.
1461
- */
1462
- blockNumber: string;
1463
- /**
1464
- * The block finality timestamp.
1465
- */
1466
- blockTimestamp: number;
1467
- /**
1468
- * The block hash identifier.
1469
- */
1470
- blockHash: string;
1471
- /**
1472
- * The transaction hash identifier.
1473
- */
1474
- txHash: string;
1475
- from: RichAddress;
1476
- to: RichAddress;
1477
- internalTxType: InternalTransactionOpCall;
1478
- value: string;
1627
+ type Method = {
1628
+ callType: TransactionMethodType;
1479
1629
  /**
1480
- * True if the internal transaction was reverted.
1630
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1481
1631
  */
1482
- isReverted: boolean;
1483
- gasUsed: string;
1484
- gasLimit: string;
1485
- };
1486
-
1487
- type ListInternalTransactionsResponse = {
1632
+ methodHash: string;
1488
1633
  /**
1489
- * 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.
1634
+ * 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'.
1490
1635
  */
1491
- nextPageToken?: string;
1492
- transactions: Array<InternalTransaction>;
1636
+ methodName?: string;
1493
1637
  };
1494
1638
 
1495
- type NativeTransaction = {
1639
+ type FullNativeTransactionDetails = {
1496
1640
  /**
1497
1641
  * The block number on the chain.
1498
1642
  */
@@ -1541,26 +1685,74 @@ type NativeTransaction = {
1541
1685
  to: RichAddress;
1542
1686
  method?: Method;
1543
1687
  value: string;
1688
+ /**
1689
+ * The data sent for the transaction.
1690
+ */
1691
+ input: string;
1692
+ baseFeePerGas: string;
1693
+ maxFeePerGas?: string;
1694
+ maxPriorityFeePerGas?: string;
1544
1695
  };
1545
1696
 
1546
- type ListNativeTransactionsResponse = {
1697
+ declare enum InternalTransactionOpCall {
1698
+ UNKNOWN = "UNKNOWN",
1699
+ CALL = "CALL",
1700
+ CREATE = "CREATE",
1701
+ CREATE2 = "CREATE2",
1702
+ CALLCODE = "CALLCODE",
1703
+ DELEGATECALL = "DELEGATECALL",
1704
+ STATICCALL = "STATICCALL"
1705
+ }
1706
+
1707
+ type InternalTransactionDetails = {
1708
+ from: RichAddress;
1709
+ to: RichAddress;
1710
+ internalTxType: InternalTransactionOpCall;
1711
+ value: string;
1547
1712
  /**
1548
- * 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.
1713
+ * True if the internal transaction was reverted.
1549
1714
  */
1550
- nextPageToken?: string;
1551
- transactions: Array<NativeTransaction>;
1715
+ isReverted: boolean;
1716
+ gasUsed: string;
1717
+ gasLimit: string;
1552
1718
  };
1553
1719
 
1554
- type TransactionDetails = {
1720
+ type NetworkTokenDetails = {
1721
+ networkToken: NetworkToken;
1555
1722
  /**
1556
- * The native (top-level) transaction details.
1723
+ * The current token price, if available.
1557
1724
  */
1558
- nativeTransaction: NativeTransaction;
1725
+ currentPrice?: Money;
1559
1726
  /**
1560
- * The list of ERC-20 transfers.
1727
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1561
1728
  */
1562
- erc20Transfers?: Array<Erc20TransferDetails>;
1563
- /**
1729
+ historicalPrice?: Money;
1730
+ };
1731
+
1732
+ declare enum TransactionDirectionType {
1733
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
1734
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
1735
+ }
1736
+
1737
+ type TeleporterMessageInfo = {
1738
+ teleporterMessageId: string;
1739
+ direction: TransactionDirectionType;
1740
+ /**
1741
+ * chain id of the source chain. valid only for destination transactions
1742
+ */
1743
+ sourceChainId?: Record<string, any>;
1744
+ /**
1745
+ * chain id of the destination chain. valid only for source transactions
1746
+ */
1747
+ destinationChainId?: Record<string, any>;
1748
+ };
1749
+
1750
+ type GetTransactionResponse = {
1751
+ /**
1752
+ * The list of ERC-20 transfers.
1753
+ */
1754
+ erc20Transfers?: Array<Erc20TransferDetails>;
1755
+ /**
1564
1756
  * The list of ERC-721 transfers.
1565
1757
  */
1566
1758
  erc721Transfers?: Array<Erc721TransferDetails>;
@@ -1572,658 +1764,597 @@ type TransactionDetails = {
1572
1764
  * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1573
1765
  */
1574
1766
  internalTransactions?: Array<InternalTransactionDetails>;
1767
+ networkTokenDetails: NetworkTokenDetails;
1768
+ nativeTransaction: FullNativeTransactionDetails;
1769
+ /**
1770
+ * Corresponding teleporter message info if available.
1771
+ */
1772
+ teleporterMessageInfo?: TeleporterMessageInfo;
1575
1773
  };
1576
1774
 
1577
- type ListTransactionDetailsResponse = {
1775
+ type ListContractsResponse = {
1578
1776
  /**
1579
1777
  * 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.
1580
1778
  */
1581
1779
  nextPageToken?: string;
1582
- transactions: Array<TransactionDetails>;
1780
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1583
1781
  };
1584
1782
 
1585
- type ListTransfersResponse = {
1783
+ type Erc1155Transfer = {
1784
+ /**
1785
+ * The block number on the chain.
1786
+ */
1787
+ blockNumber: string;
1788
+ /**
1789
+ * The block finality timestamp.
1790
+ */
1791
+ blockTimestamp: number;
1792
+ /**
1793
+ * The block hash identifier.
1794
+ */
1795
+ blockHash: string;
1796
+ /**
1797
+ * The transaction hash identifier.
1798
+ */
1799
+ txHash: string;
1800
+ from: RichAddress;
1801
+ to: RichAddress;
1802
+ logIndex: number;
1803
+ value: string;
1804
+ erc1155Token: Erc1155Token;
1805
+ };
1806
+
1807
+ type ListErc1155TransactionsResponse = {
1586
1808
  /**
1587
1809
  * 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.
1588
1810
  */
1589
1811
  nextPageToken?: string;
1590
- transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1812
+ transactions: Array<Erc1155Transfer>;
1591
1813
  };
1592
1814
 
1593
- declare enum SortOrder {
1594
- ASC = "asc",
1595
- DESC = "desc"
1596
- }
1597
-
1598
- declare enum TransactionStatus {
1599
- FAILED = "failed",
1600
- SUCCESS = "success"
1601
- }
1602
-
1603
- declare class EvmTransactionsService {
1604
- readonly httpRequest: BaseHttpRequest;
1605
- constructor(httpRequest: BaseHttpRequest);
1815
+ type Erc20Transfer = {
1606
1816
  /**
1607
- * Get deployment transaction
1608
- * If the address is a smart contract, returns the transaction in which it was deployed.
1609
- * @returns GetTransactionResponse Successful response
1610
- * @throws ApiError
1817
+ * The block number on the chain.
1611
1818
  */
1612
- getDeploymentTransaction({ chainId, address, currency, }: {
1613
- /**
1614
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1615
- */
1616
- chainId: string;
1617
- /**
1618
- * Contract address on the relevant chain.
1619
- */
1620
- address: string;
1621
- /**
1622
- * The currency that return values should use. Defaults to USD.
1623
- */
1624
- currency?: CurrencyCode;
1625
- }): CancelablePromise<GetTransactionResponse>;
1819
+ blockNumber: string;
1626
1820
  /**
1627
- * List deployed contracts
1628
- * Lists all contracts deployed by the given address.
1629
- * @returns ListContractsResponse Successful response
1630
- * @throws ApiError
1821
+ * The block finality timestamp.
1631
1822
  */
1632
- listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1633
- /**
1634
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1635
- */
1636
- chainId: string;
1637
- /**
1638
- * A wallet address.
1639
- */
1640
- address: string;
1641
- /**
1642
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1643
- */
1644
- pageToken?: string;
1645
- /**
1646
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1647
- */
1648
- pageSize?: number;
1649
- }): CancelablePromise<ListContractsResponse>;
1823
+ blockTimestamp: number;
1650
1824
  /**
1651
- * List ERC transfers
1652
- * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1653
- * @returns ListTransfersResponse Successful response
1654
- * @throws ApiError
1825
+ * The block hash identifier.
1655
1826
  */
1656
- listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1657
- /**
1658
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1659
- */
1660
- chainId: string;
1661
- /**
1662
- * A wallet address.
1663
- */
1664
- address: string;
1665
- /**
1666
- * 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.
1667
- */
1668
- startBlock?: number;
1669
- /**
1670
- * 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.
1671
- */
1672
- endBlock?: number;
1673
- /**
1674
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1675
- */
1676
- pageToken?: string;
1677
- /**
1678
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1679
- */
1680
- pageSize?: number;
1681
- }): CancelablePromise<ListTransfersResponse>;
1827
+ blockHash: string;
1682
1828
  /**
1683
- * List transactions
1684
- * 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.
1685
- *
1686
- * Filterable by block ranges.
1687
- * @returns ListTransactionDetailsResponse Successful response
1688
- * @throws ApiError
1829
+ * The transaction hash identifier.
1689
1830
  */
1690
- listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1691
- /**
1692
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1693
- */
1694
- chainId: string;
1695
- /**
1696
- * A wallet address.
1697
- */
1698
- address: string;
1699
- /**
1700
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1701
- */
1702
- pageToken?: string;
1703
- /**
1704
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1705
- */
1706
- pageSize?: number;
1707
- /**
1708
- * 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.
1709
- */
1710
- startBlock?: number;
1711
- /**
1712
- * 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.
1713
- */
1714
- endBlock?: number;
1715
- /**
1716
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
1717
- */
1718
- sortOrder?: SortOrder;
1719
- }): CancelablePromise<ListTransactionDetailsResponse>;
1831
+ txHash: string;
1832
+ from: RichAddress;
1833
+ to: RichAddress;
1834
+ logIndex: number;
1835
+ value: string;
1836
+ erc20Token: Erc20Token;
1837
+ };
1838
+
1839
+ type ListErc20TransactionsResponse = {
1720
1840
  /**
1721
- * List native transactions
1722
- * Lists native transactions for an address. Filterable by block range.
1723
- * @returns ListNativeTransactionsResponse Successful response
1724
- * @throws ApiError
1841
+ * 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.
1725
1842
  */
1726
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1727
- /**
1728
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1729
- */
1730
- chainId: string;
1731
- /**
1732
- * A wallet address.
1733
- */
1734
- address: string;
1735
- /**
1736
- * 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.
1737
- */
1738
- startBlock?: number;
1739
- /**
1740
- * 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.
1741
- */
1742
- endBlock?: number;
1743
- /**
1744
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1745
- */
1746
- pageToken?: string;
1747
- /**
1748
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1749
- */
1750
- pageSize?: number;
1751
- }): CancelablePromise<ListNativeTransactionsResponse>;
1843
+ nextPageToken?: string;
1844
+ transactions: Array<Erc20Transfer>;
1845
+ };
1846
+
1847
+ type Erc721Transfer = {
1752
1848
  /**
1753
- * List ERC-20 transfers
1754
- * Lists ERC-20 transfers for an address. Filterable by block range.
1755
- * @returns ListErc20TransactionsResponse Successful response
1756
- * @throws ApiError
1849
+ * The block number on the chain.
1757
1850
  */
1758
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1759
- /**
1760
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1761
- */
1762
- chainId: string;
1763
- /**
1764
- * A wallet address.
1765
- */
1766
- address: string;
1767
- /**
1768
- * 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.
1769
- */
1770
- startBlock?: number;
1771
- /**
1772
- * 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.
1773
- */
1774
- endBlock?: number;
1775
- /**
1776
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1777
- */
1778
- pageToken?: string;
1779
- /**
1780
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1781
- */
1782
- pageSize?: number;
1783
- }): CancelablePromise<ListErc20TransactionsResponse>;
1851
+ blockNumber: string;
1784
1852
  /**
1785
- * List ERC-721 transfers
1786
- * Lists ERC-721 transfers for an address. Filterable by block range.
1787
- * @returns ListErc721TransactionsResponse Successful response
1788
- * @throws ApiError
1853
+ * The block finality timestamp.
1789
1854
  */
1790
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1791
- /**
1792
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1793
- */
1794
- chainId: string;
1795
- /**
1796
- * A wallet address.
1797
- */
1798
- address: string;
1799
- /**
1800
- * 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.
1801
- */
1802
- startBlock?: number;
1803
- /**
1804
- * 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.
1805
- */
1806
- endBlock?: number;
1807
- /**
1808
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1809
- */
1810
- pageToken?: string;
1811
- /**
1812
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1813
- */
1814
- pageSize?: number;
1815
- }): CancelablePromise<ListErc721TransactionsResponse>;
1855
+ blockTimestamp: number;
1816
1856
  /**
1817
- * List ERC-1155 transfers
1818
- * Lists ERC-1155 transfers for an address. Filterable by block range.
1819
- * @returns ListErc1155TransactionsResponse Successful response
1820
- * @throws ApiError
1857
+ * The block hash identifier.
1821
1858
  */
1822
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1823
- /**
1824
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1825
- */
1826
- chainId: string;
1827
- /**
1828
- * A wallet address.
1829
- */
1830
- address: string;
1831
- /**
1832
- * 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.
1833
- */
1834
- startBlock?: number;
1835
- /**
1836
- * 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.
1837
- */
1838
- endBlock?: number;
1839
- /**
1840
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1841
- */
1842
- pageToken?: string;
1843
- /**
1844
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1845
- */
1846
- pageSize?: number;
1847
- }): CancelablePromise<ListErc1155TransactionsResponse>;
1859
+ blockHash: string;
1848
1860
  /**
1849
- * List internal transactions
1850
- * Returns a list of internal transactions for an address and chain. Filterable by block range.
1851
- *
1852
- * 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.
1853
- * @returns ListInternalTransactionsResponse Successful response
1854
- * @throws ApiError
1861
+ * The transaction hash identifier.
1855
1862
  */
1856
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1857
- /**
1858
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1859
- */
1860
- chainId: string;
1861
- /**
1862
- * A wallet address.
1863
- */
1864
- address: string;
1865
- /**
1866
- * 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.
1867
- */
1868
- startBlock?: number;
1869
- /**
1870
- * 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.
1871
- */
1872
- endBlock?: number;
1873
- /**
1874
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1875
- */
1876
- pageToken?: string;
1877
- /**
1878
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1879
- */
1880
- pageSize?: number;
1881
- }): CancelablePromise<ListInternalTransactionsResponse>;
1863
+ txHash: string;
1864
+ from: RichAddress;
1865
+ to: RichAddress;
1866
+ logIndex: number;
1867
+ erc721Token: Erc721Token;
1868
+ };
1869
+
1870
+ type ListErc721TransactionsResponse = {
1882
1871
  /**
1883
- * Get transaction
1884
- * Gets the details of a single transaction.
1885
- * @returns GetTransactionResponse Successful response
1886
- * @throws ApiError
1872
+ * 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.
1887
1873
  */
1888
- getTransaction({ chainId, txHash, }: {
1889
- /**
1890
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1891
- */
1892
- chainId: string;
1893
- /**
1894
- * A transaction hash.
1895
- */
1896
- txHash: string;
1897
- }): CancelablePromise<GetTransactionResponse>;
1874
+ nextPageToken?: string;
1875
+ transactions: Array<Erc721Transfer>;
1876
+ };
1877
+
1878
+ type InternalTransaction = {
1898
1879
  /**
1899
- * List transactions for a block
1900
- * Lists the transactions that occured in a given block.
1901
- * @returns ListNativeTransactionsResponse Successful response
1902
- * @throws ApiError
1880
+ * The block number on the chain.
1903
1881
  */
1904
- getTransactionsForBlock({ chainId, blockId, }: {
1905
- /**
1906
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1907
- */
1908
- chainId: string;
1909
- /**
1910
- * A block identifier which is either a block number or the block hash.
1911
- */
1912
- blockId: string;
1913
- }): CancelablePromise<ListNativeTransactionsResponse>;
1882
+ blockNumber: string;
1914
1883
  /**
1915
- * List latest transactions
1916
- * Lists the latest transactions. Filterable by status.
1917
- * @returns ListNativeTransactionsResponse Successful response
1918
- * @throws ApiError
1884
+ * The block finality timestamp.
1919
1885
  */
1920
- listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1921
- /**
1922
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1923
- */
1924
- chainId: string;
1925
- /**
1926
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1927
- */
1928
- pageToken?: string;
1929
- /**
1930
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1931
- */
1932
- pageSize?: number;
1933
- /**
1934
- * A status filter for listed transactions.
1935
- */
1936
- status?: TransactionStatus;
1937
- }): CancelablePromise<ListNativeTransactionsResponse>;
1938
- }
1939
-
1940
- type LogsFormatMetadata = {
1886
+ blockTimestamp: number;
1941
1887
  /**
1942
- * The IP address of the client that made the request.
1888
+ * The block hash identifier.
1943
1889
  */
1944
- ipAddress: string;
1890
+ blockHash: string;
1945
1891
  /**
1946
- * The host for the request made by the client.
1892
+ * The transaction hash identifier.
1947
1893
  */
1948
- host: string;
1894
+ txHash: string;
1895
+ from: RichAddress;
1896
+ to: RichAddress;
1897
+ internalTxType: InternalTransactionOpCall;
1898
+ value: string;
1949
1899
  /**
1950
- * The user agent of the client that made the request.
1900
+ * True if the internal transaction was reverted.
1951
1901
  */
1952
- userAgent: string;
1902
+ isReverted: boolean;
1903
+ gasUsed: string;
1904
+ gasLimit: string;
1953
1905
  };
1954
1906
 
1955
- /**
1956
- * The type of request made by the client.
1957
- */
1958
- declare enum RequestType {
1959
- DATA = "data",
1960
- RPC = "rpc"
1961
- }
1962
-
1963
- type LogsFormat = {
1964
- /**
1965
- * The organization id of the request.
1966
- */
1967
- orgId: string;
1907
+ type ListInternalTransactionsResponse = {
1968
1908
  /**
1969
- * The unique log id of the request.
1909
+ * 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.
1970
1910
  */
1971
- logId: string;
1911
+ nextPageToken?: string;
1912
+ transactions: Array<InternalTransaction>;
1913
+ };
1914
+
1915
+ type NativeTransaction = {
1972
1916
  /**
1973
- * The timestamp of the request.
1917
+ * The block number on the chain.
1974
1918
  */
1975
- eventTimestamp: number;
1919
+ blockNumber: string;
1976
1920
  /**
1977
- * The apiKey used to make the request.
1921
+ * The block finality timestamp.
1978
1922
  */
1979
- apiKeyId: string;
1923
+ blockTimestamp: number;
1980
1924
  /**
1981
- * The alias of the apiKey used to make the request.
1925
+ * The block hash identifier.
1982
1926
  */
1983
- apiKeyAlias: string;
1927
+ blockHash: string;
1984
1928
  /**
1985
- * The region of the host for the request made by the client.
1929
+ * The index at which the transaction occured in the block (0-indexed).
1986
1930
  */
1987
- hostRegion: string;
1988
- requestType: RequestType;
1931
+ blockIndex: number;
1989
1932
  /**
1990
- * The path of the request made by the client.
1933
+ * The transaction hash identifier.
1991
1934
  */
1992
- requestPath: string;
1935
+ txHash: string;
1993
1936
  /**
1994
- * The number of API credits consumed by the request.
1937
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1995
1938
  */
1996
- apiCreditsConsumed: number;
1939
+ txStatus: string;
1997
1940
  /**
1998
- * The duration of the request in milliseconds.
1941
+ * The transaction type.
1999
1942
  */
2000
- requestDurationMsecs: number;
1943
+ txType: number;
2001
1944
  /**
2002
- * The response code of the request.
1945
+ * The gas limit set for the transaction.
2003
1946
  */
2004
- responseCode: number;
1947
+ gasLimit: string;
2005
1948
  /**
2006
- * The chain id of the request.
1949
+ * The amount of gas used.
2007
1950
  */
2008
- chainId?: string;
1951
+ gasUsed: string;
2009
1952
  /**
2010
- * The rpc method of the request.
1953
+ * The gas price denominated by the number of decimals of the native token.
2011
1954
  */
2012
- rpcMethod?: string;
1955
+ gasPrice: string;
2013
1956
  /**
2014
- * The metadata of the request.
1957
+ * The nonce used by the sender of the transaction.
2015
1958
  */
2016
- metadata: LogsFormatMetadata;
1959
+ nonce: string;
1960
+ from: RichAddress;
1961
+ to: RichAddress;
1962
+ method?: Method;
1963
+ value: string;
2017
1964
  };
2018
1965
 
2019
- type LogsResponseDTO = {
1966
+ type ListNativeTransactionsResponse = {
2020
1967
  /**
2021
1968
  * 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.
2022
1969
  */
2023
1970
  nextPageToken?: string;
2024
- /**
2025
- * The organization id of the request.
2026
- */
2027
- orgId: string;
2028
- /**
2029
- * An array of logs representing the requests made by clients.
2030
- */
2031
- logs: Array<LogsFormat>;
1971
+ transactions: Array<NativeTransaction>;
2032
1972
  };
2033
1973
 
2034
- declare enum TimeIntervalGranularityExtended {
2035
- MINUTE = "minute",
2036
- HOURLY = "hourly",
2037
- DAILY = "daily",
2038
- WEEKLY = "weekly",
2039
- MONTHLY = "monthly"
2040
- }
2041
-
2042
- declare enum UsageMetricsGroupByEnum {
2043
- REQUEST_PATH = "requestPath",
2044
- RESPONSE_CODE = "responseCode",
2045
- CHAIN_ID = "chainId",
2046
- API_KEY_ID = "apiKeyId",
2047
- REQUEST_TYPE = "requestType"
2048
- }
2049
-
2050
- type UsageMetricsValueDTO = {
2051
- /**
2052
- * Column name used for data aggregation
2053
- */
2054
- groupedBy: UsageMetricsValueDTO.groupedBy;
2055
- /**
2056
- * The value of the column used for data aggregation
2057
- */
2058
- groupValue?: (string | number);
2059
- /**
2060
- * The total number of requests
2061
- */
2062
- totalRequests: number;
1974
+ type TransactionDetails = {
2063
1975
  /**
2064
- * The number of requests per second
1976
+ * The native (top-level) transaction details.
2065
1977
  */
2066
- requestsPerSecond: number;
1978
+ nativeTransaction: NativeTransaction;
2067
1979
  /**
2068
- * The success rate percentage
1980
+ * The list of ERC-20 transfers.
2069
1981
  */
2070
- successRatePercent: number;
1982
+ erc20Transfers?: Array<Erc20TransferDetails>;
2071
1983
  /**
2072
- * The median response time in milliseconds
1984
+ * The list of ERC-721 transfers.
2073
1985
  */
2074
- medianResponseTimeMsecs: number;
1986
+ erc721Transfers?: Array<Erc721TransferDetails>;
2075
1987
  /**
2076
- * The number of invalid requests
1988
+ * The list of ERC-1155 transfers.
2077
1989
  */
2078
- invalidRequests: number;
1990
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
2079
1991
  /**
2080
- * The number of API credits used
1992
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
2081
1993
  */
2082
- apiCreditsUsed: number;
1994
+ internalTransactions?: Array<InternalTransactionDetails>;
1995
+ };
1996
+
1997
+ type ListTransactionDetailsResponse = {
2083
1998
  /**
2084
- * The number of API credits wasted on invalid requests
1999
+ * 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.
2085
2000
  */
2086
- apiCreditsWasted: number;
2001
+ nextPageToken?: string;
2002
+ transactions: Array<TransactionDetails>;
2087
2003
  };
2088
- declare namespace UsageMetricsValueDTO {
2004
+
2005
+ type ListTransfersResponse = {
2089
2006
  /**
2090
- * Column name used for data aggregation
2007
+ * 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.
2091
2008
  */
2092
- enum groupedBy {
2093
- REQUEST_PATH = "requestPath",
2094
- RESPONSE_CODE = "responseCode",
2095
- CHAIN_ID = "chainId",
2096
- API_KEY_ID = "apiKeyId",
2097
- REQUEST_TYPE = "requestType",
2098
- NONE = "None"
2099
- }
2009
+ nextPageToken?: string;
2010
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
2011
+ };
2012
+
2013
+ declare enum SortOrder {
2014
+ ASC = "asc",
2015
+ DESC = "desc"
2100
2016
  }
2101
2017
 
2102
- type Metric = {
2018
+ declare enum TransactionStatus {
2019
+ FAILED = "failed",
2020
+ SUCCESS = "success"
2021
+ }
2022
+
2023
+ declare class EvmTransactionsService {
2024
+ readonly httpRequest: BaseHttpRequest;
2025
+ constructor(httpRequest: BaseHttpRequest);
2103
2026
  /**
2104
- * The timestamp of the metrics value
2027
+ * Get deployment transaction
2028
+ * If the address is a smart contract, returns the transaction in which it was deployed.
2029
+ * @returns GetTransactionResponse Successful response
2030
+ * @throws ApiError
2105
2031
  */
2106
- timestamp: number;
2032
+ getDeploymentTransaction({ chainId, address, currency, }: {
2033
+ /**
2034
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2035
+ */
2036
+ chainId: string;
2037
+ /**
2038
+ * Contract address on the relevant chain.
2039
+ */
2040
+ address: string;
2041
+ /**
2042
+ * The currency that return values should use. Defaults to USD.
2043
+ */
2044
+ currency?: CurrencyCode;
2045
+ }): CancelablePromise<GetTransactionResponse>;
2107
2046
  /**
2108
- * The metrics values for the timestamp
2047
+ * List deployed contracts
2048
+ * Lists all contracts deployed by the given address.
2049
+ * @returns ListContractsResponse Successful response
2050
+ * @throws ApiError
2109
2051
  */
2110
- values: Array<UsageMetricsValueDTO>;
2111
- };
2112
-
2113
- type UsageMetricsResponseDTO = {
2052
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
2053
+ /**
2054
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2055
+ */
2056
+ chainId: string;
2057
+ /**
2058
+ * A wallet address.
2059
+ */
2060
+ address: string;
2061
+ /**
2062
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2063
+ */
2064
+ pageToken?: string;
2065
+ /**
2066
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2067
+ */
2068
+ pageSize?: number;
2069
+ }): CancelablePromise<ListContractsResponse>;
2114
2070
  /**
2115
- * Duration in which the metrics value is aggregated
2071
+ * List ERC transfers
2072
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
2073
+ * @returns ListTransfersResponse Successful response
2074
+ * @throws ApiError
2116
2075
  */
2117
- aggregateDuration: string;
2076
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2077
+ /**
2078
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2079
+ */
2080
+ chainId: string;
2081
+ /**
2082
+ * A wallet address.
2083
+ */
2084
+ address: string;
2085
+ /**
2086
+ * 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.
2087
+ */
2088
+ startBlock?: number;
2089
+ /**
2090
+ * 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.
2091
+ */
2092
+ endBlock?: number;
2093
+ /**
2094
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2095
+ */
2096
+ pageToken?: string;
2097
+ /**
2098
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2099
+ */
2100
+ pageSize?: number;
2101
+ }): CancelablePromise<ListTransfersResponse>;
2102
+ /**
2103
+ * List transactions
2104
+ * 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.
2105
+ *
2106
+ * Filterable by block ranges.
2107
+ * @returns ListTransactionDetailsResponse Successful response
2108
+ * @throws ApiError
2109
+ */
2110
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
2111
+ /**
2112
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2113
+ */
2114
+ chainId: string;
2115
+ /**
2116
+ * A wallet address.
2117
+ */
2118
+ address: string;
2119
+ /**
2120
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2121
+ */
2122
+ pageToken?: string;
2123
+ /**
2124
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2125
+ */
2126
+ pageSize?: number;
2127
+ /**
2128
+ * 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.
2129
+ */
2130
+ startBlock?: number;
2131
+ /**
2132
+ * 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.
2133
+ */
2134
+ endBlock?: number;
2135
+ /**
2136
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2137
+ */
2138
+ sortOrder?: SortOrder;
2139
+ }): CancelablePromise<ListTransactionDetailsResponse>;
2118
2140
  /**
2119
- * Org ID for which the metrics are aggregated
2141
+ * List native transactions
2142
+ * Lists native transactions for an address. Filterable by block range.
2143
+ * @returns ListNativeTransactionsResponse Successful response
2144
+ * @throws ApiError
2120
2145
  */
2121
- orgId: string;
2146
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2147
+ /**
2148
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2149
+ */
2150
+ chainId: string;
2151
+ /**
2152
+ * A wallet address.
2153
+ */
2154
+ address: string;
2155
+ /**
2156
+ * 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.
2157
+ */
2158
+ startBlock?: number;
2159
+ /**
2160
+ * 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.
2161
+ */
2162
+ endBlock?: number;
2163
+ /**
2164
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2165
+ */
2166
+ pageToken?: string;
2167
+ /**
2168
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2169
+ */
2170
+ pageSize?: number;
2171
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2122
2172
  /**
2123
- * Metrics values
2173
+ * List ERC-20 transfers
2174
+ * Lists ERC-20 transfers for an address. Filterable by block range.
2175
+ * @returns ListErc20TransactionsResponse Successful response
2176
+ * @throws ApiError
2124
2177
  */
2125
- metrics: Array<Metric>;
2126
- };
2127
-
2128
- declare class GlacierApiUsageMetricsService {
2129
- readonly httpRequest: BaseHttpRequest;
2130
- constructor(httpRequest: BaseHttpRequest);
2178
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2179
+ /**
2180
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2181
+ */
2182
+ chainId: string;
2183
+ /**
2184
+ * A wallet address.
2185
+ */
2186
+ address: string;
2187
+ /**
2188
+ * 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.
2189
+ */
2190
+ startBlock?: number;
2191
+ /**
2192
+ * 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.
2193
+ */
2194
+ endBlock?: number;
2195
+ /**
2196
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2197
+ */
2198
+ pageToken?: string;
2199
+ /**
2200
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2201
+ */
2202
+ pageSize?: number;
2203
+ }): CancelablePromise<ListErc20TransactionsResponse>;
2131
2204
  /**
2132
- * Get usage metrics for the Glacier API
2133
- * Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
2134
- * @returns UsageMetricsResponseDTO Successful response
2205
+ * List ERC-721 transfers
2206
+ * Lists ERC-721 transfers for an address. Filterable by block range.
2207
+ * @returns ListErc721TransactionsResponse Successful response
2135
2208
  * @throws ApiError
2136
2209
  */
2137
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
2210
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2138
2211
  /**
2139
- * Organization ID to fetch usage metrics for
2212
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2140
2213
  */
2141
- orgId?: string;
2214
+ chainId: string;
2142
2215
  /**
2143
- * Query param for retrieving items after a specific timestamp.
2216
+ * A wallet address.
2144
2217
  */
2145
- startTimestamp?: number;
2218
+ address: string;
2146
2219
  /**
2147
- * Query param for retrieving items before a specific timestamp.
2220
+ * 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.
2148
2221
  */
2149
- endTimestamp?: number;
2222
+ startBlock?: number;
2150
2223
  /**
2151
- * Time interval granularity for data aggregation
2224
+ * 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.
2152
2225
  */
2153
- timeInterval?: TimeIntervalGranularityExtended;
2226
+ endBlock?: number;
2154
2227
  /**
2155
- * Query param for the criterion used for grouping metrics
2228
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2156
2229
  */
2157
- groupBy?: UsageMetricsGroupByEnum;
2230
+ pageToken?: string;
2158
2231
  /**
2159
- * Filter data by request path.
2232
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2160
2233
  */
2161
- requestPath?: string;
2234
+ pageSize?: number;
2235
+ }): CancelablePromise<ListErc721TransactionsResponse>;
2236
+ /**
2237
+ * List ERC-1155 transfers
2238
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
2239
+ * @returns ListErc1155TransactionsResponse Successful response
2240
+ * @throws ApiError
2241
+ */
2242
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2162
2243
  /**
2163
- * Filter data by request type.
2244
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2164
2245
  */
2165
- requestType?: 'data' | 'rpc';
2246
+ chainId: string;
2166
2247
  /**
2167
- * Filter data by response status code.
2248
+ * A wallet address.
2168
2249
  */
2169
- responseCode?: string;
2250
+ address: string;
2170
2251
  /**
2171
- * Filter data by chain ID.
2252
+ * 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.
2172
2253
  */
2173
- chainId?: string;
2254
+ startBlock?: number;
2174
2255
  /**
2175
- * Filter data by API key ID.
2256
+ * 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.
2176
2257
  */
2177
- apiKeyId?: string;
2178
- }): CancelablePromise<UsageMetricsResponseDTO>;
2258
+ endBlock?: number;
2259
+ /**
2260
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2261
+ */
2262
+ pageToken?: string;
2263
+ /**
2264
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2265
+ */
2266
+ pageSize?: number;
2267
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
2179
2268
  /**
2180
- * Get logs for requests made by client
2181
- * Gets logs for requests made by client over a specified time interval for a specific organization.
2182
- * @returns LogsResponseDTO Successful response
2269
+ * List internal transactions
2270
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
2271
+ *
2272
+ * 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.
2273
+ * @returns ListInternalTransactionsResponse Successful response
2183
2274
  * @throws ApiError
2184
2275
  */
2185
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
2276
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2186
2277
  /**
2187
- * Organization ID to fetch usage metrics for
2278
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2188
2279
  */
2189
- orgId?: string;
2280
+ chainId: string;
2190
2281
  /**
2191
- * Query param for retrieving items after a specific timestamp.
2282
+ * A wallet address.
2192
2283
  */
2193
- startTimestamp?: number;
2284
+ address: string;
2194
2285
  /**
2195
- * Query param for retrieving items before a specific timestamp.
2286
+ * 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.
2196
2287
  */
2197
- endTimestamp?: number;
2288
+ startBlock?: number;
2198
2289
  /**
2199
- * Filter data by request path.
2290
+ * 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.
2200
2291
  */
2201
- requestPath?: string;
2292
+ endBlock?: number;
2202
2293
  /**
2203
- * Filter data by request type.
2294
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2204
2295
  */
2205
- requestType?: 'data' | 'rpc';
2296
+ pageToken?: string;
2206
2297
  /**
2207
- * Filter data by response status code.
2298
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2208
2299
  */
2209
- responseCode?: string;
2300
+ pageSize?: number;
2301
+ }): CancelablePromise<ListInternalTransactionsResponse>;
2302
+ /**
2303
+ * Get transaction
2304
+ * Gets the details of a single transaction.
2305
+ * @returns GetTransactionResponse Successful response
2306
+ * @throws ApiError
2307
+ */
2308
+ getTransaction({ chainId, txHash, }: {
2210
2309
  /**
2211
- * Filter data by chain ID.
2310
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2212
2311
  */
2213
- chainId?: string;
2312
+ chainId: string;
2214
2313
  /**
2215
- * Filter data by API key ID.
2314
+ * A transaction hash.
2216
2315
  */
2217
- apiKeyId?: string;
2316
+ txHash: string;
2317
+ }): CancelablePromise<GetTransactionResponse>;
2318
+ /**
2319
+ * List transactions for a block
2320
+ * Lists the transactions that occured in a given block.
2321
+ * @returns ListNativeTransactionsResponse Successful response
2322
+ * @throws ApiError
2323
+ */
2324
+ getTransactionsForBlock({ chainId, blockId, }: {
2325
+ /**
2326
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2327
+ */
2328
+ chainId: string;
2329
+ /**
2330
+ * A block identifier which is either a block number or the block hash.
2331
+ */
2332
+ blockId: string;
2333
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2334
+ /**
2335
+ * List latest transactions
2336
+ * Lists the latest transactions. Filterable by status.
2337
+ * @returns ListNativeTransactionsResponse Successful response
2338
+ * @throws ApiError
2339
+ */
2340
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2341
+ /**
2342
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2343
+ */
2344
+ chainId: string;
2218
2345
  /**
2219
2346
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2220
2347
  */
2221
2348
  pageToken?: string;
2222
2349
  /**
2223
- * The maximum number of items to return.
2350
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2224
2351
  */
2225
2352
  pageSize?: number;
2226
- }): CancelablePromise<LogsResponseDTO>;
2353
+ /**
2354
+ * A status filter for listed transactions.
2355
+ */
2356
+ status?: TransactionStatus;
2357
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2227
2358
  }
2228
2359
 
2229
2360
  declare class HealthCheckService {
@@ -2261,7 +2392,7 @@ declare class NfTsService {
2261
2392
  */
2262
2393
  reindexNft({ chainId, address, tokenId, }: {
2263
2394
  /**
2264
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2395
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2265
2396
  */
2266
2397
  chainId: string;
2267
2398
  /**
@@ -2281,7 +2412,7 @@ declare class NfTsService {
2281
2412
  */
2282
2413
  listTokens({ chainId, address, pageToken, pageSize, }: {
2283
2414
  /**
2284
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2415
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2285
2416
  */
2286
2417
  chainId: string;
2287
2418
  /**
@@ -2305,7 +2436,7 @@ declare class NfTsService {
2305
2436
  */
2306
2437
  getTokenDetails({ chainId, address, tokenId, }: {
2307
2438
  /**
2308
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2439
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2309
2440
  */
2310
2441
  chainId: string;
2311
2442
  /**
@@ -2330,16 +2461,16 @@ declare enum EVMOperationType {
2330
2461
 
2331
2462
  type CreateEvmTransactionExportRequest = {
2332
2463
  type: EVMOperationType;
2333
- firstDate: string;
2334
- lastDate: string;
2464
+ firstDate?: string;
2465
+ lastDate?: string;
2335
2466
  /**
2336
2467
  * @deprecated
2337
2468
  */
2338
- startDate: string;
2469
+ startDate?: string;
2339
2470
  /**
2340
2471
  * @deprecated
2341
2472
  */
2342
- endDate: string;
2473
+ endDate?: string;
2343
2474
  options: EvmNetworkOptions;
2344
2475
  };
2345
2476
 
@@ -2352,21 +2483,21 @@ declare enum PrimaryNetworkOperationType {
2352
2483
  type PrimaryNetworkOptions = {
2353
2484
  addresses?: Array<string>;
2354
2485
  cChainEvmAddresses?: Array<string>;
2355
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2486
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2356
2487
  };
2357
2488
 
2358
2489
  type CreatePrimaryNetworkTransactionExportRequest = {
2359
2490
  type: PrimaryNetworkOperationType;
2360
- firstDate: string;
2361
- lastDate: string;
2491
+ firstDate?: string;
2492
+ lastDate?: string;
2362
2493
  /**
2363
2494
  * @deprecated
2364
2495
  */
2365
- startDate: string;
2496
+ startDate?: string;
2366
2497
  /**
2367
2498
  * @deprecated
2368
2499
  */
2369
- endDate: string;
2500
+ endDate?: string;
2370
2501
  options: PrimaryNetworkOptions;
2371
2502
  };
2372
2503
 
@@ -2444,8 +2575,10 @@ declare enum BlockchainIds {
2444
2575
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2445
2576
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2446
2577
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2578
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2447
2579
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2448
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2580
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2581
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2449
2582
  }
2450
2583
 
2451
2584
  type ChainAddressChainIdMap = {
@@ -2694,6 +2827,7 @@ type CompletedValidatorDetails = {
2694
2827
  */
2695
2828
  blsCredentials?: BlsCredentials;
2696
2829
  delegatorCount: number;
2830
+ amountDelegated?: string;
2697
2831
  rewards: Rewards;
2698
2832
  validationStatus: CompletedValidatorDetails.validationStatus;
2699
2833
  };
@@ -2756,11 +2890,6 @@ type ListValidatorDetailsResponse = {
2756
2890
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2757
2891
  };
2758
2892
 
2759
- declare enum Network {
2760
- MAINNET = "mainnet",
2761
- FUJI = "fuji"
2762
- }
2763
-
2764
2893
  declare enum SortByOption {
2765
2894
  BLOCK_INDEX = "blockIndex",
2766
2895
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2820,6 +2949,7 @@ type XChainAssetDetails = {
2820
2949
  declare enum XChainId {
2821
2950
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2822
2951
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2952
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2823
2953
  X_CHAIN = "x-chain"
2824
2954
  }
2825
2955
 
@@ -2838,7 +2968,7 @@ declare class PrimaryNetworkService {
2838
2968
  */
2839
2969
  blockchainId: XChainId;
2840
2970
  /**
2841
- * Either mainnet or a testnet.
2971
+ * Either mainnet or testnet/fuji.
2842
2972
  */
2843
2973
  network: Network;
2844
2974
  /**
@@ -2858,7 +2988,7 @@ declare class PrimaryNetworkService {
2858
2988
  */
2859
2989
  addresses: string;
2860
2990
  /**
2861
- * Either mainnet or a testnet.
2991
+ * Either mainnet or testnet/fuji.
2862
2992
  */
2863
2993
  network: Network;
2864
2994
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
@@ -2870,7 +3000,7 @@ declare class PrimaryNetworkService {
2870
3000
  */
2871
3001
  getNetworkDetails({ network, }: {
2872
3002
  /**
2873
- * Either mainnet or a testnet.
3003
+ * Either mainnet or testnet/fuji.
2874
3004
  */
2875
3005
  network: Network;
2876
3006
  }): CancelablePromise<GetNetworkDetailsResponse>;
@@ -2882,7 +3012,7 @@ declare class PrimaryNetworkService {
2882
3012
  */
2883
3013
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2884
3014
  /**
2885
- * Either mainnet or a testnet.
3015
+ * Either mainnet or testnet/fuji.
2886
3016
  */
2887
3017
  network: Network;
2888
3018
  /**
@@ -2906,7 +3036,7 @@ declare class PrimaryNetworkService {
2906
3036
  */
2907
3037
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2908
3038
  /**
2909
- * Either mainnet or a testnet.
3039
+ * Either mainnet or testnet/fuji.
2910
3040
  */
2911
3041
  network: Network;
2912
3042
  /**
@@ -2930,7 +3060,7 @@ declare class PrimaryNetworkService {
2930
3060
  */
2931
3061
  getSubnetById({ network, subnetId, }: {
2932
3062
  /**
2933
- * Either mainnet or a testnet.
3063
+ * Either mainnet or testnet/fuji.
2934
3064
  */
2935
3065
  network: Network;
2936
3066
  /**
@@ -2946,7 +3076,7 @@ declare class PrimaryNetworkService {
2946
3076
  */
2947
3077
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2948
3078
  /**
2949
- * Either mainnet or a testnet.
3079
+ * Either mainnet or testnet/fuji.
2950
3080
  */
2951
3081
  network: Network;
2952
3082
  /**
@@ -3020,7 +3150,7 @@ declare class PrimaryNetworkService {
3020
3150
  */
3021
3151
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
3022
3152
  /**
3023
- * Either mainnet or a testnet.
3153
+ * Either mainnet or testnet/fuji.
3024
3154
  */
3025
3155
  network: Network;
3026
3156
  /**
@@ -3052,7 +3182,7 @@ declare class PrimaryNetworkService {
3052
3182
  */
3053
3183
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
3054
3184
  /**
3055
- * Either mainnet or a testnet.
3185
+ * Either mainnet or testnet/fuji.
3056
3186
  */
3057
3187
  network: Network;
3058
3188
  /**
@@ -3086,8 +3216,10 @@ declare enum BlockchainId {
3086
3216
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3087
3217
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3088
3218
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3219
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3089
3220
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3090
3221
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3222
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3091
3223
  P_CHAIN = "p-chain",
3092
3224
  X_CHAIN = "x-chain",
3093
3225
  C_CHAIN = "c-chain"
@@ -3126,7 +3258,8 @@ type CChainAtomicBalances = {
3126
3258
 
3127
3259
  declare enum PrimaryNetwork {
3128
3260
  MAINNET = "mainnet",
3129
- FUJI = "fuji"
3261
+ FUJI = "fuji",
3262
+ DEVNET = "devnet"
3130
3263
  }
3131
3264
 
3132
3265
  declare enum PrimaryNetworkChainName {
@@ -3298,7 +3431,7 @@ declare class PrimaryNetworkBalancesService {
3298
3431
  */
3299
3432
  blockchainId: BlockchainId;
3300
3433
  /**
3301
- * Either mainnet or a testnet.
3434
+ * Either mainnet or testnet/fuji.
3302
3435
  */
3303
3436
  network: Network;
3304
3437
  /**
@@ -3370,7 +3503,7 @@ declare class PrimaryNetworkBlocksService {
3370
3503
  */
3371
3504
  blockchainId: BlockchainId;
3372
3505
  /**
3373
- * Either mainnet or a testnet.
3506
+ * Either mainnet or testnet/fuji.
3374
3507
  */
3375
3508
  network: Network;
3376
3509
  /**
@@ -3390,7 +3523,7 @@ declare class PrimaryNetworkBlocksService {
3390
3523
  */
3391
3524
  blockchainId: BlockchainId;
3392
3525
  /**
3393
- * Either mainnet or a testnet.
3526
+ * Either mainnet or testnet/fuji.
3394
3527
  */
3395
3528
  network: Network;
3396
3529
  /**
@@ -3418,7 +3551,7 @@ declare class PrimaryNetworkBlocksService {
3418
3551
  */
3419
3552
  blockchainId: BlockchainId;
3420
3553
  /**
3421
- * Either mainnet or a testnet.
3554
+ * Either mainnet or testnet/fuji.
3422
3555
  */
3423
3556
  network: Network;
3424
3557
  /**
@@ -3552,7 +3685,7 @@ declare class PrimaryNetworkRewardsService {
3552
3685
  */
3553
3686
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3554
3687
  /**
3555
- * Either mainnet or a testnet.
3688
+ * Either mainnet or testnet/fuji.
3556
3689
  */
3557
3690
  network: Network;
3558
3691
  /**
@@ -3584,7 +3717,7 @@ declare class PrimaryNetworkRewardsService {
3584
3717
  */
3585
3718
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3586
3719
  /**
3587
- * Either mainnet or a testnet.
3720
+ * Either mainnet or testnet/fuji.
3588
3721
  */
3589
3722
  network: Network;
3590
3723
  /**
@@ -4175,7 +4308,7 @@ declare class PrimaryNetworkTransactionsService {
4175
4308
  */
4176
4309
  blockchainId: BlockchainId;
4177
4310
  /**
4178
- * Either mainnet or a testnet.
4311
+ * Either mainnet or testnet/fuji.
4179
4312
  */
4180
4313
  network: Network;
4181
4314
  /**
@@ -4193,19 +4326,19 @@ declare class PrimaryNetworkTransactionsService {
4193
4326
  * @returns any Successful response
4194
4327
  * @throws ApiError
4195
4328
  */
4196
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4197
- /**
4198
- * 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.
4199
- */
4200
- addresses: string;
4329
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4201
4330
  /**
4202
4331
  * A primary network blockchain id or alias.
4203
4332
  */
4204
4333
  blockchainId: BlockchainId;
4205
4334
  /**
4206
- * Either mainnet or a testnet.
4335
+ * Either mainnet or testnet/fuji.
4207
4336
  */
4208
4337
  network: Network;
4338
+ /**
4339
+ * 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.
4340
+ */
4341
+ addresses?: string;
4209
4342
  /**
4210
4343
  * Query param for filtering items based on transaction types.
4211
4344
  */
@@ -4243,7 +4376,7 @@ declare class PrimaryNetworkTransactionsService {
4243
4376
  */
4244
4377
  blockchainId: PChainId;
4245
4378
  /**
4246
- * Either mainnet or a testnet.
4379
+ * Either mainnet or testnet/fuji.
4247
4380
  */
4248
4381
  network: Network;
4249
4382
  /**
@@ -4287,7 +4420,7 @@ declare class PrimaryNetworkTransactionsService {
4287
4420
  */
4288
4421
  blockchainId: XChainId;
4289
4422
  /**
4290
- * Either mainnet or a testnet.
4423
+ * Either mainnet or testnet/fuji.
4291
4424
  */
4292
4425
  network: Network;
4293
4426
  /**
@@ -4350,7 +4483,7 @@ declare class PrimaryNetworkUtxOsService {
4350
4483
  */
4351
4484
  blockchainId: BlockchainId;
4352
4485
  /**
4353
- * Either mainnet or a testnet.
4486
+ * Either mainnet or testnet/fuji.
4354
4487
  */
4355
4488
  network: Network;
4356
4489
  /**
@@ -4415,7 +4548,7 @@ declare class PrimaryNetworkVerticesService {
4415
4548
  */
4416
4549
  blockchainId: XChainId;
4417
4550
  /**
4418
- * Either mainnet or a testnet.
4551
+ * Either mainnet or testnet/fuji.
4419
4552
  */
4420
4553
  network: Network;
4421
4554
  /**
@@ -4443,7 +4576,7 @@ declare class PrimaryNetworkVerticesService {
4443
4576
  */
4444
4577
  blockchainId: XChainId;
4445
4578
  /**
4446
- * Either mainnet or a testnet.
4579
+ * Either mainnet or testnet/fuji.
4447
4580
  */
4448
4581
  network: Network;
4449
4582
  }): CancelablePromise<XChainVertex>;
@@ -4463,7 +4596,7 @@ declare class PrimaryNetworkVerticesService {
4463
4596
  */
4464
4597
  blockchainId: XChainId;
4465
4598
  /**
4466
- * Either mainnet or a testnet.
4599
+ * Either mainnet or testnet/fuji.
4467
4600
  */
4468
4601
  network: Network;
4469
4602
  /**
@@ -4517,13 +4650,44 @@ declare class RpcService {
4517
4650
  */
4518
4651
  rpc({ chainId, requestBody, }: {
4519
4652
  /**
4520
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4653
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4521
4654
  */
4522
4655
  chainId: string;
4523
4656
  requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4524
4657
  }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4525
4658
  }
4526
4659
 
4660
+ type SignatureAggregationResponse = {
4661
+ signedMessage: string;
4662
+ };
4663
+
4664
+ type SignatureAggregatorRequest = {
4665
+ /**
4666
+ * Must be defined if justification is not defined
4667
+ */
4668
+ message?: string;
4669
+ /**
4670
+ * Must be defined if message is not defined
4671
+ */
4672
+ justification?: string;
4673
+ signingSubnetId?: string;
4674
+ quorumPercentage?: number;
4675
+ };
4676
+
4677
+ declare class SignatureAggregatorService {
4678
+ readonly httpRequest: BaseHttpRequest;
4679
+ constructor(httpRequest: BaseHttpRequest);
4680
+ /**
4681
+ * Aggregate Signatures
4682
+ * Aggregates Signatures for a Warp message from Subnet validators.
4683
+ * @returns SignatureAggregationResponse Successful response
4684
+ * @throws ApiError
4685
+ */
4686
+ aggregateSignatures({ requestBody, }: {
4687
+ requestBody: SignatureAggregatorRequest;
4688
+ }): CancelablePromise<SignatureAggregationResponse>;
4689
+ }
4690
+
4527
4691
  type TeleporterDestinationTransaction = {
4528
4692
  txHash: string;
4529
4693
  timestamp: number;
@@ -4709,9 +4873,9 @@ declare class TeleporterService {
4709
4873
  */
4710
4874
  from?: string;
4711
4875
  /**
4712
- * mainnet or testnet.
4876
+ * Either mainnet or testnet/fuji.
4713
4877
  */
4714
- network?: NetworkType;
4878
+ network?: Network;
4715
4879
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4716
4880
  /**
4717
4881
  * List teleporter messages by address
@@ -4733,9 +4897,9 @@ declare class TeleporterService {
4733
4897
  */
4734
4898
  pageSize?: number;
4735
4899
  /**
4736
- * mainnet or testnet.
4900
+ * Either mainnet or testnet/fuji.
4737
4901
  */
4738
- network?: NetworkType;
4902
+ network?: Network;
4739
4903
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4740
4904
  }
4741
4905
 
@@ -4971,13 +5135,13 @@ declare class WebhooksService {
4971
5135
 
4972
5136
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4973
5137
  declare class Glacier {
5138
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4974
5139
  readonly default: DefaultService;
4975
5140
  readonly evmBalances: EvmBalancesService;
4976
5141
  readonly evmBlocks: EvmBlocksService;
4977
5142
  readonly evmChains: EvmChainsService;
4978
5143
  readonly evmContracts: EvmContractsService;
4979
5144
  readonly evmTransactions: EvmTransactionsService;
4980
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
4981
5145
  readonly healthCheck: HealthCheckService;
4982
5146
  readonly nfTs: NfTsService;
4983
5147
  readonly operations: OperationsService;
@@ -4989,6 +5153,7 @@ declare class Glacier {
4989
5153
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4990
5154
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4991
5155
  readonly rpc: RpcService;
5156
+ readonly signatureAggregator: SignatureAggregatorService;
4992
5157
  readonly teleporter: TeleporterService;
4993
5158
  readonly webhooks: WebhooksService;
4994
5159
  readonly request: BaseHttpRequest;
@@ -5143,4 +5308,4 @@ type Unauthorized = {
5143
5308
  error: string;
5144
5309
  };
5145
5310
 
5146
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, 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, DataListChainsResponse, 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, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, GlacierApiUsageMetricsService, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, 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, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, 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, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5311
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, 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, DataApiUsageMetricsService, DataListChainsResponse, 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, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, 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, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, 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, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };