@avalabs/glacier-sdk 3.1.0-canary.1784917.0 → 3.1.0-canary.18b53a8.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 (29) hide show
  1. package/dist/index.d.ts +1262 -1210
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +2 -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/ChainInfo.d.ts +1 -1
  8. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  9. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  10. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  11. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  12. package/esm/generated/models/RequestType.d.ts +2 -2
  13. package/esm/generated/models/RequestType.js +1 -1
  14. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  15. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  16. package/esm/generated/models/TransactionDirectionType.js +1 -0
  17. package/esm/generated/services/{GlacierApiUsageMetricsService.d.ts → DataApiUsageMetricsService.d.ts} +10 -10
  18. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  19. package/esm/generated/services/EvmChainsService.d.ts +2 -2
  20. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  21. package/esm/generated/services/HealthCheckService.js +1 -1
  22. package/esm/generated/services/TeleporterService.d.ts +24 -0
  23. package/esm/generated/services/TeleporterService.js +1 -1
  24. package/esm/index.d.ts +5 -2
  25. package/esm/index.js +1 -1
  26. package/package.json +2 -2
  27. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  28. package/esm/generated/models/GlacierApiFeature.js +0 -1
  29. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,592 +54,502 @@ 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;
117
+ requestDurationMsecs: number;
118
+ /**
119
+ * The response code of the request.
120
+ */
121
+ responseCode: number;
122
+ /**
123
+ * The chain id of the request.
124
+ */
125
+ chainId?: string;
126
+ /**
127
+ * The rpc method of the request.
128
+ */
129
+ rpcMethod?: string;
130
+ /**
131
+ * The metadata of the request.
132
+ */
133
+ metadata: LogsFormatMetadata;
128
134
  };
129
135
 
130
- type GetNativeBalanceResponse = {
136
+ type LogsResponseDTO = {
131
137
  /**
132
- * The native token balance for the address.
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.
133
139
  */
134
- nativeTokenBalance: NativeTokenBalance;
140
+ nextPageToken?: string;
141
+ /**
142
+ * The organization id of the request.
143
+ */
144
+ orgId: string;
145
+ /**
146
+ * An array of logs representing the requests made by clients.
147
+ */
148
+ logs: Array<LogsFormat>;
135
149
  };
136
150
 
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"
151
+ declare enum TimeIntervalGranularityExtended {
152
+ MINUTE = "minute",
153
+ HOURLY = "hourly",
154
+ DAILY = "daily",
155
+ WEEKLY = "weekly",
156
+ MONTHLY = "monthly"
152
157
  }
153
158
 
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
- };
159
+ declare enum UsageMetricsGroupByEnum {
160
+ REQUEST_PATH = "requestPath",
161
+ RESPONSE_CODE = "responseCode",
162
+ CHAIN_ID = "chainId",
163
+ API_KEY_ID = "apiKeyId",
164
+ REQUEST_TYPE = "requestType"
165
+ }
167
166
 
168
- type Erc1155TokenBalance = {
167
+ type UsageMetricsValueDTO = {
169
168
  /**
170
- * A wallet or contract address in mixed-case checksum encoding.
169
+ * Column name used for data aggregation
171
170
  */
172
- address: string;
173
- ercType: Erc1155TokenBalance.ercType;
174
- tokenId: string;
175
- tokenUri: string;
176
- metadata: Erc1155TokenMetadata;
171
+ groupedBy: UsageMetricsValueDTO.groupedBy;
177
172
  /**
178
- * The evm chain id.
173
+ * The value of the column used for data aggregation
179
174
  */
180
- chainId: string;
175
+ groupValue?: (string | number);
181
176
  /**
182
- * The address balance for the token, in units specified by the `decimals` value for the contract.
177
+ * The total number of requests
183
178
  */
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;
203
- };
204
-
205
- type Erc721TokenBalance = {
179
+ totalRequests: number;
206
180
  /**
207
- * A wallet or contract address in mixed-case checksum encoding.
181
+ * The number of requests per second
208
182
  */
209
- address: string;
183
+ requestsPerSecond: number;
210
184
  /**
211
- * The contract name.
185
+ * The success rate percentage
212
186
  */
213
- name: string;
187
+ successRatePercent: number;
214
188
  /**
215
- * The contract symbol.
189
+ * The median response time in milliseconds
216
190
  */
217
- symbol: string;
218
- ercType: Erc721TokenBalance.ercType;
219
- tokenId: string;
220
- tokenUri: string;
221
- metadata: Erc721TokenMetadata;
191
+ medianResponseTimeMsecs: number;
222
192
  /**
223
- * A wallet or contract address in mixed-case checksum encoding.
193
+ * The number of invalid requests
224
194
  */
225
- ownerAddress?: string;
195
+ invalidRequests: number;
226
196
  /**
227
- * The evm chain id.
197
+ * The number of API credits used
228
198
  */
229
- chainId: string;
199
+ apiCreditsUsed: number;
200
+ /**
201
+ * The number of API credits wasted on invalid requests
202
+ */
203
+ apiCreditsWasted: number;
230
204
  };
231
- declare namespace Erc721TokenBalance {
232
- enum ercType {
233
- ERC_721 = "ERC-721"
205
+ declare namespace UsageMetricsValueDTO {
206
+ /**
207
+ * Column name used for data aggregation
208
+ */
209
+ enum groupedBy {
210
+ REQUEST_PATH = "requestPath",
211
+ RESPONSE_CODE = "responseCode",
212
+ CHAIN_ID = "chainId",
213
+ API_KEY_ID = "apiKeyId",
214
+ REQUEST_TYPE = "requestType",
215
+ NONE = "None"
234
216
  }
235
217
  }
236
218
 
237
- type ListCollectibleBalancesResponse = {
219
+ type Metric = {
238
220
  /**
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.
221
+ * The timestamp of the metrics value
240
222
  */
241
- nextPageToken?: string;
223
+ timestamp: number;
242
224
  /**
243
- * The list of ERC-721 and ERC-1155 token balances for the address.
225
+ * The metrics values for the timestamp
244
226
  */
245
- collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
227
+ values: Array<UsageMetricsValueDTO>;
246
228
  };
247
229
 
248
- type ListErc1155BalancesResponse = {
230
+ type UsageMetricsResponseDTO = {
249
231
  /**
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.
232
+ * Duration in which the metrics value is aggregated
251
233
  */
252
- nextPageToken?: string;
234
+ aggregateDuration: string;
253
235
  /**
254
- * The list of ERC-1155 token balances for the address.
236
+ * Org ID for which the metrics are aggregated
255
237
  */
256
- erc1155TokenBalances: Array<Erc1155TokenBalance>;
238
+ orgId: string;
239
+ /**
240
+ * Metrics values
241
+ */
242
+ metrics: Array<Metric>;
257
243
  };
258
244
 
259
- type Erc20TokenBalance = {
260
- /**
261
- * A wallet or contract address in mixed-case checksum encoding.
262
- */
263
- address: string;
264
- /**
265
- * The contract name.
266
- */
267
- name: string;
268
- /**
269
- * The contract symbol.
270
- */
271
- symbol: string;
272
- /**
273
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
274
- */
275
- decimals: number;
276
- /**
277
- * The logo uri for the address.
278
- */
279
- logoUri?: string;
280
- ercType: Erc20TokenBalance.ercType;
281
- /**
282
- * The token price, if available.
283
- */
284
- price?: Money;
285
- /**
286
- * The evm chain id.
287
- */
288
- chainId: string;
289
- /**
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.
295
- */
296
- balanceValue?: Money;
297
- };
298
- declare namespace Erc20TokenBalance {
299
- enum ercType {
300
- ERC_20 = "ERC-20"
301
- }
302
- }
303
-
304
- type ListErc20BalancesResponse = {
305
- /**
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.
307
- */
308
- nextPageToken?: string;
309
- /**
310
- * The list of ERC-20 token balances for the address.
311
- */
312
- erc20TokenBalances: Array<Erc20TokenBalance>;
313
- };
314
-
315
- type ListErc721BalancesResponse = {
316
- /**
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.
318
- */
319
- nextPageToken?: string;
320
- /**
321
- * The list of ERC-721 token balances for the address.
322
- */
323
- erc721TokenBalances: Array<Erc721TokenBalance>;
324
- };
325
-
326
- declare class EvmBalancesService {
245
+ declare class DataApiUsageMetricsService {
327
246
  readonly httpRequest: BaseHttpRequest;
328
247
  constructor(httpRequest: BaseHttpRequest);
329
248
  /**
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
249
+ * Get usage metrics for the Data API
250
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
251
+ * @returns UsageMetricsResponseDTO Successful response
335
252
  * @throws ApiError
336
253
  */
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;
254
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
346
255
  /**
347
- * The block number, if not defined the block number will be the latest block.
256
+ * Organization ID to fetch usage metrics for
348
257
  */
349
- blockNumber?: string;
258
+ orgId?: string;
350
259
  /**
351
- * The currency that return values should use. Defaults to USD.
260
+ * Query param for retrieving items after a specific timestamp.
352
261
  */
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, }: {
262
+ startTimestamp?: number;
366
263
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
264
+ * Query param for retrieving items before a specific timestamp.
368
265
  */
369
- chainId: string;
266
+ endTimestamp?: number;
370
267
  /**
371
- * A wallet address.
268
+ * Time interval granularity for data aggregation
372
269
  */
373
- address: string;
270
+ timeInterval?: TimeIntervalGranularityExtended;
374
271
  /**
375
- * The block number, if not defined the block number will be the latest block.
272
+ * Query param for the criterion used for grouping metrics
376
273
  */
377
- blockNumber?: string;
274
+ groupBy?: UsageMetricsGroupByEnum;
378
275
  /**
379
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
276
+ * Filter data by request path.
380
277
  */
381
- pageToken?: string;
278
+ requestPath?: string;
382
279
  /**
383
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
280
+ * Filter data by request type.
384
281
  */
385
- pageSize?: number;
282
+ requestType?: 'data' | 'rpc';
386
283
  /**
387
- * whether to filter out spam tokens from the response. Default is true.
284
+ * Filter data by response status code.
388
285
  */
389
- filterSpamTokens?: boolean;
286
+ responseCode?: string;
390
287
  /**
391
- * A comma separated list of contract addresses to filter by.
288
+ * Filter data by chain ID.
392
289
  */
393
- contractAddresses?: string;
290
+ chainId?: string;
394
291
  /**
395
- * The currency that return values should use. Defaults to USD.
292
+ * Filter data by API key ID.
396
293
  */
397
- currency?: CurrencyCode;
398
- }): CancelablePromise<ListErc20BalancesResponse>;
294
+ apiKeyId?: string;
295
+ }): CancelablePromise<UsageMetricsResponseDTO>;
399
296
  /**
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
297
+ * Get logs for requests made by client
298
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
299
+ * @returns LogsResponseDTO Successful response
405
300
  * @throws ApiError
406
301
  */
407
- listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
302
+ getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
408
303
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
304
+ * Organization ID to fetch usage metrics for
410
305
  */
411
- chainId: string;
306
+ orgId?: string;
412
307
  /**
413
- * A wallet address.
308
+ * Query param for retrieving items after a specific timestamp.
414
309
  */
415
- address: string;
310
+ startTimestamp?: number;
416
311
  /**
417
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
312
+ * Query param for retrieving items before a specific timestamp.
418
313
  */
419
- pageToken?: string;
314
+ endTimestamp?: number;
420
315
  /**
421
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
316
+ * Filter data by request path.
422
317
  */
423
- pageSize?: number;
318
+ requestPath?: string;
424
319
  /**
425
- * A contract addresses to filter by.
320
+ * Filter data by request type.
426
321
  */
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, }: {
322
+ requestType?: 'data' | 'rpc';
440
323
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
324
+ * Filter data by response status code.
442
325
  */
443
- chainId: string;
326
+ responseCode?: string;
444
327
  /**
445
- * A wallet address.
328
+ * Filter data by chain ID.
446
329
  */
447
- address: string;
330
+ chainId?: string;
448
331
  /**
449
- * The block number, if not defined the block number will be the latest block.
332
+ * Filter data by API key ID.
450
333
  */
451
- blockNumber?: string;
334
+ apiKeyId?: string;
452
335
  /**
453
336
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
454
337
  */
455
338
  pageToken?: string;
456
339
  /**
457
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
340
+ * The maximum number of items to return.
458
341
  */
459
342
  pageSize?: number;
460
- /**
461
- * A contract addresses to filter by.
462
- */
463
- contractAddress?: string;
464
- }): CancelablePromise<ListErc1155BalancesResponse>;
343
+ }): CancelablePromise<LogsResponseDTO>;
344
+ }
345
+
346
+ declare class DefaultService {
347
+ readonly httpRequest: BaseHttpRequest;
348
+ constructor(httpRequest: BaseHttpRequest);
465
349
  /**
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
350
+ * @returns any
471
351
  * @throws ApiError
472
352
  */
473
- listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
474
- /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
476
- */
477
- chainId: string;
478
- /**
479
- * A wallet address.
480
- */
481
- address: string;
482
- /**
483
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
484
- */
485
- pageToken?: string;
486
- /**
487
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
488
- */
489
- pageSize?: number;
490
- /**
491
- * A contract addresses to filter by.
492
- */
493
- contractAddress?: string;
494
- }): CancelablePromise<ListCollectibleBalancesResponse>;
353
+ mediaControllerUploadImage(): CancelablePromise<any>;
495
354
  }
