@avalabs/glacier-sdk 3.1.0-canary.fc985d8.0 → 3.1.0-canary.fcb2044.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 +241 -132
- package/dist/index.js +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/NativeTransaction.d.ts +4 -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 +4 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +18 -19
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +48 -1
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +9 -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/index.d.ts +2 -0
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,12 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
152
|
+
RPC_METHOD = "rpcMethod",
|
|
153
|
+
RESPONSE_CODE = "responseCode",
|
|
154
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
155
|
+
}
|
|
156
|
+
|
|
151
157
|
type RpcUsageMetricsValueAggregated = {
|
|
152
158
|
/**
|
|
153
159
|
* The total number of requests
|
|
@@ -173,6 +179,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
179
|
* The number of invalid requests
|
|
174
180
|
*/
|
|
175
181
|
invalidRequests: number;
|
|
182
|
+
/**
|
|
183
|
+
* The number of API credits wasted on invalid requests
|
|
184
|
+
*/
|
|
185
|
+
apiCreditsWasted: number;
|
|
176
186
|
/**
|
|
177
187
|
* Column name used for data aggregation
|
|
178
188
|
*/
|
|
@@ -220,6 +230,13 @@ type RpcUsageMetricsResponseDTO = {
|
|
|
220
230
|
metrics: Array<RpcMetrics>;
|
|
221
231
|
};
|
|
222
232
|
|
|
233
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
234
|
+
HOURLY = "hourly",
|
|
235
|
+
DAILY = "daily",
|
|
236
|
+
WEEKLY = "weekly",
|
|
237
|
+
MONTHLY = "monthly"
|
|
238
|
+
}
|
|
239
|
+
|
|
223
240
|
declare enum TimeIntervalGranularityExtended {
|
|
224
241
|
MINUTE = "minute",
|
|
225
242
|
HOURLY = "hourly",
|
|
@@ -323,7 +340,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
340
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
341
|
* @throws ApiError
|
|
325
342
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
343
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
344
|
/**
|
|
328
345
|
* Organization ID to fetch usage metrics for
|
|
329
346
|
*/
|
|
@@ -348,10 +365,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
365
|
* Filter data by chain ID.
|
|
349
366
|
*/
|
|
350
367
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
368
|
/**
|
|
356
369
|
* Filter data by response status code.
|
|
357
370
|
*/
|
|
@@ -364,6 +377,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
377
|
* Filter data by API key ID.
|
|
365
378
|
*/
|
|
366
379
|
apiKeyId?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Filter data by request path.
|
|
382
|
+
*/
|
|
383
|
+
requestPath?: string;
|
|
367
384
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
385
|
/**
|
|
369
386
|
* Get logs for requests made by client
|
|
@@ -371,7 +388,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
388
|
* @returns LogsResponseDTO Successful response
|
|
372
389
|
* @throws ApiError
|
|
373
390
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
391
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
392
|
/**
|
|
376
393
|
* Organization ID to fetch usage metrics for
|
|
377
394
|
*/
|
|
@@ -388,10 +405,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
405
|
* Filter data by chain ID.
|
|
389
406
|
*/
|
|
390
407
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
408
|
/**
|
|
396
409
|
* Filter data by response status code.
|
|
397
410
|
*/
|
|
@@ -404,6 +417,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
417
|
* Filter data by API key ID.
|
|
405
418
|
*/
|
|
406
419
|
apiKeyId?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Filter data by request path.
|
|
422
|
+
*/
|
|
423
|
+
requestPath?: string;
|
|
407
424
|
/**
|
|
408
425
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
426
|
*/
|
|
@@ -415,15 +432,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
432
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
433
|
/**
|
|
417
434
|
* 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.
|
|
435
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
436
|
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
420
437
|
* @throws ApiError
|
|
421
438
|
*/
|
|
422
|
-
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId,
|
|
439
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
440
|
/**
|
|
424
|
-
*
|
|
441
|
+
* Time interval granularity for data aggregation for subnet
|
|
442
|
+
* rpc metrics
|
|
425
443
|
*/
|
|
426
|
-
timeInterval?:
|
|
444
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
445
|
/**
|
|
428
446
|
* 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
447
|
*/
|
|
@@ -435,15 +453,11 @@ declare class DataApiUsageMetricsService {
|
|
|
435
453
|
/**
|
|
436
454
|
* Query param for the criterion used for grouping metrics
|
|
437
455
|
*/
|
|
438
|
-
groupBy?:
|
|
456
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
457
|
/**
|
|
440
458
|
* Filter data by chain ID.
|
|
441
459
|
*/
|
|
442
460
|
chainId?: string;
|
|
443
|
-
/**
|
|
444
|
-
* Filter data by request path.
|
|
445
|
-
*/
|
|
446
|
-
requestPath?: string;
|
|
447
461
|
/**
|
|
448
462
|
* Filter data by response status code.
|
|
449
463
|
*/
|
|
@@ -699,11 +713,22 @@ type Erc20TokenBalance = {
|
|
|
699
713
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
714
|
*/
|
|
701
715
|
balanceValue?: Money;
|
|
716
|
+
/**
|
|
717
|
+
* 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.
|
|
718
|
+
*/
|
|
719
|
+
tokenReputation: Erc20TokenBalance.tokenReputation | null;
|
|
702
720
|
};
|
|
703
721
|
declare namespace Erc20TokenBalance {
|
|
704
722
|
enum ercType {
|
|
705
723
|
ERC_20 = "ERC-20"
|
|
706
724
|
}
|
|
725
|
+
/**
|
|
726
|
+
* 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.
|
|
727
|
+
*/
|
|
728
|
+
enum tokenReputation {
|
|
729
|
+
MALICIOUS = "Malicious",
|
|
730
|
+
BENIGN = "Benign"
|
|
731
|
+
}
|
|
707
732
|
}
|
|
708
733
|
|
|
709
734
|
type ListErc20BalancesResponse = {
|
|
@@ -900,6 +925,10 @@ declare class EvmBalancesService {
|
|
|
900
925
|
}
|
|
901
926
|
|
|
902
927
|
type GetEvmBlockResponse = {
|
|
928
|
+
/**
|
|
929
|
+
* The EVM chain ID on which the block was created.
|
|
930
|
+
*/
|
|
931
|
+
chainId: string;
|
|
903
932
|
/**
|
|
904
933
|
* The block number on the chain.
|
|
905
934
|
*/
|
|
@@ -944,6 +973,10 @@ type GetEvmBlockResponse = {
|
|
|
944
973
|
};
|
|
945
974
|
|
|
946
975
|
type EvmBlock = {
|
|
976
|
+
/**
|
|
977
|
+
* The EVM chain ID on which the block was created.
|
|
978
|
+
*/
|
|
979
|
+
chainId: string;
|
|
947
980
|
/**
|
|
948
981
|
* The block number on the chain.
|
|
949
982
|
*/
|
|
@@ -1129,6 +1162,113 @@ type ListChainsResponse = {
|
|
|
1129
1162
|
chains: Array<ChainInfo>;
|
|
1130
1163
|
};
|
|
1131
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* 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.
|
|
1167
|
+
*/
|
|
1168
|
+
declare enum TransactionMethodType {
|
|
1169
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1170
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1171
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
type Method = {
|
|
1175
|
+
callType: TransactionMethodType;
|
|
1176
|
+
/**
|
|
1177
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1178
|
+
*/
|
|
1179
|
+
methodHash: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* 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'.
|
|
1182
|
+
*/
|
|
1183
|
+
methodName?: string;
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
type RichAddress = {
|
|
1187
|
+
/**
|
|
1188
|
+
* The contract name.
|
|
1189
|
+
*/
|
|
1190
|
+
name?: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* The contract symbol.
|
|
1193
|
+
*/
|
|
1194
|
+
symbol?: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1197
|
+
*/
|
|
1198
|
+
decimals?: number;
|
|
1199
|
+
/**
|
|
1200
|
+
* The logo uri for the address.
|
|
1201
|
+
*/
|
|
1202
|
+
logoUri?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1205
|
+
*/
|
|
1206
|
+
address: string;
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
type NativeTransaction = {
|
|
1210
|
+
/**
|
|
1211
|
+
* The block number on the chain.
|
|
1212
|
+
*/
|
|
1213
|
+
blockNumber: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* The block finality timestamp.
|
|
1216
|
+
*/
|
|
1217
|
+
blockTimestamp: number;
|
|
1218
|
+
/**
|
|
1219
|
+
* The block hash identifier.
|
|
1220
|
+
*/
|
|
1221
|
+
blockHash: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* The EVM chain ID on which the transaction occured.
|
|
1224
|
+
*/
|
|
1225
|
+
chainId: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1228
|
+
*/
|
|
1229
|
+
blockIndex: number;
|
|
1230
|
+
/**
|
|
1231
|
+
* The transaction hash identifier.
|
|
1232
|
+
*/
|
|
1233
|
+
txHash: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1236
|
+
*/
|
|
1237
|
+
txStatus: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* The transaction type.
|
|
1240
|
+
*/
|
|
1241
|
+
txType: number;
|
|
1242
|
+
/**
|
|
1243
|
+
* The gas limit set for the transaction.
|
|
1244
|
+
*/
|
|
1245
|
+
gasLimit: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* The amount of gas used.
|
|
1248
|
+
*/
|
|
1249
|
+
gasUsed: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1252
|
+
*/
|
|
1253
|
+
gasPrice: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* The nonce used by the sender of the transaction.
|
|
1256
|
+
*/
|
|
1257
|
+
nonce: string;
|
|
1258
|
+
from: RichAddress;
|
|
1259
|
+
to: RichAddress;
|
|
1260
|
+
method?: Method;
|
|
1261
|
+
value: string;
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
type ListNativeTransactionsResponse = {
|
|
1265
|
+
/**
|
|
1266
|
+
* 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.
|
|
1267
|
+
*/
|
|
1268
|
+
nextPageToken?: string;
|
|
1269
|
+
transactions: Array<NativeTransaction>;
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1132
1272
|
declare enum Network {
|
|
1133
1273
|
MAINNET = "mainnet",
|
|
1134
1274
|
FUJI = "fuji",
|
|
@@ -1136,6 +1276,11 @@ declare enum Network {
|
|
|
1136
1276
|
DEVNET = "devnet"
|
|
1137
1277
|
}
|
|
1138
1278
|
|
|
1279
|
+
declare enum TransactionStatus {
|
|
1280
|
+
FAILED = "failed",
|
|
1281
|
+
SUCCESS = "success"
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1139
1284
|
declare class EvmChainsService {
|
|
1140
1285
|
readonly httpRequest: BaseHttpRequest;
|
|
1141
1286
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1169,7 +1314,7 @@ declare class EvmChainsService {
|
|
|
1169
1314
|
}): CancelablePromise<GetChainResponse>;
|
|
1170
1315
|
/**
|
|
1171
1316
|
* Get chains for address
|
|
1172
|
-
* Gets
|
|
1317
|
+
* 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
1318
|
* @returns ListAddressChainsResponse Successful response
|
|
1174
1319
|
* @throws ApiError
|
|
1175
1320
|
*/
|
|
@@ -1179,6 +1324,50 @@ declare class EvmChainsService {
|
|
|
1179
1324
|
*/
|
|
1180
1325
|
address: string;
|
|
1181
1326
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1327
|
+
/**
|
|
1328
|
+
* List latest transactions for all supported EVM chains
|
|
1329
|
+
* Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1330
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1331
|
+
* @throws ApiError
|
|
1332
|
+
*/
|
|
1333
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1334
|
+
/**
|
|
1335
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1336
|
+
*/
|
|
1337
|
+
pageToken?: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1340
|
+
*/
|
|
1341
|
+
pageSize?: number;
|
|
1342
|
+
/**
|
|
1343
|
+
* Either mainnet or testnet/fuji.
|
|
1344
|
+
*/
|
|
1345
|
+
network?: Network;
|
|
1346
|
+
/**
|
|
1347
|
+
* A status filter for listed transactions.
|
|
1348
|
+
*/
|
|
1349
|
+
status?: TransactionStatus;
|
|
1350
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1351
|
+
/**
|
|
1352
|
+
* List latest blocks for all supported EVM chains
|
|
1353
|
+
* Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1354
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1355
|
+
* @throws ApiError
|
|
1356
|
+
*/
|
|
1357
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1358
|
+
/**
|
|
1359
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1360
|
+
*/
|
|
1361
|
+
pageToken?: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1364
|
+
*/
|
|
1365
|
+
pageSize?: number;
|
|
1366
|
+
/**
|
|
1367
|
+
* Either mainnet or testnet/fuji.
|
|
1368
|
+
*/
|
|
1369
|
+
network?: Network;
|
|
1370
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1182
1371
|
}
|
|
1183
1372
|
|
|
1184
1373
|
type ImageAsset = {
|
|
@@ -1513,29 +1702,6 @@ declare namespace Erc1155Token {
|
|
|
1513
1702
|
}
|
|
1514
1703
|
}
|
|
1515
1704
|
|
|
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
1705
|
type Erc1155TransferDetails = {
|
|
1540
1706
|
from: RichAddress;
|
|
1541
1707
|
to: RichAddress;
|
|
@@ -1620,27 +1786,6 @@ type Erc721TransferDetails = {
|
|
|
1620
1786
|
erc721Token: Erc721Token;
|
|
1621
1787
|
};
|
|
1622
1788
|
|
|
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
1789
|
type FullNativeTransactionDetails = {
|
|
1645
1790
|
/**
|
|
1646
1791
|
* The block number on the chain.
|
|
@@ -1654,6 +1799,10 @@ type FullNativeTransactionDetails = {
|
|
|
1654
1799
|
* The block hash identifier.
|
|
1655
1800
|
*/
|
|
1656
1801
|
blockHash: string;
|
|
1802
|
+
/**
|
|
1803
|
+
* The EVM chain ID on which the transaction occured.
|
|
1804
|
+
*/
|
|
1805
|
+
chainId: string;
|
|
1657
1806
|
/**
|
|
1658
1807
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1659
1808
|
*/
|
|
@@ -1917,65 +2066,6 @@ type ListInternalTransactionsResponse = {
|
|
|
1917
2066
|
transactions: Array<InternalTransaction>;
|
|
1918
2067
|
};
|
|
1919
2068
|
|
|
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
2069
|
type TransactionDetails = {
|
|
1980
2070
|
/**
|
|
1981
2071
|
* The native (top-level) transaction details.
|
|
@@ -2020,11 +2110,6 @@ declare enum SortOrder {
|
|
|
2020
2110
|
DESC = "desc"
|
|
2021
2111
|
}
|
|
2022
2112
|
|
|
2023
|
-
declare enum TransactionStatus {
|
|
2024
|
-
FAILED = "failed",
|
|
2025
|
-
SUCCESS = "success"
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
2113
|
declare class EvmTransactionsService {
|
|
2029
2114
|
readonly httpRequest: BaseHttpRequest;
|
|
2030
2115
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -2326,7 +2411,7 @@ declare class EvmTransactionsService {
|
|
|
2326
2411
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2327
2412
|
* @throws ApiError
|
|
2328
2413
|
*/
|
|
2329
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2414
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2330
2415
|
/**
|
|
2331
2416
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2332
2417
|
*/
|
|
@@ -2335,6 +2420,14 @@ declare class EvmTransactionsService {
|
|
|
2335
2420
|
* A block identifier which is either a block number or the block hash.
|
|
2336
2421
|
*/
|
|
2337
2422
|
blockId: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2425
|
+
*/
|
|
2426
|
+
pageToken?: string;
|
|
2427
|
+
/**
|
|
2428
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2429
|
+
*/
|
|
2430
|
+
pageSize?: number;
|
|
2338
2431
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2339
2432
|
/**
|
|
2340
2433
|
* List latest transactions
|
|
@@ -3612,7 +3705,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3612
3705
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3613
3706
|
* @throws ApiError
|
|
3614
3707
|
*/
|
|
3615
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3708
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3616
3709
|
/**
|
|
3617
3710
|
* A primary network blockchain id or alias.
|
|
3618
3711
|
*/
|
|
@@ -3625,6 +3718,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3625
3718
|
* A primary network (P or X chain) nodeId.
|
|
3626
3719
|
*/
|
|
3627
3720
|
nodeId: string;
|
|
3721
|
+
/**
|
|
3722
|
+
* Query param for retrieving items after a specific timestamp.
|
|
3723
|
+
*/
|
|
3724
|
+
startTimestamp?: number;
|
|
3725
|
+
/**
|
|
3726
|
+
* Query param for retrieving items before a specific timestamp.
|
|
3727
|
+
*/
|
|
3728
|
+
endTimestamp?: number;
|
|
3628
3729
|
/**
|
|
3629
3730
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3630
3731
|
*/
|
|
@@ -3640,7 +3741,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3640
3741
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3641
3742
|
* @throws ApiError
|
|
3642
3743
|
*/
|
|
3643
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3744
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3644
3745
|
/**
|
|
3645
3746
|
* A primary network blockchain id or alias.
|
|
3646
3747
|
*/
|
|
@@ -3649,6 +3750,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3649
3750
|
* Either mainnet or testnet/fuji.
|
|
3650
3751
|
*/
|
|
3651
3752
|
network: Network;
|
|
3753
|
+
/**
|
|
3754
|
+
* Query param for retrieving items after a specific timestamp.
|
|
3755
|
+
*/
|
|
3756
|
+
startTimestamp?: number;
|
|
3757
|
+
/**
|
|
3758
|
+
* Query param for retrieving items before a specific timestamp.
|
|
3759
|
+
*/
|
|
3760
|
+
endTimestamp?: number;
|
|
3652
3761
|
/**
|
|
3653
3762
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3654
3763
|
*/
|
|
@@ -5403,4 +5512,4 @@ type Unauthorized = {
|
|
|
5403
5512
|
error: string;
|
|
5404
5513
|
};
|
|
5405
5514
|
|
|
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 };
|
|
5515
|
+
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 };
|