@avalabs/glacier-sdk 3.1.0-canary.c8a535f.0 → 3.1.0-canary.caf0199.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.
- package/dist/index.d.ts +676 -205
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +117 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +78 -0
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/index.d.ts +12 -6
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,110 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet",
|
|
155
|
+
DEVNET = "devnet"
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
159
|
+
REQUEST_PATH = "requestPath",
|
|
160
|
+
RESPONSE_CODE = "responseCode",
|
|
161
|
+
COUNTRY = "country",
|
|
162
|
+
CONTINENT = "continent",
|
|
163
|
+
USER_AGENT = "userAgent"
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
167
|
+
RPC_METHOD = "rpcMethod",
|
|
168
|
+
RESPONSE_CODE = "responseCode",
|
|
169
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
173
|
+
HOURLY = "hourly",
|
|
174
|
+
DAILY = "daily",
|
|
175
|
+
WEEKLY = "weekly",
|
|
176
|
+
MONTHLY = "monthly"
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
type RpcUsageMetricsValueAggregated = {
|
|
180
|
+
/**
|
|
181
|
+
* The total number of requests
|
|
182
|
+
*/
|
|
183
|
+
totalRequests: number;
|
|
184
|
+
/**
|
|
185
|
+
* The number of API credits used
|
|
186
|
+
*/
|
|
187
|
+
apiCreditsUsed: number;
|
|
188
|
+
/**
|
|
189
|
+
* The number of requests per second
|
|
190
|
+
*/
|
|
191
|
+
requestsPerSecond: number;
|
|
192
|
+
/**
|
|
193
|
+
* The success rate percentage
|
|
194
|
+
*/
|
|
195
|
+
successRatePercent: number;
|
|
196
|
+
/**
|
|
197
|
+
* The median response time in milliseconds
|
|
198
|
+
*/
|
|
199
|
+
medianResponseTimeMsecs: number;
|
|
200
|
+
/**
|
|
201
|
+
* The number of invalid requests
|
|
202
|
+
*/
|
|
203
|
+
invalidRequests: number;
|
|
204
|
+
/**
|
|
205
|
+
* The number of API credits wasted on invalid requests
|
|
206
|
+
*/
|
|
207
|
+
apiCreditsWasted: number;
|
|
208
|
+
/**
|
|
209
|
+
* Column name used for data aggregation
|
|
210
|
+
*/
|
|
211
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
212
|
+
/**
|
|
213
|
+
* The value of the column used for data aggregation
|
|
214
|
+
*/
|
|
215
|
+
groupValue?: (string | number);
|
|
216
|
+
};
|
|
217
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
218
|
+
/**
|
|
219
|
+
* Column name used for data aggregation
|
|
220
|
+
*/
|
|
221
|
+
enum groupedBy {
|
|
222
|
+
RPC_METHOD = "rpcMethod",
|
|
223
|
+
RESPONSE_CODE = "responseCode",
|
|
224
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
225
|
+
NONE = "None"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
type RpcMetrics = {
|
|
230
|
+
/**
|
|
231
|
+
* The timestamp of the metrics value
|
|
232
|
+
*/
|
|
233
|
+
timestamp: number;
|
|
234
|
+
/**
|
|
235
|
+
* The metrics values for the timestamp
|
|
236
|
+
*/
|
|
237
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
|
+
/**
|
|
242
|
+
* Duration in which the metrics value is aggregated
|
|
243
|
+
*/
|
|
244
|
+
aggregateDuration: string;
|
|
245
|
+
/**
|
|
246
|
+
* Metrics values
|
|
247
|
+
*/
|
|
248
|
+
metrics: Array<RpcMetrics>;
|
|
249
|
+
/**
|
|
250
|
+
* ChainId for which the metrics are aggregated
|
|
251
|
+
*/
|
|
252
|
+
chainId: string;
|
|
253
|
+
};
|
|
254
|
+
|
|
151
255
|
declare enum TimeIntervalGranularityExtended {
|
|
152
256
|
MINUTE = "minute",
|
|
153
257
|
HOURLY = "hourly",
|
|
@@ -251,17 +355,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
355
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
356
|
* @throws ApiError
|
|
253
357
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
358
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
255
359
|
/**
|
|
256
360
|
* Organization ID to fetch usage metrics for
|
|
257
361
|
*/
|
|
258
362
|
orgId?: string;
|
|
259
363
|
/**
|
|
260
|
-
*
|
|
364
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
261
365
|
*/
|
|
262
366
|
startTimestamp?: number;
|
|
263
367
|
/**
|
|
264
|
-
*
|
|
368
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
265
369
|
*/
|
|
266
370
|
endTimestamp?: number;
|
|
267
371
|
/**
|
|
@@ -273,25 +377,25 @@ declare class DataApiUsageMetricsService {
|
|
|
273
377
|
*/
|
|
274
378
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
379
|
/**
|
|
276
|
-
* Filter data by
|
|
277
|
-
*/
|
|
278
|
-
requestPath?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Filter data by request type.
|
|
380
|
+
* Filter data by chain ID.
|
|
281
381
|
*/
|
|
282
|
-
|
|
382
|
+
chainId?: string;
|
|
283
383
|
/**
|
|
284
384
|
* Filter data by response status code.
|
|
285
385
|
*/
|
|
286
386
|
responseCode?: string;
|
|
287
387
|
/**
|
|
288
|
-
* Filter data by
|
|
388
|
+
* Filter data by request type.
|
|
289
389
|
*/
|
|
290
|
-
|
|
390
|
+
requestType?: 'data' | 'rpc';
|
|
291
391
|
/**
|
|
292
392
|
* Filter data by API key ID.
|
|
293
393
|
*/
|
|
294
394
|
apiKeyId?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Filter data by request path.
|
|
397
|
+
*/
|
|
398
|
+
requestPath?: string;
|
|
295
399
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
296
400
|
/**
|
|
297
401
|
* Get logs for requests made by client
|
|
@@ -299,39 +403,39 @@ declare class DataApiUsageMetricsService {
|
|
|
299
403
|
* @returns LogsResponseDTO Successful response
|
|
300
404
|
* @throws ApiError
|
|
301
405
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
406
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
303
407
|
/**
|
|
304
408
|
* Organization ID to fetch usage metrics for
|
|
305
409
|
*/
|
|
306
410
|
orgId?: string;
|
|
307
411
|
/**
|
|
308
|
-
*
|
|
412
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
309
413
|
*/
|
|
310
414
|
startTimestamp?: number;
|
|
311
415
|
/**
|
|
312
|
-
*
|
|
416
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
313
417
|
*/
|
|
314
418
|
endTimestamp?: number;
|
|
315
419
|
/**
|
|
316
|
-
* Filter data by
|
|
317
|
-
*/
|
|
318
|
-
requestPath?: string;
|
|
319
|
-
/**
|
|
320
|
-
* Filter data by request type.
|
|
420
|
+
* Filter data by chain ID.
|
|
321
421
|
*/
|
|
322
|
-
|
|
422
|
+
chainId?: string;
|
|
323
423
|
/**
|
|
324
424
|
* Filter data by response status code.
|
|
325
425
|
*/
|
|
326
426
|
responseCode?: string;
|
|
327
427
|
/**
|
|
328
|
-
* Filter data by
|
|
428
|
+
* Filter data by request type.
|
|
329
429
|
*/
|
|
330
|
-
|
|
430
|
+
requestType?: 'data' | 'rpc';
|
|
331
431
|
/**
|
|
332
432
|
* Filter data by API key ID.
|
|
333
433
|
*/
|
|
334
434
|
apiKeyId?: string;
|
|
435
|
+
/**
|
|
436
|
+
* Filter data by request path.
|
|
437
|
+
*/
|
|
438
|
+
requestPath?: string;
|
|
335
439
|
/**
|
|
336
440
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
337
441
|
*/
|
|
@@ -341,6 +445,96 @@ declare class DataApiUsageMetricsService {
|
|
|
341
445
|
*/
|
|
342
446
|
pageSize?: number;
|
|
343
447
|
}): CancelablePromise<LogsResponseDTO>;
|
|
448
|
+
/**
|
|
449
|
+
* Get usage metrics for the Subnet RPC
|
|
450
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
451
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
|
+
* @throws ApiError
|
|
453
|
+
*/
|
|
454
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
|
+
/**
|
|
456
|
+
* Time interval granularity for data aggregation for subnet
|
|
457
|
+
* rpc metrics
|
|
458
|
+
*/
|
|
459
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
460
|
+
/**
|
|
461
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
462
|
+
*/
|
|
463
|
+
startTimestamp?: number;
|
|
464
|
+
/**
|
|
465
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
466
|
+
*/
|
|
467
|
+
endTimestamp?: number;
|
|
468
|
+
/**
|
|
469
|
+
* Query param for the criterion used for grouping metrics
|
|
470
|
+
*/
|
|
471
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
472
|
+
/**
|
|
473
|
+
* Filter data by chain ID.
|
|
474
|
+
*/
|
|
475
|
+
chainId?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Filter data by response status code.
|
|
478
|
+
*/
|
|
479
|
+
responseCode?: string;
|
|
480
|
+
/**
|
|
481
|
+
* Filter data by RPC method.
|
|
482
|
+
*/
|
|
483
|
+
rpcMethod?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Filter data by Rl Bypass API Token.
|
|
486
|
+
*/
|
|
487
|
+
rlBypassApiToken?: string;
|
|
488
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
489
|
+
/**
|
|
490
|
+
* Get usage metrics for the Primary Network RPC
|
|
491
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
493
|
+
* @throws ApiError
|
|
494
|
+
*/
|
|
495
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
496
|
+
/**
|
|
497
|
+
* Either mainnet or testnet/fuji.
|
|
498
|
+
*/
|
|
499
|
+
network: Network;
|
|
500
|
+
/**
|
|
501
|
+
* Time interval granularity for data aggregation for subnet
|
|
502
|
+
* rpc metrics
|
|
503
|
+
*/
|
|
504
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
505
|
+
/**
|
|
506
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
507
|
+
*/
|
|
508
|
+
startTimestamp?: number;
|
|
509
|
+
/**
|
|
510
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
511
|
+
*/
|
|
512
|
+
endTimestamp?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Query param for the criterion used for grouping metrics
|
|
515
|
+
*/
|
|
516
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
517
|
+
/**
|
|
518
|
+
* Filter data by response status code.
|
|
519
|
+
*/
|
|
520
|
+
responseCode?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Filter data by request path.
|
|
523
|
+
*/
|
|
524
|
+
requestPath?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Filter data by Country.
|
|
527
|
+
*/
|
|
528
|
+
country?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Filter data by Continent.
|
|
531
|
+
*/
|
|
532
|
+
continent?: string;
|
|
533
|
+
/**
|
|
534
|
+
* Filter data by User Agent.
|
|
535
|
+
*/
|
|
536
|
+
userAgent?: string;
|
|
537
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
344
538
|
}
|
|
345
539
|
|
|
346
540
|
declare class DefaultService {
|
|
@@ -539,6 +733,10 @@ type ListErc1155BalancesResponse = {
|
|
|
539
733
|
* 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.
|
|
540
734
|
*/
|
|
541
735
|
nextPageToken?: string;
|
|
736
|
+
/**
|
|
737
|
+
* The native token balance for the address.
|
|
738
|
+
*/
|
|
739
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
542
740
|
/**
|
|
543
741
|
* The list of ERC-1155 token balances for the address.
|
|
544
742
|
*/
|
|
@@ -583,11 +781,22 @@ type Erc20TokenBalance = {
|
|
|
583
781
|
* The monetary value of the balance, if a price is available for the token.
|
|
584
782
|
*/
|
|
585
783
|
balanceValue?: Money;
|
|
784
|
+
/**
|
|
785
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
786
|
+
*/
|
|
787
|
+
tokenReputation: Erc20TokenBalance.tokenReputation | null;
|
|
586
788
|
};
|
|
587
789
|
declare namespace Erc20TokenBalance {
|
|
588
790
|
enum ercType {
|
|
589
791
|
ERC_20 = "ERC-20"
|
|
590
792
|
}
|
|
793
|
+
/**
|
|
794
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
795
|
+
*/
|
|
796
|
+
enum tokenReputation {
|
|
797
|
+
MALICIOUS = "Malicious",
|
|
798
|
+
BENIGN = "Benign"
|
|
799
|
+
}
|
|
591
800
|
}
|
|
592
801
|
|
|
593
802
|
type ListErc20BalancesResponse = {
|
|
@@ -595,6 +804,10 @@ type ListErc20BalancesResponse = {
|
|
|
595
804
|
* 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
805
|
*/
|
|
597
806
|
nextPageToken?: string;
|
|
807
|
+
/**
|
|
808
|
+
* The native token balance for the address.
|
|
809
|
+
*/
|
|
810
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
598
811
|
/**
|
|
599
812
|
* The list of ERC-20 token balances for the address.
|
|
600
813
|
*/
|
|
@@ -606,6 +819,10 @@ type ListErc721BalancesResponse = {
|
|
|
606
819
|
* 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
820
|
*/
|
|
608
821
|
nextPageToken?: string;
|
|
822
|
+
/**
|
|
823
|
+
* The native token balance for the address.
|
|
824
|
+
*/
|
|
825
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
609
826
|
/**
|
|
610
827
|
* The list of ERC-721 token balances for the address.
|
|
611
828
|
*/
|
|
@@ -784,6 +1001,10 @@ declare class EvmBalancesService {
|
|
|
784
1001
|
}
|
|
785
1002
|
|
|
786
1003
|
type GetEvmBlockResponse = {
|
|
1004
|
+
/**
|
|
1005
|
+
* The EVM chain ID on which the block was created.
|
|
1006
|
+
*/
|
|
1007
|
+
chainId: string;
|
|
787
1008
|
/**
|
|
788
1009
|
* The block number on the chain.
|
|
789
1010
|
*/
|
|
@@ -828,6 +1049,10 @@ type GetEvmBlockResponse = {
|
|
|
828
1049
|
};
|
|
829
1050
|
|
|
830
1051
|
type EvmBlock = {
|
|
1052
|
+
/**
|
|
1053
|
+
* The EVM chain ID on which the block was created.
|
|
1054
|
+
*/
|
|
1055
|
+
chainId: string;
|
|
831
1056
|
/**
|
|
832
1057
|
* The block number on the chain.
|
|
833
1058
|
*/
|
|
@@ -882,6 +1107,26 @@ type ListEvmBlocksResponse = {
|
|
|
882
1107
|
declare class EvmBlocksService {
|
|
883
1108
|
readonly httpRequest: BaseHttpRequest;
|
|
884
1109
|
constructor(httpRequest: BaseHttpRequest);
|
|
1110
|
+
/**
|
|
1111
|
+
* List latest blocks across all supported EVM chains
|
|
1112
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1113
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1114
|
+
* @throws ApiError
|
|
1115
|
+
*/
|
|
1116
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1117
|
+
/**
|
|
1118
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1119
|
+
*/
|
|
1120
|
+
pageToken?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1123
|
+
*/
|
|
1124
|
+
pageSize?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* Either mainnet or testnet/fuji.
|
|
1127
|
+
*/
|
|
1128
|
+
network?: Network;
|
|
1129
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
885
1130
|
/**
|
|
886
1131
|
* List latest blocks
|
|
887
1132
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1004,20 +1249,142 @@ type ChainInfo = {
|
|
|
1004
1249
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1250
|
};
|
|
1006
1251
|
|
|
1252
|
+
type ListAddressChainsResponse = {
|
|
1253
|
+
indexedChains?: Array<ChainInfo>;
|
|
1254
|
+
unindexedChains?: Array<string>;
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1007
1257
|
type ListChainsResponse = {
|
|
1008
1258
|
chains: Array<ChainInfo>;
|
|
1009
1259
|
};
|
|
1010
1260
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1261
|
+
/**
|
|
1262
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1263
|
+
*/
|
|
1264
|
+
declare enum TransactionMethodType {
|
|
1265
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1266
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1267
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
type Method = {
|
|
1271
|
+
callType: TransactionMethodType;
|
|
1272
|
+
/**
|
|
1273
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1274
|
+
*/
|
|
1275
|
+
methodHash: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1278
|
+
*/
|
|
1279
|
+
methodName?: string;
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
type RichAddress = {
|
|
1283
|
+
/**
|
|
1284
|
+
* The contract name.
|
|
1285
|
+
*/
|
|
1286
|
+
name?: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* The contract symbol.
|
|
1289
|
+
*/
|
|
1290
|
+
symbol?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1293
|
+
*/
|
|
1294
|
+
decimals?: number;
|
|
1295
|
+
/**
|
|
1296
|
+
* The logo uri for the address.
|
|
1297
|
+
*/
|
|
1298
|
+
logoUri?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1301
|
+
*/
|
|
1302
|
+
address: string;
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
type NativeTransaction = {
|
|
1306
|
+
/**
|
|
1307
|
+
* The block number on the chain.
|
|
1308
|
+
*/
|
|
1309
|
+
blockNumber: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* The block finality timestamp.
|
|
1312
|
+
*/
|
|
1313
|
+
blockTimestamp: number;
|
|
1314
|
+
/**
|
|
1315
|
+
* The block hash identifier.
|
|
1316
|
+
*/
|
|
1317
|
+
blockHash: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* The EVM chain ID on which the transaction occured.
|
|
1320
|
+
*/
|
|
1321
|
+
chainId: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1324
|
+
*/
|
|
1325
|
+
blockIndex: number;
|
|
1326
|
+
/**
|
|
1327
|
+
* The transaction hash identifier.
|
|
1328
|
+
*/
|
|
1329
|
+
txHash: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1332
|
+
*/
|
|
1333
|
+
txStatus: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* The transaction type.
|
|
1336
|
+
*/
|
|
1337
|
+
txType: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* The gas limit set for the transaction.
|
|
1340
|
+
*/
|
|
1341
|
+
gasLimit: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* The amount of gas used.
|
|
1344
|
+
*/
|
|
1345
|
+
gasUsed: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1348
|
+
*/
|
|
1349
|
+
gasPrice: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* The nonce used by the sender of the transaction.
|
|
1352
|
+
*/
|
|
1353
|
+
nonce: string;
|
|
1354
|
+
from: RichAddress;
|
|
1355
|
+
to: RichAddress;
|
|
1356
|
+
method?: Method;
|
|
1357
|
+
value: string;
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
type ListNativeTransactionsResponse = {
|
|
1361
|
+
/**
|
|
1362
|
+
* 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.
|
|
1363
|
+
*/
|
|
1364
|
+
nextPageToken?: string;
|
|
1365
|
+
transactions: Array<NativeTransaction>;
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1368
|
+
declare enum TransactionStatus {
|
|
1369
|
+
FAILED = "failed",
|
|
1370
|
+
SUCCESS = "success"
|
|
1016
1371
|
}
|
|
1017
1372
|
|
|
1018
1373
|
declare class EvmChainsService {
|
|
1019
1374
|
readonly httpRequest: BaseHttpRequest;
|
|
1020
1375
|
constructor(httpRequest: BaseHttpRequest);
|
|
1376
|
+
/**
|
|
1377
|
+
* List all chains associated with a given address
|
|
1378
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1379
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1380
|
+
* @throws ApiError
|
|
1381
|
+
*/
|
|
1382
|
+
listAddressChains({ address, }: {
|
|
1383
|
+
/**
|
|
1384
|
+
* A wallet address.
|
|
1385
|
+
*/
|
|
1386
|
+
address: string;
|
|
1387
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1021
1388
|
/**
|
|
1022
1389
|
* List chains
|
|
1023
1390
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
@@ -1046,6 +1413,68 @@ declare class EvmChainsService {
|
|
|
1046
1413
|
*/
|
|
1047
1414
|
chainId: string;
|
|
1048
1415
|
}): CancelablePromise<GetChainResponse>;
|
|
1416
|
+
/**
|
|
1417
|
+
* @deprecated
|
|
1418
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1419
|
+
*
|
|
1420
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1421
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1422
|
+
* @throws ApiError
|
|
1423
|
+
*/
|
|
1424
|
+
getAddressChains({ address, }: {
|
|
1425
|
+
/**
|
|
1426
|
+
* A wallet address.
|
|
1427
|
+
*/
|
|
1428
|
+
address: string;
|
|
1429
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1430
|
+
/**
|
|
1431
|
+
* @deprecated
|
|
1432
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1433
|
+
*
|
|
1434
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1435
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1436
|
+
* @throws ApiError
|
|
1437
|
+
*/
|
|
1438
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1439
|
+
/**
|
|
1440
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1441
|
+
*/
|
|
1442
|
+
pageToken?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1445
|
+
*/
|
|
1446
|
+
pageSize?: number;
|
|
1447
|
+
/**
|
|
1448
|
+
* Either mainnet or testnet/fuji.
|
|
1449
|
+
*/
|
|
1450
|
+
network?: Network;
|
|
1451
|
+
/**
|
|
1452
|
+
* A status filter for listed transactions.
|
|
1453
|
+
*/
|
|
1454
|
+
status?: TransactionStatus;
|
|
1455
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1456
|
+
/**
|
|
1457
|
+
* @deprecated
|
|
1458
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1459
|
+
*
|
|
1460
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1461
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1462
|
+
* @throws ApiError
|
|
1463
|
+
*/
|
|
1464
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1465
|
+
/**
|
|
1466
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1467
|
+
*/
|
|
1468
|
+
pageToken?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1471
|
+
*/
|
|
1472
|
+
pageSize?: number;
|
|
1473
|
+
/**
|
|
1474
|
+
* Either mainnet or testnet/fuji.
|
|
1475
|
+
*/
|
|
1476
|
+
network?: Network;
|
|
1477
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1049
1478
|
}
|
|
1050
1479
|
|
|
1051
1480
|
type ImageAsset = {
|
|
@@ -1374,34 +1803,11 @@ type Erc1155Token = {
|
|
|
1374
1803
|
tokenUri: string;
|
|
1375
1804
|
metadata: Erc1155TokenMetadata;
|
|
1376
1805
|
};
|
|
1377
|
-
declare namespace Erc1155Token {
|
|
1378
|
-
enum ercType {
|
|
1379
|
-
ERC_1155 = "ERC-1155"
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
type RichAddress = {
|
|
1384
|
-
/**
|
|
1385
|
-
* The contract name.
|
|
1386
|
-
*/
|
|
1387
|
-
name?: string;
|
|
1388
|
-
/**
|
|
1389
|
-
* The contract symbol.
|
|
1390
|
-
*/
|
|
1391
|
-
symbol?: string;
|
|
1392
|
-
/**
|
|
1393
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1394
|
-
*/
|
|
1395
|
-
decimals?: number;
|
|
1396
|
-
/**
|
|
1397
|
-
* The logo uri for the address.
|
|
1398
|
-
*/
|
|
1399
|
-
logoUri?: string;
|
|
1400
|
-
/**
|
|
1401
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1402
|
-
*/
|
|
1403
|
-
address: string;
|
|
1404
|
-
};
|
|
1806
|
+
declare namespace Erc1155Token {
|
|
1807
|
+
enum ercType {
|
|
1808
|
+
ERC_1155 = "ERC-1155"
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1405
1811
|
|
|
1406
1812
|
type Erc1155TransferDetails = {
|
|
1407
1813
|
from: RichAddress;
|
|
@@ -1487,27 +1893,6 @@ type Erc721TransferDetails = {
|
|
|
1487
1893
|
erc721Token: Erc721Token;
|
|
1488
1894
|
};
|
|
1489
1895
|
|
|
1490
|
-
/**
|
|
1491
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1492
|
-
*/
|
|
1493
|
-
declare enum TransactionMethodType {
|
|
1494
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1495
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1496
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
type Method = {
|
|
1500
|
-
callType: TransactionMethodType;
|
|
1501
|
-
/**
|
|
1502
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1503
|
-
*/
|
|
1504
|
-
methodHash: string;
|
|
1505
|
-
/**
|
|
1506
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1507
|
-
*/
|
|
1508
|
-
methodName?: string;
|
|
1509
|
-
};
|
|
1510
|
-
|
|
1511
1896
|
type FullNativeTransactionDetails = {
|
|
1512
1897
|
/**
|
|
1513
1898
|
* The block number on the chain.
|
|
@@ -1521,6 +1906,10 @@ type FullNativeTransactionDetails = {
|
|
|
1521
1906
|
* The block hash identifier.
|
|
1522
1907
|
*/
|
|
1523
1908
|
blockHash: string;
|
|
1909
|
+
/**
|
|
1910
|
+
* The EVM chain ID on which the transaction occured.
|
|
1911
|
+
*/
|
|
1912
|
+
chainId: string;
|
|
1524
1913
|
/**
|
|
1525
1914
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1526
1915
|
*/
|
|
@@ -1784,65 +2173,6 @@ type ListInternalTransactionsResponse = {
|
|
|
1784
2173
|
transactions: Array<InternalTransaction>;
|
|
1785
2174
|
};
|
|
1786
2175
|
|
|
1787
|
-
type NativeTransaction = {
|
|
1788
|
-
/**
|
|
1789
|
-
* The block number on the chain.
|
|
1790
|
-
*/
|
|
1791
|
-
blockNumber: string;
|
|
1792
|
-
/**
|
|
1793
|
-
* The block finality timestamp.
|
|
1794
|
-
*/
|
|
1795
|
-
blockTimestamp: number;
|
|
1796
|
-
/**
|
|
1797
|
-
* The block hash identifier.
|
|
1798
|
-
*/
|
|
1799
|
-
blockHash: string;
|
|
1800
|
-
/**
|
|
1801
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1802
|
-
*/
|
|
1803
|
-
blockIndex: number;
|
|
1804
|
-
/**
|
|
1805
|
-
* The transaction hash identifier.
|
|
1806
|
-
*/
|
|
1807
|
-
txHash: string;
|
|
1808
|
-
/**
|
|
1809
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1810
|
-
*/
|
|
1811
|
-
txStatus: string;
|
|
1812
|
-
/**
|
|
1813
|
-
* The transaction type.
|
|
1814
|
-
*/
|
|
1815
|
-
txType: number;
|
|
1816
|
-
/**
|
|
1817
|
-
* The gas limit set for the transaction.
|
|
1818
|
-
*/
|
|
1819
|
-
gasLimit: string;
|
|
1820
|
-
/**
|
|
1821
|
-
* The amount of gas used.
|
|
1822
|
-
*/
|
|
1823
|
-
gasUsed: string;
|
|
1824
|
-
/**
|
|
1825
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1826
|
-
*/
|
|
1827
|
-
gasPrice: string;
|
|
1828
|
-
/**
|
|
1829
|
-
* The nonce used by the sender of the transaction.
|
|
1830
|
-
*/
|
|
1831
|
-
nonce: string;
|
|
1832
|
-
from: RichAddress;
|
|
1833
|
-
to: RichAddress;
|
|
1834
|
-
method?: Method;
|
|
1835
|
-
value: string;
|
|
1836
|
-
};
|
|
1837
|
-
|
|
1838
|
-
type ListNativeTransactionsResponse = {
|
|
1839
|
-
/**
|
|
1840
|
-
* 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.
|
|
1841
|
-
*/
|
|
1842
|
-
nextPageToken?: string;
|
|
1843
|
-
transactions: Array<NativeTransaction>;
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
2176
|
type TransactionDetails = {
|
|
1847
2177
|
/**
|
|
1848
2178
|
* The native (top-level) transaction details.
|
|
@@ -1887,14 +2217,33 @@ declare enum SortOrder {
|
|
|
1887
2217
|
DESC = "desc"
|
|
1888
2218
|
}
|
|
1889
2219
|
|
|
1890
|
-
declare enum TransactionStatus {
|
|
1891
|
-
FAILED = "failed",
|
|
1892
|
-
SUCCESS = "success"
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
2220
|
declare class EvmTransactionsService {
|
|
1896
2221
|
readonly httpRequest: BaseHttpRequest;
|
|
1897
2222
|
constructor(httpRequest: BaseHttpRequest);
|
|
2223
|
+
/**
|
|
2224
|
+
* List the latest transactions across all supported EVM chains
|
|
2225
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2226
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2227
|
+
* @throws ApiError
|
|
2228
|
+
*/
|
|
2229
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2230
|
+
/**
|
|
2231
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2232
|
+
*/
|
|
2233
|
+
pageToken?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2236
|
+
*/
|
|
2237
|
+
pageSize?: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* Either mainnet or testnet/fuji.
|
|
2240
|
+
*/
|
|
2241
|
+
network?: Network;
|
|
2242
|
+
/**
|
|
2243
|
+
* A status filter for listed transactions.
|
|
2244
|
+
*/
|
|
2245
|
+
status?: TransactionStatus;
|
|
2246
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1898
2247
|
/**
|
|
1899
2248
|
* Get deployment transaction
|
|
1900
2249
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2193,7 +2542,7 @@ declare class EvmTransactionsService {
|
|
|
2193
2542
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2194
2543
|
* @throws ApiError
|
|
2195
2544
|
*/
|
|
2196
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2545
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2197
2546
|
/**
|
|
2198
2547
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2199
2548
|
*/
|
|
@@ -2202,6 +2551,14 @@ declare class EvmTransactionsService {
|
|
|
2202
2551
|
* A block identifier which is either a block number or the block hash.
|
|
2203
2552
|
*/
|
|
2204
2553
|
blockId: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2556
|
+
*/
|
|
2557
|
+
pageToken?: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2560
|
+
*/
|
|
2561
|
+
pageSize?: number;
|
|
2205
2562
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2206
2563
|
/**
|
|
2207
2564
|
* List latest transactions
|
|
@@ -2574,10 +2931,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2574
2931
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2575
2932
|
};
|
|
2576
2933
|
|
|
2934
|
+
type BalanceOwner = {
|
|
2935
|
+
addresses: Array<string>;
|
|
2936
|
+
threshold: number;
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
type L1ValidatorDetailsFull = {
|
|
2940
|
+
/**
|
|
2941
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2942
|
+
*/
|
|
2943
|
+
validationId: string;
|
|
2944
|
+
nodeId: string;
|
|
2945
|
+
subnetId: string;
|
|
2946
|
+
/**
|
|
2947
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
2948
|
+
*/
|
|
2949
|
+
weight: number;
|
|
2950
|
+
/**
|
|
2951
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2952
|
+
*/
|
|
2953
|
+
remainingBalance: number;
|
|
2954
|
+
/**
|
|
2955
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2956
|
+
*/
|
|
2957
|
+
creationTimestamp: number;
|
|
2958
|
+
blsCredentials: Record<string, any>;
|
|
2959
|
+
/**
|
|
2960
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2961
|
+
*/
|
|
2962
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2963
|
+
/**
|
|
2964
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2965
|
+
*/
|
|
2966
|
+
deactivationOwner: BalanceOwner;
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
type ListL1ValidatorsResponse = {
|
|
2970
|
+
/**
|
|
2971
|
+
* 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.
|
|
2972
|
+
*/
|
|
2973
|
+
nextPageToken?: string;
|
|
2974
|
+
/**
|
|
2975
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2976
|
+
*/
|
|
2977
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2978
|
+
};
|
|
2979
|
+
|
|
2577
2980
|
type BlockchainInfo = {
|
|
2578
2981
|
blockchainId: string;
|
|
2579
2982
|
};
|
|
2580
2983
|
|
|
2984
|
+
type L1ValidatorManagerDetails = {
|
|
2985
|
+
blockchainId: string;
|
|
2986
|
+
contractAddress: string;
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2581
2989
|
type SubnetOwnershipInfo = {
|
|
2582
2990
|
/**
|
|
2583
2991
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2616,6 +3024,18 @@ type Subnet = {
|
|
|
2616
3024
|
* Latest subnet owner details for this Subnet.
|
|
2617
3025
|
*/
|
|
2618
3026
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
3027
|
+
/**
|
|
3028
|
+
* Whether the subnet is an L1 or not.
|
|
3029
|
+
*/
|
|
3030
|
+
isL1: boolean;
|
|
3031
|
+
/**
|
|
3032
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3033
|
+
*/
|
|
3034
|
+
l1ConversionTransactionHash?: string;
|
|
3035
|
+
/**
|
|
3036
|
+
* L1 validator manager details.
|
|
3037
|
+
*/
|
|
3038
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2619
3039
|
blockchains: Array<BlockchainInfo>;
|
|
2620
3040
|
};
|
|
2621
3041
|
|
|
@@ -3082,6 +3502,39 @@ declare class PrimaryNetworkService {
|
|
|
3082
3502
|
*/
|
|
3083
3503
|
nodeIds?: string;
|
|
3084
3504
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3505
|
+
/**
|
|
3506
|
+
* List L1 validators
|
|
3507
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3508
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3509
|
+
* @throws ApiError
|
|
3510
|
+
*/
|
|
3511
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3512
|
+
/**
|
|
3513
|
+
* Either mainnet or testnet/fuji.
|
|
3514
|
+
*/
|
|
3515
|
+
network: Network;
|
|
3516
|
+
/**
|
|
3517
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3518
|
+
*/
|
|
3519
|
+
pageToken?: string;
|
|
3520
|
+
/**
|
|
3521
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3522
|
+
*/
|
|
3523
|
+
pageSize?: number;
|
|
3524
|
+
/**
|
|
3525
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3526
|
+
*/
|
|
3527
|
+
l1ValidationId?: any;
|
|
3528
|
+
includeInactiveL1Validators?: boolean;
|
|
3529
|
+
/**
|
|
3530
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3531
|
+
*/
|
|
3532
|
+
nodeId?: string;
|
|
3533
|
+
/**
|
|
3534
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3535
|
+
*/
|
|
3536
|
+
subnetId?: any;
|
|
3537
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3085
3538
|
}
|
|
3086
3539
|
|
|
3087
3540
|
declare enum BlockchainId {
|
|
@@ -3128,12 +3581,6 @@ type CChainAtomicBalances = {
|
|
|
3128
3581
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3129
3582
|
};
|
|
3130
3583
|
|
|
3131
|
-
declare enum PrimaryNetwork {
|
|
3132
|
-
MAINNET = "mainnet",
|
|
3133
|
-
FUJI = "fuji",
|
|
3134
|
-
DEVNET = "devnet"
|
|
3135
|
-
}
|
|
3136
|
-
|
|
3137
3584
|
declare enum PrimaryNetworkChainName {
|
|
3138
3585
|
P_CHAIN = "p-chain",
|
|
3139
3586
|
X_CHAIN = "x-chain",
|
|
@@ -3142,7 +3589,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3142
3589
|
|
|
3143
3590
|
type PrimaryNetworkChainInfo = {
|
|
3144
3591
|
chainName: PrimaryNetworkChainName;
|
|
3145
|
-
network:
|
|
3592
|
+
network: Network;
|
|
3146
3593
|
};
|
|
3147
3594
|
|
|
3148
3595
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3334,6 +3781,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3334
3781
|
txCount: number;
|
|
3335
3782
|
transactions: Array<string>;
|
|
3336
3783
|
blockSizeBytes: number;
|
|
3784
|
+
l1ValidatorsAccruedFees?: number;
|
|
3785
|
+
activeL1Validators?: number;
|
|
3337
3786
|
currentSupply?: string;
|
|
3338
3787
|
proposerDetails?: ProposerDetails;
|
|
3339
3788
|
};
|
|
@@ -3347,6 +3796,8 @@ type PrimaryNetworkBlock = {
|
|
|
3347
3796
|
txCount: number;
|
|
3348
3797
|
transactions: Array<string>;
|
|
3349
3798
|
blockSizeBytes: number;
|
|
3799
|
+
l1ValidatorsAccruedFees?: number;
|
|
3800
|
+
activeL1Validators?: number;
|
|
3350
3801
|
currentSupply?: string;
|
|
3351
3802
|
proposerDetails?: ProposerDetails;
|
|
3352
3803
|
};
|
|
@@ -3389,7 +3840,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3389
3840
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3390
3841
|
* @throws ApiError
|
|
3391
3842
|
*/
|
|
3392
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3843
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3393
3844
|
/**
|
|
3394
3845
|
* A primary network blockchain id or alias.
|
|
3395
3846
|
*/
|
|
@@ -3402,6 +3853,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3402
3853
|
* A primary network (P or X chain) nodeId.
|
|
3403
3854
|
*/
|
|
3404
3855
|
nodeId: string;
|
|
3856
|
+
/**
|
|
3857
|
+
* Query param for retrieving items after a specific timestamp.
|
|
3858
|
+
*/
|
|
3859
|
+
startTimestamp?: number;
|
|
3860
|
+
/**
|
|
3861
|
+
* Query param for retrieving items before a specific timestamp.
|
|
3862
|
+
*/
|
|
3863
|
+
endTimestamp?: number;
|
|
3405
3864
|
/**
|
|
3406
3865
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3407
3866
|
*/
|
|
@@ -3417,7 +3876,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3417
3876
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3418
3877
|
* @throws ApiError
|
|
3419
3878
|
*/
|
|
3420
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3879
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3421
3880
|
/**
|
|
3422
3881
|
* A primary network blockchain id or alias.
|
|
3423
3882
|
*/
|
|
@@ -3426,6 +3885,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3426
3885
|
* Either mainnet or testnet/fuji.
|
|
3427
3886
|
*/
|
|
3428
3887
|
network: Network;
|
|
3888
|
+
/**
|
|
3889
|
+
* Query param for retrieving items after a specific timestamp.
|
|
3890
|
+
*/
|
|
3891
|
+
startTimestamp?: number;
|
|
3892
|
+
/**
|
|
3893
|
+
* Query param for retrieving items before a specific timestamp.
|
|
3894
|
+
*/
|
|
3895
|
+
endTimestamp?: number;
|
|
3429
3896
|
/**
|
|
3430
3897
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3431
3898
|
*/
|
|
@@ -3835,6 +4302,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3835
4302
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3836
4303
|
};
|
|
3837
4304
|
|
|
4305
|
+
type L1ValidatorDetailsTransaction = {
|
|
4306
|
+
/**
|
|
4307
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4308
|
+
*/
|
|
4309
|
+
validationId: string;
|
|
4310
|
+
nodeId: string;
|
|
4311
|
+
subnetId: string;
|
|
4312
|
+
/**
|
|
4313
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4314
|
+
*/
|
|
4315
|
+
weight: number;
|
|
4316
|
+
/**
|
|
4317
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4318
|
+
*/
|
|
4319
|
+
remainingBalance: number;
|
|
4320
|
+
/**
|
|
4321
|
+
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4322
|
+
*/
|
|
4323
|
+
balanceChange?: number;
|
|
4324
|
+
blsCredentials?: Record<string, any>;
|
|
4325
|
+
};
|
|
4326
|
+
|
|
3838
4327
|
declare enum PChainTransactionType {
|
|
3839
4328
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3840
4329
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3851,6 +4340,11 @@ declare enum PChainTransactionType {
|
|
|
3851
4340
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3852
4341
|
BASE_TX = "BaseTx",
|
|
3853
4342
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4343
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4344
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4345
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4346
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4347
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3854
4348
|
UNKNOWN = "UNKNOWN"
|
|
3855
4349
|
}
|
|
3856
4350
|
|
|
@@ -3939,6 +4433,10 @@ type PChainTransaction = {
|
|
|
3939
4433
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3940
4434
|
*/
|
|
3941
4435
|
amountStaked: Array<AssetAmount>;
|
|
4436
|
+
/**
|
|
4437
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4438
|
+
*/
|
|
4439
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3942
4440
|
/**
|
|
3943
4441
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3944
4442
|
*/
|
|
@@ -3959,6 +4457,14 @@ type PChainTransaction = {
|
|
|
3959
4457
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
3960
4458
|
*/
|
|
3961
4459
|
subnetId?: string;
|
|
4460
|
+
/**
|
|
4461
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4462
|
+
*/
|
|
4463
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4464
|
+
/**
|
|
4465
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4466
|
+
*/
|
|
4467
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
3962
4468
|
/**
|
|
3963
4469
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3964
4470
|
*/
|
|
@@ -4160,6 +4666,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4160
4666
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4161
4667
|
BASE_TX = "BaseTx",
|
|
4162
4668
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4669
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4670
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4671
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4672
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4673
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4163
4674
|
UNKNOWN = "UNKNOWN",
|
|
4164
4675
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4165
4676
|
OPERATION_TX = "OperationTx"
|
|
@@ -4194,11 +4705,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4194
4705
|
*
|
|
4195
4706
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4196
4707
|
*
|
|
4708
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
4709
|
+
*
|
|
4197
4710
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4198
4711
|
* @returns any Successful response
|
|
4199
4712
|
* @throws ApiError
|
|
4200
4713
|
*/
|
|
4201
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4714
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4202
4715
|
/**
|
|
4203
4716
|
* A primary network blockchain id or alias.
|
|
4204
4717
|
*/
|
|
@@ -4211,6 +4724,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4211
4724
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4212
4725
|
*/
|
|
4213
4726
|
addresses?: string;
|
|
4727
|
+
l1ValidationId?: string;
|
|
4214
4728
|
/**
|
|
4215
4729
|
* Query param for filtering items based on transaction types.
|
|
4216
4730
|
*/
|
|
@@ -4486,61 +5000,12 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4486
5000
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4487
5001
|
}
|
|
4488
5002
|
|
|
4489
|
-
type RpcErrorDto = {
|
|
4490
|
-
code: number;
|
|
4491
|
-
message: string;
|
|
4492
|
-
data?: Record<string, any>;
|
|
4493
|
-
};
|
|
4494
|
-
|
|
4495
|
-
type RpcErrorResponseDto = {
|
|
4496
|
-
jsonrpc: string;
|
|
4497
|
-
id?: (string | number);
|
|
4498
|
-
error: RpcErrorDto;
|
|
4499
|
-
};
|
|
4500
|
-
|
|
4501
|
-
type RpcRequestBodyDto = {
|
|
4502
|
-
method: string;
|
|
4503
|
-
params?: Record<string, any>;
|
|
4504
|
-
id?: (string | number);
|
|
4505
|
-
jsonrpc?: string;
|
|
4506
|
-
};
|
|
4507
|
-
|
|
4508
|
-
type RpcSuccessResponseDto = {
|
|
4509
|
-
jsonrpc: string;
|
|
4510
|
-
id?: (string | number);
|
|
4511
|
-
result: Record<string, any>;
|
|
4512
|
-
};
|
|
4513
|
-
|
|
4514
|
-
declare class RpcService {
|
|
4515
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4516
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4517
|
-
/**
|
|
4518
|
-
* Calls JSON-RPC method
|
|
4519
|
-
* Calls JSON-RPC method.
|
|
4520
|
-
* @returns any Successful response
|
|
4521
|
-
* @throws ApiError
|
|
4522
|
-
*/
|
|
4523
|
-
rpc({ chainId, requestBody, }: {
|
|
4524
|
-
/**
|
|
4525
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4526
|
-
*/
|
|
4527
|
-
chainId: string;
|
|
4528
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4529
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4530
|
-
}
|
|
4531
|
-
|
|
4532
5003
|
type SignatureAggregationResponse = {
|
|
4533
5004
|
signedMessage: string;
|
|
4534
5005
|
};
|
|
4535
5006
|
|
|
4536
5007
|
type SignatureAggregatorRequest = {
|
|
4537
|
-
|
|
4538
|
-
* Must be defined if justification is not defined
|
|
4539
|
-
*/
|
|
4540
|
-
message?: string;
|
|
4541
|
-
/**
|
|
4542
|
-
* Must be defined if message is not defined
|
|
4543
|
-
*/
|
|
5008
|
+
message: string;
|
|
4544
5009
|
justification?: string;
|
|
4545
5010
|
signingSubnetId?: string;
|
|
4546
5011
|
quorumPercentage?: number;
|
|
@@ -4555,7 +5020,11 @@ declare class SignatureAggregatorService {
|
|
|
4555
5020
|
* @returns SignatureAggregationResponse Successful response
|
|
4556
5021
|
* @throws ApiError
|
|
4557
5022
|
*/
|
|
4558
|
-
aggregateSignatures({ requestBody, }: {
|
|
5023
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5024
|
+
/**
|
|
5025
|
+
* Either mainnet or testnet/fuji.
|
|
5026
|
+
*/
|
|
5027
|
+
network: Network;
|
|
4559
5028
|
requestBody: SignatureAggregatorRequest;
|
|
4560
5029
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4561
5030
|
}
|
|
@@ -4805,7 +5274,7 @@ type CreateWebhookRequest = {
|
|
|
4805
5274
|
name?: string;
|
|
4806
5275
|
description?: string;
|
|
4807
5276
|
/**
|
|
4808
|
-
* Whether to include traces in the webhook payload.
|
|
5277
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4809
5278
|
*/
|
|
4810
5279
|
includeInternalTxs?: boolean;
|
|
4811
5280
|
/**
|
|
@@ -4865,6 +5334,9 @@ type UpdateWebhookRequest = {
|
|
|
4865
5334
|
description?: string;
|
|
4866
5335
|
url?: string;
|
|
4867
5336
|
status?: WebhookStatusType;
|
|
5337
|
+
/**
|
|
5338
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5339
|
+
*/
|
|
4868
5340
|
includeInternalTxs?: boolean;
|
|
4869
5341
|
includeLogs?: boolean;
|
|
4870
5342
|
};
|
|
@@ -5024,7 +5496,6 @@ declare class Glacier {
|
|
|
5024
5496
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5025
5497
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5026
5498
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5027
|
-
readonly rpc: RpcService;
|
|
5028
5499
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5029
5500
|
readonly teleporter: TeleporterService;
|
|
5030
5501
|
readonly webhooks: WebhooksService;
|
|
@@ -5180,4 +5651,4 @@ type Unauthorized = {
|
|
|
5180
5651
|
error: string;
|
|
5181
5652
|
};
|
|
5182
5653
|
|
|
5183
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders,
|
|
5654
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, 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, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, 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 };
|