496
355
 
497
- type GetEvmBlockResponse = {
356
+ /**
357
+ * ISO 4217 currency code.
358
+ */
359
+ declare enum CurrencyCode {
360
+ USD = "usd",
361
+ EUR = "eur",
362
+ AUD = "aud",
363
+ CAD = "cad",
364
+ CHF = "chf",
365
+ CLP = "clp",
366
+ CNY = "cny",
367
+ CZK = "czk",
368
+ DKK = "dkk",
369
+ GBP = "gbp",
370
+ HKD = "hkd",
371
+ HUF = "huf",
372
+ JPY = "jpy",
373
+ NZD = "nzd"
374
+ }
375
+
376
+ type Money = {
377
+ currencyCode: CurrencyCode;
498
378
  /**
499
- * The block number on the chain.
379
+ * Monetary value in base 10 decimals.
500
380
  */
501
- blockNumber: string;
502
- /**
503
- * The block finality timestamp.
504
- */
505
- blockTimestamp: number;
381
+ value: number;
382
+ };
383
+
384
+ type NativeTokenBalance = {
506
385
  /**
507
- * The block hash identifier.
386
+ * The contract name.
508
387
  */
509
- blockHash: string;
388
+ name: string;
510
389
  /**
511
- * The number of evm transactions in the block.
390
+ * The contract symbol.
512
391
  */
513
- txCount: number;
392
+ symbol: string;
514
393
  /**
515
- * The base gas fee for a transaction to be included in the block.
394
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
516
395
  */
517
- baseFee: string;
396
+ decimals: number;
518
397
  /**
519
- * The gas used for transactions in the block.
398
+ * The logo uri for the address.
520
399
  */
521
- gasUsed: string;
400
+ logoUri?: string;
522
401
  /**
523
- * The total gas limit set for transactions in the block.
402
+ * The evm chain id.
524
403
  */
525
- gasLimit: string;
526
- gasCost: string;
404
+ chainId: string;
527
405
  /**
528
- * The hash of the parent block.
406
+ * The token price, if available.
529
407
  */
530
- parentHash: string;
408
+ price?: Money;
531
409
  /**
532
- * The amount of fees spent/burned for transactions in the block.
410
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
533
411
  */
534
- feesSpent: string;
412
+ balance: string;
535
413
  /**
536
- * The cumulative number of transactions for the chain including this block.
414
+ * The monetary value of the balance, if a price is available for the token.
537
415
  */
538
- cumulativeTransactions: string;
416
+ balanceValue?: Money;
539
417
  };
540
418
 
541
- type EvmBlock = {
542
- /**
543
- * The block number on the chain.
544
- */
545
- blockNumber: string;
419
+ type GetNativeBalanceResponse = {
546
420
  /**
547
- * The block finality timestamp.
421
+ * The native token balance for the address.
548
422
  */
549
- blockTimestamp: number;
423
+ nativeTokenBalance: NativeTokenBalance;
424
+ };
425
+
426
+ /**
427
+ * The metadata indexing status of the nft.
428
+ */
429
+ declare enum NftTokenMetadataStatus {
430
+ UNKNOWN = "UNKNOWN",
431
+ MISSING_TOKEN = "MISSING_TOKEN",
432
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
433
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
434
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
435
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
436
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
437
+ INVALID_METADATA = "INVALID_METADATA",
438
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
439
+ INDEXED = "INDEXED",
440
+ UNINDEXED = "UNINDEXED"
441
+ }
442
+
443
+ type Erc1155TokenMetadata = {
444
+ indexStatus: NftTokenMetadataStatus;
445
+ metadataLastUpdatedTimestamp?: number;
446
+ name?: string;
447
+ symbol?: string;
448
+ imageUri?: string;
449
+ description?: string;
450
+ animationUri?: string;
451
+ externalUrl?: string;
452
+ background?: string;
453
+ decimals?: number;
454
+ properties?: string;
455
+ };
456
+
457
+ type Erc1155TokenBalance = {
550
458
  /**
551
- * The block hash identifier.
459
+ * A wallet or contract address in mixed-case checksum encoding.
552
460
  */
553
- blockHash: string;
461
+ address: string;
462
+ ercType: Erc1155TokenBalance.ercType;
463
+ tokenId: string;
464
+ tokenUri: string;
465
+ metadata: Erc1155TokenMetadata;
554
466
  /**
555
- * The number of evm transactions in the block.
467
+ * The evm chain id.
556
468
  */
557
- txCount: number;
469
+ chainId: string;
558
470
  /**
559
- * The base gas fee for a transaction to be included in the block.
471
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
560
472
  */
561
- baseFee: string;
473
+ balance: string;
474
+ };
475
+ declare namespace Erc1155TokenBalance {
476
+ enum ercType {
477
+ ERC_1155 = "ERC-1155"
478
+ }
479
+ }
480
+
481
+ type Erc721TokenMetadata = {
482
+ indexStatus: NftTokenMetadataStatus;
483
+ metadataLastUpdatedTimestamp?: number;
484
+ name?: string;
485
+ symbol?: string;
486
+ imageUri?: string;
487
+ description?: string;
488
+ animationUri?: string;
489
+ externalUrl?: string;
490
+ background?: string;
491
+ attributes?: string;
492
+ };
493
+
494
+ type Erc721TokenBalance = {
562
495
  /**
563
- * The gas used for transactions in the block.
496
+ * A wallet or contract address in mixed-case checksum encoding.
564
497
  */
565
- gasUsed: string;
498
+ address: string;
566
499
  /**
567
- * The total gas limit set for transactions in the block.
500
+ * The contract name.
568
501
  */
569
- gasLimit: string;
570
- gasCost: string;
502
+ name: string;
571
503
  /**
572
- * The hash of the parent block.
504
+ * The contract symbol.
573
505
  */
574
- parentHash: string;
506
+ symbol: string;
507
+ ercType: Erc721TokenBalance.ercType;
508
+ tokenId: string;
509
+ tokenUri: string;
510
+ metadata: Erc721TokenMetadata;
575
511
  /**
576
- * The amount of fees spent/burned for transactions in the block.
512
+ * A wallet or contract address in mixed-case checksum encoding.
577
513
  */
578
- feesSpent: string;
514
+ ownerAddress?: string;
579
515
  /**
580
- * The cumulative number of transactions for the chain including this block.
516
+ * The evm chain id.
581
517
  */
582
- cumulativeTransactions: string;
518
+ chainId: string;
583
519
  };
520
+ declare namespace Erc721TokenBalance {
521
+ enum ercType {
522
+ ERC_721 = "ERC-721"
523
+ }
524
+ }
584
525
 
585
- type ListEvmBlocksResponse = {
526
+ type ListCollectibleBalancesResponse = {
586
527
  /**
587
528
  * 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
529
  */
589
530
  nextPageToken?: string;
590
- blocks: Array<EvmBlock>;
531
+ /**
532
+ * The list of ERC-721 and ERC-1155 token balances for the address.
533
+ */
534
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
591
535
  };
592
536
 
593
- declare class EvmBlocksService {
594
- readonly httpRequest: BaseHttpRequest;
595
- constructor(httpRequest: BaseHttpRequest);
537
+ type ListErc1155BalancesResponse = {
596
538
  /**
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
539
+ * 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
540
  */
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>;
541
+ nextPageToken?: string;
616
542
  /**
617
- * Get block
618
- * Gets the details of an individual block on the EVM-compatible chain.
619
- * @returns GetEvmBlockResponse Successful response
620
- * @throws ApiError
543
+ * The list of ERC-1155 token balances for the address.
621
544
  */
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
- }
545
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
546
+ };
641
547
 
642
- type NetworkToken = {
548
+ type Erc20TokenBalance = {
549
+ /**
550
+ * A wallet or contract address in mixed-case checksum encoding.
551
+ */
552
+ address: string;
643
553
  /**
644
554
  * The contract name.
645
555
  */
@@ -656,22 +566,407 @@ type NetworkToken = {
656
566
  * The logo uri for the address.
657
567
  */
658
568
  logoUri?: string;
659
- description?: string;
569
+ ercType: Erc20TokenBalance.ercType;
570
+ /**
571
+ * The token price, if available.
572
+ */
573
+ price?: Money;
574
+ /**
575
+ * The evm chain id.
576
+ */
577
+ chainId: string;
578
+ /**
579
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
580
+ */
581
+ balance: string;
582
+ /**
583
+ * The monetary value of the balance, if a price is available for the token.
584
+ */
585
+ balanceValue?: Money;
660
586
  };
587
+ declare namespace Erc20TokenBalance {
588
+ enum ercType {
589
+ ERC_20 = "ERC-20"
590
+ }
591
+ }
661
592
 
662
- type UtilityAddresses = {
663
- multicall?: string;
593
+ type ListErc20BalancesResponse = {
594
+ /**
595
+ * 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.
596
+ */
597
+ nextPageToken?: string;
598
+ /**
599
+ * The list of ERC-20 token balances for the address.
600
+ */
601
+ erc20TokenBalances: Array<Erc20TokenBalance>;
664
602
  };
665
603
 
666
- declare enum VmName {
667
- EVM = "EVM",
668
- BITCOIN = "BITCOIN",
669
- ETHEREUM = "ETHEREUM"
670
- }
671
-
672
- type GetChainResponse = {
673
- chainId: string;
674
- status: ChainStatus;
604
+ type ListErc721BalancesResponse = {
605
+ /**
606
+ * 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.
607
+ */
608
+ nextPageToken?: string;
609
+ /**
610
+ * The list of ERC-721 token balances for the address.
611
+ */
612
+ erc721TokenBalances: Array<Erc721TokenBalance>;
613
+ };
614
+
615
+ declare class EvmBalancesService {
616
+ readonly httpRequest: BaseHttpRequest;
617
+ constructor(httpRequest: BaseHttpRequest);
618
+ /**
619
+ * Get native token balance
620
+ * Gets native token balance of a wallet address.
621
+ *
622
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
623
+ * @returns GetNativeBalanceResponse Successful response
624
+ * @throws ApiError
625
+ */
626
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
627
+ /**
628
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
629
+ */
630
+ chainId: string;
631
+ /**
632
+ * A wallet address.
633
+ */
634
+ address: string;
635
+ /**
636
+ * The block number, if not defined the block number will be the latest block.
637
+ */
638
+ blockNumber?: string;
639
+ /**
640
+ * The currency that return values should use. Defaults to USD.
641
+ */
642
+ currency?: CurrencyCode;
643
+ }): CancelablePromise<GetNativeBalanceResponse>;
644
+ /**
645
+ * List ERC-20 balances
646
+ * Lists ERC-20 token balances of a wallet address.
647
+ *
648
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
649
+ *
650
+ * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
651
+ * @returns ListErc20BalancesResponse Successful response
652
+ * @throws ApiError
653
+ */
654
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
655
+ /**
656
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
657
+ */
658
+ chainId: string;
659
+ /**
660
+ * A wallet address.
661
+ */
662
+ address: string;
663
+ /**
664
+ * The block number, if not defined the block number will be the latest block.
665
+ */
666
+ blockNumber?: string;
667
+ /**
668
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
669
+ */
670
+ pageToken?: string;
671
+ /**
672
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
673
+ */
674
+ pageSize?: number;
675
+ /**
676
+ * whether to filter out spam tokens from the response. Default is true.
677
+ */
678
+ filterSpamTokens?: boolean;
679
+ /**
680
+ * A comma separated list of contract addresses to filter by.
681
+ */
682
+ contractAddresses?: string;
683
+ /**
684
+ * The currency that return values should use. Defaults to USD.
685
+ */
686
+ currency?: CurrencyCode;
687
+ }): CancelablePromise<ListErc20BalancesResponse>;
688
+ /**
689
+ * List ERC-721 balances
690
+ * Lists ERC-721 token balances of a wallet address.
691
+ *
692
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
693
+ * @returns ListErc721BalancesResponse Successful response
694
+ * @throws ApiError
695
+ */
696
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
697
+ /**
698
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
699
+ */
700
+ chainId: string;
701
+ /**
702
+ * A wallet address.
703
+ */
704
+ address: string;
705
+ /**
706
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
707
+ */
708
+ pageToken?: string;
709
+ /**
710
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
711
+ */
712
+ pageSize?: number;
713
+ /**
714
+ * A contract addresses to filter by.
715
+ */
716
+ contractAddress?: string;
717
+ }): CancelablePromise<ListErc721BalancesResponse>;
718
+ /**
719
+ * List ERC-1155 balances
720
+ * Lists ERC-1155 token balances of a wallet address.
721
+ *
722
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
723
+ *
724
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
725
+ * @returns ListErc1155BalancesResponse Successful response
726
+ * @throws ApiError
727
+ */
728
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
729
+ /**
730
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
731
+ */
732
+ chainId: string;
733
+ /**
734
+ * A wallet address.
735
+ */
736
+ address: string;
737
+ /**
738
+ * The block number, if not defined the block number will be the latest block.
739
+ */
740
+ blockNumber?: string;
741
+ /**
742
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
743
+ */
744
+ pageToken?: string;
745
+ /**
746
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
747
+ */
748
+ pageSize?: number;
749
+ /**
750
+ * A contract addresses to filter by.
751
+ */
752
+ contractAddress?: string;
753
+ }): CancelablePromise<ListErc1155BalancesResponse>;
754
+ /**
755
+ * List collectible (ERC-721/ERC-1155) balances
756
+ * Lists ERC-721 and ERC-1155 token balances of a wallet address.
757
+ *
758
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
759
+ * @returns ListCollectibleBalancesResponse Successful response
760
+ * @throws ApiError
761
+ */
762
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
763
+ /**
764
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
765
+ */
766
+ chainId: string;
767
+ /**
768
+ * A wallet address.
769
+ */
770
+ address: string;
771
+ /**
772
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
773
+ */
774
+ pageToken?: string;
775
+ /**
776
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
777
+ */
778
+ pageSize?: number;
779
+ /**
780
+ * A contract addresses to filter by.
781
+ */
782
+ contractAddress?: string;
783
+ }): CancelablePromise<ListCollectibleBalancesResponse>;
784
+ }
785
+
786
+ type GetEvmBlockResponse = {
787
+ /**
788
+ * The block number on the chain.
789
+ */
790
+ blockNumber: string;
791
+ /**
792
+ * The block finality timestamp.
793
+ */
794
+ blockTimestamp: number;
795
+ /**
796
+ * The block hash identifier.
797
+ */
798
+ blockHash: string;
799
+ /**
800
+ * The number of evm transactions in the block.
801
+ */
802
+ txCount: number;
803
+ /**
804
+ * The base gas fee for a transaction to be included in the block.
805
+ */
806
+ baseFee: string;
807
+ /**
808
+ * The gas used for transactions in the block.
809
+ */
810
+ gasUsed: string;
811
+ /**
812
+ * The total gas limit set for transactions in the block.
813
+ */
814
+ gasLimit: string;
815
+ gasCost: string;
816
+ /**
817
+ * The hash of the parent block.
818
+ */
819
+ parentHash: string;
820
+ /**
821
+ * The amount of fees spent/burned for transactions in the block.
822
+ */
823
+ feesSpent: string;
824
+ /**
825
+ * The cumulative number of transactions for the chain including this block.
826
+ */
827
+ cumulativeTransactions: string;
828
+ };
829
+
830
+ type EvmBlock = {
831
+ /**
832
+ * The block number on the chain.
833
+ */
834
+ blockNumber: string;
835
+ /**
836
+ * The block finality timestamp.
837
+ */
838
+ blockTimestamp: number;
839
+ /**
840
+ * The block hash identifier.
841
+ */
842
+ blockHash: string;
843
+ /**
844
+ * The number of evm transactions in the block.
845
+ */
846
+ txCount: number;
847
+ /**
848
+ * The base gas fee for a transaction to be included in the block.
849
+ */
850
+ baseFee: string;
851
+ /**
852
+ * The gas used for transactions in the block.
853
+ */
854
+ gasUsed: string;
855
+ /**
856
+ * The total gas limit set for transactions in the block.
857
+ */
858
+ gasLimit: string;
859
+ gasCost: string;
860
+ /**
861
+ * The hash of the parent block.
862
+ */
863
+ parentHash: string;
864
+ /**
865
+ * The amount of fees spent/burned for transactions in the block.
866
+ */
867
+ feesSpent: string;
868
+ /**
869
+ * The cumulative number of transactions for the chain including this block.
870
+ */
871
+ cumulativeTransactions: string;
872
+ };
873
+
874
+ type ListEvmBlocksResponse = {
875
+ /**
876
+ * 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.
877
+ */
878
+ nextPageToken?: string;
879
+ blocks: Array<EvmBlock>;
880
+ };
881
+
882
+ declare class EvmBlocksService {
883
+ readonly httpRequest: BaseHttpRequest;
884
+ constructor(httpRequest: BaseHttpRequest);
885
+ /**
886
+ * List latest blocks
887
+ * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
888
+ * @returns ListEvmBlocksResponse Successful response
889
+ * @throws ApiError
890
+ */
891
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
892
+ /**
893
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
894
+ */
895
+ chainId: string;
896
+ /**
897
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
898
+ */
899
+ pageToken?: string;
900
+ /**
901
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
902
+ */
903
+ pageSize?: number;
904
+ }): CancelablePromise<ListEvmBlocksResponse>;
905
+ /**
906
+ * Get block
907
+ * Gets the details of an individual block on the EVM-compatible chain.
908
+ * @returns GetEvmBlockResponse Successful response
909
+ * @throws ApiError
910
+ */
911
+ getBlock({ chainId, blockId, }: {
912
+ /**
913
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
914
+ */
915
+ chainId: string;
916
+ /**
917
+ * A block identifier which is either a block number or the block hash.
918
+ */
919
+ blockId: string;
920
+ }): CancelablePromise<GetEvmBlockResponse>;
921
+ }
922
+
923
+ declare enum ApiFeature {
924
+ NFT_INDEXING = "nftIndexing",
925
+ WEBHOOKS = "webhooks",
926
+ TELEPORTER = "teleporter"
927
+ }
928
+
929
+ /**
930
+ * 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.
931
+ */
932
+ declare enum ChainStatus {
933
+ OK = "OK",
934
+ UNAVAILABLE = "UNAVAILABLE"
935
+ }
936
+
937
+ type NetworkToken = {
938
+ /**
939
+ * The contract name.
940
+ */
941
+ name: string;
942
+ /**
943
+ * The contract symbol.
944
+ */
945
+ symbol: string;
946
+ /**
947
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
948
+ */
949
+ decimals: number;
950
+ /**
951
+ * The logo uri for the address.
952
+ */
953
+ logoUri?: string;
954
+ description?: string;
955
+ };
956
+
957
+ type UtilityAddresses = {
958
+ multicall?: string;
959
+ };
960
+
961
+ declare enum VmName {
962
+ EVM = "EVM",
963
+ BITCOIN = "BITCOIN",
964
+ ETHEREUM = "ETHEREUM"
965
+ }
966
+
967
+ type GetChainResponse = {
968
+ chainId: string;
969
+ status: ChainStatus;
675
970
  chainName: string;
676
971
  description: string;
677
972
  platformChainId?: string;
@@ -685,14 +980,9 @@ type GetChainResponse = {
685
980
  utilityAddresses?: UtilityAddresses;
686
981
  networkToken: NetworkToken;
687
982
  chainLogoUri?: string;
688
- private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
690
- };
691
-
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
983
+ private?: boolean;
984
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
985
+ };
696
986
 
