@avalabs/glacier-sdk 3.1.0-canary.682531.0 → 3.1.0-canary.6f6b151.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 +261 -97
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- 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/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +2 -1
- package/esm/generated/models/PrimaryNetwork.js +1 -1
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +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 +14 -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 +16 -4
- 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/PrimaryNetworkBalancesService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +9 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
- package/esm/generated/services/RpcService.d.ts +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +5 -5
- package/esm/index.d.ts +6 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
|
|
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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
|
|
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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
|
|
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
|
/**
|
|
@@ -1008,9 +1124,11 @@ type ListChainsResponse = {
|
|
|
1008
1124
|
chains: Array<ChainInfo>;
|
|
1009
1125
|
};
|
|
1010
1126
|
|
|
1011
|
-
declare enum
|
|
1127
|
+
declare enum Network {
|
|
1012
1128
|
MAINNET = "mainnet",
|
|
1013
|
-
|
|
1129
|
+
FUJI = "fuji",
|
|
1130
|
+
TESTNET = "testnet",
|
|
1131
|
+
DEVNET = "devnet"
|
|
1014
1132
|
}
|
|
1015
1133
|
|
|
1016
1134
|
declare class EvmChainsService {
|
|
@@ -1024,9 +1142,9 @@ declare class EvmChainsService {
|
|
|
1024
1142
|
*/
|
|
1025
1143
|
supportedChains({ network, feature, }: {
|
|
1026
1144
|
/**
|
|
1027
|
-
* mainnet or testnet.
|
|
1145
|
+
* Either mainnet or testnet/fuji.
|
|
1028
1146
|
*/
|
|
1029
|
-
network?:
|
|
1147
|
+
network?: Network;
|
|
1030
1148
|
/**
|
|
1031
1149
|
* Filter by feature.
|
|
1032
1150
|
*/
|
|
@@ -1040,10 +1158,22 @@ declare class EvmChainsService {
|
|
|
1040
1158
|
*/
|
|
1041
1159
|
getChainInfo({ chainId, }: {
|
|
1042
1160
|
/**
|
|
1043
|
-
* A supported evm chain id
|
|
1161
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1044
1162
|
*/
|
|
1045
1163
|
chainId: string;
|
|
1046
1164
|
}): CancelablePromise<GetChainResponse>;
|
|
1165
|
+
/**
|
|
1166
|
+
* Get chains for address
|
|
1167
|
+
* Gets the list of chains an address has interacted with.
|
|
1168
|
+
* @returns ListChainsResponse Successful response
|
|
1169
|
+
* @throws ApiError
|
|
1170
|
+
*/
|
|
1171
|
+
getAddressChains({ address, }: {
|
|
1172
|
+
/**
|
|
1173
|
+
* A wallet address.
|
|
1174
|
+
*/
|
|
1175
|
+
address: string;
|
|
1176
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1047
1177
|
}
|
|
1048
1178
|
|
|
1049
1179
|
type ImageAsset = {
|
|
@@ -1335,7 +1465,7 @@ declare class EvmContractsService {
|
|
|
1335
1465
|
*/
|
|
1336
1466
|
getContractMetadata({ chainId, address, }: {
|
|
1337
1467
|
/**
|
|
1338
|
-
* A supported evm chain id
|
|
1468
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1339
1469
|
*/
|
|
1340
1470
|
chainId: string;
|
|
1341
1471
|
/**
|
|
@@ -1351,7 +1481,7 @@ declare class EvmContractsService {
|
|
|
1351
1481
|
*/
|
|
1352
1482
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1353
1483
|
/**
|
|
1354
|
-
* A supported evm chain id
|
|
1484
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1355
1485
|
*/
|
|
1356
1486
|
chainId: string;
|
|
1357
1487
|
/**
|
|
@@ -1901,7 +2031,7 @@ declare class EvmTransactionsService {
|
|
|
1901
2031
|
*/
|
|
1902
2032
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1903
2033
|
/**
|
|
1904
|
-
* A supported evm chain id
|
|
2034
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
2035
|
*/
|
|
1906
2036
|
chainId: string;
|
|
1907
2037
|
/**
|
|
@@ -1921,7 +2051,7 @@ declare class EvmTransactionsService {
|
|
|
1921
2051
|
*/
|
|
1922
2052
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1923
2053
|
/**
|
|
1924
|
-
* A supported evm chain id
|
|
2054
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1925
2055
|
*/
|
|
1926
2056
|
chainId: string;
|
|
1927
2057
|
/**
|
|
@@ -1945,7 +2075,7 @@ declare class EvmTransactionsService {
|
|
|
1945
2075
|
*/
|
|
1946
2076
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1947
2077
|
/**
|
|
1948
|
-
* A supported evm chain id
|
|
2078
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1949
2079
|
*/
|
|
1950
2080
|
chainId: string;
|
|
1951
2081
|
/**
|
|
@@ -1979,7 +2109,7 @@ declare class EvmTransactionsService {
|
|
|
1979
2109
|
*/
|
|
1980
2110
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1981
2111
|
/**
|
|
1982
|
-
* A supported evm chain id
|
|
2112
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1983
2113
|
*/
|
|
1984
2114
|
chainId: string;
|
|
1985
2115
|
/**
|
|
@@ -2015,7 +2145,7 @@ declare class EvmTransactionsService {
|
|
|
2015
2145
|
*/
|
|
2016
2146
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2017
2147
|
/**
|
|
2018
|
-
* A supported evm chain id
|
|
2148
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2019
2149
|
*/
|
|
2020
2150
|
chainId: string;
|
|
2021
2151
|
/**
|
|
@@ -2047,7 +2177,7 @@ declare class EvmTransactionsService {
|
|
|
2047
2177
|
*/
|
|
2048
2178
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2049
2179
|
/**
|
|
2050
|
-
* A supported evm chain id
|
|
2180
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2051
2181
|
*/
|
|
2052
2182
|
chainId: string;
|
|
2053
2183
|
/**
|
|
@@ -2079,7 +2209,7 @@ declare class EvmTransactionsService {
|
|
|
2079
2209
|
*/
|
|
2080
2210
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2081
2211
|
/**
|
|
2082
|
-
* A supported evm chain id
|
|
2212
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2083
2213
|
*/
|
|
2084
2214
|
chainId: string;
|
|
2085
2215
|
/**
|
|
@@ -2111,7 +2241,7 @@ declare class EvmTransactionsService {
|
|
|
2111
2241
|
*/
|
|
2112
2242
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2113
2243
|
/**
|
|
2114
|
-
* A supported evm chain id
|
|
2244
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2115
2245
|
*/
|
|
2116
2246
|
chainId: string;
|
|
2117
2247
|
/**
|
|
@@ -2145,7 +2275,7 @@ declare class EvmTransactionsService {
|
|
|
2145
2275
|
*/
|
|
2146
2276
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2147
2277
|
/**
|
|
2148
|
-
* A supported evm chain id
|
|
2278
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2149
2279
|
*/
|
|
2150
2280
|
chainId: string;
|
|
2151
2281
|
/**
|
|
@@ -2177,7 +2307,7 @@ declare class EvmTransactionsService {
|
|
|
2177
2307
|
*/
|
|
2178
2308
|
getTransaction({ chainId, txHash, }: {
|
|
2179
2309
|
/**
|
|
2180
|
-
* A supported evm chain id
|
|
2310
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2181
2311
|
*/
|
|
2182
2312
|
chainId: string;
|
|
2183
2313
|
/**
|
|
@@ -2193,7 +2323,7 @@ declare class EvmTransactionsService {
|
|
|
2193
2323
|
*/
|
|
2194
2324
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2195
2325
|
/**
|
|
2196
|
-
* A supported evm chain id
|
|
2326
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2197
2327
|
*/
|
|
2198
2328
|
chainId: string;
|
|
2199
2329
|
/**
|
|
@@ -2209,7 +2339,7 @@ declare class EvmTransactionsService {
|
|
|
2209
2339
|
*/
|
|
2210
2340
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2211
2341
|
/**
|
|
2212
|
-
* A supported evm chain id
|
|
2342
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2213
2343
|
*/
|
|
2214
2344
|
chainId: string;
|
|
2215
2345
|
/**
|
|
@@ -2262,7 +2392,7 @@ declare class NfTsService {
|
|
|
2262
2392
|
*/
|
|
2263
2393
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2264
2394
|
/**
|
|
2265
|
-
* A supported evm chain id
|
|
2395
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2266
2396
|
*/
|
|
2267
2397
|
chainId: string;
|
|
2268
2398
|
/**
|
|
@@ -2282,7 +2412,7 @@ declare class NfTsService {
|
|
|
2282
2412
|
*/
|
|
2283
2413
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2284
2414
|
/**
|
|
2285
|
-
* A supported evm chain id
|
|
2415
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2286
2416
|
*/
|
|
2287
2417
|
chainId: string;
|
|
2288
2418
|
/**
|
|
@@ -2306,7 +2436,7 @@ declare class NfTsService {
|
|
|
2306
2436
|
*/
|
|
2307
2437
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2308
2438
|
/**
|
|
2309
|
-
* A supported evm chain id
|
|
2439
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2310
2440
|
*/
|
|
2311
2441
|
chainId: string;
|
|
2312
2442
|
/**
|
|
@@ -2331,16 +2461,16 @@ declare enum EVMOperationType {
|
|
|
2331
2461
|
|
|
2332
2462
|
type CreateEvmTransactionExportRequest = {
|
|
2333
2463
|
type: EVMOperationType;
|
|
2334
|
-
firstDate
|
|
2335
|
-
lastDate
|
|
2464
|
+
firstDate?: string;
|
|
2465
|
+
lastDate?: string;
|
|
2336
2466
|
/**
|
|
2337
2467
|
* @deprecated
|
|
2338
2468
|
*/
|
|
2339
|
-
startDate
|
|
2469
|
+
startDate?: string;
|
|
2340
2470
|
/**
|
|
2341
2471
|
* @deprecated
|
|
2342
2472
|
*/
|
|
2343
|
-
endDate
|
|
2473
|
+
endDate?: string;
|
|
2344
2474
|
options: EvmNetworkOptions;
|
|
2345
2475
|
};
|
|
2346
2476
|
|
|
@@ -2353,21 +2483,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2353
2483
|
type PrimaryNetworkOptions = {
|
|
2354
2484
|
addresses?: Array<string>;
|
|
2355
2485
|
cChainEvmAddresses?: Array<string>;
|
|
2356
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2486
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2357
2487
|
};
|
|
2358
2488
|
|
|
2359
2489
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2360
2490
|
type: PrimaryNetworkOperationType;
|
|
2361
|
-
firstDate
|
|
2362
|
-
lastDate
|
|
2491
|
+
firstDate?: string;
|
|
2492
|
+
lastDate?: string;
|
|
2363
2493
|
/**
|
|
2364
2494
|
* @deprecated
|
|
2365
2495
|
*/
|
|
2366
|
-
startDate
|
|
2496
|
+
startDate?: string;
|
|
2367
2497
|
/**
|
|
2368
2498
|
* @deprecated
|
|
2369
2499
|
*/
|
|
2370
|
-
endDate
|
|
2500
|
+
endDate?: string;
|
|
2371
2501
|
options: PrimaryNetworkOptions;
|
|
2372
2502
|
};
|
|
2373
2503
|
|
|
@@ -2445,8 +2575,10 @@ declare enum BlockchainIds {
|
|
|
2445
2575
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2446
2576
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2447
2577
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2578
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2448
2579
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2449
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2580
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2581
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2450
2582
|
}
|
|
2451
2583
|
|
|
2452
2584
|
type ChainAddressChainIdMap = {
|
|
@@ -2695,6 +2827,7 @@ type CompletedValidatorDetails = {
|
|
|
2695
2827
|
*/
|
|
2696
2828
|
blsCredentials?: BlsCredentials;
|
|
2697
2829
|
delegatorCount: number;
|
|
2830
|
+
amountDelegated?: string;
|
|
2698
2831
|
rewards: Rewards;
|
|
2699
2832
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2700
2833
|
};
|
|
@@ -2757,11 +2890,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2757
2890
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2758
2891
|
};
|
|
2759
2892
|
|
|
2760
|
-
declare enum Network {
|
|
2761
|
-
MAINNET = "mainnet",
|
|
2762
|
-
FUJI = "fuji"
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
2893
|
declare enum SortByOption {
|
|
2766
2894
|
BLOCK_INDEX = "blockIndex",
|
|
2767
2895
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2821,6 +2949,7 @@ type XChainAssetDetails = {
|
|
|
2821
2949
|
declare enum XChainId {
|
|
2822
2950
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2823
2951
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2952
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2824
2953
|
X_CHAIN = "x-chain"
|
|
2825
2954
|
}
|
|
2826
2955
|
|
|
@@ -2839,7 +2968,7 @@ declare class PrimaryNetworkService {
|
|
|
2839
2968
|
*/
|
|
2840
2969
|
blockchainId: XChainId;
|
|
2841
2970
|
/**
|
|
2842
|
-
* Either mainnet or
|
|
2971
|
+
* Either mainnet or testnet/fuji.
|
|
2843
2972
|
*/
|
|
2844
2973
|
network: Network;
|
|
2845
2974
|
/**
|
|
@@ -2859,7 +2988,7 @@ declare class PrimaryNetworkService {
|
|
|
2859
2988
|
*/
|
|
2860
2989
|
addresses: string;
|
|
2861
2990
|
/**
|
|
2862
|
-
* Either mainnet or
|
|
2991
|
+
* Either mainnet or testnet/fuji.
|
|
2863
2992
|
*/
|
|
2864
2993
|
network: Network;
|
|
2865
2994
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
@@ -2871,7 +3000,7 @@ declare class PrimaryNetworkService {
|
|
|
2871
3000
|
*/
|
|
2872
3001
|
getNetworkDetails({ network, }: {
|
|
2873
3002
|
/**
|
|
2874
|
-
* Either mainnet or
|
|
3003
|
+
* Either mainnet or testnet/fuji.
|
|
2875
3004
|
*/
|
|
2876
3005
|
network: Network;
|
|
2877
3006
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
@@ -2883,7 +3012,7 @@ declare class PrimaryNetworkService {
|
|
|
2883
3012
|
*/
|
|
2884
3013
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2885
3014
|
/**
|
|
2886
|
-
* Either mainnet or
|
|
3015
|
+
* Either mainnet or testnet/fuji.
|
|
2887
3016
|
*/
|
|
2888
3017
|
network: Network;
|
|
2889
3018
|
/**
|
|
@@ -2907,7 +3036,7 @@ declare class PrimaryNetworkService {
|
|
|
2907
3036
|
*/
|
|
2908
3037
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2909
3038
|
/**
|
|
2910
|
-
* Either mainnet or
|
|
3039
|
+
* Either mainnet or testnet/fuji.
|
|
2911
3040
|
*/
|
|
2912
3041
|
network: Network;
|
|
2913
3042
|
/**
|
|
@@ -2931,7 +3060,7 @@ declare class PrimaryNetworkService {
|
|
|
2931
3060
|
*/
|
|
2932
3061
|
getSubnetById({ network, subnetId, }: {
|
|
2933
3062
|
/**
|
|
2934
|
-
* Either mainnet or
|
|
3063
|
+
* Either mainnet or testnet/fuji.
|
|
2935
3064
|
*/
|
|
2936
3065
|
network: Network;
|
|
2937
3066
|
/**
|
|
@@ -2947,7 +3076,7 @@ declare class PrimaryNetworkService {
|
|
|
2947
3076
|
*/
|
|
2948
3077
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2949
3078
|
/**
|
|
2950
|
-
* Either mainnet or
|
|
3079
|
+
* Either mainnet or testnet/fuji.
|
|
2951
3080
|
*/
|
|
2952
3081
|
network: Network;
|
|
2953
3082
|
/**
|
|
@@ -3021,7 +3150,7 @@ declare class PrimaryNetworkService {
|
|
|
3021
3150
|
*/
|
|
3022
3151
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
3023
3152
|
/**
|
|
3024
|
-
* Either mainnet or
|
|
3153
|
+
* Either mainnet or testnet/fuji.
|
|
3025
3154
|
*/
|
|
3026
3155
|
network: Network;
|
|
3027
3156
|
/**
|
|
@@ -3053,7 +3182,7 @@ declare class PrimaryNetworkService {
|
|
|
3053
3182
|
*/
|
|
3054
3183
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
3055
3184
|
/**
|
|
3056
|
-
* Either mainnet or
|
|
3185
|
+
* Either mainnet or testnet/fuji.
|
|
3057
3186
|
*/
|
|
3058
3187
|
network: Network;
|
|
3059
3188
|
/**
|
|
@@ -3087,8 +3216,10 @@ declare enum BlockchainId {
|
|
|
3087
3216
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3088
3217
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3089
3218
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3219
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3090
3220
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3091
3221
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3222
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3092
3223
|
P_CHAIN = "p-chain",
|
|
3093
3224
|
X_CHAIN = "x-chain",
|
|
3094
3225
|
C_CHAIN = "c-chain"
|
|
@@ -3127,7 +3258,8 @@ type CChainAtomicBalances = {
|
|
|
3127
3258
|
|
|
3128
3259
|
declare enum PrimaryNetwork {
|
|
3129
3260
|
MAINNET = "mainnet",
|
|
3130
|
-
FUJI = "fuji"
|
|
3261
|
+
FUJI = "fuji",
|
|
3262
|
+
DEVNET = "devnet"
|
|
3131
3263
|
}
|
|
3132
3264
|
|
|
3133
3265
|
declare enum PrimaryNetworkChainName {
|
|
@@ -3299,7 +3431,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3299
3431
|
*/
|
|
3300
3432
|
blockchainId: BlockchainId;
|
|
3301
3433
|
/**
|
|
3302
|
-
* Either mainnet or
|
|
3434
|
+
* Either mainnet or testnet/fuji.
|
|
3303
3435
|
*/
|
|
3304
3436
|
network: Network;
|
|
3305
3437
|
/**
|
|
@@ -3371,7 +3503,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3371
3503
|
*/
|
|
3372
3504
|
blockchainId: BlockchainId;
|
|
3373
3505
|
/**
|
|
3374
|
-
* Either mainnet or
|
|
3506
|
+
* Either mainnet or testnet/fuji.
|
|
3375
3507
|
*/
|
|
3376
3508
|
network: Network;
|
|
3377
3509
|
/**
|
|
@@ -3391,7 +3523,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3391
3523
|
*/
|
|
3392
3524
|
blockchainId: BlockchainId;
|
|
3393
3525
|
/**
|
|
3394
|
-
* Either mainnet or
|
|
3526
|
+
* Either mainnet or testnet/fuji.
|
|
3395
3527
|
*/
|
|
3396
3528
|
network: Network;
|
|
3397
3529
|
/**
|
|
@@ -3419,7 +3551,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3419
3551
|
*/
|
|
3420
3552
|
blockchainId: BlockchainId;
|
|
3421
3553
|
/**
|
|
3422
|
-
* Either mainnet or
|
|
3554
|
+
* Either mainnet or testnet/fuji.
|
|
3423
3555
|
*/
|
|
3424
3556
|
network: Network;
|
|
3425
3557
|
/**
|
|
@@ -3553,7 +3685,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3553
3685
|
*/
|
|
3554
3686
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3555
3687
|
/**
|
|
3556
|
-
* Either mainnet or
|
|
3688
|
+
* Either mainnet or testnet/fuji.
|
|
3557
3689
|
*/
|
|
3558
3690
|
network: Network;
|
|
3559
3691
|
/**
|
|
@@ -3585,7 +3717,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3585
3717
|
*/
|
|
3586
3718
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3587
3719
|
/**
|
|
3588
|
-
* Either mainnet or
|
|
3720
|
+
* Either mainnet or testnet/fuji.
|
|
3589
3721
|
*/
|
|
3590
3722
|
network: Network;
|
|
3591
3723
|
/**
|
|
@@ -4176,7 +4308,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4176
4308
|
*/
|
|
4177
4309
|
blockchainId: BlockchainId;
|
|
4178
4310
|
/**
|
|
4179
|
-
* Either mainnet or
|
|
4311
|
+
* Either mainnet or testnet/fuji.
|
|
4180
4312
|
*/
|
|
4181
4313
|
network: Network;
|
|
4182
4314
|
/**
|
|
@@ -4194,19 +4326,19 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4194
4326
|
* @returns any Successful response
|
|
4195
4327
|
* @throws ApiError
|
|
4196
4328
|
*/
|
|
4197
|
-
listLatestPrimaryNetworkTransactions({
|
|
4198
|
-
/**
|
|
4199
|
-
* 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.
|
|
4200
|
-
*/
|
|
4201
|
-
addresses: string;
|
|
4329
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4202
4330
|
/**
|
|
4203
4331
|
* A primary network blockchain id or alias.
|
|
4204
4332
|
*/
|
|
4205
4333
|
blockchainId: BlockchainId;
|
|
4206
4334
|
/**
|
|
4207
|
-
* Either mainnet or
|
|
4335
|
+
* Either mainnet or testnet/fuji.
|
|
4208
4336
|
*/
|
|
4209
4337
|
network: Network;
|
|
4338
|
+
/**
|
|
4339
|
+
* 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.
|
|
4340
|
+
*/
|
|
4341
|
+
addresses?: string;
|
|
4210
4342
|
/**
|
|
4211
4343
|
* Query param for filtering items based on transaction types.
|
|
4212
4344
|
*/
|
|
@@ -4244,7 +4376,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4244
4376
|
*/
|
|
4245
4377
|
blockchainId: PChainId;
|
|
4246
4378
|
/**
|
|
4247
|
-
* Either mainnet or
|
|
4379
|
+
* Either mainnet or testnet/fuji.
|
|
4248
4380
|
*/
|
|
4249
4381
|
network: Network;
|
|
4250
4382
|
/**
|
|
@@ -4288,7 +4420,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4288
4420
|
*/
|
|
4289
4421
|
blockchainId: XChainId;
|
|
4290
4422
|
/**
|
|
4291
|
-
* Either mainnet or
|
|
4423
|
+
* Either mainnet or testnet/fuji.
|
|
4292
4424
|
*/
|
|
4293
4425
|
network: Network;
|
|
4294
4426
|
/**
|
|
@@ -4351,7 +4483,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4351
4483
|
*/
|
|
4352
4484
|
blockchainId: BlockchainId;
|
|
4353
4485
|
/**
|
|
4354
|
-
* Either mainnet or
|
|
4486
|
+
* Either mainnet or testnet/fuji.
|
|
4355
4487
|
*/
|
|
4356
4488
|
network: Network;
|
|
4357
4489
|
/**
|
|
@@ -4416,7 +4548,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4416
4548
|
*/
|
|
4417
4549
|
blockchainId: XChainId;
|
|
4418
4550
|
/**
|
|
4419
|
-
* Either mainnet or
|
|
4551
|
+
* Either mainnet or testnet/fuji.
|
|
4420
4552
|
*/
|
|
4421
4553
|
network: Network;
|
|
4422
4554
|
/**
|
|
@@ -4444,7 +4576,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4444
4576
|
*/
|
|
4445
4577
|
blockchainId: XChainId;
|
|
4446
4578
|
/**
|
|
4447
|
-
* Either mainnet or
|
|
4579
|
+
* Either mainnet or testnet/fuji.
|
|
4448
4580
|
*/
|
|
4449
4581
|
network: Network;
|
|
4450
4582
|
}): CancelablePromise<XChainVertex>;
|
|
@@ -4464,7 +4596,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4464
4596
|
*/
|
|
4465
4597
|
blockchainId: XChainId;
|
|
4466
4598
|
/**
|
|
4467
|
-
* Either mainnet or
|
|
4599
|
+
* Either mainnet or testnet/fuji.
|
|
4468
4600
|
*/
|
|
4469
4601
|
network: Network;
|
|
4470
4602
|
/**
|
|
@@ -4518,13 +4650,44 @@ declare class RpcService {
|
|
|
4518
4650
|
*/
|
|
4519
4651
|
rpc({ chainId, requestBody, }: {
|
|
4520
4652
|
/**
|
|
4521
|
-
* A supported evm chain id
|
|
4653
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4522
4654
|
*/
|
|
4523
4655
|
chainId: string;
|
|
4524
4656
|
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4525
4657
|
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4526
4658
|
}
|
|
4527
4659
|
|
|
4660
|
+
type SignatureAggregationResponse = {
|
|
4661
|
+
signedMessage: string;
|
|
4662
|
+
};
|
|
4663
|
+
|
|
4664
|
+
type SignatureAggregatorRequest = {
|
|
4665
|
+
/**
|
|
4666
|
+
* Must be defined if justification is not defined
|
|
4667
|
+
*/
|
|
4668
|
+
message?: string;
|
|
4669
|
+
/**
|
|
4670
|
+
* Must be defined if message is not defined
|
|
4671
|
+
*/
|
|
4672
|
+
justification?: string;
|
|
4673
|
+
signingSubnetId?: string;
|
|
4674
|
+
quorumPercentage?: number;
|
|
4675
|
+
};
|
|
4676
|
+
|
|
4677
|
+
declare class SignatureAggregatorService {
|
|
4678
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4679
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4680
|
+
/**
|
|
4681
|
+
* Aggregate Signatures
|
|
4682
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
4683
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4684
|
+
* @throws ApiError
|
|
4685
|
+
*/
|
|
4686
|
+
aggregateSignatures({ requestBody, }: {
|
|
4687
|
+
requestBody: SignatureAggregatorRequest;
|
|
4688
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4689
|
+
}
|
|
4690
|
+
|
|
4528
4691
|
type TeleporterDestinationTransaction = {
|
|
4529
4692
|
txHash: string;
|
|
4530
4693
|
timestamp: number;
|
|
@@ -4710,9 +4873,9 @@ declare class TeleporterService {
|
|
|
4710
4873
|
*/
|
|
4711
4874
|
from?: string;
|
|
4712
4875
|
/**
|
|
4713
|
-
* mainnet or testnet.
|
|
4876
|
+
* Either mainnet or testnet/fuji.
|
|
4714
4877
|
*/
|
|
4715
|
-
network?:
|
|
4878
|
+
network?: Network;
|
|
4716
4879
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4717
4880
|
/**
|
|
4718
4881
|
* List teleporter messages by address
|
|
@@ -4734,9 +4897,9 @@ declare class TeleporterService {
|
|
|
4734
4897
|
*/
|
|
4735
4898
|
pageSize?: number;
|
|
4736
4899
|
/**
|
|
4737
|
-
* mainnet or testnet.
|
|
4900
|
+
* Either mainnet or testnet/fuji.
|
|
4738
4901
|
*/
|
|
4739
|
-
network?:
|
|
4902
|
+
network?: Network;
|
|
4740
4903
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4741
4904
|
}
|
|
4742
4905
|
|
|
@@ -4990,6 +5153,7 @@ declare class Glacier {
|
|
|
4990
5153
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4991
5154
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4992
5155
|
readonly rpc: RpcService;
|
|
5156
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4993
5157
|
readonly teleporter: TeleporterService;
|
|
4994
5158
|
readonly webhooks: WebhooksService;
|
|
4995
5159
|
readonly request: BaseHttpRequest;
|
|
@@ -5144,4 +5308,4 @@ type Unauthorized = {
|
|
|
5144
5308
|
error: string;
|
|
5145
5309
|
};
|
|
5146
5310
|
|
|
5147
|
-
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,
|
|
5311
|
+
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, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|