@avalabs/glacier-sdk 3.1.0-canary.fcb15b0.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 +358 -173
- package/dist/index.js +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -2
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/PChainTransaction.d.ts +7 -6
- package/esm/generated/models/PChainTransactionType.d.ts +5 -5
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- 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/SignatureAggregatorRequest.d.ts +1 -7
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -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/generated/services/PrimaryNetworkService.d.ts +9 -8
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/index.d.ts +7 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
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
|
|
@@ -2707,10 +2800,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2707
2800
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2708
2801
|
};
|
|
2709
2802
|
|
|
2803
|
+
type BalanceOwner = {
|
|
2804
|
+
addresses: Array<string>;
|
|
2805
|
+
threshold: number;
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2808
|
+
type L1ValidatorDetailsFull = {
|
|
2809
|
+
/**
|
|
2810
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2811
|
+
*/
|
|
2812
|
+
validationId: string;
|
|
2813
|
+
nodeId: string;
|
|
2814
|
+
subnetId: string;
|
|
2815
|
+
/**
|
|
2816
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
2817
|
+
*/
|
|
2818
|
+
weight: number;
|
|
2819
|
+
/**
|
|
2820
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2821
|
+
*/
|
|
2822
|
+
remainingBalance: number;
|
|
2823
|
+
/**
|
|
2824
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2825
|
+
*/
|
|
2826
|
+
creationTimestamp: number;
|
|
2827
|
+
blsCredentials: Record<string, any>;
|
|
2828
|
+
/**
|
|
2829
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2830
|
+
*/
|
|
2831
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2832
|
+
/**
|
|
2833
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2834
|
+
*/
|
|
2835
|
+
deactivationOwner: BalanceOwner;
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
type ListL1ValidatorsResponse = {
|
|
2839
|
+
/**
|
|
2840
|
+
* 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.
|
|
2841
|
+
*/
|
|
2842
|
+
nextPageToken?: string;
|
|
2843
|
+
/**
|
|
2844
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2845
|
+
*/
|
|
2846
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2710
2849
|
type BlockchainInfo = {
|
|
2711
2850
|
blockchainId: string;
|
|
2712
2851
|
};
|
|
2713
2852
|
|
|
2853
|
+
type L1ValidatorManagerDetails = {
|
|
2854
|
+
blockchainId: string;
|
|
2855
|
+
contractAddress: string;
|
|
2856
|
+
};
|
|
2857
|
+
|
|
2714
2858
|
type SubnetOwnershipInfo = {
|
|
2715
2859
|
/**
|
|
2716
2860
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2749,6 +2893,14 @@ type Subnet = {
|
|
|
2749
2893
|
* Latest subnet owner details for this Subnet.
|
|
2750
2894
|
*/
|
|
2751
2895
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2896
|
+
/**
|
|
2897
|
+
* Whether the subnet is an L1 or not.
|
|
2898
|
+
*/
|
|
2899
|
+
isL1: boolean;
|
|
2900
|
+
/**
|
|
2901
|
+
* L1 validator manager details.
|
|
2902
|
+
*/
|
|
2903
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2752
2904
|
blockchains: Array<BlockchainInfo>;
|
|
2753
2905
|
};
|
|
2754
2906
|
|
|
@@ -3216,12 +3368,12 @@ declare class PrimaryNetworkService {
|
|
|
3216
3368
|
nodeIds?: string;
|
|
3217
3369
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3218
3370
|
/**
|
|
3219
|
-
* List
|
|
3220
|
-
* Lists details for
|
|
3221
|
-
* @returns
|
|
3371
|
+
* List L1 validators
|
|
3372
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3373
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3222
3374
|
* @throws ApiError
|
|
3223
3375
|
*/
|
|
3224
|
-
|
|
3376
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3225
3377
|
/**
|
|
3226
3378
|
* Either mainnet or testnet/fuji.
|
|
3227
3379
|
*/
|
|
@@ -3235,10 +3387,10 @@ declare class PrimaryNetworkService {
|
|
|
3235
3387
|
*/
|
|
3236
3388
|
pageSize?: number;
|
|
3237
3389
|
/**
|
|
3238
|
-
* The
|
|
3390
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3239
3391
|
*/
|
|
3240
|
-
|
|
3241
|
-
|
|
3392
|
+
l1ValidationId?: any;
|
|
3393
|
+
includeInactiveL1Validators?: boolean;
|
|
3242
3394
|
/**
|
|
3243
3395
|
* A valid node ID in format 'NodeID-HASH'.
|
|
3244
3396
|
*/
|
|
@@ -3247,7 +3399,7 @@ declare class PrimaryNetworkService {
|
|
|
3247
3399
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3248
3400
|
*/
|
|
3249
3401
|
subnetId?: any;
|
|
3250
|
-
}): CancelablePromise<
|
|
3402
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3251
3403
|
}
|
|
3252
3404
|
|
|
3253
3405
|
declare enum BlockchainId {
|
|
@@ -3494,8 +3646,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3494
3646
|
txCount: number;
|
|
3495
3647
|
transactions: Array<string>;
|
|
3496
3648
|
blockSizeBytes: number;
|
|
3497
|
-
|
|
3498
|
-
|
|
3649
|
+
l1ValidatorsAccruedFees?: number;
|
|
3650
|
+
activeL1Validators?: number;
|
|
3499
3651
|
currentSupply?: string;
|
|
3500
3652
|
proposerDetails?: ProposerDetails;
|
|
3501
3653
|
};
|
|
@@ -3509,8 +3661,8 @@ type PrimaryNetworkBlock = {
|
|
|
3509
3661
|
txCount: number;
|
|
3510
3662
|
transactions: Array<string>;
|
|
3511
3663
|
blockSizeBytes: number;
|
|
3512
|
-
|
|
3513
|
-
|
|
3664
|
+
l1ValidatorsAccruedFees?: number;
|
|
3665
|
+
activeL1Validators?: number;
|
|
3514
3666
|
currentSupply?: string;
|
|
3515
3667
|
proposerDetails?: ProposerDetails;
|
|
3516
3668
|
};
|
|
@@ -3553,7 +3705,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3553
3705
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3554
3706
|
* @throws ApiError
|
|
3555
3707
|
*/
|
|
3556
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3708
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3557
3709
|
/**
|
|
3558
3710
|
* A primary network blockchain id or alias.
|
|
3559
3711
|
*/
|
|
@@ -3566,6 +3718,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3566
3718
|
* A primary network (P or X chain) nodeId.
|
|
3567
3719
|
*/
|
|
3568
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;
|
|
3569
3729
|
/**
|
|
3570
3730
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3571
3731
|
*/
|
|
@@ -3581,7 +3741,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3581
3741
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3582
3742
|
* @throws ApiError
|
|
3583
3743
|
*/
|
|
3584
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3744
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3585
3745
|
/**
|
|
3586
3746
|
* A primary network blockchain id or alias.
|
|
3587
3747
|
*/
|
|
@@ -3590,6 +3750,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3590
3750
|
* Either mainnet or testnet/fuji.
|
|
3591
3751
|
*/
|
|
3592
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;
|
|
3593
3761
|
/**
|
|
3594
3762
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3595
3763
|
*/
|
|
@@ -3999,6 +4167,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3999
4167
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4000
4168
|
};
|
|
4001
4169
|
|
|
4170
|
+
type L1ValidatorDetailsTransaction = {
|
|
4171
|
+
/**
|
|
4172
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4173
|
+
*/
|
|
4174
|
+
validationId: string;
|
|
4175
|
+
nodeId: string;
|
|
4176
|
+
subnetId: string;
|
|
4177
|
+
/**
|
|
4178
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4179
|
+
*/
|
|
4180
|
+
weight: number;
|
|
4181
|
+
/**
|
|
4182
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4183
|
+
*/
|
|
4184
|
+
remainingBalance: number;
|
|
4185
|
+
/**
|
|
4186
|
+
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4187
|
+
*/
|
|
4188
|
+
balanceChange?: number;
|
|
4189
|
+
blsCredentials?: Record<string, any>;
|
|
4190
|
+
};
|
|
4191
|
+
|
|
4002
4192
|
declare enum PChainTransactionType {
|
|
4003
4193
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
4004
4194
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -4015,11 +4205,11 @@ declare enum PChainTransactionType {
|
|
|
4015
4205
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4016
4206
|
BASE_TX = "BaseTx",
|
|
4017
4207
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4208
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4209
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4210
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4211
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4212
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4023
4213
|
UNKNOWN = "UNKNOWN"
|
|
4024
4214
|
}
|
|
4025
4215
|
|
|
@@ -4074,11 +4264,6 @@ type PChainUtxo = {
|
|
|
4074
4264
|
utxoType: UtxoType;
|
|
4075
4265
|
};
|
|
4076
4266
|
|
|
4077
|
-
type SubnetValidatorManagerDetails = {
|
|
4078
|
-
blockchainId: string;
|
|
4079
|
-
evmContractAddress: string;
|
|
4080
|
-
};
|
|
4081
|
-
|
|
4082
4267
|
type PChainTransaction = {
|
|
4083
4268
|
/**
|
|
4084
4269
|
* A P-Chain transaction hash.
|
|
@@ -4116,7 +4301,7 @@ type PChainTransaction = {
|
|
|
4116
4301
|
/**
|
|
4117
4302
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4118
4303
|
*/
|
|
4119
|
-
|
|
4304
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4120
4305
|
/**
|
|
4121
4306
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4122
4307
|
*/
|
|
@@ -4138,13 +4323,13 @@ type PChainTransaction = {
|
|
|
4138
4323
|
*/
|
|
4139
4324
|
subnetId?: string;
|
|
4140
4325
|
/**
|
|
4141
|
-
* Present for
|
|
4326
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4142
4327
|
*/
|
|
4143
|
-
|
|
4328
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4144
4329
|
/**
|
|
4145
|
-
*
|
|
4330
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4146
4331
|
*/
|
|
4147
|
-
|
|
4332
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4148
4333
|
/**
|
|
4149
4334
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4150
4335
|
*/
|
|
@@ -4346,11 +4531,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4346
4531
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4347
4532
|
BASE_TX = "BaseTx",
|
|
4348
4533
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4534
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4535
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4536
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4537
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4538
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4354
4539
|
UNKNOWN = "UNKNOWN",
|
|
4355
4540
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4356
4541
|
OPERATION_TX = "OperationTx"
|
|
@@ -4385,11 +4570,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4385
4570
|
*
|
|
4386
4571
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4387
4572
|
*
|
|
4573
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
4574
|
+
*
|
|
4388
4575
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4389
4576
|
* @returns any Successful response
|
|
4390
4577
|
* @throws ApiError
|
|
4391
4578
|
*/
|
|
4392
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4579
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4393
4580
|
/**
|
|
4394
4581
|
* A primary network blockchain id or alias.
|
|
4395
4582
|
*/
|
|
@@ -4402,6 +4589,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4402
4589
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4403
4590
|
*/
|
|
4404
4591
|
addresses?: string;
|
|
4592
|
+
l1ValidationId?: string;
|
|
4405
4593
|
/**
|
|
4406
4594
|
* Query param for filtering items based on transaction types.
|
|
4407
4595
|
*/
|
|
@@ -4682,13 +4870,7 @@ type SignatureAggregationResponse = {
|
|
|
4682
4870
|
};
|
|
4683
4871
|
|
|
4684
4872
|
type SignatureAggregatorRequest = {
|
|
4685
|
-
|
|
4686
|
-
* Must be defined if justification is not defined
|
|
4687
|
-
*/
|
|
4688
|
-
message?: string;
|
|
4689
|
-
/**
|
|
4690
|
-
* Must be defined if message is not defined
|
|
4691
|
-
*/
|
|
4873
|
+
message: string;
|
|
4692
4874
|
justification?: string;
|
|
4693
4875
|
signingSubnetId?: string;
|
|
4694
4876
|
quorumPercentage?: number;
|
|
@@ -4953,7 +5135,7 @@ type CreateWebhookRequest = {
|
|
|
4953
5135
|
name?: string;
|
|
4954
5136
|
description?: string;
|
|
4955
5137
|
/**
|
|
4956
|
-
* Whether to include traces in the webhook payload.
|
|
5138
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4957
5139
|
*/
|
|
4958
5140
|
includeInternalTxs?: boolean;
|
|
4959
5141
|
/**
|
|
@@ -5013,6 +5195,9 @@ type UpdateWebhookRequest = {
|
|
|
5013
5195
|
description?: string;
|
|
5014
5196
|
url?: string;
|
|
5015
5197
|
status?: WebhookStatusType;
|
|
5198
|
+
/**
|
|
5199
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5200
|
+
*/
|
|
5016
5201
|
includeInternalTxs?: boolean;
|
|
5017
5202
|
includeLogs?: boolean;
|
|
5018
5203
|
};
|
|
@@ -5327,4 +5512,4 @@ type Unauthorized = {
|
|
|
5327
5512
|
error: string;
|
|
5328
5513
|
};
|
|
5329
5514
|
|
|
5330
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, 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,
|
|
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 };
|