697
987
  type ChainInfo = {
698
988
  chainId: string;
@@ -711,7 +1001,7 @@ type ChainInfo = {
711
1001
  networkToken: NetworkToken;
712
1002
  chainLogoUri?: string;
713
1003
  private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1004
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
715
1005
  };
716
1006
 
717
1007
  type ListChainsResponse = {
@@ -740,7 +1030,7 @@ declare class EvmChainsService {
740
1030
  /**
741
1031
  * Filter by feature.
742
1032
  */
743
- feature?: GlacierApiFeature;
1033
+ feature?: ApiFeature;
744
1034
  }): CancelablePromise<ListChainsResponse>;
745
1035
  /**
746
1036
  * Get chain information
@@ -1265,275 +1555,69 @@ type FullNativeTransactionDetails = {
1265
1555
  to: RichAddress;
1266
1556
  method?: Method;
1267
1557
  value: string;
1268
- /**
1269
- * The data sent for the transaction.
1270
- */
1271
- input: string;
1272
- baseFeePerGas: string;
1273
- maxFeePerGas?: string;
1274
- maxPriorityFeePerGas?: string;
1275
- };
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"
1285
- }
1286
-
1287
- type InternalTransactionDetails = {
1288
- from: RichAddress;
1289
- to: RichAddress;
1290
- internalTxType: InternalTransactionOpCall;
1291
- value: string;
1292
- /**
1293
- * True if the internal transaction was reverted.
1294
- */
1295
- isReverted: boolean;
1296
- gasUsed: string;
1297
- gasLimit: string;
1298
- };
1299
-
1300
- type NetworkTokenDetails = {
1301
- networkToken: NetworkToken;
1302
- /**
1303
- * The current token price, if available.
1304
- */
1305
- currentPrice?: Money;
1306
- /**
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.
1308
- */
1309
- historicalPrice?: Money;
1310
- };
1311
-
1312
- type GetTransactionResponse = {
1313
- /**
1314
- * The list of ERC-20 transfers.
1315
- */
1316
- erc20Transfers?: Array<Erc20TransferDetails>;
1317
- /**
1318
- * The list of ERC-721 transfers.
1319
- */
1320
- erc721Transfers?: Array<Erc721TransferDetails>;
1321
- /**
1322
- * The list of ERC-1155 transfers.
1323
- */
1324
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1325
- /**
1326
- * 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.
1327
- */
1328
- internalTransactions?: Array<InternalTransactionDetails>;
1329
- networkTokenDetails: NetworkTokenDetails;
1330
- nativeTransaction: FullNativeTransactionDetails;
1331
- };
1332
-
1333
- type ListContractsResponse = {
1334
- /**
1335
- * 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.
1336
- */
1337
- nextPageToken?: string;
1338
- contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1339
- };
1340
-
1341
- type Erc1155Transfer = {
1342
- /**
1343
- * The block number on the chain.
1344
- */
1345
- blockNumber: string;
1346
- /**
1347
- * The block finality timestamp.
1348
- */
1349
- blockTimestamp: number;
1350
- /**
1351
- * The block hash identifier.
1352
- */
1353
- blockHash: string;
1354
- /**
1355
- * The transaction hash identifier.
1356
- */
1357
- txHash: string;
1358
- from: RichAddress;
1359
- to: RichAddress;
1360
- logIndex: number;
1361
- value: string;
1362
- erc1155Token: Erc1155Token;
1363
- };
1364
-
1365
- type ListErc1155TransactionsResponse = {
1366
- /**
1367
- * 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.
1368
- */
1369
- nextPageToken?: string;
1370
- transactions: Array<Erc1155Transfer>;
1371
- };
1372
-
1373
- type Erc20Transfer = {
1374
- /**
1375
- * The block number on the chain.
1376
- */
1377
- blockNumber: string;
1378
- /**
1379
- * The block finality timestamp.
1380
- */
1381
- blockTimestamp: number;
1382
- /**
1383
- * The block hash identifier.
1384
- */
1385
- blockHash: string;
1386
- /**
1387
- * The transaction hash identifier.
1388
- */
1389
- txHash: string;
1390
- from: RichAddress;
1391
- to: RichAddress;
1392
- logIndex: number;
1393
- value: string;
1394
- erc20Token: Erc20Token;
1395
- };
1396
-
1397
- type ListErc20TransactionsResponse = {
1398
- /**
1399
- * 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.
1400
- */
1401
- nextPageToken?: string;
1402
- transactions: Array<Erc20Transfer>;
1403
- };
1404
-
1405
- type Erc721Transfer = {
1406
- /**
1407
- * The block number on the chain.
1408
- */
1409
- blockNumber: string;
1410
- /**
1411
- * The block finality timestamp.
1412
- */
1413
- blockTimestamp: number;
1414
- /**
1415
- * The block hash identifier.
1416
- */
1417
- blockHash: string;
1418
- /**
1419
- * The transaction hash identifier.
1420
- */
1421
- txHash: string;
1422
- from: RichAddress;
1423
- to: RichAddress;
1424
- logIndex: number;
1425
- erc721Token: Erc721Token;
1426
- };
1427
-
1428
- type ListErc721TransactionsResponse = {
1429
- /**
1430
- * 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.
1431
- */
1432
- nextPageToken?: string;
1433
- transactions: Array<Erc721Transfer>;
1434
- };
1435
-
1436
- type InternalTransaction = {
1437
- /**
1438
- * The block number on the chain.
1439
- */
1440
- blockNumber: string;
1441
- /**
1442
- * The block finality timestamp.
1443
- */
1444
- blockTimestamp: number;
1445
- /**
1446
- * The block hash identifier.
1447
- */
1448
- blockHash: string;
1449
- /**
1450
- * The transaction hash identifier.
1451
- */
1452
- txHash: string;
1453
- from: RichAddress;
1454
- to: RichAddress;
1455
- internalTxType: InternalTransactionOpCall;
1456
- value: string;
1457
- /**
1458
- * True if the internal transaction was reverted.
1459
- */
1460
- isReverted: boolean;
1461
- gasUsed: string;
1462
- gasLimit: string;
1463
- };
1464
-
1465
- type ListInternalTransactionsResponse = {
1466
- /**
1467
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1468
- */
1469
- nextPageToken?: string;
1470
- transactions: Array<InternalTransaction>;
1471
- };
1472
-
1473
- type NativeTransaction = {
1474
- /**
1475
- * The block number on the chain.
1476
- */
1477
- blockNumber: string;
1478
- /**
1479
- * The block finality timestamp.
1480
- */
1481
- blockTimestamp: number;
1482
- /**
1483
- * The block hash identifier.
1484
- */
1485
- blockHash: string;
1486
- /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
- /**
1491
- * The transaction hash identifier.
1492
- */
1493
- txHash: string;
1494
- /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
1496
- */
1497
- txStatus: string;
1498
- /**
1499
- * The transaction type.
1500
- */
1501
- txType: number;
1502
- /**
1503
- * The gas limit set for the transaction.
1504
- */
1505
- gasLimit: string;
1506
- /**
1507
- * The amount of gas used.
1508
- */
1509
- gasUsed: string;
1510
- /**
1511
- * The gas price denominated by the number of decimals of the native token.
1512
- */
1513
- gasPrice: string;
1514
- /**
1515
- * The nonce used by the sender of the transaction.
1516
- */
1517
- nonce: string;
1518
- from: RichAddress;
1519
- to: RichAddress;
1520
- method?: Method;
1521
- value: string;
1558
+ /**
1559
+ * The data sent for the transaction.
1560
+ */
1561
+ input: string;
1562
+ baseFeePerGas: string;
1563
+ maxFeePerGas?: string;
1564
+ maxPriorityFeePerGas?: string;
1522
1565
  };
