@avalabs/glacier-sdk 3.1.0-canary.76b2cb4.0 → 3.1.0-canary.79122fd.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 (28) hide show
  1. package/dist/index.d.ts +350 -133
  2. package/dist/index.js +1 -1
  3. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -1
  4. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  5. package/esm/generated/models/EvmBlock.d.ts +4 -0
  6. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  7. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  8. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  9. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  10. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  11. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  12. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  13. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  14. package/esm/generated/models/Subnet.d.ts +4 -0
  15. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  16. package/esm/generated/services/DataApiUsageMetricsService.d.ts +54 -3
  17. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  18. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  19. package/esm/generated/services/EvmBlocksService.js +1 -1
  20. package/esm/generated/services/EvmChainsService.d.ts +67 -2
  21. package/esm/generated/services/EvmChainsService.js +1 -1
  22. package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
  23. package/esm/generated/services/EvmTransactionsService.js +1 -1
  24. package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
  25. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  26. package/esm/index.d.ts +2 -1
  27. package/esm/index.js +1 -1
  28. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -148,12 +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
+
151
166
  declare enum RpcUsageMetricsGroupByEnum {
152
167
  RPC_METHOD = "rpcMethod",
153
168
  RESPONSE_CODE = "responseCode",
154
169
  RL_BYPASS_TOKEN = "rlBypassToken"
155
170
  }
156
171
 
172
+ declare enum SubnetRpcTimeIntervalGranularity {
173
+ HOURLY = "hourly",
174
+ DAILY = "daily",
175
+ WEEKLY = "weekly",
176
+ MONTHLY = "monthly"
177
+ }
178
+
157
179
  type RpcUsageMetricsValueAggregated = {
158
180
  /**
159
181
  * The total number of requests
@@ -215,28 +237,21 @@ type RpcMetrics = {
215
237
  values: Array<RpcUsageMetricsValueAggregated>;
216
238
  };
217
239
 
218
- type RpcUsageMetricsResponseDTO = {
240
+ type SubnetRpcUsageMetricsResponseDTO = {
219
241
  /**
220
242
  * Duration in which the metrics value is aggregated
221
243
  */
222
244
  aggregateDuration: string;
223
- /**
224
- * ChainId for which the metrics are aggregated
225
- */
226
- chainId: string;
227
245
  /**
228
246
  * Metrics values
229
247
  */
230
248
  metrics: Array<RpcMetrics>;
249
+ /**
250
+ * ChainId for which the metrics are aggregated
251
+ */
252
+ chainId: string;
231
253
  };
232
254
 
233
- declare enum SubnetRpcTimeIntervalGranularity {
234
- HOURLY = "hourly",
235
- DAILY = "daily",
236
- WEEKLY = "weekly",
237
- MONTHLY = "monthly"
238
- }
239
-
240
255
  declare enum TimeIntervalGranularityExtended {
241
256
  MINUTE = "minute",
242
257
  HOURLY = "hourly",
@@ -433,7 +448,7 @@ declare class DataApiUsageMetricsService {
433
448
  /**
434
449
  * Get usage metrics for the Subnet RPC
435
450
  * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
436
- * @returns RpcUsageMetricsResponseDTO Successful response
451
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
437
452
  * @throws ApiError
438
453
  */
439
454
  getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
@@ -470,7 +485,56 @@ declare class DataApiUsageMetricsService {
470
485
  * Filter data by Rl Bypass API Token.
471
486
  */
472
487
  rlBypassApiToken?: string;
473
- }): 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>;
474
538
  }
475
539
 
