@avalabs/glacier-sdk 3.1.0-canary.2e46258.0 → 3.1.0-canary.31aa480.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 (34) hide show
  1. package/dist/index.d.ts +385 -145
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  6. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  7. package/esm/generated/models/EvmBlock.d.ts +4 -0
  8. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  9. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  10. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  11. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  12. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  13. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  14. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  15. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  16. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  17. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  18. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  19. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  20. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  21. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  22. package/esm/generated/services/DataApiUsageMetricsService.d.ts +72 -22
  23. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  24. package/esm/generated/services/EvmChainsService.d.ts +49 -2
  25. package/esm/generated/services/EvmChainsService.js +1 -1
  26. package/esm/generated/services/EvmTransactionsService.d.ts +9 -1
  27. package/esm/generated/services/EvmTransactionsService.js +1 -1
  28. package/esm/generated/services/MultiChainService.d.ts +70 -0
  29. package/esm/generated/services/MultiChainService.js +1 -0
  30. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  31. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  32. package/esm/index.d.ts +5 -1
  33. package/esm/index.js +1 -1
  34. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -148,6 +148,34 @@ 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
+
151
179
  type RpcUsageMetricsValueAggregated = {
152
180
  /**
153
181
  * The total number of requests
@@ -173,6 +201,10 @@ type RpcUsageMetricsValueAggregated = {
173
201
  * The number of invalid requests
174
202
  */
175
203
  invalidRequests: number;
204
+ /**
205
+ * The number of API credits wasted on invalid requests
206
+ */
207
+ apiCreditsWasted: number;
176
208
  /**
177
209
  * Column name used for data aggregation
178
210
  */
@@ -205,19 +237,19 @@ type RpcMetrics = {
205
237
  values: Array<RpcUsageMetricsValueAggregated>;
206
238
  };
207
239
 
208
- type RpcUsageMetricsResponseDTO = {
240
+ type SubnetRpcUsageMetricsResponseDTO = {
209
241
  /**
210
242
  * Duration in which the metrics value is aggregated
211
243
  */
212
244
  aggregateDuration: string;
213
- /**
214
- * ChainId for which the metrics are aggregated
215
- */
216
- chainId: string;
217
245
  /**
218
246
  * Metrics values
219
247
  */
220
248
  metrics: Array<RpcMetrics>;
249
+ /**
250
+ * ChainId for which the metrics are aggregated
251
+ */
252
+ chainId: string;
221
253
  };
222
254
 
223
255
  declare enum TimeIntervalGranularityExtended {
@@ -323,7 +355,7 @@ declare class DataApiUsageMetricsService {
323
355
  * @returns UsageMetricsResponseDTO Successful response
324
356
  * @throws ApiError
325
357
  */
326
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
358
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
327
359
  /**
328
360
  * Organization ID to fetch usage metrics for
329
361
  */
@@ -348,10 +380,6 @@ declare class DataApiUsageMetricsService {
348
380
  * Filter data by chain ID.
349
381
  */
350
382
  chainId?: string;
351
- /**
352
- * Filter data by request path.
353
- */
354
- requestPath?: string;
355
383
  /**
356
384
  * Filter data by response status code.
357
385
  */
@@ -364,6 +392,10 @@ declare class DataApiUsageMetricsService {
364
392
  * Filter data by API key ID.
365
393
  */
366
394
  apiKeyId?: string;
395
+ /**
396
+ * Filter data by request path.
397
+ */
398
+ requestPath?: string;
367
399
  }): CancelablePromise<UsageMetricsResponseDTO>;
368
400
  /**
369
401
  * Get logs for requests made by client
@@ -371,7 +403,7 @@ declare class DataApiUsageMetricsService {
371
403
  * @returns LogsResponseDTO Successful response
372
404
  * @throws ApiError
373
405
  */
374
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
406
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
375
407
  /**
376
408
  * Organization ID to fetch usage metrics for
377
409
  */
@@ -388,10 +420,6 @@ declare class DataApiUsageMetricsService {
388
420
  * Filter data by chain ID.
389
421
  */
390
422
  chainId?: string;
391
- /**
392
- * Filter data by request path.
393
- */
394
- requestPath?: string;
395
423
  /**
396
424
  * Filter data by response status code.
397
425
  */
@@ -404,6 +432,10 @@ declare class DataApiUsageMetricsService {
404
432
  * Filter data by API key ID.
405
433
  */
406
434
  apiKeyId?: string;
435
+ /**
436
+ * Filter data by request path.
437
+ */
438
+ requestPath?: string;
407
439
  /**
408
440
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
409
441
  */
@@ -415,15 +447,16 @@ declare class DataApiUsageMetricsService {
415
447
  }): CancelablePromise<LogsResponseDTO>;
416
448
  /**
417
449
  * Get usage metrics for the Subnet RPC
418
- * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
- * @returns RpcUsageMetricsResponseDTO Successful response
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
420
452
  * @throws ApiError
421
453
  */
422
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
454
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
423
455
  /**
424
- * Query param for setting time interval of data aggregation.
456
+ * Time interval granularity for data aggregation for subnet
457
+ * rpc metrics
425
458
  */
426
- timeInterval?: string;
459
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
427
460
  /**
428
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.
429
462
  */
@@ -435,15 +468,11 @@ declare class DataApiUsageMetricsService {
435
468
  /**
436
469
  * Query param for the criterion used for grouping metrics
437
470
  */
438
- groupBy?: UsageMetricsGroupByEnum;
471
+ groupBy?: RpcUsageMetricsGroupByEnum;
439
472
  /**
440
473
  * Filter data by chain ID.
441
474
  */
442
475
  chainId?: string;
443
- /**
444
- * Filter data by request path.
445
- */
446
- requestPath?: string;
447
476
  /**
448
477
  * Filter data by response status code.
449
478
  */
@@ -456,7 +485,56 @@ declare class DataApiUsageMetricsService {
456
485
  * Filter data by Rl Bypass API Token.
457
486
  */
458
487
  rlBypassApiToken?: string;
459
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
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>;
460
538
  }
461
539
 
462
540
  declare class DefaultService {
@@ -655,6 +733,10 @@ type ListErc1155BalancesResponse = {
655
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.
656
734
  */
657
735
  nextPageToken?: string;
736
+ /**
737
+ * The native token balance for the address.
738
+ */
739
+ nativeTokenBalance: NativeTokenBalance;
658
740
  /**
659
741
  * The list of ERC-1155 token balances for the address.
660
742
  */
@@ -699,11 +781,22 @@ type Erc20TokenBalance = {
699
781
  * The monetary value of the balance, if a price is available for the token.
700
782
  */
701
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;
702
788
  };
703
789
  declare namespace Erc20TokenBalance {
704
790
  enum ercType {
705
791
  ERC_20 = "ERC-20"
706
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
+ }
707
800
  }
708
801
 
709
802
  type ListErc20BalancesResponse = {
@@ -711,6 +804,10 @@ type ListErc20BalancesResponse = {
711
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.
712
805
  */
713
806
  nextPageToken?: string;
807
+ /**
808
+ * The native token balance for the address.
809
+ */
810
+ nativeTokenBalance: NativeTokenBalance;
714
811
  /**
715
812
  * The list of ERC-20 token balances for the address.
716
813
  */
@@ -722,6 +819,10 @@ type ListErc721BalancesResponse = {
722
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.
723
820
  */
724
821
  nextPageToken?: string;
822
+ /**
823
+ * The native token balance for the address.
824
+ */
825
+ nativeTokenBalance: NativeTokenBalance;
725
826
  /**
726
827
  * The list of ERC-721 token balances for the address.
727
828
  */
@@ -900,6 +1001,10 @@ declare class EvmBalancesService {
900
1001
  }
901
1002
 
902
1003
  type GetEvmBlockResponse = {
1004
+ /**
1005
+ * The EVM chain ID on which the block was created.
1006
+ */
1007
+ chainId: string;
903
1008
  /**
904
1009
  * The block number on the chain.
905
1010
  */
@@ -944,6 +1049,10 @@ type GetEvmBlockResponse = {
944
1049
  };
945
1050
 
946
1051
  type EvmBlock = {
1052
+ /**
1053
+ * The EVM chain ID on which the block was created.
1054
+ */
1055
+ chainId: string;
947
1056
  /**
948
1057
  * The block number on the chain.
949
1058
  */
@@ -1129,11 +1238,116 @@ type ListChainsResponse = {
1129
1238
  chains: Array<ChainInfo>;
1130
1239
  };
1131
1240
 
1132
- declare enum Network {
1133
- MAINNET = "mainnet",
1134
- FUJI = "fuji",
1135
- TESTNET = "testnet",
1136
- DEVNET = "devnet"
1241
+ /**
1242
+ * 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.
1243
+ */
1244
+ declare enum TransactionMethodType {
1245
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1246
+ CONTRACT_CALL = "CONTRACT_CALL",
1247
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1248
+ }
1249
+
1250
+ type Method = {
1251
+ callType: TransactionMethodType;
1252
+ /**
1253
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1254
+ */
1255
+ methodHash: string;
1256
+ /**
1257
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1258
+ */
1259
+ methodName?: string;
1260
+ };
1261
+
1262
+ type RichAddress = {
1263
+ /**
1264
+ * The contract name.
1265
+ */
1266
+ name?: string;
1267
+ /**
1268
+ * The contract symbol.
1269
+ */
1270
+ symbol?: string;
1271
+ /**
1272
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1273
+ */
1274
+ decimals?: number;
1275
+ /**
1276
+ * The logo uri for the address.
1277
+ */
1278
+ logoUri?: string;
1279
+ /**
1280
+ * A wallet or contract address in mixed-case checksum encoding.
1281
+ */
1282
+ address: string;
1283
+ };
1284
+
1285
+ type NativeTransaction = {
1286
+ /**
1287
+ * The block number on the chain.
1288
+ */
1289
+ blockNumber: string;
1290
+ /**
1291
+ * The block finality timestamp.
1292
+ */
1293
+ blockTimestamp: number;
1294
+ /**
1295
+ * The block hash identifier.
1296
+ */
1297
+ blockHash: string;
1298
+ /**
1299
+ * The EVM chain ID on which the transaction occured.
1300
+ */
1301
+ chainId: string;
1302
+ /**
1303
+ * The index at which the transaction occured in the block (0-indexed).
1304
+ */
1305
+ blockIndex: number;
1306
+ /**
1307
+ * The transaction hash identifier.
1308
+ */
1309
+ txHash: string;
1310
+ /**
1311
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1312
+ */
1313
+ txStatus: string;
1314
+ /**
1315
+ * The transaction type.
1316
+ */
1317
+ txType: number;
1318
+ /**
1319
+ * The gas limit set for the transaction.
1320
+ */
1321
+ gasLimit: string;
1322
+ /**
1323
+ * The amount of gas used.
1324
+ */
1325
+ gasUsed: string;
1326
+ /**
1327
+ * The gas price denominated by the number of decimals of the native token.
1328
+ */
1329
+ gasPrice: string;
1330
+ /**
1331
+ * The nonce used by the sender of the transaction.
1332
+ */
1333
+ nonce: string;
1334
+ from: RichAddress;
1335
+ to: RichAddress;
1336
+ method?: Method;
1337
+ value: string;
1338
+ };
1339
+
1340
+ type ListNativeTransactionsResponse = {
1341
+ /**
1342
+ * 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.
1343
+ */
1344
+ nextPageToken?: string;
1345
+ transactions: Array<NativeTransaction>;
1346
+ };
1347
+
1348
+ declare enum TransactionStatus {
1349
+ FAILED = "failed",
1350
+ SUCCESS = "success"
1137
1351
  }
1138
1352
 
1139
1353
  declare class EvmChainsService {
@@ -1168,8 +1382,8 @@ declare class EvmChainsService {
1168
1382
  chainId: string;
1169
1383
  }): CancelablePromise<GetChainResponse>;
1170
1384
  /**
1171
- * Get chains for address
1172
- * Gets the list of chains an address has interacted with.
1385
+ * @deprecated
1386
+ * 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.
1173
1387
  * @returns ListAddressChainsResponse Successful response
1174
1388
  * @throws ApiError
1175
1389
  */
@@ -1179,6 +1393,50 @@ declare class EvmChainsService {
1179
1393
  */
1180
1394
  address: string;
1181
1395
  }): CancelablePromise<ListAddressChainsResponse>;
1396
+ /**
1397
+ * @deprecated
1398
+ * Lists the latest transactions for all supported EVM chains. Filterable by status.
1399
+ * @returns ListNativeTransactionsResponse Successful response
1400
+ * @throws ApiError
1401
+ */
1402
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1403
+ /**
1404
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1405
+ */
1406
+ pageToken?: string;
1407
+ /**
1408
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1409
+ */
1410
+ pageSize?: number;
1411
+ /**
1412
+ * Either mainnet or testnet/fuji.
1413
+ */
1414
+ network?: Network;
1415
+ /**
1416
+ * A status filter for listed transactions.
1417
+ */
1418
+ status?: TransactionStatus;
1419
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1420
+ /**
1421
+ * @deprecated
1422
+ * Lists the latest blocks for all supported EVM chains. Filterable by network.
1423
+ * @returns ListEvmBlocksResponse Successful response
1424
+ * @throws ApiError
1425
+ */
1426
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1427
+ /**
1428
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1429
+ */
1430
+ pageToken?: string;
1431
+ /**
1432
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1433
+ */
1434
+ pageSize?: number;
1435
+ /**
1436
+ * Either mainnet or testnet/fuji.
1437
+ */
1438
+ network?: Network;
1439
+ }): CancelablePromise<ListEvmBlocksResponse>;
1182
1440
  }
1183
1441
 
1184
1442
  type ImageAsset = {
@@ -1513,29 +1771,6 @@ declare namespace Erc1155Token {
1513
1771
  }
1514
1772
  }
1515
1773
 
1516
- type RichAddress = {
1517
- /**
1518
- * The contract name.
1519
- */
1520
- name?: string;
1521
- /**
1522
- * The contract symbol.
1523
- */
1524
- symbol?: string;
1525
- /**
1526
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1527
- */
1528
- decimals?: number;
1529
- /**
1530
- * The logo uri for the address.
1531
- */
1532
- logoUri?: string;
1533
- /**
1534
- * A wallet or contract address in mixed-case checksum encoding.
1535
- */
1536
- address: string;
1537
- };
1538
-
1539
1774
  type Erc1155TransferDetails = {
1540
1775
  from: RichAddress;
1541
1776
  to: RichAddress;
@@ -1620,27 +1855,6 @@ type Erc721TransferDetails = {
1620
1855
  erc721Token: Erc721Token;
1621
1856
  };
1622
1857
 
1623
- /**
1624
- * 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.
1625
- */
1626
- declare enum TransactionMethodType {
1627
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1628
- CONTRACT_CALL = "CONTRACT_CALL",
1629
- CONTRACT_CREATION = "CONTRACT_CREATION"
1630
- }
1631
-
1632
- type Method = {
1633
- callType: TransactionMethodType;
1634
- /**
1635
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1636
- */
1637
- methodHash: string;
1638
- /**
1639
- * 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'.
1640
- */
1641
- methodName?: string;
1642
- };
1643
-
1644
1858
  type FullNativeTransactionDetails = {
1645
1859
  /**
1646
1860
  * The block number on the chain.
@@ -1654,6 +1868,10 @@ type FullNativeTransactionDetails = {
1654
1868
  * The block hash identifier.
1655
1869
  */
1656
1870
  blockHash: string;
1871
+ /**
1872
+ * The EVM chain ID on which the transaction occured.
1873
+ */
1874
+ chainId: string;
1657
1875
  /**
1658
1876
  * The index at which the transaction occured in the block (0-indexed).
1659
1877
  */
@@ -1917,65 +2135,6 @@ type ListInternalTransactionsResponse = {
1917
2135
  transactions: Array<InternalTransaction>;
1918
2136
  };
1919
2137
 
1920
- type NativeTransaction = {
1921
- /**
1922
- * The block number on the chain.
1923
- */
1924
- blockNumber: string;
1925
- /**
1926
- * The block finality timestamp.
1927
- */
1928
- blockTimestamp: number;
1929
- /**
1930
- * The block hash identifier.
1931
- */
1932
- blockHash: string;
1933
- /**
1934
- * The index at which the transaction occured in the block (0-indexed).
1935
- */
1936
- blockIndex: number;
1937
- /**
1938
- * The transaction hash identifier.
1939
- */
1940
- txHash: string;
1941
- /**
1942
- * The transaction status, which is either 0 (failed) or 1 (successful).
1943
- */
1944
- txStatus: string;
1945
- /**
1946
- * The transaction type.
1947
- */
1948
- txType: number;
1949
- /**
1950
- * The gas limit set for the transaction.
1951
- */
1952
- gasLimit: string;
1953
- /**
1954
- * The amount of gas used.
1955
- */
1956
- gasUsed: string;
1957
- /**
1958
- * The gas price denominated by the number of decimals of the native token.
1959
- */
1960
- gasPrice: string;
1961
- /**
1962
- * The nonce used by the sender of the transaction.
1963
- */
1964
- nonce: string;
1965
- from: RichAddress;
1966
- to: RichAddress;
1967
- method?: Method;
1968
- value: string;
1969
- };
1970
-
1971
- type ListNativeTransactionsResponse = {
1972
- /**
1973
- * 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.
1974
- */
1975
- nextPageToken?: string;
1976
- transactions: Array<NativeTransaction>;
1977
- };
1978
-
1979
2138
  type TransactionDetails = {
1980
2139
  /**
1981
2140
  * The native (top-level) transaction details.
@@ -2020,11 +2179,6 @@ declare enum SortOrder {
2020
2179
  DESC = "desc"
2021
2180
  }
2022
2181
 
2023
- declare enum TransactionStatus {
2024
- FAILED = "failed",
2025
- SUCCESS = "success"
2026
- }
2027
-
2028
2182
  declare class EvmTransactionsService {
2029
2183
  readonly httpRequest: BaseHttpRequest;
2030
2184
  constructor(httpRequest: BaseHttpRequest);
@@ -2326,7 +2480,7 @@ declare class EvmTransactionsService {
2326
2480
  * @returns ListNativeTransactionsResponse Successful response
2327
2481
  * @throws ApiError
2328
2482
  */
2329
- getTransactionsForBlock({ chainId, blockId, }: {
2483
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2330
2484
  /**
2331
2485
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2332
2486
  */
@@ -2335,6 +2489,14 @@ declare class EvmTransactionsService {
2335
2489
  * A block identifier which is either a block number or the block hash.
2336
2490
  */
2337
2491
  blockId: string;
2492
+ /**
2493
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2494
+ */
2495
+ pageToken?: string;
2496
+ /**
2497
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2498
+ */
2499
+ pageSize?: number;
2338
2500
  }): CancelablePromise<ListNativeTransactionsResponse>;
2339
2501
  /**
2340
2502
  * List latest transactions
@@ -2378,6 +2540,67 @@ declare class HealthCheckService {
2378
2540
  }>;
2379
2541
  }
2380
2542
 
2543
+ declare class MultiChainService {
2544
+ readonly httpRequest: BaseHttpRequest;
2545
+ constructor(httpRequest: BaseHttpRequest);
2546
+ /**
2547
+ * Get chains for address
2548
+ * 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.
2549
+ * @returns ListAddressChainsResponse Successful response
2550
+ * @throws ApiError
2551
+ */
2552
+ getAddressChains({ address, }: {
2553
+ /**
2554
+ * A wallet address.
2555
+ */
2556
+ address: string;
2557
+ }): CancelablePromise<ListAddressChainsResponse>;
2558
+ /**
2559
+ * List latest transactions for all supported EVM chains
2560
+ * Lists the latest transactions for all supported EVM chains. Filterable by status.
2561
+ * @returns ListNativeTransactionsResponse Successful response
2562
+ * @throws ApiError
2563
+ */
2564
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
2565
+ /**
2566
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2567
+ */
2568
+ pageToken?: string;
2569
+ /**
2570
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2571
+ */
2572
+ pageSize?: number;
2573
+ /**
2574
+ * Either mainnet or testnet/fuji.
2575
+ */
2576
+ network?: Network;
2577
+ /**
2578
+ * A status filter for listed transactions.
2579
+ */
2580
+ status?: TransactionStatus;
2581
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2582
+ /**
2583
+ * List latest blocks for all supported EVM chains
2584
+ * Lists the latest blocks for all supported EVM chains. Filterable by network.
2585
+ * @returns ListEvmBlocksResponse Successful response
2586
+ * @throws ApiError
2587
+ */
2588
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
2589
+ /**
2590
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2591
+ */
2592
+ pageToken?: string;
2593
+ /**
2594
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2595
+ */
2596
+ pageSize?: number;
2597
+ /**
2598
+ * Either mainnet or testnet/fuji.
2599
+ */
2600
+ network?: Network;
2601
+ }): CancelablePromise<ListEvmBlocksResponse>;
2602
+ }
2603
+
2381
2604
  type ListNftTokens = {
2382
2605
  /**
2383
2606
  * 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.
@@ -3612,7 +3835,7 @@ declare class PrimaryNetworkBlocksService {
3612
3835
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3613
3836
  * @throws ApiError
3614
3837
  */
3615
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3838
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3616
3839
  /**
3617
3840
  * A primary network blockchain id or alias.
3618
3841
  */
@@ -3625,6 +3848,14 @@ declare class PrimaryNetworkBlocksService {
3625
3848
  * A primary network (P or X chain) nodeId.
3626
3849
  */
3627
3850
  nodeId: string;
3851
+ /**
3852
+ * Query param for retrieving items after a specific timestamp.
3853
+ */
3854
+ startTimestamp?: number;
3855
+ /**
3856
+ * Query param for retrieving items before a specific timestamp.
3857
+ */
3858
+ endTimestamp?: number;
3628
3859
  /**
3629
3860
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3630
3861
  */
@@ -3640,7 +3871,7 @@ declare class PrimaryNetworkBlocksService {
3640
3871
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3641
3872
  * @throws ApiError
3642
3873
  */
3643
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3874
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3644
3875
  /**
3645
3876
  * A primary network blockchain id or alias.
3646
3877
  */
@@ -3649,6 +3880,14 @@ declare class PrimaryNetworkBlocksService {
3649
3880
  * Either mainnet or testnet/fuji.
3650
3881
  */
3651
3882
  network: Network;
3883
+ /**
3884
+ * Query param for retrieving items after a specific timestamp.
3885
+ */
3886
+ startTimestamp?: number;
3887
+ /**
3888
+ * Query param for retrieving items before a specific timestamp.
3889
+ */
3890
+ endTimestamp?: number;
3652
3891
  /**
3653
3892
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3654
3893
  */
@@ -5239,6 +5478,7 @@ declare class Glacier {
5239
5478
  readonly evmContracts: EvmContractsService;
5240
5479
  readonly evmTransactions: EvmTransactionsService;
5241
5480
  readonly healthCheck: HealthCheckService;
5481
+ readonly multiChain: MultiChainService;
5242
5482
  readonly nfTs: NfTsService;
5243
5483
  readonly operations: OperationsService;
5244
5484
  readonly primaryNetwork: PrimaryNetworkService;
@@ -5403,4 +5643,4 @@ type Unauthorized = {
5403
5643
  error: string;
5404
5644
  };
5405
5645
 
5406
- 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, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5646
+ 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, MultiChainService, 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 };