1523
1566
 
1524
- type ListNativeTransactionsResponse = {
1567
+ declare enum InternalTransactionOpCall {
1568
+ UNKNOWN = "UNKNOWN",
1569
+ CALL = "CALL",
1570
+ CREATE = "CREATE",
1571
+ CREATE2 = "CREATE2",
1572
+ CALLCODE = "CALLCODE",
1573
+ DELEGATECALL = "DELEGATECALL",
1574
+ STATICCALL = "STATICCALL"
1575
+ }
1576
+
1577
+ type InternalTransactionDetails = {
1578
+ from: RichAddress;
1579
+ to: RichAddress;
1580
+ internalTxType: InternalTransactionOpCall;
1581
+ value: string;
1525
1582
  /**
1526
- * 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.
1583
+ * True if the internal transaction was reverted.
1527
1584
  */
1528
- nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
1585
+ isReverted: boolean;
1586
+ gasUsed: string;
1587
+ gasLimit: string;
1530
1588
  };
1531
1589
 
1532
- type TransactionDetails = {
1590
+ type NetworkTokenDetails = {
1591
+ networkToken: NetworkToken;
1533
1592
  /**
1534
- * The native (top-level) transaction details.
1593
+ * The current token price, if available.
1535
1594
  */
1536
- nativeTransaction: NativeTransaction;
1595
+ currentPrice?: Money;
1596
+ /**
1597
+ * 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.
1598
+ */
1599
+ historicalPrice?: Money;
1600
+ };
1601
+
1602
+ declare enum TransactionDirectionType {
1603
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
1604
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
1605
+ }
1606
+
1607
+ type TeleporterMessageInfo = {
1608
+ teleporterMessageId: string;
1609
+ direction: TransactionDirectionType;
1610
+ /**
1611
+ * chain id of the source chain. valid only for destination transactions
1612
+ */
1613
+ sourceChainId?: Record<string, any>;
1614
+ /**
1615
+ * chain id of the destination chain. valid only for source transactions
1616
+ */
1617
+ destinationChainId?: Record<string, any>;
1618
+ };
1619
+
1620
+ type GetTransactionResponse = {
1537
1621
  /**
1538
1622
  * The list of ERC-20 transfers.
1539
1623
  */
@@ -1550,658 +1634,597 @@ type TransactionDetails = {
1550
1634
  * 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.
1551
1635
  */
1552
1636
  internalTransactions?: Array<InternalTransactionDetails>;
1553
- };
1554
-
1555
- type ListTransactionDetailsResponse = {
1637
+ networkTokenDetails: NetworkTokenDetails;
1638
+ nativeTransaction: FullNativeTransactionDetails;
1556
1639
  /**
1557
- * 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.
1640
+ * Corresponding teleporter message info if available.
1558
1641
  */
1559
- nextPageToken?: string;
1560
- transactions: Array<TransactionDetails>;
1642
+ teleporterMessageInfo?: TeleporterMessageInfo;
1561
1643
  };
1562
1644
 
1563
- type ListTransfersResponse = {
1645
+ type ListContractsResponse = {
1564
1646
  /**
1565
1647
  * 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.
1566
1648
  */
1567
1649
  nextPageToken?: string;
1568
- transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1650
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1569
1651
  };
1570
-
1571
- declare enum SortOrder {
1572
- ASC = "asc",
1573
- DESC = "desc"
1574
- }
1575
-
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
- declare class EvmTransactionsService {
1582
- readonly httpRequest: BaseHttpRequest;
1583
- constructor(httpRequest: BaseHttpRequest);
1584
- /**
1585
- * Get deployment transaction
1586
- * If the address is a smart contract, returns the transaction in which it was deployed.
1587
- * @returns GetTransactionResponse Successful response
1588
- * @throws ApiError
1589
- */
1590
- getDeploymentTransaction({ chainId, address, currency, }: {
1591
- /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
- */
1594
- chainId: string;
1595
- /**
1596
- * Contract address on the relevant chain.
1597
- */
1598
- address: string;
1599
- /**
1600
- * The currency that return values should use. Defaults to USD.
1601
- */
1602
- currency?: CurrencyCode;
1603
- }): CancelablePromise<GetTransactionResponse>;
1604
- /**
1605
- * List deployed contracts
1606
- * Lists all contracts deployed by the given address.
1607
- * @returns ListContractsResponse Successful response
1608
- * @throws ApiError
1609
- */
1610
- listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
- /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
- */
1614
- chainId: string;
1615
- /**
1616
- * A wallet address.
1617
- */
1618
- address: string;
1619
- /**
1620
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1621
- */
1622
- pageToken?: string;
1623
- /**
1624
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1625
- */
1626
- pageSize?: number;
1627
- }): CancelablePromise<ListContractsResponse>;
1628
- /**
1629
- * List ERC transfers
1630
- * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse Successful response
1632
- * @throws ApiError
1633
- */
1634
- listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
- /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
- */
1638
- chainId: string;
1639
- /**
1640
- * A wallet address.
1641
- */
1642
- address: string;
1643
- /**
1644
- * 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.
1645
- */
1646
- startBlock?: number;
1647
- /**
1648
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1649
- */
1650
- endBlock?: number;
1651
- /**
1652
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1653
- */
1654
- pageToken?: string;
1655
- /**
1656
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1657
- */
1658
- pageSize?: number;
1659
- }): CancelablePromise<ListTransfersResponse>;
1660
- /**
1661
- * List transactions
1662
- * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1663
- *
1664
- * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse Successful response
1666
- * @throws ApiError
1667
- */
1668
- listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
- /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
- */
1672
- chainId: string;
1673
- /**
1674
- * A wallet address.
1675
- */
1676
- address: string;
1677
- /**
1678
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1679
- */
1680
- pageToken?: string;
1681
- /**
1682
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1683
- */
1684
- pageSize?: number;
1685
- /**
1686
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1687
- */
1688
- startBlock?: number;
1689
- /**
1690
- * 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.
1691
- */
1692
- endBlock?: number;
1693
- /**
1694
- * 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.
1695
- */
1696
- sortOrder?: SortOrder;
1697
- }): CancelablePromise<ListTransactionDetailsResponse>;
1698
- /**
1699
- * List native transactions
1700
- * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse Successful response
1702
- * @throws ApiError
1703
- */
1704
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
- /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
- */
1708
- chainId: string;
1709
- /**
1710
- * A wallet address.
1711
- */
1712
- address: string;
1713
- /**
1714
- * 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.
1715
- */
1716
- startBlock?: number;
1717
- /**
1718
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1719
- */
1720
- endBlock?: number;
1721
- /**
1722
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1723
- */
1724
- pageToken?: string;
1725
- /**
1726
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
- */
1728
- pageSize?: number;
1729
- }): CancelablePromise<ListNativeTransactionsResponse>;
1730
- /**
1731
- * List ERC-20 transfers
1732
- * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse Successful response
1734
- * @throws ApiError
1735
- */
1736
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
- /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
- */
1740
- chainId: string;
1741
- /**
1742
- * A wallet address.
1743
- */
1744
- address: string;
1745
- /**
1746
- * 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.
1747
- */
1748
- startBlock?: number;
1749
- /**
1750
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1751
- */
1752
- endBlock?: number;
1753
- /**
1754
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1755
- */
1756
- pageToken?: string;
1757
- /**
1758
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
- */
1760
- pageSize?: number;
1761
- }): CancelablePromise<ListErc20TransactionsResponse>;
1652
+
1653
+ type Erc1155Transfer = {
1762
1654
  /**
1763
- * List ERC-721 transfers
1764
- * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse Successful response
1766
- * @throws ApiError
1655
+ * The block number on the chain.
1767
1656
  */
1768
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
- /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
- */
1772
- chainId: string;
1773
- /**
1774
- * A wallet address.
1775
- */
1776
- address: string;
1777
- /**
1778
- * 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.
1779
- */
1780
- startBlock?: number;
1781
- /**
1782
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1783
- */
1784
- endBlock?: number;
1785
- /**
1786
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1787
- */
1788
- pageToken?: string;
1789
- /**
1790
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1791
- */
1792
- pageSize?: number;
1793
- }): CancelablePromise<ListErc721TransactionsResponse>;
1657
+ blockNumber: string;
1794
1658
  /**
1795
- * List ERC-1155 transfers
1796
- * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse Successful response
1798
- * @throws ApiError
1659
+ * The block finality timestamp.
1799
1660
  */
