@avalabs/glacier-sdk 3.1.0-canary.401b32b.0 → 3.1.0-canary.4191f64.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 +306 -200
- package/dist/index.js +1 -1
- 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/{ListSubnetOnlyValidatorsResponse.d.ts → ListL1ValidatorsResponse.d.ts} +4 -4
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -5
- 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/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 -9
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/index.d.ts +5 -3
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/SoVDetailsTransaction.d.ts +0 -23
- package/esm/generated/models/SovDetailsFull.d.ts +0 -33
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
|
|
@@ -2712,37 +2805,37 @@ type BalanceOwner = {
|
|
|
2712
2805
|
threshold: number;
|
|
2713
2806
|
};
|
|
2714
2807
|
|
|
2715
|
-
type
|
|
2808
|
+
type L1ValidatorDetailsFull = {
|
|
2716
2809
|
/**
|
|
2717
|
-
* Unique
|
|
2810
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2718
2811
|
*/
|
|
2719
2812
|
validationId: string;
|
|
2720
2813
|
nodeId: string;
|
|
2721
2814
|
subnetId: string;
|
|
2722
2815
|
/**
|
|
2723
|
-
* Weight of the
|
|
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
|
|
2724
2817
|
*/
|
|
2725
2818
|
weight: number;
|
|
2726
2819
|
/**
|
|
2727
|
-
* Remaining
|
|
2820
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2728
2821
|
*/
|
|
2729
2822
|
remainingBalance: number;
|
|
2730
2823
|
/**
|
|
2731
|
-
* The timestamp of the transaction which created this
|
|
2824
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2732
2825
|
*/
|
|
2733
2826
|
creationTimestamp: number;
|
|
2734
2827
|
blsCredentials: Record<string, any>;
|
|
2735
2828
|
/**
|
|
2736
|
-
* The
|
|
2829
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2737
2830
|
*/
|
|
2738
2831
|
remainingBalanceOwner: BalanceOwner;
|
|
2739
2832
|
/**
|
|
2740
|
-
* Owner ddresses details which can disable or remove the
|
|
2833
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2741
2834
|
*/
|
|
2742
2835
|
deactivationOwner: BalanceOwner;
|
|
2743
2836
|
};
|
|
2744
2837
|
|
|
2745
|
-
type
|
|
2838
|
+
type ListL1ValidatorsResponse = {
|
|
2746
2839
|
/**
|
|
2747
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.
|
|
2748
2841
|
*/
|
|
@@ -2750,7 +2843,7 @@ type ListSubnetOnlyValidatorsResponse = {
|
|
|
2750
2843
|
/**
|
|
2751
2844
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
2845
|
*/
|
|
2753
|
-
validators: Array<
|
|
2846
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2754
2847
|
};
|
|
2755
2848
|
|
|
2756
2849
|
type BlockchainInfo = {
|
|
@@ -3275,12 +3368,12 @@ declare class PrimaryNetworkService {
|
|
|
3275
3368
|
nodeIds?: string;
|
|
3276
3369
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3277
3370
|
/**
|
|
3278
|
-
* List
|
|
3279
|
-
* Lists details for
|
|
3280
|
-
* @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
|
|
3281
3374
|
* @throws ApiError
|
|
3282
3375
|
*/
|
|
3283
|
-
|
|
3376
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3284
3377
|
/**
|
|
3285
3378
|
* Either mainnet or testnet/fuji.
|
|
3286
3379
|
*/
|
|
@@ -3294,10 +3387,10 @@ declare class PrimaryNetworkService {
|
|
|
3294
3387
|
*/
|
|
3295
3388
|
pageSize?: number;
|
|
3296
3389
|
/**
|
|
3297
|
-
* The
|
|
3390
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3298
3391
|
*/
|
|
3299
|
-
|
|
3300
|
-
|
|
3392
|
+
l1ValidationId?: any;
|
|
3393
|
+
includeInactiveL1Validators?: boolean;
|
|
3301
3394
|
/**
|
|
3302
3395
|
* A valid node ID in format 'NodeID-HASH'.
|
|
3303
3396
|
*/
|
|
@@ -3306,7 +3399,7 @@ declare class PrimaryNetworkService {
|
|
|
3306
3399
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3307
3400
|
*/
|
|
3308
3401
|
subnetId?: any;
|
|
3309
|
-
}): CancelablePromise<
|
|
3402
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3310
3403
|
}
|
|
3311
3404
|
|
|
3312
3405
|
declare enum BlockchainId {
|
|
@@ -3553,8 +3646,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3553
3646
|
txCount: number;
|
|
3554
3647
|
transactions: Array<string>;
|
|
3555
3648
|
blockSizeBytes: number;
|
|
3556
|
-
|
|
3557
|
-
|
|
3649
|
+
l1ValidatorsAccruedFees?: number;
|
|
3650
|
+
activeL1Validators?: number;
|
|
3558
3651
|
currentSupply?: string;
|
|
3559
3652
|
proposerDetails?: ProposerDetails;
|
|
3560
3653
|
};
|
|
@@ -3568,8 +3661,8 @@ type PrimaryNetworkBlock = {
|
|
|
3568
3661
|
txCount: number;
|
|
3569
3662
|
transactions: Array<string>;
|
|
3570
3663
|
blockSizeBytes: number;
|
|
3571
|
-
|
|
3572
|
-
|
|
3664
|
+
l1ValidatorsAccruedFees?: number;
|
|
3665
|
+
activeL1Validators?: number;
|
|
3573
3666
|
currentSupply?: string;
|
|
3574
3667
|
proposerDetails?: ProposerDetails;
|
|
3575
3668
|
};
|
|
@@ -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
|
*/
|
|
@@ -4058,6 +4167,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4058
4167
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4059
4168
|
};
|
|
4060
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
|
+
|
|
4061
4192
|
declare enum PChainTransactionType {
|
|
4062
4193
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
4063
4194
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -4074,11 +4205,11 @@ declare enum PChainTransactionType {
|
|
|
4074
4205
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4075
4206
|
BASE_TX = "BaseTx",
|
|
4076
4207
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
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",
|
|
4082
4213
|
UNKNOWN = "UNKNOWN"
|
|
4083
4214
|
}
|
|
4084
4215
|
|
|
@@ -4133,28 +4264,6 @@ type PChainUtxo = {
|
|
|
4133
4264
|
utxoType: UtxoType;
|
|
4134
4265
|
};
|
|
4135
4266
|
|
|
4136
|
-
type SoVDetailsTransaction = {
|
|
4137
|
-
/**
|
|
4138
|
-
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
4139
|
-
*/
|
|
4140
|
-
validationId: string;
|
|
4141
|
-
nodeId: string;
|
|
4142
|
-
subnetId: string;
|
|
4143
|
-
/**
|
|
4144
|
-
* Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
|
|
4145
|
-
*/
|
|
4146
|
-
weight: number;
|
|
4147
|
-
/**
|
|
4148
|
-
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
4149
|
-
*/
|
|
4150
|
-
remainingBalance: number;
|
|
4151
|
-
/**
|
|
4152
|
-
* The increase in SoV balance in the current transaction. When the balance is returned after the SoV is disabled or removed, this value is negative
|
|
4153
|
-
*/
|
|
4154
|
-
balanceChange?: number;
|
|
4155
|
-
blsCredentials?: Record<string, any>;
|
|
4156
|
-
};
|
|
4157
|
-
|
|
4158
4267
|
type PChainTransaction = {
|
|
4159
4268
|
/**
|
|
4160
4269
|
* A P-Chain transaction hash.
|
|
@@ -4192,7 +4301,7 @@ type PChainTransaction = {
|
|
|
4192
4301
|
/**
|
|
4193
4302
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4194
4303
|
*/
|
|
4195
|
-
|
|
4304
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4196
4305
|
/**
|
|
4197
4306
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4198
4307
|
*/
|
|
@@ -4214,13 +4323,13 @@ type PChainTransaction = {
|
|
|
4214
4323
|
*/
|
|
4215
4324
|
subnetId?: string;
|
|
4216
4325
|
/**
|
|
4217
|
-
* Details of the L1's validator manager contract and blockchain. Present for the
|
|
4326
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4218
4327
|
*/
|
|
4219
4328
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4220
4329
|
/**
|
|
4221
|
-
* Details of
|
|
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
|
|
4222
4331
|
*/
|
|
4223
|
-
l1ValidatorDetails?: Array<
|
|
4332
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4224
4333
|
/**
|
|
4225
4334
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4226
4335
|
*/
|
|
@@ -4422,11 +4531,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4422
4531
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4423
4532
|
BASE_TX = "BaseTx",
|
|
4424
4533
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
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",
|
|
4430
4539
|
UNKNOWN = "UNKNOWN",
|
|
4431
4540
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4432
4541
|
OPERATION_TX = "OperationTx"
|
|
@@ -4461,13 +4570,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4461
4570
|
*
|
|
4462
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.
|
|
4463
4572
|
*
|
|
4464
|
-
* For P-Chain, you can fetch all
|
|
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.
|
|
4465
4574
|
*
|
|
4466
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.
|
|
4467
4576
|
* @returns any Successful response
|
|
4468
4577
|
* @throws ApiError
|
|
4469
4578
|
*/
|
|
4470
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses,
|
|
4579
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4471
4580
|
/**
|
|
4472
4581
|
* A primary network blockchain id or alias.
|
|
4473
4582
|
*/
|
|
@@ -4480,7 +4589,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4480
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.
|
|
4481
4590
|
*/
|
|
4482
4591
|
addresses?: string;
|
|
4483
|
-
|
|
4592
|
+
l1ValidationId?: string;
|
|
4484
4593
|
/**
|
|
4485
4594
|
* Query param for filtering items based on transaction types.
|
|
4486
4595
|
*/
|
|
@@ -4761,13 +4870,7 @@ type SignatureAggregationResponse = {
|
|
|
4761
4870
|
};
|
|
4762
4871
|
|
|
4763
4872
|
type SignatureAggregatorRequest = {
|
|
4764
|
-
|
|
4765
|
-
* Must be defined if justification is not defined
|
|
4766
|
-
*/
|
|
4767
|
-
message?: string;
|
|
4768
|
-
/**
|
|
4769
|
-
* Must be defined if message is not defined
|
|
4770
|
-
*/
|
|
4873
|
+
message: string;
|
|
4771
4874
|
justification?: string;
|
|
4772
4875
|
signingSubnetId?: string;
|
|
4773
4876
|
quorumPercentage?: number;
|
|
@@ -5032,7 +5135,7 @@ type CreateWebhookRequest = {
|
|
|
5032
5135
|
name?: string;
|
|
5033
5136
|
description?: string;
|
|
5034
5137
|
/**
|
|
5035
|
-
* 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.
|
|
5036
5139
|
*/
|
|
5037
5140
|
includeInternalTxs?: boolean;
|
|
5038
5141
|
/**
|
|
@@ -5092,6 +5195,9 @@ type UpdateWebhookRequest = {
|
|
|
5092
5195
|
description?: string;
|
|
5093
5196
|
url?: string;
|
|
5094
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
|
+
*/
|
|
5095
5201
|
includeInternalTxs?: boolean;
|
|
5096
5202
|
includeLogs?: boolean;
|
|
5097
5203
|
};
|
|
@@ -5406,4 +5512,4 @@ type Unauthorized = {
|
|
|
5406
5512
|
error: string;
|
|
5407
5513
|
};
|
|
5408
5514
|
|
|
5409
|
-
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, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse,
|
|
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 };
|