476
540
  declare class DefaultService {
@@ -669,6 +733,10 @@ type ListErc1155BalancesResponse = {
669
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.
670
734
  */
671
735
  nextPageToken?: string;
736
+ /**
737
+ * The native token balance for the address.
738
+ */
739
+ nativeTokenBalance: NativeTokenBalance;
672
740
  /**
673
741
  * The list of ERC-1155 token balances for the address.
674
742
  */
@@ -713,12 +781,22 @@ type Erc20TokenBalance = {
713
781
  * The monetary value of the balance, if a price is available for the token.
714
782
  */
715
783
  balanceValue?: Money;
716
- tokenStatus: Record<string, any>;
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;
717
788
  };
718
789
  declare namespace Erc20TokenBalance {
719
790
  enum ercType {
720
791
  ERC_20 = "ERC-20"
721
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
+ }
722
800
  }
723
801
 
724
802
  type ListErc20BalancesResponse = {
@@ -726,6 +804,10 @@ type ListErc20BalancesResponse = {
726
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.
727
805
  */
728
806
  nextPageToken?: string;
807
+ /**
808
+ * The native token balance for the address.
809
+ */
810
+ nativeTokenBalance: NativeTokenBalance;
729
811
  /**
730
812
  * The list of ERC-20 token balances for the address.
731
813
  */
@@ -737,6 +819,10 @@ type ListErc721BalancesResponse = {
737
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.
738
820
  */
739
821
  nextPageToken?: string;
822
+ /**
823
+ * The native token balance for the address.
824
+ */
825
+ nativeTokenBalance: NativeTokenBalance;
740
826
  /**
741
827
  * The list of ERC-721 token balances for the address.
742
828
  */
@@ -915,6 +1001,10 @@ declare class EvmBalancesService {
915
1001
  }
916
1002
 
917
1003
  type GetEvmBlockResponse = {
1004
+ /**
1005
+ * The EVM chain ID on which the block was created.
1006
+ */
1007
+ chainId: string;
918
1008
  /**
919
1009
  * The block number on the chain.
920
1010
  */
@@ -959,6 +1049,10 @@ type GetEvmBlockResponse = {
959
1049
  };
960
1050
 
961
1051
  type EvmBlock = {
1052
+ /**
1053
+ * The EVM chain ID on which the block was created.
1054
+ */
1055
+ chainId: string;
962
1056
  /**
963
1057
  * The block number on the chain.
964
1058
  */
@@ -1013,6 +1107,26 @@ type ListEvmBlocksResponse = {
1013
1107
  declare class EvmBlocksService {
1014
1108
  readonly httpRequest: BaseHttpRequest;
1015
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>;
1016
1130
  /**
1017
1131
  * List latest blocks
1018
1132
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1144,16 +1258,133 @@ type ListChainsResponse = {
1144
1258
  chains: Array<ChainInfo>;
1145
1259
  };
1146
1260
 
1147
- declare enum Network {
1148
- MAINNET = "mainnet",
1149
- FUJI = "fuji",
1150
- TESTNET = "testnet",
1151
- DEVNET = "devnet"
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"
1152
1371
  }
1153
1372
 
1154
1373
  declare class EvmChainsService {
1155
1374
  readonly httpRequest: BaseHttpRequest;
1156
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>;
1157
1388
  /**
1158
1389
  * List chains
1159
1390
  * Lists the supported EVM-compatible chains. Filterable by network.
@@ -1183,8 +1414,10 @@ declare class EvmChainsService {
1183
1414
  chainId: string;
1184
1415
  }): CancelablePromise<GetChainResponse>;
1185
1416
  /**
1186
- * Get chains for address
1187
- * 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.
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** .
1188
1421
  * @returns ListAddressChainsResponse Successful response
1189
1422
  * @throws ApiError
1190
1423
  */
@@ -1194,6 +1427,54 @@ declare class EvmChainsService {
1194
1427
  */
1195
1428
  address: string;
1196
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>;
1197
1478
  }
1198
1479
 
1199
1480
  type ImageAsset = {
@@ -1528,29 +1809,6 @@ declare namespace Erc1155Token {
1528
1809
  }
1529
1810
  }
1530
1811
 
1531
- type RichAddress = {
1532
- /**
1533
- * The contract name.
1534
- */
1535
- name?: string;
1536
- /**
1537
- * The contract symbol.
1538
- */
1539
- symbol?: string;
1540
- /**
1541
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1542
- */
1543
- decimals?: number;
1544
- /**
1545
- * The logo uri for the address.
1546
- */
1547
- logoUri?: string;
1548
- /**
1549
- * A wallet or contract address in mixed-case checksum encoding.
1550
- */
1551
- address: string;
1552
- };
1553
-
1554
1812
  type Erc1155TransferDetails = {
1555
1813
  from: RichAddress;
1556
1814
  to: RichAddress;
@@ -1635,27 +1893,6 @@ type Erc721TransferDetails = {
1635
1893
  erc721Token: Erc721Token;
1636
1894
  };
1637
1895
 
1638
- /**
1639
- * 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.
1640
- */
1641
- declare enum TransactionMethodType {
1642
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1643
- CONTRACT_CALL = "CONTRACT_CALL",
1644
- CONTRACT_CREATION = "CONTRACT_CREATION"
1645
- }
1646
-
1647
- type Method = {
1648
- callType: TransactionMethodType;
1649
- /**
1650
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1651
- */
1652
- methodHash: string;
1653
- /**
1654
- * 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'.
1655
- */
1656
- methodName?: string;
1657
- };
1658
-
1659
1896
  type FullNativeTransactionDetails = {
1660
1897
  /**
1661
1898
  * The block number on the chain.
@@ -1669,6 +1906,10 @@ type FullNativeTransactionDetails = {
1669
1906
  * The block hash identifier.
1670
1907
  */
1671
1908
  blockHash: string;
1909
+ /**
1910
+ * The EVM chain ID on which the transaction occured.
1911
+ */
1912
+ chainId: string;
1672
1913
  /**
1673
1914
  * The index at which the transaction occured in the block (0-indexed).
1674
1915
  */
@@ -1932,65 +2173,6 @@ type ListInternalTransactionsResponse = {
1932
2173
  transactions: Array<InternalTransaction>;
1933
2174
  };
1934
2175
 
1935
- type NativeTransaction = {
1936
- /**
1937
- * The block number on the chain.
1938
- */
1939
- blockNumber: string;
1940
- /**
1941
- * The block finality timestamp.
1942
- */
1943
- blockTimestamp: number;
1944
- /**
1945
- * The block hash identifier.
1946
- */
1947
- blockHash: string;
1948
- /**
1949
- * The index at which the transaction occured in the block (0-indexed).
1950
- */
1951
- blockIndex: number;
1952
- /**
1953
- * The transaction hash identifier.
1954
- */
1955
- txHash: string;
1956
- /**
1957
- * The transaction status, which is either 0 (failed) or 1 (successful).
1958
- */
1959
- txStatus: string;
1960
- /**
1961
- * The transaction type.
1962
- */
1963
- txType: number;
1964
- /**
1965
- * The gas limit set for the transaction.
1966
- */
1967
- gasLimit: string;
1968
- /**
1969
- * The amount of gas used.
1970
- */
1971
- gasUsed: string;
1972
- /**
1973
- * The gas price denominated by the number of decimals of the native token.
1974
- */
1975
- gasPrice: string;
1976
- /**
1977
- * The nonce used by the sender of the transaction.
1978
- */
1979
- nonce: string;
1980
- from: RichAddress;
1981
- to: RichAddress;
1982
- method?: Method;
1983
- value: string;
1984
- };
1985
-
1986
- type ListNativeTransactionsResponse = {
1987
- /**
1988
- * 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.
1989
- */
1990
- nextPageToken?: string;
1991
- transactions: Array<NativeTransaction>;
1992
- };
1993
-
1994
2176
  type TransactionDetails = {
1995
2177
  /**
1996
2178
  * The native (top-level) transaction details.
@@ -2035,14 +2217,33 @@ declare enum SortOrder {
2035
2217
  DESC = "desc"
2036
2218
  }
2037
2219
 
2038
- declare enum TransactionStatus {
2039
- FAILED = "failed",
2040
- SUCCESS = "success"
2041
- }
2042
-
2043
2220
  declare class EvmTransactionsService {
2044
2221
  readonly httpRequest: BaseHttpRequest;
2045
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>;
2046
2247
  /**
2047
2248
  * Get deployment transaction
2048
2249
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2341,7 +2542,7 @@ declare class EvmTransactionsService {
2341
2542
  * @returns ListNativeTransactionsResponse Successful response
2342
2543
  * @throws ApiError
2343
2544
  */
2344
- getTransactionsForBlock({ chainId, blockId, }: {
2545
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2345
2546
  /**
2346
2547
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2347
2548
  */
@@ -2350,6 +2551,14 @@ declare class EvmTransactionsService {
2350
2551
  * A block identifier which is either a block number or the block hash.
2351
2552
  */
2352
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;
2353
2562
  }): CancelablePromise<ListNativeTransactionsResponse>;
2354
2563
  /**
2355
2564
  * List latest transactions
@@ -2819,6 +3028,10 @@ type Subnet = {
2819
3028
  * Whether the subnet is an L1 or not.
2820
3029
  */
2821
3030
  isL1: boolean;
3031
+ /**
3032
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3033
+ */
3034
+ l1ConversionTransactionHash?: string;
2822
3035
  /**
2823
3036
  * L1 validator manager details.
2824
3037
  */
@@ -4807,7 +5020,11 @@ declare class SignatureAggregatorService {
4807
5020
  * @returns SignatureAggregationResponse Successful response
4808
5021
  * @throws ApiError
4809
5022
  */
4810
- aggregateSignatures({ requestBody, }: {
5023
+ aggregateSignatures({ network, requestBody, }: {
5024
+ /**
5025
+ * Either mainnet or testnet/fuji.
5026
+ */
5027
+ network: Network;
4811
5028
  requestBody: SignatureAggregatorRequest;
4812
5029
  }): CancelablePromise<SignatureAggregationResponse>;
4813
5030
  }
@@ -5434,4 +5651,4 @@ type Unauthorized = {
5434
5651
  error: string;
5435
5652
  };
5436
5653
 
5437
- 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, RpcUsageMetricsGroupByEnum, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, 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 };
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 };