1800
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
- /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
- */
1804
- chainId: string;
1805
- /**
1806
- * A wallet address.
1807
- */
1808
- address: string;
1809
- /**
1810
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1811
- */
1812
- startBlock?: number;
1813
- /**
1814
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1815
- */
1816
- endBlock?: number;
1817
- /**
1818
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1819
- */
1820
- pageToken?: string;
1821
- /**
1822
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
- */
1824
- pageSize?: number;
1825
- }): CancelablePromise<ListErc1155TransactionsResponse>;
1661
+ blockTimestamp: number;
1826
1662
  /**
1827
- * List internal transactions
1828
- * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
- *
1830
- * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1831
- * @returns ListInternalTransactionsResponse Successful response
1832
- * @throws ApiError
1663
+ * The block hash identifier.
1833
1664
  */
1834
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
- /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
- */
1838
- chainId: string;
1839
- /**
1840
- * A wallet address.
1841
- */
1842
- address: string;
1843
- /**
1844
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1845
- */
1846
- startBlock?: number;
1847
- /**
1848
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1849
- */
1850
- endBlock?: number;
1851
- /**
1852
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1853
- */
1854
- pageToken?: string;
1855
- /**
1856
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
- */
1858
- pageSize?: number;
1859
- }): CancelablePromise<ListInternalTransactionsResponse>;
1665
+ blockHash: string;
1860
1666
  /**
1861
- * Get transaction
1862
- * Gets the details of a single transaction.
1863
- * @returns GetTransactionResponse Successful response
1864
- * @throws ApiError
1667
+ * The transaction hash identifier.
1865
1668
  */
