@avalabs/glacier-sdk 3.1.0-canary.a6557be.0 → 3.1.0-canary.a960706.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 +354 -95
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -2
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -2
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListSubnetOnlyValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/Network.d.ts +2 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
- package/esm/generated/models/SoVDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/SovDetailsFull.d.ts +33 -0
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +63 -18
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmChainsService.d.ts +14 -1
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +8 -5
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/index.d.ts +12 -6
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,78 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
type RpcUsageMetricsValueAggregated = {
|
|
152
|
+
/**
|
|
153
|
+
* The total number of requests
|
|
154
|
+
*/
|
|
155
|
+
totalRequests: number;
|
|
156
|
+
/**
|
|
157
|
+
* The number of API credits used
|
|
158
|
+
*/
|
|
159
|
+
apiCreditsUsed: number;
|
|
160
|
+
/**
|
|
161
|
+
* The number of requests per second
|
|
162
|
+
*/
|
|
163
|
+
requestsPerSecond: number;
|
|
164
|
+
/**
|
|
165
|
+
* The success rate percentage
|
|
166
|
+
*/
|
|
167
|
+
successRatePercent: number;
|
|
168
|
+
/**
|
|
169
|
+
* The median response time in milliseconds
|
|
170
|
+
*/
|
|
171
|
+
medianResponseTimeMsecs: number;
|
|
172
|
+
/**
|
|
173
|
+
* The number of invalid requests
|
|
174
|
+
*/
|
|
175
|
+
invalidRequests: number;
|
|
176
|
+
/**
|
|
177
|
+
* Column name used for data aggregation
|
|
178
|
+
*/
|
|
179
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
180
|
+
/**
|
|
181
|
+
* The value of the column used for data aggregation
|
|
182
|
+
*/
|
|
183
|
+
groupValue?: (string | number);
|
|
184
|
+
};
|
|
185
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
186
|
+
/**
|
|
187
|
+
* Column name used for data aggregation
|
|
188
|
+
*/
|
|
189
|
+
enum groupedBy {
|
|
190
|
+
RPC_METHOD = "rpcMethod",
|
|
191
|
+
RESPONSE_CODE = "responseCode",
|
|
192
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
193
|
+
NONE = "None"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
type RpcMetrics = {
|
|
198
|
+
/**
|
|
199
|
+
* The timestamp of the metrics value
|
|
200
|
+
*/
|
|
201
|
+
timestamp: number;
|
|
202
|
+
/**
|
|
203
|
+
* The metrics values for the timestamp
|
|
204
|
+
*/
|
|
205
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
type RpcUsageMetricsResponseDTO = {
|
|
209
|
+
/**
|
|
210
|
+
* Duration in which the metrics value is aggregated
|
|
211
|
+
*/
|
|
212
|
+
aggregateDuration: string;
|
|
213
|
+
/**
|
|
214
|
+
* ChainId for which the metrics are aggregated
|
|
215
|
+
*/
|
|
216
|
+
chainId: string;
|
|
217
|
+
/**
|
|
218
|
+
* Metrics values
|
|
219
|
+
*/
|
|
220
|
+
metrics: Array<RpcMetrics>;
|
|
221
|
+
};
|
|
222
|
+
|
|
151
223
|
declare enum TimeIntervalGranularityExtended {
|
|
152
224
|
MINUTE = "minute",
|
|
153
225
|
HOURLY = "hourly",
|
|
@@ -251,17 +323,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
323
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
324
|
* @throws ApiError
|
|
253
325
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
326
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
|
|
255
327
|
/**
|
|
256
328
|
* Organization ID to fetch usage metrics for
|
|
257
329
|
*/
|
|
258
330
|
orgId?: string;
|
|
259
331
|
/**
|
|
260
|
-
*
|
|
332
|
+
* 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.
|
|
261
333
|
*/
|
|
262
334
|
startTimestamp?: number;
|
|
263
335
|
/**
|
|
264
|
-
*
|
|
336
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
265
337
|
*/
|
|
266
338
|
endTimestamp?: number;
|
|
267
339
|
/**
|
|
@@ -273,21 +345,21 @@ declare class DataApiUsageMetricsService {
|
|
|
273
345
|
*/
|
|
274
346
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
347
|
/**
|
|
276
|
-
* Filter data by
|
|
348
|
+
* Filter data by chain ID.
|
|
277
349
|
*/
|
|
278
|
-
|
|
350
|
+
chainId?: string;
|
|
279
351
|
/**
|
|
280
|
-
* Filter data by request
|
|
352
|
+
* Filter data by request path.
|
|
281
353
|
*/
|
|
282
|
-
|
|
354
|
+
requestPath?: string;
|
|
283
355
|
/**
|
|
284
356
|
* Filter data by response status code.
|
|
285
357
|
*/
|
|
286
358
|
responseCode?: string;
|
|
287
359
|
/**
|
|
288
|
-
* Filter data by
|
|
360
|
+
* Filter data by request type.
|
|
289
361
|
*/
|
|
290
|
-
|
|
362
|
+
requestType?: 'data' | 'rpc';
|
|
291
363
|
/**
|
|
292
364
|
* Filter data by API key ID.
|
|
293
365
|
*/
|
|
@@ -299,35 +371,35 @@ declare class DataApiUsageMetricsService {
|
|
|
299
371
|
* @returns LogsResponseDTO Successful response
|
|
300
372
|
* @throws ApiError
|
|
301
373
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
374
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
|
|
303
375
|
/**
|
|
304
376
|
* Organization ID to fetch usage metrics for
|
|
305
377
|
*/
|
|
306
378
|
orgId?: string;
|
|
307
379
|
/**
|
|
308
|
-
*
|
|
380
|
+
* 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.
|
|
309
381
|
*/
|
|
310
382
|
startTimestamp?: number;
|
|
311
383
|
/**
|
|
312
|
-
*
|
|
384
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
313
385
|
*/
|
|
314
386
|
endTimestamp?: number;
|
|
315
387
|
/**
|
|
316
|
-
* Filter data by
|
|
388
|
+
* Filter data by chain ID.
|
|
317
389
|
*/
|
|
318
|
-
|
|
390
|
+
chainId?: string;
|
|
319
391
|
/**
|
|
320
|
-
* Filter data by request
|
|
392
|
+
* Filter data by request path.
|
|
321
393
|
*/
|
|
322
|
-
|
|
394
|
+
requestPath?: string;
|
|
323
395
|
/**
|
|
324
396
|
* Filter data by response status code.
|
|
325
397
|
*/
|
|
326
398
|
responseCode?: string;
|
|
327
399
|
/**
|
|
328
|
-
* Filter data by
|
|
400
|
+
* Filter data by request type.
|
|
329
401
|
*/
|
|
330
|
-
|
|
402
|
+
requestType?: 'data' | 'rpc';
|
|
331
403
|
/**
|
|
332
404
|
* Filter data by API key ID.
|
|
333
405
|
*/
|
|
@@ -341,6 +413,50 @@ declare class DataApiUsageMetricsService {
|
|
|
341
413
|
*/
|
|
342
414
|
pageSize?: number;
|
|
343
415
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
|
+
/**
|
|
417
|
+
* Get usage metrics for the Subnet RPC
|
|
418
|
+
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
420
|
+
* @throws ApiError
|
|
421
|
+
*/
|
|
422
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
|
+
/**
|
|
424
|
+
* Query param for setting time interval of data aggregation.
|
|
425
|
+
*/
|
|
426
|
+
timeInterval?: string;
|
|
427
|
+
/**
|
|
428
|
+
* 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
|
+
*/
|
|
430
|
+
startTimestamp?: number;
|
|
431
|
+
/**
|
|
432
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
433
|
+
*/
|
|
434
|
+
endTimestamp?: number;
|
|
435
|
+
/**
|
|
436
|
+
* Query param for the criterion used for grouping metrics
|
|
437
|
+
*/
|
|
438
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
439
|
+
/**
|
|
440
|
+
* Filter data by chain ID.
|
|
441
|
+
*/
|
|
442
|
+
chainId?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Filter data by request path.
|
|
445
|
+
*/
|
|
446
|
+
requestPath?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Filter data by response status code.
|
|
449
|
+
*/
|
|
450
|
+
responseCode?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Filter data by RPC method.
|
|
453
|
+
*/
|
|
454
|
+
rpcMethod?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Filter data by Rl Bypass API Token.
|
|
457
|
+
*/
|
|
458
|
+
rlBypassApiToken?: string;
|
|
459
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
344
460
|
}
|
|
345
461
|
|
|
346
462
|
declare class DefaultService {
|
|
@@ -625,7 +741,7 @@ declare class EvmBalancesService {
|
|
|
625
741
|
*/
|
|
626
742
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
627
743
|
/**
|
|
628
|
-
* A supported evm chain id
|
|
744
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
629
745
|
*/
|
|
630
746
|
chainId: string;
|
|
631
747
|
/**
|
|
@@ -653,7 +769,7 @@ declare class EvmBalancesService {
|
|
|
653
769
|
*/
|
|
654
770
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
655
771
|
/**
|
|
656
|
-
* A supported evm chain id
|
|
772
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
657
773
|
*/
|
|
658
774
|
chainId: string;
|
|
659
775
|
/**
|
|
@@ -695,7 +811,7 @@ declare class EvmBalancesService {
|
|
|
695
811
|
*/
|
|
696
812
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
697
813
|
/**
|
|
698
|
-
* A supported evm chain id
|
|
814
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
699
815
|
*/
|
|
700
816
|
chainId: string;
|
|
701
817
|
/**
|
|
@@ -727,7 +843,7 @@ declare class EvmBalancesService {
|
|
|
727
843
|
*/
|
|
728
844
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
729
845
|
/**
|
|
730
|
-
* A supported evm chain id
|
|
846
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
731
847
|
*/
|
|
732
848
|
chainId: string;
|
|
733
849
|
/**
|
|
@@ -761,7 +877,7 @@ declare class EvmBalancesService {
|
|
|
761
877
|
*/
|
|
762
878
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
763
879
|
/**
|
|
764
|
-
* A supported evm chain id
|
|
880
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
765
881
|
*/
|
|
766
882
|
chainId: string;
|
|
767
883
|
/**
|
|
@@ -890,7 +1006,7 @@ declare class EvmBlocksService {
|
|
|
890
1006
|
*/
|
|
891
1007
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
892
1008
|
/**
|
|
893
|
-
* A supported evm chain id
|
|
1009
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
894
1010
|
*/
|
|
895
1011
|
chainId: string;
|
|
896
1012
|
/**
|
|
@@ -910,7 +1026,7 @@ declare class EvmBlocksService {
|
|
|
910
1026
|
*/
|
|
911
1027
|
getBlock({ chainId, blockId, }: {
|
|
912
1028
|
/**
|
|
913
|
-
* A supported evm chain id
|
|
1029
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
914
1030
|
*/
|
|
915
1031
|
chainId: string;
|
|
916
1032
|
/**
|
|
@@ -1004,6 +1120,11 @@ type ChainInfo = {
|
|
|
1004
1120
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1121
|
};
|
|
1006
1122
|
|
|
1123
|
+
type ListAddressChainsResponse = {
|
|
1124
|
+
indexedChains?: Array<ChainInfo>;
|
|
1125
|
+
unindexedChains?: Array<string>;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1007
1128
|
type ListChainsResponse = {
|
|
1008
1129
|
chains: Array<ChainInfo>;
|
|
1009
1130
|
};
|
|
@@ -1011,7 +1132,8 @@ type ListChainsResponse = {
|
|
|
1011
1132
|
declare enum Network {
|
|
1012
1133
|
MAINNET = "mainnet",
|
|
1013
1134
|
FUJI = "fuji",
|
|
1014
|
-
TESTNET = "testnet"
|
|
1135
|
+
TESTNET = "testnet",
|
|
1136
|
+
DEVNET = "devnet"
|
|
1015
1137
|
}
|
|
1016
1138
|
|
|
1017
1139
|
declare class EvmChainsService {
|
|
@@ -1041,10 +1163,22 @@ declare class EvmChainsService {
|
|
|
1041
1163
|
*/
|
|
1042
1164
|
getChainInfo({ chainId, }: {
|
|
1043
1165
|
/**
|
|
1044
|
-
* A supported evm chain id
|
|
1166
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1045
1167
|
*/
|
|
1046
1168
|
chainId: string;
|
|
1047
1169
|
}): CancelablePromise<GetChainResponse>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Get chains for address
|
|
1172
|
+
* Gets the list of chains an address has interacted with.
|
|
1173
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1174
|
+
* @throws ApiError
|
|
1175
|
+
*/
|
|
1176
|
+
getAddressChains({ address, }: {
|
|
1177
|
+
/**
|
|
1178
|
+
* A wallet address.
|
|
1179
|
+
*/
|
|
1180
|
+
address: string;
|
|
1181
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1048
1182
|
}
|
|
1049
1183
|
|
|
1050
1184
|
type ImageAsset = {
|
|
@@ -1336,7 +1470,7 @@ declare class EvmContractsService {
|
|
|
1336
1470
|
*/
|
|
1337
1471
|
getContractMetadata({ chainId, address, }: {
|
|
1338
1472
|
/**
|
|
1339
|
-
* A supported evm chain id
|
|
1473
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1340
1474
|
*/
|
|
1341
1475
|
chainId: string;
|
|
1342
1476
|
/**
|
|
@@ -1352,7 +1486,7 @@ declare class EvmContractsService {
|
|
|
1352
1486
|
*/
|
|
1353
1487
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1354
1488
|
/**
|
|
1355
|
-
* A supported evm chain id
|
|
1489
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1356
1490
|
*/
|
|
1357
1491
|
chainId: string;
|
|
1358
1492
|
/**
|
|
@@ -1902,7 +2036,7 @@ declare class EvmTransactionsService {
|
|
|
1902
2036
|
*/
|
|
1903
2037
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1904
2038
|
/**
|
|
1905
|
-
* A supported evm chain id
|
|
2039
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1906
2040
|
*/
|
|
1907
2041
|
chainId: string;
|
|
1908
2042
|
/**
|
|
@@ -1922,7 +2056,7 @@ declare class EvmTransactionsService {
|
|
|
1922
2056
|
*/
|
|
1923
2057
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1924
2058
|
/**
|
|
1925
|
-
* A supported evm chain id
|
|
2059
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1926
2060
|
*/
|
|
1927
2061
|
chainId: string;
|
|
1928
2062
|
/**
|
|
@@ -1946,7 +2080,7 @@ declare class EvmTransactionsService {
|
|
|
1946
2080
|
*/
|
|
1947
2081
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1948
2082
|
/**
|
|
1949
|
-
* A supported evm chain id
|
|
2083
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1950
2084
|
*/
|
|
1951
2085
|
chainId: string;
|
|
1952
2086
|
/**
|
|
@@ -1980,7 +2114,7 @@ declare class EvmTransactionsService {
|
|
|
1980
2114
|
*/
|
|
1981
2115
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1982
2116
|
/**
|
|
1983
|
-
* A supported evm chain id
|
|
2117
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1984
2118
|
*/
|
|
1985
2119
|
chainId: string;
|
|
1986
2120
|
/**
|
|
@@ -2016,7 +2150,7 @@ declare class EvmTransactionsService {
|
|
|
2016
2150
|
*/
|
|
2017
2151
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2018
2152
|
/**
|
|
2019
|
-
* A supported evm chain id
|
|
2153
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2020
2154
|
*/
|
|
2021
2155
|
chainId: string;
|
|
2022
2156
|
/**
|
|
@@ -2048,7 +2182,7 @@ declare class EvmTransactionsService {
|
|
|
2048
2182
|
*/
|
|
2049
2183
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2050
2184
|
/**
|
|
2051
|
-
* A supported evm chain id
|
|
2185
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2052
2186
|
*/
|
|
2053
2187
|
chainId: string;
|
|
2054
2188
|
/**
|
|
@@ -2080,7 +2214,7 @@ declare class EvmTransactionsService {
|
|
|
2080
2214
|
*/
|
|
2081
2215
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2082
2216
|
/**
|
|
2083
|
-
* A supported evm chain id
|
|
2217
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2084
2218
|
*/
|
|
2085
2219
|
chainId: string;
|
|
2086
2220
|
/**
|
|
@@ -2112,7 +2246,7 @@ declare class EvmTransactionsService {
|
|
|
2112
2246
|
*/
|
|
2113
2247
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2114
2248
|
/**
|
|
2115
|
-
* A supported evm chain id
|
|
2249
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2116
2250
|
*/
|
|
2117
2251
|
chainId: string;
|
|
2118
2252
|
/**
|
|
@@ -2146,7 +2280,7 @@ declare class EvmTransactionsService {
|
|
|
2146
2280
|
*/
|
|
2147
2281
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2148
2282
|
/**
|
|
2149
|
-
* A supported evm chain id
|
|
2283
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2150
2284
|
*/
|
|
2151
2285
|
chainId: string;
|
|
2152
2286
|
/**
|
|
@@ -2178,7 +2312,7 @@ declare class EvmTransactionsService {
|
|
|
2178
2312
|
*/
|
|
2179
2313
|
getTransaction({ chainId, txHash, }: {
|
|
2180
2314
|
/**
|
|
2181
|
-
* A supported evm chain id
|
|
2315
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2182
2316
|
*/
|
|
2183
2317
|
chainId: string;
|
|
2184
2318
|
/**
|
|
@@ -2194,7 +2328,7 @@ declare class EvmTransactionsService {
|
|
|
2194
2328
|
*/
|
|
2195
2329
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2196
2330
|
/**
|
|
2197
|
-
* A supported evm chain id
|
|
2331
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2198
2332
|
*/
|
|
2199
2333
|
chainId: string;
|
|
2200
2334
|
/**
|
|
@@ -2210,7 +2344,7 @@ declare class EvmTransactionsService {
|
|
|
2210
2344
|
*/
|
|
2211
2345
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2212
2346
|
/**
|
|
2213
|
-
* A supported evm chain id
|
|
2347
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2214
2348
|
*/
|
|
2215
2349
|
chainId: string;
|
|
2216
2350
|
/**
|
|
@@ -2263,7 +2397,7 @@ declare class NfTsService {
|
|
|
2263
2397
|
*/
|
|
2264
2398
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2265
2399
|
/**
|
|
2266
|
-
* A supported evm chain id
|
|
2400
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2267
2401
|
*/
|
|
2268
2402
|
chainId: string;
|
|
2269
2403
|
/**
|
|
@@ -2283,7 +2417,7 @@ declare class NfTsService {
|
|
|
2283
2417
|
*/
|
|
2284
2418
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2285
2419
|
/**
|
|
2286
|
-
* A supported evm chain id
|
|
2420
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2287
2421
|
*/
|
|
2288
2422
|
chainId: string;
|
|
2289
2423
|
/**
|
|
@@ -2307,7 +2441,7 @@ declare class NfTsService {
|
|
|
2307
2441
|
*/
|
|
2308
2442
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2309
2443
|
/**
|
|
2310
|
-
* A supported evm chain id
|
|
2444
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2311
2445
|
*/
|
|
2312
2446
|
chainId: string;
|
|
2313
2447
|
/**
|
|
@@ -2337,11 +2471,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2337
2471
|
/**
|
|
2338
2472
|
* @deprecated
|
|
2339
2473
|
*/
|
|
2340
|
-
startDate
|
|
2474
|
+
startDate?: string;
|
|
2341
2475
|
/**
|
|
2342
2476
|
* @deprecated
|
|
2343
2477
|
*/
|
|
2344
|
-
endDate
|
|
2478
|
+
endDate?: string;
|
|
2345
2479
|
options: EvmNetworkOptions;
|
|
2346
2480
|
};
|
|
2347
2481
|
|
|
@@ -2354,7 +2488,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2354
2488
|
type PrimaryNetworkOptions = {
|
|
2355
2489
|
addresses?: Array<string>;
|
|
2356
2490
|
cChainEvmAddresses?: Array<string>;
|
|
2357
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2491
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2358
2492
|
};
|
|
2359
2493
|
|
|
2360
2494
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2364,11 +2498,11 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2364
2498
|
/**
|
|
2365
2499
|
* @deprecated
|
|
2366
2500
|
*/
|
|
2367
|
-
startDate
|
|
2501
|
+
startDate?: string;
|
|
2368
2502
|
/**
|
|
2369
2503
|
* @deprecated
|
|
2370
2504
|
*/
|
|
2371
|
-
endDate
|
|
2505
|
+
endDate?: string;
|
|
2372
2506
|
options: PrimaryNetworkOptions;
|
|
2373
2507
|
};
|
|
2374
2508
|
|
|
@@ -2446,8 +2580,10 @@ declare enum BlockchainIds {
|
|
|
2446
2580
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2447
2581
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2448
2582
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2583
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2449
2584
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2450
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2585
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2586
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2451
2587
|
}
|
|
2452
2588
|
|
|
2453
2589
|
type ChainAddressChainIdMap = {
|
|
@@ -2571,10 +2707,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2571
2707
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2572
2708
|
};
|
|
2573
2709
|
|
|
2710
|
+
type BalanceOwner = {
|
|
2711
|
+
addresses: Array<string>;
|
|
2712
|
+
threshold: number;
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
type SovDetailsFull = {
|
|
2716
|
+
/**
|
|
2717
|
+
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
2718
|
+
*/
|
|
2719
|
+
validationId: string;
|
|
2720
|
+
nodeId: string;
|
|
2721
|
+
subnetId: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* 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
|
|
2724
|
+
*/
|
|
2725
|
+
weight: number;
|
|
2726
|
+
/**
|
|
2727
|
+
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
2728
|
+
*/
|
|
2729
|
+
remainingBalance: number;
|
|
2730
|
+
/**
|
|
2731
|
+
* The timestamp of the transaction which created this SoV
|
|
2732
|
+
*/
|
|
2733
|
+
creationTimestamp: number;
|
|
2734
|
+
blsCredentials: Record<string, any>;
|
|
2735
|
+
/**
|
|
2736
|
+
* The SoV owner's balance, returned after it's disabled or removed
|
|
2737
|
+
*/
|
|
2738
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2739
|
+
/**
|
|
2740
|
+
* Owner ddresses details which can disable or remove the SoV
|
|
2741
|
+
*/
|
|
2742
|
+
deactivationOwner: BalanceOwner;
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
type ListSubnetOnlyValidatorsResponse = {
|
|
2746
|
+
/**
|
|
2747
|
+
* 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
|
+
*/
|
|
2749
|
+
nextPageToken?: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
|
+
*/
|
|
2753
|
+
validators: Array<SovDetailsFull>;
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2574
2756
|
type BlockchainInfo = {
|
|
2575
2757
|
blockchainId: string;
|
|
2576
2758
|
};
|
|
2577
2759
|
|
|
2760
|
+
type L1ValidatorManagerDetails = {
|
|
2761
|
+
blockchainId: string;
|
|
2762
|
+
contractAddress: string;
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2578
2765
|
type SubnetOwnershipInfo = {
|
|
2579
2766
|
/**
|
|
2580
2767
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2613,6 +2800,14 @@ type Subnet = {
|
|
|
2613
2800
|
* Latest subnet owner details for this Subnet.
|
|
2614
2801
|
*/
|
|
2615
2802
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2803
|
+
/**
|
|
2804
|
+
* Whether the subnet is an L1 or not.
|
|
2805
|
+
*/
|
|
2806
|
+
isL1: boolean;
|
|
2807
|
+
/**
|
|
2808
|
+
* L1 validator manager details.
|
|
2809
|
+
*/
|
|
2810
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2616
2811
|
blockchains: Array<BlockchainInfo>;
|
|
2617
2812
|
};
|
|
2618
2813
|
|
|
@@ -2818,6 +3013,7 @@ type XChainAssetDetails = {
|
|
|
2818
3013
|
declare enum XChainId {
|
|
2819
3014
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2820
3015
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3016
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2821
3017
|
X_CHAIN = "x-chain"
|
|
2822
3018
|
}
|
|
2823
3019
|
|
|
@@ -3078,14 +3274,49 @@ declare class PrimaryNetworkService {
|
|
|
3078
3274
|
*/
|
|
3079
3275
|
nodeIds?: string;
|
|
3080
3276
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3277
|
+
/**
|
|
3278
|
+
* List subnet-only validators
|
|
3279
|
+
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3280
|
+
* @returns ListSubnetOnlyValidatorsResponse Successful response
|
|
3281
|
+
* @throws ApiError
|
|
3282
|
+
*/
|
|
3283
|
+
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
3284
|
+
/**
|
|
3285
|
+
* Either mainnet or testnet/fuji.
|
|
3286
|
+
*/
|
|
3287
|
+
network: Network;
|
|
3288
|
+
/**
|
|
3289
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3290
|
+
*/
|
|
3291
|
+
pageToken?: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3294
|
+
*/
|
|
3295
|
+
pageSize?: number;
|
|
3296
|
+
/**
|
|
3297
|
+
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
|
|
3298
|
+
*/
|
|
3299
|
+
sovValidationId?: any;
|
|
3300
|
+
includeInactiveSovs?: boolean;
|
|
3301
|
+
/**
|
|
3302
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3303
|
+
*/
|
|
3304
|
+
nodeId?: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3307
|
+
*/
|
|
3308
|
+
subnetId?: any;
|
|
3309
|
+
}): CancelablePromise<ListSubnetOnlyValidatorsResponse>;
|
|
3081
3310
|
}
|
|
3082
3311
|
|
|
3083
3312
|
declare enum BlockchainId {
|
|
3084
3313
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3085
3314
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3086
3315
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3316
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3087
3317
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3088
3318
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3319
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3089
3320
|
P_CHAIN = "p-chain",
|
|
3090
3321
|
X_CHAIN = "x-chain",
|
|
3091
3322
|
C_CHAIN = "c-chain"
|
|
@@ -3122,11 +3353,6 @@ type CChainAtomicBalances = {
|
|
|
3122
3353
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3123
3354
|
};
|
|
3124
3355
|
|
|
3125
|
-
declare enum PrimaryNetwork {
|
|
3126
|
-
MAINNET = "mainnet",
|
|
3127
|
-
FUJI = "fuji"
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
3356
|
declare enum PrimaryNetworkChainName {
|
|
3131
3357
|
P_CHAIN = "p-chain",
|
|
3132
3358
|
X_CHAIN = "x-chain",
|
|
@@ -3135,7 +3361,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3135
3361
|
|
|
3136
3362
|
type PrimaryNetworkChainInfo = {
|
|
3137
3363
|
chainName: PrimaryNetworkChainName;
|
|
3138
|
-
network:
|
|
3364
|
+
network: Network;
|
|
3139
3365
|
};
|
|
3140
3366
|
|
|
3141
3367
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3327,6 +3553,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3327
3553
|
txCount: number;
|
|
3328
3554
|
transactions: Array<string>;
|
|
3329
3555
|
blockSizeBytes: number;
|
|
3556
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3557
|
+
activeSubnetOnlyValidators?: number;
|
|
3330
3558
|
currentSupply?: string;
|
|
3331
3559
|
proposerDetails?: ProposerDetails;
|
|
3332
3560
|
};
|
|
@@ -3340,6 +3568,8 @@ type PrimaryNetworkBlock = {
|
|
|
3340
3568
|
txCount: number;
|
|
3341
3569
|
transactions: Array<string>;
|
|
3342
3570
|
blockSizeBytes: number;
|
|
3571
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3572
|
+
activeSubnetOnlyValidators?: number;
|
|
3343
3573
|
currentSupply?: string;
|
|
3344
3574
|
proposerDetails?: ProposerDetails;
|
|
3345
3575
|
};
|
|
@@ -3844,6 +4074,11 @@ declare enum PChainTransactionType {
|
|
|
3844
4074
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3845
4075
|
BASE_TX = "BaseTx",
|
|
3846
4076
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4077
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4078
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4079
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4080
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4081
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
3847
4082
|
UNKNOWN = "UNKNOWN"
|
|
3848
4083
|
}
|
|
3849
4084
|
|
|
@@ -3898,6 +4133,28 @@ type PChainUtxo = {
|
|
|
3898
4133
|
utxoType: UtxoType;
|
|
3899
4134
|
};
|
|
3900
4135
|
|
|
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
|
+
|
|
3901
4158
|
type PChainTransaction = {
|
|
3902
4159
|
/**
|
|
3903
4160
|
* A P-Chain transaction hash.
|
|
@@ -3932,6 +4189,10 @@ type PChainTransaction = {
|
|
|
3932
4189
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3933
4190
|
*/
|
|
3934
4191
|
amountStaked: Array<AssetAmount>;
|
|
4192
|
+
/**
|
|
4193
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4194
|
+
*/
|
|
4195
|
+
amountSovBalanceBurned: Array<AssetAmount>;
|
|
3935
4196
|
/**
|
|
3936
4197
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3937
4198
|
*/
|
|
@@ -3952,6 +4213,14 @@ type PChainTransaction = {
|
|
|
3952
4213
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
3953
4214
|
*/
|
|
3954
4215
|
subnetId?: string;
|
|
4216
|
+
/**
|
|
4217
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetTx which transforms a subnet into L1
|
|
4218
|
+
*/
|
|
4219
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4220
|
+
/**
|
|
4221
|
+
* Details of Subnet-only-Validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4222
|
+
*/
|
|
4223
|
+
l1ValidatorDetails?: Array<SoVDetailsTransaction>;
|
|
3955
4224
|
/**
|
|
3956
4225
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3957
4226
|
*/
|
|
@@ -4153,6 +4422,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4153
4422
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4154
4423
|
BASE_TX = "BaseTx",
|
|
4155
4424
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4425
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4426
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4427
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4428
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4429
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
4156
4430
|
UNKNOWN = "UNKNOWN",
|
|
4157
4431
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4158
4432
|
OPERATION_TX = "OperationTx"
|
|
@@ -4187,15 +4461,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4187
4461
|
*
|
|
4188
4462
|
* 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.
|
|
4189
4463
|
*
|
|
4464
|
+
* For P-Chain, you can fetch all the Subnet-only-Validator (SoV) related transactions like ConvertSubnetTx, IncreaseBalanceTx etc. using the unique SoV validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
4465
|
+
*
|
|
4190
4466
|
* 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.
|
|
4191
4467
|
* @returns any Successful response
|
|
4192
4468
|
* @throws ApiError
|
|
4193
4469
|
*/
|
|
4194
|
-
listLatestPrimaryNetworkTransactions({
|
|
4195
|
-
/**
|
|
4196
|
-
* 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.
|
|
4197
|
-
*/
|
|
4198
|
-
addresses: string;
|
|
4470
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, sovValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4199
4471
|
/**
|
|
4200
4472
|
* A primary network blockchain id or alias.
|
|
4201
4473
|
*/
|
|
@@ -4204,6 +4476,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4204
4476
|
* Either mainnet or testnet/fuji.
|
|
4205
4477
|
*/
|
|
4206
4478
|
network: Network;
|
|
4479
|
+
/**
|
|
4480
|
+
* 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
|
+
*/
|
|
4482
|
+
addresses?: string;
|
|
4483
|
+
sovValidationId?: string;
|
|
4207
4484
|
/**
|
|
4208
4485
|
* Query param for filtering items based on transaction types.
|
|
4209
4486
|
*/
|
|
@@ -4479,47 +4756,29 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4479
4756
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4480
4757
|
}
|
|
4481
4758
|
|
|
4482
|
-
type
|
|
4483
|
-
|
|
4484
|
-
message: string;
|
|
4485
|
-
data?: Record<string, any>;
|
|
4486
|
-
};
|
|
4487
|
-
|
|
4488
|
-
type RpcErrorResponseDto = {
|
|
4489
|
-
jsonrpc: string;
|
|
4490
|
-
id?: (string | number);
|
|
4491
|
-
error: RpcErrorDto;
|
|
4759
|
+
type SignatureAggregationResponse = {
|
|
4760
|
+
signedMessage: string;
|
|
4492
4761
|
};
|
|
4493
4762
|
|
|
4494
|
-
type
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
};
|
|
4500
|
-
|
|
4501
|
-
type RpcSuccessResponseDto = {
|
|
4502
|
-
jsonrpc: string;
|
|
4503
|
-
id?: (string | number);
|
|
4504
|
-
result: Record<string, any>;
|
|
4763
|
+
type SignatureAggregatorRequest = {
|
|
4764
|
+
message: string;
|
|
4765
|
+
justification?: string;
|
|
4766
|
+
signingSubnetId?: string;
|
|
4767
|
+
quorumPercentage?: number;
|
|
4505
4768
|
};
|
|
4506
4769
|
|
|
4507
|
-
declare class
|
|
4770
|
+
declare class SignatureAggregatorService {
|
|
4508
4771
|
readonly httpRequest: BaseHttpRequest;
|
|
4509
4772
|
constructor(httpRequest: BaseHttpRequest);
|
|
4510
4773
|
/**
|
|
4511
|
-
*
|
|
4512
|
-
*
|
|
4513
|
-
* @returns
|
|
4774
|
+
* Aggregate Signatures
|
|
4775
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
4776
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4514
4777
|
* @throws ApiError
|
|
4515
4778
|
*/
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
*/
|
|
4520
|
-
chainId: string;
|
|
4521
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4522
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4779
|
+
aggregateSignatures({ requestBody, }: {
|
|
4780
|
+
requestBody: SignatureAggregatorRequest;
|
|
4781
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4523
4782
|
}
|
|
4524
4783
|
|
|
4525
4784
|
type TeleporterDestinationTransaction = {
|
|
@@ -4986,7 +5245,7 @@ declare class Glacier {
|
|
|
4986
5245
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4987
5246
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4988
5247
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4989
|
-
readonly
|
|
5248
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4990
5249
|
readonly teleporter: TeleporterService;
|
|
4991
5250
|
readonly webhooks: WebhooksService;
|
|
4992
5251
|
readonly request: BaseHttpRequest;
|
|
@@ -5141,4 +5400,4 @@ type Unauthorized = {
|
|
|
5141
5400
|
error: string;
|
|
5142
5401
|
};
|
|
5143
5402
|
|
|
5144
|
-
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, 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,
|
|
5403
|
+
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, ListSubnetOnlyValidatorsResponse, 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, SoVDetailsTransaction, SortByOption, SortOrder, SovDetailsFull, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|