1866
- getTransaction({ chainId, txHash, }: {
1867
- /**
1868
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1869
- */
1870
- chainId: string;
1871
- /**
1872
- * A transaction hash.
1873
- */
1874
- txHash: string;
1875
- }): CancelablePromise<GetTransactionResponse>;
1669
+ txHash: string;
1670
+ from: RichAddress;
1671
+ to: RichAddress;
1672
+ logIndex: number;
1673
+ value: string;
1674
+ erc1155Token: Erc1155Token;
1675
+ };
1676
+
1677
+ type ListErc1155TransactionsResponse = {
1876
1678
  /**
1877
- * List transactions for a block
1878
- * Lists the transactions that occured in a given block.
1879
- * @returns ListNativeTransactionsResponse Successful response
1880
- * @throws ApiError
1679
+ * 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.
1881
1680
  */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
1883
- /**
1884
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1885
- */
1886
- chainId: string;
1887
- /**
1888
- * A block identifier which is either a block number or the block hash.
1889
- */
1890
- blockId: string;
1891
- }): CancelablePromise<ListNativeTransactionsResponse>;
1681
+ nextPageToken?: string;
1682
+ transactions: Array<Erc1155Transfer>;
1683
+ };
1684
+
1685
+ type Erc20Transfer = {
1892
1686
  /**
1893
- * List latest transactions
1894
- * Lists the latest transactions. Filterable by status.
1895
- * @returns ListNativeTransactionsResponse Successful response
1896
- * @throws ApiError
1687
+ * The block number on the chain.
1897
1688
  */
1898
- listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1899
- /**
1900
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1901
- */
1902
- chainId: string;
1903
- /**
1904
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1905
- */
1906
- pageToken?: string;
1907
- /**
1908
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1909
- */
1910
- pageSize?: number;
1911
- /**
1912
- * A status filter for listed transactions.
1913
- */
1914
- status?: TransactionStatus;
1915
- }): CancelablePromise<ListNativeTransactionsResponse>;
1916
- }
1689
+ blockNumber: string;
1690
+ /**
1691
+ * The block finality timestamp.
1692
+ */
1693
+ blockTimestamp: number;
1694
+ /**
1695
+ * The block hash identifier.
1696
+ */
1697
+ blockHash: string;
1698
+ /**
1699
+ * The transaction hash identifier.
1700
+ */
1701
+ txHash: string;
1702
+ from: RichAddress;
1703
+ to: RichAddress;
1704
+ logIndex: number;
1705
+ value: string;
1706
+ erc20Token: Erc20Token;
1707
+ };
1917
1708
 
1918
- type LogsFormatMetadata = {
1709
+ type ListErc20TransactionsResponse = {
1919
1710
  /**
1920
- * The IP address of the client that made the request.
1711
+ * 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.
1921
1712
  */
1922
- ipAddress: string;
1713
+ nextPageToken?: string;
1714
+ transactions: Array<Erc20Transfer>;
1715
+ };
1716
+
1717
+ type Erc721Transfer = {
1923
1718
  /**
1924
- * The host for the request made by the client.
1719
+ * The block number on the chain.
1925
1720
  */
1926
- host: string;
1721
+ blockNumber: string;
1927
1722
  /**
1928
- * The user agent of the client that made the request.
1723
+ * The block finality timestamp.
1929
1724
  */
1930
- userAgent: string;
1725
+ blockTimestamp: number;
1726
+ /**
1727
+ * The block hash identifier.
1728
+ */
1729
+ blockHash: string;
1730
+ /**
1731
+ * The transaction hash identifier.
1732
+ */
1733
+ txHash: string;
1734
+ from: RichAddress;
1735
+ to: RichAddress;
1736
+ logIndex: number;
1737
+ erc721Token: Erc721Token;
1931
1738
  };
1932
1739
 
1933
- /**
1934
- * The type of request made by the client.
1935
- */
1936
- declare enum RequestType {
1937
- GLACIER_API_REQUEST = "Glacier API Request",
1938
- GLACIER_RPC_REQUEST = "Glacier RPC Request"
1939
- }
1740
+ type ListErc721TransactionsResponse = {
1741
+ /**
1742
+ * 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.
1743
+ */
1744
+ nextPageToken?: string;
1745
+ transactions: Array<Erc721Transfer>;
1746
+ };
1940
1747
 
1941
- type LogsFormat = {
1748
+ type InternalTransaction = {
1942
1749
  /**
1943
- * The organization id of the request.
1750
+ * The block number on the chain.
1944
1751
  */
1945
- orgId: string;
1752
+ blockNumber: string;
1753
+ /**
1754
+ * The block finality timestamp.
1755
+ */
1756
+ blockTimestamp: number;
1757
+ /**
1758
+ * The block hash identifier.
1759
+ */
1760
+ blockHash: string;
1761
+ /**
1762
+ * The transaction hash identifier.
1763
+ */
1764
+ txHash: string;
1765
+ from: RichAddress;
1766
+ to: RichAddress;
1767
+ internalTxType: InternalTransactionOpCall;
1768
+ value: string;
1769
+ /**
1770
+ * True if the internal transaction was reverted.
1771
+ */
1772
+ isReverted: boolean;
1773
+ gasUsed: string;
1774
+ gasLimit: string;
1775
+ };
1776
+
1777
+ type ListInternalTransactionsResponse = {
1946
1778
  /**
1947
- * The unique log id of the request.
1779
+ * 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.
1948
1780
  */
1949
- logId: string;
1781
+ nextPageToken?: string;
1782
+ transactions: Array<InternalTransaction>;
1783
+ };
1784
+
1785
+ type NativeTransaction = {
1950
1786
  /**
1951
- * The timestamp of the request.
1787
+ * The block number on the chain.
1952
1788
  */
1953
- eventTimestamp: number;
1789
+ blockNumber: string;
1954
1790
  /**
1955
- * The apiKey used to make the request.
1791
+ * The block finality timestamp.
1956
1792
  */
1957
- apiKeyId: string;
1793
+ blockTimestamp: number;
1958
1794
  /**
1959
- * The alias of the apiKey used to make the request.
1795
+ * The block hash identifier.
1960
1796
  */
1961
- apiKeyAlias: string;
1797
+ blockHash: string;
1962
1798
  /**
1963
- * The region of the host for the request made by the client.
1799
+ * The index at which the transaction occured in the block (0-indexed).
1964
1800
  */
1965
- hostRegion: string;
1966
- requestType: RequestType;
1801
+ blockIndex: number;
1967
1802
  /**
1968
- * The path of the request made by the client.
1803
+ * The transaction hash identifier.
1969
1804
  */
1970
- requestPath: string;
1805
+ txHash: string;
1971
1806
  /**
1972
- * The number of API credits consumed by the request.
1807
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1973
1808
  */
1974
- apiCreditsConsumed: number;
1809
+ txStatus: string;
1975
1810
  /**
1976
- * The duration of the request in milliseconds.
1811
+ * The transaction type.
1977
1812
  */
1978
- requestDurationMsecs: number;
1813
+ txType: number;
1979
1814
  /**
1980
- * The response code of the request.
1815
+ * The gas limit set for the transaction.
1981
1816
  */
1982
- responseCode: number;
1817
+ gasLimit: string;
1983
1818
  /**
1984
- * The chain id of the request.
1819
+ * The amount of gas used.
1985
1820
  */
1986
- chainId?: string;
1821
+ gasUsed: string;
1987
1822
  /**
1988
- * The rpc method of the request.
1823
+ * The gas price denominated by the number of decimals of the native token.
1989
1824
  */
1990
- rpcMethod?: string;
1825
+ gasPrice: string;
1991
1826
  /**
1992
- * The metadata of the request.
1827
+ * The nonce used by the sender of the transaction.
1993
1828
  */
1994
- metadata: LogsFormatMetadata;
1829
+ nonce: string;
1830
+ from: RichAddress;
1831
+ to: RichAddress;
1832
+ method?: Method;
1833
+ value: string;
1995
1834
  };
1996
1835
 
1997
- type LogsResponseDTO = {
1836
+ type ListNativeTransactionsResponse = {
1998
1837
  /**
1999
1838
  * 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.
2000
1839
  */
2001
1840
  nextPageToken?: string;
2002
- /**
2003
- * The organization id of the request.
2004
- */
2005
- orgId: string;
2006
- /**
2007
- * An array of logs representing the requests made by clients.
2008
- */
2009
- logs: Array<LogsFormat>;
1841
+ transactions: Array<NativeTransaction>;
2010
1842
  };
2011
1843
 
2012
- declare enum TimeIntervalGranularityExtended {
2013
- MINUTE = "minute",
2014
- HOURLY = "hourly",
2015
- DAILY = "daily",
2016
- WEEKLY = "weekly",
2017
- MONTHLY = "monthly"
2018
- }
2019
-
2020
- declare enum UsageMetricsGroupByEnum {
2021
- REQUEST_PATH = "requestPath",
2022
- RESPONSE_CODE = "responseCode",
2023
- CHAIN_ID = "chainId",
2024
- API_KEY_ID = "apiKeyId",
2025
- REQUEST_TYPE = "requestType"
2026
- }
2027
-
2028
- type UsageMetricsValueDTO = {
2029
- /**
2030
- * Column name used for data aggregation
2031
- */
2032
- groupedBy: UsageMetricsValueDTO.groupedBy;
2033
- /**
2034
- * The value of the column used for data aggregation
2035
- */
2036
- groupValue?: (string | number);
2037
- /**
2038
- * The total number of requests
2039
- */
2040
- totalRequests: number;
1844
+ type TransactionDetails = {
2041
1845
  /**
2042
- * The number of requests per second
1846
+ * The native (top-level) transaction details.
2043
1847
  */
2044
- requestsPerSecond: number;
1848
+ nativeTransaction: NativeTransaction;
2045
1849
  /**
2046
- * The success rate percentage
1850
+ * The list of ERC-20 transfers.
2047
1851
  */
2048
- successRatePercent: number;
1852
+ erc20Transfers?: Array<Erc20TransferDetails>;
2049
1853
  /**
2050
- * The median response time in milliseconds
1854
+ * The list of ERC-721 transfers.
2051
1855
  */
2052
- medianResponseTimeMsecs: number;
1856
+ erc721Transfers?: Array<Erc721TransferDetails>;
2053
1857
  /**
2054
- * The number of invalid requests
1858
+ * The list of ERC-1155 transfers.
2055
1859
  */
2056
- invalidRequests: number;
1860
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
2057
1861
  /**
2058
- * The number of API credits used
1862
+ * 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.
2059
1863
  */
2060
- apiCreditsUsed: number;
1864
+ internalTransactions?: Array<InternalTransactionDetails>;
1865
+ };
1866
+
1867
+ type ListTransactionDetailsResponse = {
2061
1868
  /**
2062
- * The number of API credits wasted on invalid requests
1869
+ * 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.
2063
1870
  */
2064
- apiCreditsWasted: number;
1871
+ nextPageToken?: string;
1872
+ transactions: Array<TransactionDetails>;
2065
1873
  };
2066
- declare namespace UsageMetricsValueDTO {
1874
+
1875
+ type ListTransfersResponse = {
2067
1876
  /**
2068
- * Column name used for data aggregation
1877
+ * 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.
2069
1878
  */
2070
- enum groupedBy {
2071
- REQUEST_PATH = "requestPath",
2072
- RESPONSE_CODE = "responseCode",
2073
- CHAIN_ID = "chainId",
2074
- API_KEY_ID = "apiKeyId",
2075
- REQUEST_TYPE = "requestType",
2076
- NONE = "None"
2077
- }
1879
+ nextPageToken?: string;
1880
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1881
+ };
1882
+
1883
+ declare enum SortOrder {
1884
+ ASC = "asc",
1885
+ DESC = "desc"
2078
1886
  }
2079
1887
 
2080
- type Metric = {
1888
+ declare enum TransactionStatus {
1889
+ FAILED = "failed",
1890
+ SUCCESS = "success"
1891
+ }
1892
+
1893
+ declare class EvmTransactionsService {
1894
+ readonly httpRequest: BaseHttpRequest;
1895
+ constructor(httpRequest: BaseHttpRequest);
2081
1896
  /**
2082
- * The timestamp of the metrics value
1897
+ * Get deployment transaction
1898
+ * If the address is a smart contract, returns the transaction in which it was deployed.
1899
+ * @returns GetTransactionResponse Successful response
1900
+ * @throws ApiError
2083
1901
  */
2084
- timestamp: number;
1902
+ getDeploymentTransaction({ chainId, address, currency, }: {
1903
+ /**
1904
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
+ */
1906
+ chainId: string;
1907
+ /**
1908
+ * Contract address on the relevant chain.
1909
+ */
1910
+ address: string;
1911
+ /**
1912
+ * The currency that return values should use. Defaults to USD.
1913
+ */
1914
+ currency?: CurrencyCode;
1915
+ }): CancelablePromise<GetTransactionResponse>;
2085
1916
  /**
2086
- * The metrics values for the timestamp
1917
+ * List deployed contracts
1918
+ * Lists all contracts deployed by the given address.
1919
+ * @returns ListContractsResponse Successful response
1920
+ * @throws ApiError
2087
1921
  */
2088
- values: Array<UsageMetricsValueDTO>;
2089
- };
2090
-
2091
- type UsageMetricsResponseDTO = {
1922
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1923
+ /**
1924
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
+ */
1926
+ chainId: string;
1927
+ /**
1928
+ * A wallet address.
1929
+ */
1930
+ address: string;
1931
+ /**
1932
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1933
+ */
1934
+ pageToken?: string;
1935
+ /**
1936
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1937
+ */
1938
+ pageSize?: number;
1939
+ }): CancelablePromise<ListContractsResponse>;
2092
1940
  /**
2093
- * Duration in which the metrics value is aggregated
1941
+ * List ERC transfers
1942
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1943
+ * @returns ListTransfersResponse Successful response
1944
+ * @throws ApiError
2094
1945
  */
2095
- aggregateDuration: string;
1946
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1947
+ /**
1948
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1949
+ */
1950
+ chainId: string;
1951
+ /**
1952
+ * A wallet address.
1953
+ */
1954
+ address: string;
1955
+ /**
1956
+ * 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.
1957
+ */
1958
+ startBlock?: number;
1959
+ /**
1960
+ * 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.
1961
+ */
1962
+ endBlock?: number;
1963
+ /**
1964
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1965
+ */
1966
+ pageToken?: string;
1967
+ /**
1968
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1969
+ */
1970
+ pageSize?: number;
1971
+ }): CancelablePromise<ListTransfersResponse>;
1972
+ /**
1973
+ * List transactions
1974
+ * 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.
1975
+ *
1976
+ * Filterable by block ranges.
1977
+ * @returns ListTransactionDetailsResponse Successful response
1978
+ * @throws ApiError
1979
+ */
1980
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1981
+ /**
1982
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1983
+ */
1984
+ chainId: string;
1985
+ /**
1986
+ * A wallet address.
1987
+ */
1988
+ address: string;
1989
+ /**
1990
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1991
+ */
1992
+ pageToken?: string;
1993
+ /**
1994
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1995
+ */
1996
+ pageSize?: number;
1997
+ /**
1998
+ * 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.
1999
+ */
2000
+ startBlock?: number;
2001
+ /**
2002
+ * 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.
2003
+ */
2004
+ endBlock?: number;
2005
+ /**
2006
+ * 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.
2007
+ */
2008
+ sortOrder?: SortOrder;
2009
+ }): CancelablePromise<ListTransactionDetailsResponse>;
2096
2010
  /**
2097
- * Org ID for which the metrics are aggregated
2011
+ * List native transactions
2012
+ * Lists native transactions for an address. Filterable by block range.
2013
+ * @returns ListNativeTransactionsResponse Successful response
2014
+ * @throws ApiError
2098
2015
  */
2099
- orgId: string;
2016
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2017
+ /**
2018
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2019
+ */
2020
+ chainId: string;
2021
+ /**
2022
+ * A wallet address.
2023
+ */
2024
+ address: string;
2025
+ /**
2026
+ * 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.
2027
+ */
2028
+ startBlock?: number;
2029
+ /**
2030
+ * 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.
2031
+ */
2032
+ endBlock?: number;
2033
+ /**
2034
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2035
+ */
2036
+ pageToken?: string;
2037
+ /**
2038
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2039
+ */
2040
+ pageSize?: number;
2041
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2100
2042
  /**
2101
- * Metrics values
2043
+ * List ERC-20 transfers
2044
+ * Lists ERC-20 transfers for an address. Filterable by block range.
2045
+ * @returns ListErc20TransactionsResponse Successful response
2046
+ * @throws ApiError
2102
2047
  */
2103
- metrics: Array<Metric>;
2104
- };
2105
-
2106
- declare class GlacierApiUsageMetricsService {
2107
- readonly httpRequest: BaseHttpRequest;
2108
- constructor(httpRequest: BaseHttpRequest);
2048
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2049
+ /**
2050
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2051
+ */
2052
+ chainId: string;
2053
+ /**
2054
+ * A wallet address.
2055
+ */
2056
+ address: string;
2057
+ /**
2058
+ * 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.
2059
+ */
2060
+ startBlock?: number;
2061
+ /**
2062
+ * 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.
2063
+ */
2064
+ endBlock?: number;
2065
+ /**
2066
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2067
+ */
2068
+ pageToken?: string;
2069
+ /**
2070
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2071
+ */
2072
+ pageSize?: number;
2073
+ }): CancelablePromise<ListErc20TransactionsResponse>;
2109
2074
  /**
2110
- * Get usage metrics for the Glacier API
2111
- * Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
2112
- * @returns UsageMetricsResponseDTO Successful response
2075
+ * List ERC-721 transfers
2076
+ * Lists ERC-721 transfers for an address. Filterable by block range.
2077
+ * @returns ListErc721TransactionsResponse Successful response
2113
2078
  * @throws ApiError
2114
2079
  */
2115
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseStatusCode, chainId, apiKeyId, }: {
2080
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2116
2081
  /**
2117
- * Organization ID to fetch usage metrics for
2082
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2118
2083
  */
2119
- orgId?: string;
2084
+ chainId: string;
2120
2085
  /**
2121
- * Query param for retrieving items after a specific timestamp.
2086
+ * A wallet address.
2122
2087
  */
2123
- startTimestamp?: number;
2088
+ address: string;
2124
2089
  /**
2125
- * Query param for retrieving items before a specific timestamp.
2090
+ * 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.
2126
2091
  */
2127
- endTimestamp?: number;
2092
+ startBlock?: number;
2128
2093
  /**
2129
- * Time interval granularity for data aggregation
2094
+ * 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.
2130
2095
  */
2131
- timeInterval?: TimeIntervalGranularityExtended;
2096
+ endBlock?: number;
2132
2097
  /**
2133
- * Query param for the criterion used for grouping metrics
2098
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2134
2099
  */
2135
- groupBy?: UsageMetricsGroupByEnum;
2100
+ pageToken?: string;
2136
2101
  /**
2137
- * Filter data by request path.
2102
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2138
2103
  */
2139
- requestPath?: string;
2104
+ pageSize?: number;
2105
+ }): CancelablePromise<ListErc721TransactionsResponse>;
2106
+ /**
2107
+ * List ERC-1155 transfers
2108
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
2109
+ * @returns ListErc1155TransactionsResponse Successful response
2110
+ * @throws ApiError
2111
+ */
2112
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2140
2113
  /**
2141
- * Filter data by request type.
2114
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2115
+ */
2116
+ chainId: string;
2117
+ /**
2118
+ * A wallet address.
2142
2119
  */
2143
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
2120
+ address: string;
2144
2121
  /**
2145
- * Filter data by response status code.
2122
+ * 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.
2146
2123
  */
2147
- responseStatusCode?: string;
2124
+ startBlock?: number;
2148
2125
  /**
2149
- * Filter data by chain ID.
2126
+ * 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.
2150
2127
  */
2151
- chainId?: string;
2128
+ endBlock?: number;
2152
2129
  /**
2153
- * Filter data by API key ID.
2130
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2154
2131
  */
2155
- apiKeyId?: string;
2156
- }): CancelablePromise<UsageMetricsResponseDTO>;
2132
+ pageToken?: string;
2133
+ /**
2134
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2135
+ */
2136
+ pageSize?: number;
2137
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
2157
2138
  /**
2158
- * Get logs for requests made by client
2159
- * Gets logs for requests made by client over a specified time interval for a specific organization.
2160
- * @returns LogsResponseDTO Successful response
2139
+ * List internal transactions
2140
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
2141
+ *
2142
+ * 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.
2143
+ * @returns ListInternalTransactionsResponse Successful response
2161
2144
  * @throws ApiError
2162
2145
  */
2163
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseStatusCode, chainId, apiKeyId, pageToken, pageSize, }: {
2146
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2164
2147
  /**
2165
- * Organization ID to fetch usage metrics for
2148
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2166
2149
  */
2167
- orgId?: string;
2150
+ chainId: string;
2168
2151
  /**
2169
- * Query param for retrieving items after a specific timestamp.
2152
+ * A wallet address.
2170
2153
  */
2171
- startTimestamp?: number;
2154
+ address: string;
2172
2155
  /**
2173
- * Query param for retrieving items before a specific timestamp.
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.
2174
2157
  */
2175
- endTimestamp?: number;
2158
+ startBlock?: number;
2176
2159
  /**
2177
- * Filter data by request path.
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.
2178
2161
  */
2179
- requestPath?: string;
2162
+ endBlock?: number;
2180
2163
  /**
2181
- * Filter data by request type.
2164
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2182
2165
  */
2183
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
2166
+ pageToken?: string;
2184
2167
  /**
2185
- * Filter data by response status code.
2168
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2186
2169
  */
2187
- responseStatusCode?: string;
2170
+ pageSize?: number;
2171
+ }): CancelablePromise<ListInternalTransactionsResponse>;
2172
+ /**
2173
+ * Get transaction
2174
+ * Gets the details of a single transaction.
2175
+ * @returns GetTransactionResponse Successful response
2176
+ * @throws ApiError
2177
+ */
2178
+ getTransaction({ chainId, txHash, }: {
2188
2179
  /**
2189
- * Filter data by chain ID.
2180
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2190
2181
  */
2191
- chainId?: string;
2182
+ chainId: string;
2192
2183
  /**
2193
- * Filter data by API key ID.
2184
+ * A transaction hash.
2194
2185
  */
2195
- apiKeyId?: string;
2186
+ txHash: string;
2187
+ }): CancelablePromise<GetTransactionResponse>;
2188
+ /**
2189
+ * List transactions for a block
2190
+ * Lists the transactions that occured in a given block.
2191
+ * @returns ListNativeTransactionsResponse Successful response
2192
+ * @throws ApiError
2193
+ */
2194
+ getTransactionsForBlock({ chainId, blockId, }: {
2195
+ /**
2196
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2197
+ */
2198
+ chainId: string;
2199
+ /**
2200
+ * A block identifier which is either a block number or the block hash.
2201
+ */
2202
+ blockId: string;
2203
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2204
+ /**
2205
+ * List latest transactions
2206
+ * Lists the latest transactions. Filterable by status.
2207
+ * @returns ListNativeTransactionsResponse Successful response
2208
+ * @throws ApiError
2209
+ */
2210
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2211
+ /**
2212
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2213
+ */
2214
+ chainId: string;
2196
2215
  /**
2197
2216
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2198
2217
  */
2199
2218
  pageToken?: string;
2200
2219
  /**
2201
- * The maximum number of items to return.
2220
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2202
2221
  */
2203
2222
  pageSize?: number;
2204
- }): CancelablePromise<LogsResponseDTO>;
2223
+ /**
2224
+ * A status filter for listed transactions.
2225
+ */
2226
+ status?: TransactionStatus;
2227
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2205
2228
  }
2206
2229
 
2207
2230
  declare class HealthCheckService {
@@ -2212,7 +2235,7 @@ declare class HealthCheckService {
2212
2235
  * @returns any The Health Check is successful
2213
2236
  * @throws ApiError
2214
2237
  */
2215
- glacierHealthCheck(): CancelablePromise<{
2238
+ dataHealthCheck(): CancelablePromise<{
2216
2239
  status?: string;
2217
2240
  info?: Record<string, Record<string, string>> | null;
2218
2241
  error?: Record<string, Record<string, string>> | null;
@@ -2672,6 +2695,7 @@ type CompletedValidatorDetails = {
2672
2695
  */
2673
2696
  blsCredentials?: BlsCredentials;
2674
2697
  delegatorCount: number;
2698
+ amountDelegated?: string;
2675
2699
  rewards: Rewards;
2676
2700
  validationStatus: CompletedValidatorDetails.validationStatus;
2677
2701
  };
@@ -4691,6 +4715,30 @@ declare class TeleporterService {
4691
4715
  */
4692
4716
  network?: NetworkType;
4693
4717
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4718
+ /**
4719
+ * List teleporter messages by address
4720
+ * Lists teleporter messages by address. Ordered by timestamp in descending order.
4721
+ * @returns ListTeleporterMessagesResponse Successful response
4722
+ * @throws ApiError
4723
+ */
4724
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
4725
+ /**
4726
+ * An EVM address.
4727
+ */
4728
+ address: string;
4729
+ /**
4730
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4731
+ */
4732
+ pageToken?: string;
4733
+ /**
4734
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4735
+ */
4736
+ pageSize?: number;
4737
+ /**
4738
+ * mainnet or testnet.
4739
+ */
4740
+ network?: NetworkType;
4741
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4694
4742
  }
4695
4743
 
4696
4744
  type AddressesChangeRequest = {
@@ -4925,13 +4973,13 @@ declare class WebhooksService {
4925
4973
 
4926
4974
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4927
4975
  declare class Glacier {
4976
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4928
4977
  readonly default: DefaultService;
4929
4978
  readonly evmBalances: EvmBalancesService;
4930
4979
  readonly evmBlocks: EvmBlocksService;
4931
4980
  readonly evmChains: EvmChainsService;
4932
4981
  readonly evmContracts: EvmContractsService;
4933
4982
  readonly evmTransactions: EvmTransactionsService;
4934
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
4935
4983
  readonly healthCheck: HealthCheckService;
4936
4984
  readonly nfTs: NfTsService;
4937
4985
  readonly operations: OperationsService;
@@ -4996,6 +5044,10 @@ type BadRequest = {
4996
5044
  error: string;
4997
5045
  };
4998
5046
 
5047
+ type DataListChainsResponse = {
5048
+ chains: Array<ChainInfo>;
5049
+ };
5050
+
4999
5051
  type Forbidden = {
5000
5052
  /**
5001
5053
  * The error message describing the reason for the exception
@@ -5093,4 +5145,4 @@ type Unauthorized = {
5093
5145
  error: string;
5094
5146
  };
5095
5147
 
5096
- 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, 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, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, 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 };
5148
+ 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, 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 };