@avalabs/glacier-sdk 2.8.0-canary.f6c173d.0 → 2.8.0-canary.f701e46.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 +1013 -423
- package/dist/index.js +463 -176
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +41 -36
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +25 -9
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +8 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/WebhookResponse.d.ts +25 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +27 -2
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +42 -42
- package/esm/generated/services/PrimaryNetworkService.js +20 -20
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +36 -3
- package/esm/index.js +17 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -23,15 +23,9 @@ interface OnCancel {
|
|
|
23
23
|
(cancelHandler: () => void): void;
|
|
24
24
|
}
|
|
25
25
|
declare class CancelablePromise<T> implements Promise<T> {
|
|
26
|
-
|
|
27
|
-
private _isResolved;
|
|
28
|
-
private _isRejected;
|
|
29
|
-
private _isCancelled;
|
|
30
|
-
private readonly _cancelHandlers;
|
|
31
|
-
private readonly _promise;
|
|
32
|
-
private _resolve?;
|
|
33
|
-
private _reject?;
|
|
26
|
+
#private;
|
|
34
27
|
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
|
|
28
|
+
get [Symbol.toStringTag](): string;
|
|
35
29
|
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
36
30
|
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
37
31
|
finally(onFinally?: (() => void) | null): Promise<T>;
|
|
@@ -46,11 +40,11 @@ type OpenAPIConfig = {
|
|
|
46
40
|
VERSION: string;
|
|
47
41
|
WITH_CREDENTIALS: boolean;
|
|
48
42
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
49
|
-
TOKEN?: string | Resolver<string
|
|
50
|
-
USERNAME?: string | Resolver<string
|
|
51
|
-
PASSWORD?: string | Resolver<string
|
|
52
|
-
HEADERS?: Headers | Resolver<Headers
|
|
53
|
-
ENCODE_PATH?: (path: string) => string;
|
|
43
|
+
TOKEN?: string | Resolver<string> | undefined;
|
|
44
|
+
USERNAME?: string | Resolver<string> | undefined;
|
|
45
|
+
PASSWORD?: string | Resolver<string> | undefined;
|
|
46
|
+
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
47
|
+
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
54
48
|
};
|
|
55
49
|
declare const OpenAPI: OpenAPIConfig;
|
|
56
50
|
|
|
@@ -70,6 +64,9 @@ declare class DefaultService {
|
|
|
70
64
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
71
65
|
}
|
|
72
66
|
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
73
70
|
declare enum CurrencyCode {
|
|
74
71
|
USD = "usd",
|
|
75
72
|
EUR = "eur",
|
|
@@ -88,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
type Money = {
|
|
91
|
-
/**
|
|
92
|
-
* ISO 4217 currency code.
|
|
93
|
-
*/
|
|
94
88
|
currencyCode: CurrencyCode;
|
|
95
89
|
/**
|
|
96
90
|
* Monetary value in base 10 decimals.
|
|
@@ -140,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
140
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
141
135
|
};
|
|
142
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
143
140
|
declare enum NftTokenMetadataStatus {
|
|
144
141
|
UNKNOWN = "UNKNOWN",
|
|
145
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -155,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
155
152
|
}
|
|
156
153
|
|
|
157
154
|
type Erc1155TokenMetadata = {
|
|
158
|
-
/**
|
|
159
|
-
* The metadata indexing status of the nft.
|
|
160
|
-
*/
|
|
161
155
|
indexStatus: NftTokenMetadataStatus;
|
|
162
156
|
metadataLastUpdatedTimestamp?: number;
|
|
163
157
|
name?: string;
|
|
@@ -196,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
196
190
|
}
|
|
197
191
|
|
|
198
192
|
type Erc721TokenMetadata = {
|
|
199
|
-
/**
|
|
200
|
-
* The metadata indexing status of the nft.
|
|
201
|
-
*/
|
|
202
193
|
indexStatus: NftTokenMetadataStatus;
|
|
203
194
|
metadataLastUpdatedTimestamp?: number;
|
|
204
195
|
name?: string;
|
|
@@ -345,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
345
336
|
*/
|
|
346
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
347
338
|
/**
|
|
348
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
349
340
|
*/
|
|
350
341
|
chainId: string;
|
|
351
342
|
/**
|
|
@@ -371,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
371
362
|
* @returns ListErc20BalancesResponse
|
|
372
363
|
* @throws ApiError
|
|
373
364
|
*/
|
|
374
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
375
366
|
/**
|
|
376
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
377
368
|
*/
|
|
378
369
|
chainId: string;
|
|
379
370
|
/**
|
|
@@ -384,14 +375,14 @@ declare class EvmBalancesService {
|
|
|
384
375
|
* The block number, if not defined the block number will be the latest block.
|
|
385
376
|
*/
|
|
386
377
|
blockNumber?: string;
|
|
387
|
-
/**
|
|
388
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
389
|
-
*/
|
|
390
|
-
pageSize?: number;
|
|
391
378
|
/**
|
|
392
379
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
393
380
|
*/
|
|
394
381
|
pageToken?: string;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
|
+
*/
|
|
385
|
+
pageSize?: number;
|
|
395
386
|
/**
|
|
396
387
|
* A comma separated list of contract addresses to filter by.
|
|
397
388
|
*/
|
|
@@ -409,23 +400,23 @@ declare class EvmBalancesService {
|
|
|
409
400
|
* @returns ListErc721BalancesResponse
|
|
410
401
|
* @throws ApiError
|
|
411
402
|
*/
|
|
412
|
-
listErc721Balances({ chainId, address,
|
|
403
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
413
404
|
/**
|
|
414
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
415
406
|
*/
|
|
416
407
|
chainId: string;
|
|
417
408
|
/**
|
|
418
409
|
* A wallet address.
|
|
419
410
|
*/
|
|
420
411
|
address: string;
|
|
421
|
-
/**
|
|
422
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
423
|
-
*/
|
|
424
|
-
pageSize?: number;
|
|
425
412
|
/**
|
|
426
413
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
427
414
|
*/
|
|
428
415
|
pageToken?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
418
|
+
*/
|
|
419
|
+
pageSize?: number;
|
|
429
420
|
/**
|
|
430
421
|
* A contract addresses to filter by.
|
|
431
422
|
*/
|
|
@@ -441,9 +432,9 @@ declare class EvmBalancesService {
|
|
|
441
432
|
* @returns ListErc1155BalancesResponse
|
|
442
433
|
* @throws ApiError
|
|
443
434
|
*/
|
|
444
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
435
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
445
436
|
/**
|
|
446
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
447
438
|
*/
|
|
448
439
|
chainId: string;
|
|
449
440
|
/**
|
|
@@ -454,14 +445,14 @@ declare class EvmBalancesService {
|
|
|
454
445
|
* The block number, if not defined the block number will be the latest block.
|
|
455
446
|
*/
|
|
456
447
|
blockNumber?: string;
|
|
457
|
-
/**
|
|
458
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
459
|
-
*/
|
|
460
|
-
pageSize?: number;
|
|
461
448
|
/**
|
|
462
449
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
463
450
|
*/
|
|
464
451
|
pageToken?: string;
|
|
452
|
+
/**
|
|
453
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
454
|
+
*/
|
|
455
|
+
pageSize?: number;
|
|
465
456
|
/**
|
|
466
457
|
* A contract addresses to filter by.
|
|
467
458
|
*/
|
|
@@ -475,23 +466,23 @@ declare class EvmBalancesService {
|
|
|
475
466
|
* @returns ListCollectibleBalancesResponse
|
|
476
467
|
* @throws ApiError
|
|
477
468
|
*/
|
|
478
|
-
listCollectibleBalances({ chainId, address,
|
|
469
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
479
470
|
/**
|
|
480
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
481
472
|
*/
|
|
482
473
|
chainId: string;
|
|
483
474
|
/**
|
|
484
475
|
* A wallet address.
|
|
485
476
|
*/
|
|
486
477
|
address: string;
|
|
487
|
-
/**
|
|
488
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
489
|
-
*/
|
|
490
|
-
pageSize?: number;
|
|
491
478
|
/**
|
|
492
479
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
493
480
|
*/
|
|
494
481
|
pageToken?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
484
|
+
*/
|
|
485
|
+
pageSize?: number;
|
|
495
486
|
/**
|
|
496
487
|
* A contract addresses to filter by.
|
|
497
488
|
*/
|
|
@@ -604,19 +595,19 @@ declare class EvmBlocksService {
|
|
|
604
595
|
* @returns ListEvmBlocksResponse
|
|
605
596
|
* @throws ApiError
|
|
606
597
|
*/
|
|
607
|
-
getLatestBlocks({ chainId,
|
|
598
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
608
599
|
/**
|
|
609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
610
601
|
*/
|
|
611
602
|
chainId: string;
|
|
612
|
-
/**
|
|
613
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
614
|
-
*/
|
|
615
|
-
pageSize?: number;
|
|
616
603
|
/**
|
|
617
604
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
618
605
|
*/
|
|
619
606
|
pageToken?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
609
|
+
*/
|
|
610
|
+
pageSize?: number;
|
|
620
611
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
621
612
|
/**
|
|
622
613
|
* Get block
|
|
@@ -626,7 +617,7 @@ declare class EvmBlocksService {
|
|
|
626
617
|
*/
|
|
627
618
|
getBlock({ chainId, blockId, }: {
|
|
628
619
|
/**
|
|
629
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
630
621
|
*/
|
|
631
622
|
chainId: string;
|
|
632
623
|
/**
|
|
@@ -636,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
636
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
637
628
|
}
|
|
638
629
|
|
|
630
|
+
/**
|
|
631
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
632
|
+
*/
|
|
639
633
|
declare enum ChainStatus {
|
|
640
634
|
OK = "OK",
|
|
641
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -673,9 +667,6 @@ declare enum VmName {
|
|
|
673
667
|
|
|
674
668
|
type GetChainResponse = {
|
|
675
669
|
chainId: string;
|
|
676
|
-
/**
|
|
677
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
678
|
-
*/
|
|
679
670
|
status: ChainStatus;
|
|
680
671
|
chainName: string;
|
|
681
672
|
description: string;
|
|
@@ -691,13 +682,15 @@ type GetChainResponse = {
|
|
|
691
682
|
networkToken: NetworkToken;
|
|
692
683
|
chainLogoUri?: string;
|
|
693
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
694
686
|
};
|
|
695
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing"
|
|
690
|
+
}
|
|
691
|
+
|
|
696
692
|
type ChainInfo = {
|
|
697
693
|
chainId: string;
|
|
698
|
-
/**
|
|
699
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
700
|
-
*/
|
|
701
694
|
status: ChainStatus;
|
|
702
695
|
chainName: string;
|
|
703
696
|
description: string;
|
|
@@ -713,6 +706,7 @@ type ChainInfo = {
|
|
|
713
706
|
networkToken: NetworkToken;
|
|
714
707
|
chainLogoUri?: string;
|
|
715
708
|
private?: boolean;
|
|
709
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
716
710
|
};
|
|
717
711
|
|
|
718
712
|
type ListChainsResponse = {
|
|
@@ -733,11 +727,15 @@ declare class EvmChainsService {
|
|
|
733
727
|
* @returns ListChainsResponse
|
|
734
728
|
* @throws ApiError
|
|
735
729
|
*/
|
|
736
|
-
supportedChains({ network, }: {
|
|
730
|
+
supportedChains({ network, feature, }: {
|
|
737
731
|
/**
|
|
738
732
|
* mainnet or testnet.
|
|
739
733
|
*/
|
|
740
734
|
network?: NetworkType;
|
|
735
|
+
/**
|
|
736
|
+
* Filter by feature.
|
|
737
|
+
*/
|
|
738
|
+
feature?: GlacierApiFeature;
|
|
741
739
|
}): CancelablePromise<ListChainsResponse>;
|
|
742
740
|
/**
|
|
743
741
|
* Get chain information
|
|
@@ -747,7 +745,7 @@ declare class EvmChainsService {
|
|
|
747
745
|
*/
|
|
748
746
|
getChainInfo({ chainId, }: {
|
|
749
747
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
748
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
749
|
*/
|
|
752
750
|
chainId: string;
|
|
753
751
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1040,7 @@ declare class EvmContractsService {
|
|
|
1042
1040
|
*/
|
|
1043
1041
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1042
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1043
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1044
|
*/
|
|
1047
1045
|
chainId: string;
|
|
1048
1046
|
/**
|
|
@@ -1058,7 +1056,7 @@ declare class EvmContractsService {
|
|
|
1058
1056
|
*/
|
|
1059
1057
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1058
|
/**
|
|
1061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1059
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
1060
|
*/
|
|
1063
1061
|
chainId: string;
|
|
1064
1062
|
/**
|
|
@@ -1192,6 +1190,9 @@ type Erc721TransferDetails = {
|
|
|
1192
1190
|
erc721Token: Erc721Token;
|
|
1193
1191
|
};
|
|
1194
1192
|
|
|
1193
|
+
/**
|
|
1194
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1195
|
+
*/
|
|
1195
1196
|
declare enum TransactionMethodType {
|
|
1196
1197
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1197
1198
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1199,9 +1200,6 @@ declare enum TransactionMethodType {
|
|
|
1199
1200
|
}
|
|
1200
1201
|
|
|
1201
1202
|
type Method = {
|
|
1202
|
-
/**
|
|
1203
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1204
|
-
*/
|
|
1205
1203
|
callType: TransactionMethodType;
|
|
1206
1204
|
/**
|
|
1207
1205
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1562,7 +1560,7 @@ type ListTransfersResponse = {
|
|
|
1562
1560
|
* 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.
|
|
1563
1561
|
*/
|
|
1564
1562
|
nextPageToken?: string;
|
|
1565
|
-
transfers:
|
|
1563
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1566
1564
|
};
|
|
1567
1565
|
|
|
1568
1566
|
declare enum SortOrder {
|
|
@@ -1586,7 +1584,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1584
|
*/
|
|
1587
1585
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1586
|
/**
|
|
1589
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1587
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1590
1588
|
*/
|
|
1591
1589
|
chainId: string;
|
|
1592
1590
|
/**
|
|
@@ -1604,23 +1602,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1602
|
* @returns ListContractsResponse
|
|
1605
1603
|
* @throws ApiError
|
|
1606
1604
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1605
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1606
|
/**
|
|
1609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1607
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1610
1608
|
*/
|
|
1611
1609
|
chainId: string;
|
|
1612
1610
|
/**
|
|
1613
1611
|
* A wallet address.
|
|
1614
1612
|
*/
|
|
1615
1613
|
address: string;
|
|
1616
|
-
/**
|
|
1617
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1618
|
-
*/
|
|
1619
|
-
pageSize?: number;
|
|
1620
1614
|
/**
|
|
1621
1615
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1616
|
*/
|
|
1623
1617
|
pageToken?: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1620
|
+
*/
|
|
1621
|
+
pageSize?: number;
|
|
1624
1622
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1623
|
/**
|
|
1626
1624
|
* List ERC transfers
|
|
@@ -1628,25 +1626,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1626
|
* @returns ListTransfersResponse
|
|
1629
1627
|
* @throws ApiError
|
|
1630
1628
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1629
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1630
|
/**
|
|
1633
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1631
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1634
1632
|
*/
|
|
1635
1633
|
chainId: string;
|
|
1636
1634
|
/**
|
|
1637
1635
|
* A wallet address.
|
|
1638
1636
|
*/
|
|
1639
1637
|
address: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1640
|
+
*/
|
|
1640
1641
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1642
|
/**
|
|
1643
|
-
* The
|
|
1643
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1644
1644
|
*/
|
|
1645
|
-
|
|
1645
|
+
endBlock?: number;
|
|
1646
1646
|
/**
|
|
1647
1647
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1648
|
*/
|
|
1649
1649
|
pageToken?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1652
|
+
*/
|
|
1653
|
+
pageSize?: number;
|
|
1650
1654
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1655
|
/**
|
|
1652
1656
|
* List transactions
|
|
@@ -1656,24 +1660,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1660
|
* @returns ListTransactionDetailsResponse
|
|
1657
1661
|
* @throws ApiError
|
|
1658
1662
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1663
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1664
|
/**
|
|
1661
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1665
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1662
1666
|
*/
|
|
1663
1667
|
chainId: string;
|
|
1664
1668
|
/**
|
|
1665
1669
|
* A wallet address.
|
|
1666
1670
|
*/
|
|
1667
1671
|
address: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1674
|
+
*/
|
|
1675
|
+
pageToken?: string;
|
|
1668
1676
|
/**
|
|
1669
1677
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1678
|
*/
|
|
1671
1679
|
pageSize?: number;
|
|
1672
1680
|
/**
|
|
1673
|
-
*
|
|
1681
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1674
1682
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
1683
|
startBlock?: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1686
|
+
*/
|
|
1677
1687
|
endBlock?: number;
|
|
1678
1688
|
/**
|
|
1679
1689
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -1686,25 +1696,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1696
|
* @returns ListNativeTransactionsResponse
|
|
1687
1697
|
* @throws ApiError
|
|
1688
1698
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1699
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1700
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1701
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1702
|
*/
|
|
1693
1703
|
chainId: string;
|
|
1694
1704
|
/**
|
|
1695
1705
|
* A wallet address.
|
|
1696
1706
|
*/
|
|
1697
1707
|
address: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1710
|
+
*/
|
|
1698
1711
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1712
|
/**
|
|
1701
|
-
* The
|
|
1713
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1702
1714
|
*/
|
|
1703
|
-
|
|
1715
|
+
endBlock?: number;
|
|
1704
1716
|
/**
|
|
1705
1717
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1718
|
*/
|
|
1707
1719
|
pageToken?: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1722
|
+
*/
|
|
1723
|
+
pageSize?: number;
|
|
1708
1724
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1725
|
/**
|
|
1710
1726
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1728,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1728
|
* @returns ListErc20TransactionsResponse
|
|
1713
1729
|
* @throws ApiError
|
|
1714
1730
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1731
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1732
|
/**
|
|
1717
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1733
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1718
1734
|
*/
|
|
1719
1735
|
chainId: string;
|
|
1720
1736
|
/**
|
|
1721
1737
|
* A wallet address.
|
|
1722
1738
|
*/
|
|
1723
1739
|
address: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1742
|
+
*/
|
|
1724
1743
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1744
|
/**
|
|
1727
|
-
* The
|
|
1745
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1728
1746
|
*/
|
|
1729
|
-
|
|
1747
|
+
endBlock?: number;
|
|
1730
1748
|
/**
|
|
1731
1749
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1750
|
*/
|
|
1733
1751
|
pageToken?: string;
|
|
1752
|
+
/**
|
|
1753
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1754
|
+
*/
|
|
1755
|
+
pageSize?: number;
|
|
1734
1756
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1757
|
/**
|
|
1736
1758
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1760,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1760
|
* @returns ListErc721TransactionsResponse
|
|
1739
1761
|
* @throws ApiError
|
|
1740
1762
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1763
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1764
|
/**
|
|
1743
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1744
1766
|
*/
|
|
1745
1767
|
chainId: string;
|
|
1746
1768
|
/**
|
|
1747
1769
|
* A wallet address.
|
|
1748
1770
|
*/
|
|
1749
1771
|
address: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1774
|
+
*/
|
|
1750
1775
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1776
|
/**
|
|
1753
|
-
* The
|
|
1777
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1754
1778
|
*/
|
|
1755
|
-
|
|
1779
|
+
endBlock?: number;
|
|
1756
1780
|
/**
|
|
1757
1781
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1782
|
*/
|
|
1759
1783
|
pageToken?: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1786
|
+
*/
|
|
1787
|
+
pageSize?: number;
|
|
1760
1788
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1789
|
/**
|
|
1762
1790
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1792,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1792
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1793
|
* @throws ApiError
|
|
1766
1794
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1795
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1796
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1797
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1798
|
*/
|
|
1771
1799
|
chainId: string;
|
|
1772
1800
|
/**
|
|
1773
1801
|
* A wallet address.
|
|
1774
1802
|
*/
|
|
1775
1803
|
address: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1806
|
+
*/
|
|
1776
1807
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1808
|
/**
|
|
1779
|
-
* The
|
|
1809
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1780
1810
|
*/
|
|
1781
|
-
|
|
1811
|
+
endBlock?: number;
|
|
1782
1812
|
/**
|
|
1783
1813
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1814
|
*/
|
|
1785
1815
|
pageToken?: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1818
|
+
*/
|
|
1819
|
+
pageSize?: number;
|
|
1786
1820
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1821
|
/**
|
|
1788
1822
|
* List internal transactions
|
|
@@ -1792,25 +1826,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1826
|
* @returns ListInternalTransactionsResponse
|
|
1793
1827
|
* @throws ApiError
|
|
1794
1828
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1829
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1830
|
/**
|
|
1797
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1831
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
1832
|
*/
|
|
1799
1833
|
chainId: string;
|
|
1800
1834
|
/**
|
|
1801
1835
|
* A wallet address.
|
|
1802
1836
|
*/
|
|
1803
1837
|
address: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1840
|
+
*/
|
|
1804
1841
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1842
|
/**
|
|
1807
|
-
* The
|
|
1843
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1808
1844
|
*/
|
|
1809
|
-
|
|
1845
|
+
endBlock?: number;
|
|
1810
1846
|
/**
|
|
1811
1847
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1848
|
*/
|
|
1813
1849
|
pageToken?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1852
|
+
*/
|
|
1853
|
+
pageSize?: number;
|
|
1814
1854
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1855
|
/**
|
|
1816
1856
|
* Get transaction
|
|
@@ -1820,7 +1860,7 @@ declare class EvmTransactionsService {
|
|
|
1820
1860
|
*/
|
|
1821
1861
|
getTransaction({ chainId, txHash, }: {
|
|
1822
1862
|
/**
|
|
1823
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1863
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1824
1864
|
*/
|
|
1825
1865
|
chainId: string;
|
|
1826
1866
|
/**
|
|
@@ -1836,7 +1876,7 @@ declare class EvmTransactionsService {
|
|
|
1836
1876
|
*/
|
|
1837
1877
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
1878
|
/**
|
|
1839
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1879
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1840
1880
|
*/
|
|
1841
1881
|
chainId: string;
|
|
1842
1882
|
/**
|
|
@@ -1850,19 +1890,19 @@ declare class EvmTransactionsService {
|
|
|
1850
1890
|
* @returns ListNativeTransactionsResponse
|
|
1851
1891
|
* @throws ApiError
|
|
1852
1892
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
1893
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
1894
|
/**
|
|
1855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1895
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1856
1896
|
*/
|
|
1857
1897
|
chainId: string;
|
|
1858
|
-
/**
|
|
1859
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1860
|
-
*/
|
|
1861
|
-
pageSize?: number;
|
|
1862
1898
|
/**
|
|
1863
1899
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
1900
|
*/
|
|
1865
1901
|
pageToken?: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1904
|
+
*/
|
|
1905
|
+
pageSize?: number;
|
|
1866
1906
|
/**
|
|
1867
1907
|
* A status filter for listed transactions.
|
|
1868
1908
|
*/
|
|
@@ -1886,6 +1926,14 @@ declare class HealthCheckService {
|
|
|
1886
1926
|
}>;
|
|
1887
1927
|
}
|
|
1888
1928
|
|
|
1929
|
+
type ListNftTokens = {
|
|
1930
|
+
/**
|
|
1931
|
+
* 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.
|
|
1932
|
+
*/
|
|
1933
|
+
nextPageToken?: string;
|
|
1934
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1889
1937
|
declare class NfTsService {
|
|
1890
1938
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
1939
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1897,7 +1945,7 @@ declare class NfTsService {
|
|
|
1897
1945
|
*/
|
|
1898
1946
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
1947
|
/**
|
|
1900
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1948
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
1949
|
*/
|
|
1902
1950
|
chainId: string;
|
|
1903
1951
|
/**
|
|
@@ -1909,6 +1957,30 @@ declare class NfTsService {
|
|
|
1909
1957
|
*/
|
|
1910
1958
|
tokenId: string;
|
|
1911
1959
|
}): CancelablePromise<any>;
|
|
1960
|
+
/**
|
|
1961
|
+
* List tokens
|
|
1962
|
+
* Lists tokens for an NFT contract.
|
|
1963
|
+
* @returns ListNftTokens
|
|
1964
|
+
* @throws ApiError
|
|
1965
|
+
*/
|
|
1966
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1967
|
+
/**
|
|
1968
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1969
|
+
*/
|
|
1970
|
+
chainId: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* Contract address on the relevant chain.
|
|
1973
|
+
*/
|
|
1974
|
+
address: string;
|
|
1975
|
+
/**
|
|
1976
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1977
|
+
*/
|
|
1978
|
+
pageToken?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1981
|
+
*/
|
|
1982
|
+
pageSize?: number;
|
|
1983
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
1984
|
/**
|
|
1913
1985
|
* Get token details
|
|
1914
1986
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1917,7 +1989,7 @@ declare class NfTsService {
|
|
|
1917
1989
|
*/
|
|
1918
1990
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
1991
|
/**
|
|
1920
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1992
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1921
1993
|
*/
|
|
1922
1994
|
chainId: string;
|
|
1923
1995
|
/**
|
|
@@ -1936,8 +2008,12 @@ type EvmNetworkOptions = {
|
|
|
1936
2008
|
includeChains: Array<string>;
|
|
1937
2009
|
};
|
|
1938
2010
|
|
|
2011
|
+
declare enum EVMOperationType {
|
|
2012
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1939
2015
|
type CreateEvmTransactionExportRequest = {
|
|
1940
|
-
type:
|
|
2016
|
+
type: EVMOperationType;
|
|
1941
2017
|
firstDate: string;
|
|
1942
2018
|
lastDate: string;
|
|
1943
2019
|
/**
|
|
@@ -1950,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1950
2026
|
endDate: string;
|
|
1951
2027
|
options: EvmNetworkOptions;
|
|
1952
2028
|
};
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
2029
|
+
|
|
2030
|
+
declare enum PrimaryNetworkOperationType {
|
|
2031
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1957
2034
|
}
|
|
1958
2035
|
|
|
1959
2036
|
type PrimaryNetworkOptions = {
|
|
1960
|
-
addresses
|
|
2037
|
+
addresses?: Array<string>;
|
|
1961
2038
|
cChainEvmAddresses?: Array<string>;
|
|
1962
2039
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1963
2040
|
};
|
|
1964
2041
|
|
|
1965
2042
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1966
|
-
type:
|
|
2043
|
+
type: PrimaryNetworkOperationType;
|
|
1967
2044
|
firstDate: string;
|
|
1968
2045
|
lastDate: string;
|
|
1969
2046
|
/**
|
|
@@ -1976,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1976
2053
|
endDate: string;
|
|
1977
2054
|
options: PrimaryNetworkOptions;
|
|
1978
2055
|
};
|
|
1979
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1980
|
-
enum type {
|
|
1981
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
2056
|
|
|
1985
2057
|
declare enum OperationStatus {
|
|
1986
2058
|
RUNNING = "RUNNING",
|
|
@@ -1990,8 +2062,10 @@ declare enum OperationStatus {
|
|
|
1990
2062
|
}
|
|
1991
2063
|
|
|
1992
2064
|
declare enum OperationType {
|
|
1993
|
-
|
|
1994
|
-
|
|
2065
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2068
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1995
2069
|
}
|
|
1996
2070
|
|
|
1997
2071
|
declare enum OperationStatusCode {
|
|
@@ -2025,17 +2099,6 @@ type OperationStatusResponse = {
|
|
|
2025
2099
|
declare class OperationsService {
|
|
2026
2100
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2101
|
constructor(httpRequest: BaseHttpRequest);
|
|
2028
|
-
/**
|
|
2029
|
-
* Create transaction export operation
|
|
2030
|
-
* Trigger a transaction export operation with given parameters.
|
|
2031
|
-
*
|
|
2032
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2033
|
-
* @returns OperationStatusResponse
|
|
2034
|
-
* @throws ApiError
|
|
2035
|
-
*/
|
|
2036
|
-
postTransactionExportJob({ requestBody, }: {
|
|
2037
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2038
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2039
2102
|
/**
|
|
2040
2103
|
* Get operation
|
|
2041
2104
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2111,17 @@ declare class OperationsService {
|
|
|
2048
2111
|
*/
|
|
2049
2112
|
operationId: string;
|
|
2050
2113
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2114
|
+
/**
|
|
2115
|
+
* Create transaction export operation
|
|
2116
|
+
* Trigger a transaction export operation with given parameters.
|
|
2117
|
+
*
|
|
2118
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2119
|
+
* @returns OperationStatusResponse
|
|
2120
|
+
* @throws ApiError
|
|
2121
|
+
*/
|
|
2122
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2123
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2124
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
2125
|
}
|
|
2052
2126
|
|
|
2053
2127
|
declare enum BlockchainIds {
|
|
@@ -2183,13 +2257,44 @@ type BlockchainInfo = {
|
|
|
2183
2257
|
blockchainId: string;
|
|
2184
2258
|
};
|
|
2185
2259
|
|
|
2260
|
+
type SubnetOwnershipInfo = {
|
|
2261
|
+
/**
|
|
2262
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2263
|
+
*/
|
|
2264
|
+
locktime: number;
|
|
2265
|
+
/**
|
|
2266
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2267
|
+
*/
|
|
2268
|
+
threshold: number;
|
|
2269
|
+
/**
|
|
2270
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2271
|
+
*/
|
|
2272
|
+
addresses: Array<string>;
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2186
2275
|
type Subnet = {
|
|
2187
2276
|
createBlockTimestamp: number;
|
|
2188
2277
|
createBlockIndex: string;
|
|
2189
2278
|
subnetId: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2281
|
+
* @deprecated
|
|
2282
|
+
*/
|
|
2190
2283
|
ownerAddresses: Array<string>;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2191
2288
|
threshold: number;
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2192
2293
|
locktime: number;
|
|
2294
|
+
/**
|
|
2295
|
+
* Latest subnet owner details for this Subnet.
|
|
2296
|
+
*/
|
|
2297
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2193
2298
|
blockchains: Array<BlockchainInfo>;
|
|
2194
2299
|
};
|
|
2195
2300
|
|
|
@@ -2285,6 +2390,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2390
|
}
|
|
2286
2391
|
}
|
|
2287
2392
|
|
|
2393
|
+
type RemovedValidatorDetails = {
|
|
2394
|
+
txHash: string;
|
|
2395
|
+
nodeId: string;
|
|
2396
|
+
subnetId: string;
|
|
2397
|
+
amountStaked: string;
|
|
2398
|
+
delegationFee?: string;
|
|
2399
|
+
startTimestamp: number;
|
|
2400
|
+
endTimestamp: number;
|
|
2401
|
+
removeTxHash: string;
|
|
2402
|
+
removeTimestamp: number;
|
|
2403
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2404
|
+
};
|
|
2405
|
+
declare namespace RemovedValidatorDetails {
|
|
2406
|
+
enum validationStatus {
|
|
2407
|
+
REMOVED = "removed"
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2288
2411
|
type ListValidatorDetailsResponse = {
|
|
2289
2412
|
/**
|
|
2290
2413
|
* 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.
|
|
@@ -2293,7 +2416,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2416
|
/**
|
|
2294
2417
|
* The list of validator Details.
|
|
2295
2418
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2419
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2420
|
};
|
|
2298
2421
|
|
|
2299
2422
|
declare enum Network {
|
|
@@ -2304,7 +2427,24 @@ declare enum Network {
|
|
|
2304
2427
|
declare enum ValidationStatusType {
|
|
2305
2428
|
COMPLETED = "completed",
|
|
2306
2429
|
ACTIVE = "active",
|
|
2307
|
-
PENDING = "pending"
|
|
2430
|
+
PENDING = "pending",
|
|
2431
|
+
REMOVED = "removed"
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2436
|
+
*/
|
|
2437
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2438
|
+
FIXED = "fixed",
|
|
2439
|
+
VARIABLE = "variable"
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2444
|
+
*/
|
|
2445
|
+
declare enum PrimaryNetworkAssetType {
|
|
2446
|
+
SECP256K1 = "secp256k1",
|
|
2447
|
+
NFT = "nft"
|
|
2308
2448
|
}
|
|
2309
2449
|
|
|
2310
2450
|
type XChainAssetDetails = {
|
|
@@ -2324,18 +2464,12 @@ type XChainAssetDetails = {
|
|
|
2324
2464
|
* Denomination of this asset to represent fungibility.
|
|
2325
2465
|
*/
|
|
2326
2466
|
denomination: number;
|
|
2327
|
-
|
|
2328
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2329
|
-
*/
|
|
2330
|
-
type: string;
|
|
2467
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2468
|
/**
|
|
2332
2469
|
* Timestamp in seconds this asset was created on.
|
|
2333
2470
|
*/
|
|
2334
2471
|
createdAtTimestamp: number;
|
|
2335
|
-
|
|
2336
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2337
|
-
*/
|
|
2338
|
-
cap: string;
|
|
2472
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2473
|
};
|
|
2340
2474
|
|
|
2341
2475
|
declare enum XChainId {
|
|
@@ -2401,19 +2535,19 @@ declare class PrimaryNetworkService {
|
|
|
2401
2535
|
* @returns ListBlockchainsResponse
|
|
2402
2536
|
* @throws ApiError
|
|
2403
2537
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2538
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2539
|
/**
|
|
2406
2540
|
* Either mainnet or a testnet.
|
|
2407
2541
|
*/
|
|
2408
2542
|
network: Network;
|
|
2409
|
-
/**
|
|
2410
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2411
|
-
*/
|
|
2412
|
-
pageSize?: number;
|
|
2413
2543
|
/**
|
|
2414
2544
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2545
|
*/
|
|
2416
2546
|
pageToken?: string;
|
|
2547
|
+
/**
|
|
2548
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2549
|
+
*/
|
|
2550
|
+
pageSize?: number;
|
|
2417
2551
|
/**
|
|
2418
2552
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2419
2553
|
*/
|
|
@@ -2425,19 +2559,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2559
|
* @returns ListSubnetsResponse
|
|
2426
2560
|
* @throws ApiError
|
|
2427
2561
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2562
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2563
|
/**
|
|
2430
2564
|
* Either mainnet or a testnet.
|
|
2431
2565
|
*/
|
|
2432
2566
|
network: Network;
|
|
2433
|
-
/**
|
|
2434
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2435
|
-
*/
|
|
2436
|
-
pageSize?: number;
|
|
2437
2567
|
/**
|
|
2438
2568
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2439
2569
|
*/
|
|
2440
2570
|
pageToken?: string;
|
|
2571
|
+
/**
|
|
2572
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2573
|
+
*/
|
|
2574
|
+
pageSize?: number;
|
|
2441
2575
|
/**
|
|
2442
2576
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2443
2577
|
*/
|
|
@@ -2449,59 +2583,59 @@ declare class PrimaryNetworkService {
|
|
|
2449
2583
|
* @returns ListValidatorDetailsResponse
|
|
2450
2584
|
* @throws ApiError
|
|
2451
2585
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2586
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2453
2587
|
/**
|
|
2454
2588
|
* Either mainnet or a testnet.
|
|
2455
2589
|
*/
|
|
2456
2590
|
network: Network;
|
|
2457
|
-
/**
|
|
2458
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2459
|
-
*/
|
|
2460
|
-
pageSize?: number;
|
|
2461
2591
|
/**
|
|
2462
2592
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2463
2593
|
*/
|
|
2464
2594
|
pageToken?: string;
|
|
2465
2595
|
/**
|
|
2466
|
-
* The
|
|
2596
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2467
2597
|
*/
|
|
2468
|
-
|
|
2598
|
+
pageSize?: number;
|
|
2469
2599
|
/**
|
|
2470
|
-
*
|
|
2600
|
+
* A comma separated list of node ids to filter by.
|
|
2471
2601
|
*/
|
|
2472
|
-
|
|
2602
|
+
nodeIds?: string;
|
|
2473
2603
|
/**
|
|
2474
|
-
* The
|
|
2604
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2475
2605
|
*/
|
|
2476
|
-
|
|
2606
|
+
sortOrder?: SortOrder;
|
|
2477
2607
|
/**
|
|
2478
|
-
*
|
|
2608
|
+
* Validation status of the node.
|
|
2479
2609
|
*/
|
|
2480
|
-
|
|
2610
|
+
validationStatus?: ValidationStatusType;
|
|
2481
2611
|
/**
|
|
2482
|
-
* The minimum
|
|
2612
|
+
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2483
2613
|
*/
|
|
2484
|
-
|
|
2614
|
+
minDelegationCapacity?: string;
|
|
2485
2615
|
/**
|
|
2486
|
-
* The maximum
|
|
2616
|
+
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2487
2617
|
*/
|
|
2488
|
-
|
|
2618
|
+
maxDelegationCapacity?: string;
|
|
2489
2619
|
/**
|
|
2490
|
-
*
|
|
2620
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2491
2621
|
*/
|
|
2492
|
-
|
|
2622
|
+
minTimeRemaining?: number;
|
|
2493
2623
|
/**
|
|
2494
|
-
* The
|
|
2624
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2495
2625
|
*/
|
|
2496
|
-
|
|
2626
|
+
maxTimeRemaining?: number;
|
|
2497
2627
|
/**
|
|
2498
|
-
*
|
|
2628
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2499
2629
|
*/
|
|
2500
|
-
|
|
2630
|
+
minFeePercentage?: number;
|
|
2631
|
+
/**
|
|
2632
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2633
|
+
*/
|
|
2634
|
+
maxFeePercentage?: number;
|
|
2501
2635
|
/**
|
|
2502
2636
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2637
|
*/
|
|
2504
|
-
subnetId?:
|
|
2638
|
+
subnetId?: any;
|
|
2505
2639
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2506
2640
|
/**
|
|
2507
2641
|
* Get single validator details
|
|
@@ -2509,7 +2643,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2643
|
* @returns ListValidatorDetailsResponse
|
|
2510
2644
|
* @throws ApiError
|
|
2511
2645
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2646
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2513
2647
|
/**
|
|
2514
2648
|
* Either mainnet or a testnet.
|
|
2515
2649
|
*/
|
|
@@ -2518,14 +2652,14 @@ declare class PrimaryNetworkService {
|
|
|
2518
2652
|
* A primary network (P or X chain) nodeId.
|
|
2519
2653
|
*/
|
|
2520
2654
|
nodeId: string;
|
|
2521
|
-
/**
|
|
2522
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2523
|
-
*/
|
|
2524
|
-
pageSize?: number;
|
|
2525
2655
|
/**
|
|
2526
2656
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2657
|
*/
|
|
2528
2658
|
pageToken?: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2661
|
+
*/
|
|
2662
|
+
pageSize?: number;
|
|
2529
2663
|
/**
|
|
2530
2664
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2531
2665
|
*/
|
|
@@ -2541,19 +2675,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2675
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2676
|
* @throws ApiError
|
|
2543
2677
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2678
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2679
|
/**
|
|
2546
2680
|
* Either mainnet or a testnet.
|
|
2547
2681
|
*/
|
|
2548
2682
|
network: Network;
|
|
2549
|
-
/**
|
|
2550
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2551
|
-
*/
|
|
2552
|
-
pageSize?: number;
|
|
2553
2683
|
/**
|
|
2554
2684
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2685
|
*/
|
|
2556
2686
|
pageToken?: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2689
|
+
*/
|
|
2690
|
+
pageSize?: number;
|
|
2557
2691
|
/**
|
|
2558
2692
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2693
|
*/
|
|
@@ -2601,10 +2735,7 @@ type CChainSharedAssetBalance = {
|
|
|
2601
2735
|
* Denomination of this asset to represent fungibility.
|
|
2602
2736
|
*/
|
|
2603
2737
|
denomination: number;
|
|
2604
|
-
|
|
2605
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2606
|
-
*/
|
|
2607
|
-
type: string;
|
|
2738
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2739
|
/**
|
|
2609
2740
|
* Amount of the asset.
|
|
2610
2741
|
*/
|
|
@@ -2639,49 +2770,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2770
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2771
|
};
|
|
2641
2772
|
|
|
2642
|
-
type
|
|
2773
|
+
type AggregatedAssetAmount = {
|
|
2774
|
+
/**
|
|
2775
|
+
* Unique ID for an asset.
|
|
2776
|
+
*/
|
|
2643
2777
|
assetId: string;
|
|
2778
|
+
/**
|
|
2779
|
+
* Name of this asset.
|
|
2780
|
+
*/
|
|
2781
|
+
name: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* Symbol for this asset (max 4 characters).
|
|
2784
|
+
*/
|
|
2785
|
+
symbol: string;
|
|
2786
|
+
/**
|
|
2787
|
+
* Denomination of this asset to represent fungibility.
|
|
2788
|
+
*/
|
|
2789
|
+
denomination: number;
|
|
2790
|
+
type: PrimaryNetworkAssetType;
|
|
2791
|
+
/**
|
|
2792
|
+
* Amount of the asset.
|
|
2793
|
+
*/
|
|
2644
2794
|
amount: string;
|
|
2795
|
+
utxoCount: number;
|
|
2645
2796
|
};
|
|
2646
2797
|
|
|
2647
2798
|
type PChainSharedAsset = {
|
|
2799
|
+
/**
|
|
2800
|
+
* Unique ID for an asset.
|
|
2801
|
+
*/
|
|
2648
2802
|
assetId: string;
|
|
2803
|
+
/**
|
|
2804
|
+
* Name of this asset.
|
|
2805
|
+
*/
|
|
2806
|
+
name: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* Symbol for this asset (max 4 characters).
|
|
2809
|
+
*/
|
|
2810
|
+
symbol: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* Denomination of this asset to represent fungibility.
|
|
2813
|
+
*/
|
|
2814
|
+
denomination: number;
|
|
2815
|
+
type: PrimaryNetworkAssetType;
|
|
2816
|
+
/**
|
|
2817
|
+
* Amount of the asset.
|
|
2818
|
+
*/
|
|
2649
2819
|
amount: string;
|
|
2820
|
+
utxoCount: number;
|
|
2650
2821
|
sharedWithChainId: string;
|
|
2651
2822
|
status: string;
|
|
2652
2823
|
};
|
|
2653
2824
|
|
|
2654
2825
|
type PChainBalance = {
|
|
2655
2826
|
/**
|
|
2656
|
-
* A list of objects containing P-chain Asset
|
|
2827
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2657
2828
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2829
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2659
2830
|
/**
|
|
2660
|
-
* A list of objects containing P-chain Asset
|
|
2831
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2661
2832
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2833
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2663
2834
|
/**
|
|
2664
|
-
* A list of objects containing P-chain Asset
|
|
2835
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2665
2836
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2837
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2667
2838
|
/**
|
|
2668
|
-
* A list of objects containing P-chain Asset
|
|
2839
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2669
2840
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2841
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2671
2842
|
/**
|
|
2672
|
-
* A list of objects containing P-chain Asset
|
|
2843
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2673
2844
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2845
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2675
2846
|
/**
|
|
2676
|
-
* A list of objects containing P-chain Asset
|
|
2847
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2677
2848
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2849
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2679
2850
|
/**
|
|
2680
|
-
* A list of objects containing P-chain Asset
|
|
2851
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2681
2852
|
*/
|
|
2682
2853
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2683
2854
|
/**
|
|
2684
|
-
* A list of objects containing P-chain Asset
|
|
2855
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2685
2856
|
*/
|
|
2686
2857
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2687
2858
|
};
|
|
@@ -2691,34 +2862,6 @@ type ListPChainBalancesResponse = {
|
|
|
2691
2862
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2692
2863
|
};
|
|
2693
2864
|
|
|
2694
|
-
type XChainAssetBalance = {
|
|
2695
|
-
/**
|
|
2696
|
-
* Unique ID for an asset.
|
|
2697
|
-
*/
|
|
2698
|
-
assetId: string;
|
|
2699
|
-
/**
|
|
2700
|
-
* Name of this asset.
|
|
2701
|
-
*/
|
|
2702
|
-
name: string;
|
|
2703
|
-
/**
|
|
2704
|
-
* Symbol for this asset (max 4 characters).
|
|
2705
|
-
*/
|
|
2706
|
-
symbol: string;
|
|
2707
|
-
/**
|
|
2708
|
-
* Denomination of this asset to represent fungibility.
|
|
2709
|
-
*/
|
|
2710
|
-
denomination: number;
|
|
2711
|
-
/**
|
|
2712
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2713
|
-
*/
|
|
2714
|
-
type: string;
|
|
2715
|
-
/**
|
|
2716
|
-
* Amount of the asset.
|
|
2717
|
-
*/
|
|
2718
|
-
amount: string;
|
|
2719
|
-
utxoCount: number;
|
|
2720
|
-
};
|
|
2721
|
-
|
|
2722
2865
|
type XChainSharedAssetBalance = {
|
|
2723
2866
|
/**
|
|
2724
2867
|
* Unique ID for an asset.
|
|
@@ -2736,10 +2879,7 @@ type XChainSharedAssetBalance = {
|
|
|
2736
2879
|
* Denomination of this asset to represent fungibility.
|
|
2737
2880
|
*/
|
|
2738
2881
|
denomination: number;
|
|
2739
|
-
|
|
2740
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2741
|
-
*/
|
|
2742
|
-
type: string;
|
|
2882
|
+
type: PrimaryNetworkAssetType;
|
|
2743
2883
|
/**
|
|
2744
2884
|
* Amount of the asset.
|
|
2745
2885
|
*/
|
|
@@ -2752,11 +2892,11 @@ type XChainBalances = {
|
|
|
2752
2892
|
/**
|
|
2753
2893
|
* A list of objects containing X-chain Asset balance information.
|
|
2754
2894
|
*/
|
|
2755
|
-
locked: Array<
|
|
2895
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2756
2896
|
/**
|
|
2757
2897
|
* A list of objects containing X-chain Asset balance information.
|
|
2758
2898
|
*/
|
|
2759
|
-
unlocked: Array<
|
|
2899
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2760
2900
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2761
2901
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2762
2902
|
};
|
|
@@ -2814,6 +2954,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
2954
|
txCount: number;
|
|
2815
2955
|
transactions: Array<string>;
|
|
2816
2956
|
blockSizeBytes: number;
|
|
2957
|
+
currentSupply?: string;
|
|
2817
2958
|
proposerDetails?: ProposerDetails;
|
|
2818
2959
|
};
|
|
2819
2960
|
|
|
@@ -2826,6 +2967,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
2967
|
txCount: number;
|
|
2827
2968
|
transactions: Array<string>;
|
|
2828
2969
|
blockSizeBytes: number;
|
|
2970
|
+
currentSupply?: string;
|
|
2829
2971
|
proposerDetails?: ProposerDetails;
|
|
2830
2972
|
};
|
|
2831
2973
|
|
|
@@ -2867,7 +3009,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3009
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3010
|
* @throws ApiError
|
|
2869
3011
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3012
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3013
|
/**
|
|
2872
3014
|
* A primary network blockchain id or alias.
|
|
2873
3015
|
*/
|
|
@@ -2880,14 +3022,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3022
|
* A primary network (P or X chain) nodeId.
|
|
2881
3023
|
*/
|
|
2882
3024
|
nodeId: string;
|
|
2883
|
-
/**
|
|
2884
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2885
|
-
*/
|
|
2886
|
-
pageSize?: number;
|
|
2887
3025
|
/**
|
|
2888
3026
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3027
|
*/
|
|
2890
3028
|
pageToken?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3031
|
+
*/
|
|
3032
|
+
pageSize?: number;
|
|
2891
3033
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3034
|
/**
|
|
2893
3035
|
* List latest blocks
|
|
@@ -2895,7 +3037,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3037
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3038
|
* @throws ApiError
|
|
2897
3039
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3040
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3041
|
/**
|
|
2900
3042
|
* A primary network blockchain id or alias.
|
|
2901
3043
|
*/
|
|
@@ -2904,17 +3046,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3046
|
* Either mainnet or a testnet.
|
|
2905
3047
|
*/
|
|
2906
3048
|
network: Network;
|
|
2907
|
-
/**
|
|
2908
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2909
|
-
*/
|
|
2910
|
-
pageSize?: number;
|
|
2911
3049
|
/**
|
|
2912
3050
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3051
|
*/
|
|
2914
3052
|
pageToken?: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3055
|
+
*/
|
|
3056
|
+
pageSize?: number;
|
|
2915
3057
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3058
|
}
|
|
2917
3059
|
|
|
3060
|
+
type AssetWithPriceInfo = {
|
|
3061
|
+
/**
|
|
3062
|
+
* Unique ID for an asset.
|
|
3063
|
+
*/
|
|
3064
|
+
assetId: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* Name of this asset.
|
|
3067
|
+
*/
|
|
3068
|
+
name: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* Symbol for this asset (max 4 characters).
|
|
3071
|
+
*/
|
|
3072
|
+
symbol: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* Denomination of this asset to represent fungibility.
|
|
3075
|
+
*/
|
|
3076
|
+
denomination: number;
|
|
3077
|
+
type: PrimaryNetworkAssetType;
|
|
3078
|
+
/**
|
|
3079
|
+
* Amount of the asset.
|
|
3080
|
+
*/
|
|
3081
|
+
amount: string;
|
|
3082
|
+
/**
|
|
3083
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3084
|
+
*/
|
|
3085
|
+
historicalPrice?: Money;
|
|
3086
|
+
};
|
|
3087
|
+
|
|
2918
3088
|
declare enum RewardType {
|
|
2919
3089
|
VALIDATOR = "VALIDATOR",
|
|
2920
3090
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3104,7 @@ type HistoricalReward = {
|
|
|
2934
3104
|
rewardType: RewardType;
|
|
2935
3105
|
utxoId: string;
|
|
2936
3106
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3107
|
+
reward: AssetWithPriceInfo;
|
|
2941
3108
|
rewardTxHash: string;
|
|
2942
3109
|
};
|
|
2943
3110
|
|
|
@@ -2949,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2949
3116
|
historicalRewards: Array<HistoricalReward>;
|
|
2950
3117
|
};
|
|
2951
3118
|
|
|
3119
|
+
type AssetAmount = {
|
|
3120
|
+
/**
|
|
3121
|
+
* Unique ID for an asset.
|
|
3122
|
+
*/
|
|
3123
|
+
assetId: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* Name of this asset.
|
|
3126
|
+
*/
|
|
3127
|
+
name: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* Symbol for this asset (max 4 characters).
|
|
3130
|
+
*/
|
|
3131
|
+
symbol: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* Denomination of this asset to represent fungibility.
|
|
3134
|
+
*/
|
|
3135
|
+
denomination: number;
|
|
3136
|
+
type: PrimaryNetworkAssetType;
|
|
3137
|
+
/**
|
|
3138
|
+
* Amount of the asset.
|
|
3139
|
+
*/
|
|
3140
|
+
amount: string;
|
|
3141
|
+
};
|
|
3142
|
+
|
|
2952
3143
|
type PendingReward = {
|
|
2953
3144
|
/**
|
|
2954
3145
|
* An array of P-Chain wallet addresses.
|
|
@@ -2962,9 +3153,9 @@ type PendingReward = {
|
|
|
2962
3153
|
rewardType: RewardType;
|
|
2963
3154
|
progress: number;
|
|
2964
3155
|
/**
|
|
2965
|
-
* An object containing P-chain Asset
|
|
3156
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2966
3157
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3158
|
+
estimatedReward: AssetAmount;
|
|
2968
3159
|
};
|
|
2969
3160
|
|
|
2970
3161
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3175,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3175
|
* @returns ListPendingRewardsResponse
|
|
2985
3176
|
* @throws ApiError
|
|
2986
3177
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3178
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3179
|
/**
|
|
2989
3180
|
* Either mainnet or a testnet.
|
|
2990
3181
|
*/
|
|
2991
3182
|
network: Network;
|
|
2992
3183
|
/**
|
|
2993
|
-
* 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".
|
|
3184
|
+
* 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". One of addresses or nodeIds is required.
|
|
2994
3185
|
*/
|
|
2995
3186
|
addresses?: string;
|
|
2996
|
-
/**
|
|
2997
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2998
|
-
*/
|
|
2999
|
-
pageSize?: number;
|
|
3000
3187
|
/**
|
|
3001
3188
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3189
|
*/
|
|
3003
3190
|
pageToken?: string;
|
|
3004
3191
|
/**
|
|
3005
|
-
*
|
|
3192
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3193
|
+
*/
|
|
3194
|
+
pageSize?: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3006
3197
|
*/
|
|
3007
3198
|
nodeIds?: string;
|
|
3008
3199
|
/**
|
|
@@ -3016,68 +3207,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3207
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3208
|
* @throws ApiError
|
|
3018
3209
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3210
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3211
|
/**
|
|
3021
3212
|
* Either mainnet or a testnet.
|
|
3022
3213
|
*/
|
|
3023
3214
|
network: Network;
|
|
3024
3215
|
/**
|
|
3025
|
-
* 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".
|
|
3216
|
+
* 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". Optional, but at least one of addresses or nodeIds is required.
|
|
3026
3217
|
*/
|
|
3027
3218
|
addresses?: string;
|
|
3028
|
-
/**
|
|
3029
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3030
|
-
*/
|
|
3031
|
-
pageSize?: number;
|
|
3032
3219
|
/**
|
|
3033
3220
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3221
|
*/
|
|
3035
3222
|
pageToken?: string;
|
|
3036
3223
|
/**
|
|
3037
|
-
*
|
|
3224
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3225
|
+
*/
|
|
3226
|
+
pageSize?: number;
|
|
3227
|
+
/**
|
|
3228
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3038
3229
|
*/
|
|
3039
3230
|
nodeIds?: string;
|
|
3040
3231
|
/**
|
|
3041
3232
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3042
3233
|
*/
|
|
3043
3234
|
sortOrder?: SortOrder;
|
|
3235
|
+
/**
|
|
3236
|
+
* The currency that return values should use. Defaults to USD.
|
|
3237
|
+
*/
|
|
3238
|
+
currency?: CurrencyCode;
|
|
3044
3239
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3240
|
}
|
|
3046
3241
|
|
|
3047
|
-
type Asset = {
|
|
3048
|
-
/**
|
|
3049
|
-
* Unique ID for an asset.
|
|
3050
|
-
*/
|
|
3051
|
-
assetId: string;
|
|
3052
|
-
/**
|
|
3053
|
-
* Name of this asset.
|
|
3054
|
-
*/
|
|
3055
|
-
name: string;
|
|
3056
|
-
/**
|
|
3057
|
-
* Symbol for this asset (max 4 characters).
|
|
3058
|
-
*/
|
|
3059
|
-
symbol: string;
|
|
3060
|
-
/**
|
|
3061
|
-
* Denomination of this asset to represent fungibility.
|
|
3062
|
-
*/
|
|
3063
|
-
denomination: number;
|
|
3064
|
-
/**
|
|
3065
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3066
|
-
*/
|
|
3067
|
-
type: string;
|
|
3068
|
-
/**
|
|
3069
|
-
* Amount of the asset.
|
|
3070
|
-
*/
|
|
3071
|
-
amount: string;
|
|
3072
|
-
};
|
|
3073
|
-
|
|
3074
3242
|
type UtxoCredential = {
|
|
3075
3243
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3244
|
+
* Signature provided to consume the output.
|
|
3077
3245
|
*/
|
|
3078
3246
|
signature?: string;
|
|
3079
3247
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3248
|
+
* Public key associated with the signature.
|
|
3081
3249
|
*/
|
|
3082
3250
|
publicKey?: string;
|
|
3083
3251
|
};
|
|
@@ -3088,9 +3256,9 @@ type EVMInput = {
|
|
|
3088
3256
|
*/
|
|
3089
3257
|
fromAddress: string;
|
|
3090
3258
|
/**
|
|
3091
|
-
*
|
|
3259
|
+
* AssetAmount details for the asset being transferred.
|
|
3092
3260
|
*/
|
|
3093
|
-
asset:
|
|
3261
|
+
asset: AssetAmount;
|
|
3094
3262
|
/**
|
|
3095
3263
|
* Credentials that signed this transaction.
|
|
3096
3264
|
*/
|
|
@@ -3099,66 +3267,66 @@ type EVMInput = {
|
|
|
3099
3267
|
|
|
3100
3268
|
type Utxo = {
|
|
3101
3269
|
/**
|
|
3102
|
-
*
|
|
3270
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3271
|
*/
|
|
3104
|
-
|
|
3105
|
-
asset:
|
|
3272
|
+
addresses: Array<string>;
|
|
3273
|
+
asset: AssetAmount;
|
|
3106
3274
|
/**
|
|
3107
|
-
*
|
|
3275
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3276
|
*/
|
|
3109
|
-
|
|
3277
|
+
consumedOnChainId: string;
|
|
3278
|
+
/**
|
|
3279
|
+
* Transaction ID that consumed this output.
|
|
3280
|
+
*/
|
|
3281
|
+
consumingTxHash?: string;
|
|
3110
3282
|
/**
|
|
3111
3283
|
* Blockchain ID on which this output is created on.
|
|
3112
3284
|
*/
|
|
3113
3285
|
createdOnChainId: string;
|
|
3114
3286
|
/**
|
|
3115
|
-
*
|
|
3287
|
+
* UTXO ID for this output.
|
|
3116
3288
|
*/
|
|
3117
|
-
|
|
3289
|
+
utxoId: string;
|
|
3290
|
+
/**
|
|
3291
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3292
|
+
*/
|
|
3293
|
+
consumingTxTimestamp?: number;
|
|
3118
3294
|
/**
|
|
3119
3295
|
* Transaction ID that created this output.
|
|
3120
3296
|
*/
|
|
3121
3297
|
creationTxHash: string;
|
|
3122
3298
|
/**
|
|
3123
|
-
*
|
|
3299
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3124
3300
|
*/
|
|
3125
|
-
|
|
3301
|
+
credentials?: Array<UtxoCredential>;
|
|
3126
3302
|
/**
|
|
3127
|
-
*
|
|
3303
|
+
* Index representing the minting set for the NFT mint output.
|
|
3128
3304
|
*/
|
|
3129
|
-
|
|
3305
|
+
groupId?: number;
|
|
3306
|
+
/**
|
|
3307
|
+
* Locktime in seconds after which this output can be consumed.
|
|
3308
|
+
*/
|
|
3309
|
+
locktime: number;
|
|
3130
3310
|
/**
|
|
3131
3311
|
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3132
3312
|
*/
|
|
3133
3313
|
outputIndex: string;
|
|
3134
3314
|
/**
|
|
3135
|
-
*
|
|
3315
|
+
* Hex encoded data for NFT assets.
|
|
3136
3316
|
*/
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* Locktime in seconds after which this output can be consumed.
|
|
3140
|
-
*/
|
|
3141
|
-
locktime: number;
|
|
3317
|
+
payload?: string;
|
|
3142
3318
|
/**
|
|
3143
3319
|
* Minimum number of signatures required to consume this output.
|
|
3144
3320
|
*/
|
|
3145
3321
|
threshold: number;
|
|
3146
3322
|
/**
|
|
3147
|
-
*
|
|
3323
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3148
3324
|
*/
|
|
3149
|
-
|
|
3150
|
-
/**
|
|
3151
|
-
* Hex encoded data for NFT assets
|
|
3152
|
-
*/
|
|
3153
|
-
payload?: string;
|
|
3154
|
-
/**
|
|
3155
|
-
* Index representing the minting set for the NFT mint output
|
|
3156
|
-
*/
|
|
3157
|
-
groupId?: number;
|
|
3325
|
+
timestamp: number;
|
|
3158
3326
|
/**
|
|
3159
|
-
*
|
|
3327
|
+
* Type of output.
|
|
3160
3328
|
*/
|
|
3161
|
-
|
|
3329
|
+
utxoType: string;
|
|
3162
3330
|
};
|
|
3163
3331
|
|
|
3164
3332
|
type CChainExportTransaction = {
|
|
@@ -3185,11 +3353,11 @@ type CChainExportTransaction = {
|
|
|
3185
3353
|
/**
|
|
3186
3354
|
* Assets unlocked by inputs of this transaction.
|
|
3187
3355
|
*/
|
|
3188
|
-
amountUnlocked: Array<
|
|
3356
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3189
3357
|
/**
|
|
3190
3358
|
* Assets created by outputs of this transaction.
|
|
3191
3359
|
*/
|
|
3192
|
-
amountCreated: Array<
|
|
3360
|
+
amountCreated: Array<AssetAmount>;
|
|
3193
3361
|
/**
|
|
3194
3362
|
* Source chain for an atomic transaction.
|
|
3195
3363
|
*/
|
|
@@ -3220,9 +3388,9 @@ type EVMOutput = {
|
|
|
3220
3388
|
*/
|
|
3221
3389
|
toAddress: string;
|
|
3222
3390
|
/**
|
|
3223
|
-
*
|
|
3391
|
+
* AssetAmount details for the asset being transferred.
|
|
3224
3392
|
*/
|
|
3225
|
-
asset:
|
|
3393
|
+
asset: AssetAmount;
|
|
3226
3394
|
};
|
|
3227
3395
|
|
|
3228
3396
|
type CChainImportTransaction = {
|
|
@@ -3249,11 +3417,11 @@ type CChainImportTransaction = {
|
|
|
3249
3417
|
/**
|
|
3250
3418
|
* Assets unlocked by inputs of this transaction.
|
|
3251
3419
|
*/
|
|
3252
|
-
amountUnlocked: Array<
|
|
3420
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3253
3421
|
/**
|
|
3254
3422
|
* Assets created by outputs of this transaction.
|
|
3255
3423
|
*/
|
|
3256
|
-
amountCreated: Array<
|
|
3424
|
+
amountCreated: Array<AssetAmount>;
|
|
3257
3425
|
/**
|
|
3258
3426
|
* Source chain for an atomic transaction.
|
|
3259
3427
|
*/
|
|
@@ -3289,17 +3457,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3457
|
|
|
3290
3458
|
declare enum PChainTransactionType {
|
|
3291
3459
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3460
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3461
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3462
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3463
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3464
|
IMPORT_TX = "ImportTx",
|
|
3301
3465
|
EXPORT_TX = "ExportTx",
|
|
3302
3466
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3467
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3468
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3469
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3470
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3471
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3472
|
+
BASE_TX = "BaseTx",
|
|
3473
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3303
3474
|
UNKNOWN = "UNKNOWN"
|
|
3304
3475
|
}
|
|
3305
3476
|
|
|
@@ -3310,29 +3481,48 @@ declare enum UtxoType {
|
|
|
3310
3481
|
|
|
3311
3482
|
type PChainUtxo = {
|
|
3312
3483
|
/**
|
|
3313
|
-
*
|
|
3484
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3485
|
*/
|
|
3315
3486
|
addresses: Array<string>;
|
|
3487
|
+
asset: AssetAmount;
|
|
3488
|
+
/**
|
|
3489
|
+
* Blockchain ID on which this output is consumed on.
|
|
3490
|
+
*/
|
|
3491
|
+
consumedOnChainId: string;
|
|
3492
|
+
/**
|
|
3493
|
+
* Transaction ID that consumed this output.
|
|
3494
|
+
*/
|
|
3495
|
+
consumingTxHash?: string;
|
|
3496
|
+
/**
|
|
3497
|
+
* Blockchain ID on which this output is created on.
|
|
3498
|
+
*/
|
|
3499
|
+
createdOnChainId: string;
|
|
3500
|
+
/**
|
|
3501
|
+
* UTXO ID for this output.
|
|
3502
|
+
*/
|
|
3316
3503
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3504
|
+
/**
|
|
3505
|
+
* @deprecated
|
|
3506
|
+
*/
|
|
3507
|
+
amount: string;
|
|
3508
|
+
/**
|
|
3509
|
+
* @deprecated
|
|
3510
|
+
*/
|
|
3511
|
+
assetId: string;
|
|
3319
3512
|
blockNumber: string;
|
|
3320
3513
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3514
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3515
|
+
consumingBlockTimestamp?: number;
|
|
3328
3516
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3517
|
+
outputIndex: number;
|
|
3518
|
+
rewardType?: RewardType;
|
|
3519
|
+
stakeableLocktime?: number;
|
|
3332
3520
|
staked?: boolean;
|
|
3333
|
-
|
|
3521
|
+
threshold?: number;
|
|
3522
|
+
txHash: string;
|
|
3334
3523
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3524
|
+
utxoStartTimestamp?: number;
|
|
3525
|
+
utxoType: UtxoType;
|
|
3336
3526
|
};
|
|
3337
3527
|
|
|
3338
3528
|
type PChainTransaction = {
|
|
@@ -3358,17 +3548,17 @@ type PChainTransaction = {
|
|
|
3358
3548
|
*/
|
|
3359
3549
|
destinationChain?: string;
|
|
3360
3550
|
/**
|
|
3361
|
-
* A list of objects containing P-chain Asset
|
|
3551
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3362
3552
|
*/
|
|
3363
|
-
value: Array<
|
|
3553
|
+
value: Array<AssetAmount>;
|
|
3364
3554
|
/**
|
|
3365
|
-
* A list of objects containing P-chain Asset
|
|
3555
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3366
3556
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3557
|
+
amountBurned: Array<AssetAmount>;
|
|
3368
3558
|
/**
|
|
3369
|
-
* A list of objects containing P-chain Asset
|
|
3559
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3560
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3561
|
+
amountStaked: Array<AssetAmount>;
|
|
3372
3562
|
/**
|
|
3373
3563
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3564
|
*/
|
|
@@ -3400,6 +3590,10 @@ type PChainTransaction = {
|
|
|
3400
3590
|
* Present for RewardValidatorTx
|
|
3401
3591
|
*/
|
|
3402
3592
|
stakingTxHash?: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3595
|
+
*/
|
|
3596
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3403
3597
|
};
|
|
3404
3598
|
|
|
3405
3599
|
type ListPChainTransactionsResponse = {
|
|
@@ -3411,6 +3605,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3605
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3606
|
};
|
|
3413
3607
|
|
|
3608
|
+
/**
|
|
3609
|
+
* Type of transaction.
|
|
3610
|
+
*/
|
|
3611
|
+
declare enum XChainTransactionType {
|
|
3612
|
+
BASE_TX = "BaseTx",
|
|
3613
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3614
|
+
OPERATION_TX = "OperationTx",
|
|
3615
|
+
IMPORT_TX = "ImportTx",
|
|
3616
|
+
EXPORT_TX = "ExportTx",
|
|
3617
|
+
UNKNOWN = "UNKNOWN"
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3414
3620
|
type XChainLinearTransaction = {
|
|
3415
3621
|
/**
|
|
3416
3622
|
* Unique ID for this transaction.
|
|
@@ -3424,10 +3630,7 @@ type XChainLinearTransaction = {
|
|
|
3424
3630
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3425
3631
|
*/
|
|
3426
3632
|
timestamp: number;
|
|
3427
|
-
|
|
3428
|
-
* Type of transaction.
|
|
3429
|
-
*/
|
|
3430
|
-
txType: string;
|
|
3633
|
+
txType: XChainTransactionType;
|
|
3431
3634
|
/**
|
|
3432
3635
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3636
|
*/
|
|
@@ -3437,11 +3640,11 @@ type XChainLinearTransaction = {
|
|
|
3437
3640
|
/**
|
|
3438
3641
|
* Assets unlocked by inputs of this transaction.
|
|
3439
3642
|
*/
|
|
3440
|
-
amountUnlocked: Array<
|
|
3643
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3441
3644
|
/**
|
|
3442
3645
|
* Assets created by outputs of this transaction.
|
|
3443
3646
|
*/
|
|
3444
|
-
amountCreated: Array<
|
|
3647
|
+
amountCreated: Array<AssetAmount>;
|
|
3445
3648
|
/**
|
|
3446
3649
|
* Source chain for an atomic transaction.
|
|
3447
3650
|
*/
|
|
@@ -3451,7 +3654,7 @@ type XChainLinearTransaction = {
|
|
|
3451
3654
|
*/
|
|
3452
3655
|
destinationChain?: string;
|
|
3453
3656
|
/**
|
|
3454
|
-
*
|
|
3657
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3455
3658
|
*/
|
|
3456
3659
|
assetCreated?: XChainAssetDetails;
|
|
3457
3660
|
/**
|
|
@@ -3501,10 +3704,7 @@ type XChainNonLinearTransaction = {
|
|
|
3501
3704
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3502
3705
|
*/
|
|
3503
3706
|
timestamp: number;
|
|
3504
|
-
|
|
3505
|
-
* Type of transaction.
|
|
3506
|
-
*/
|
|
3507
|
-
txType: string;
|
|
3707
|
+
txType: XChainTransactionType;
|
|
3508
3708
|
/**
|
|
3509
3709
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3710
|
*/
|
|
@@ -3514,11 +3714,11 @@ type XChainNonLinearTransaction = {
|
|
|
3514
3714
|
/**
|
|
3515
3715
|
* Assets unlocked by inputs of this transaction.
|
|
3516
3716
|
*/
|
|
3517
|
-
amountUnlocked: Array<
|
|
3717
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3518
3718
|
/**
|
|
3519
3719
|
* Assets created by outputs of this transaction.
|
|
3520
3720
|
*/
|
|
3521
|
-
amountCreated: Array<
|
|
3721
|
+
amountCreated: Array<AssetAmount>;
|
|
3522
3722
|
/**
|
|
3523
3723
|
* Source chain for an atomic transaction.
|
|
3524
3724
|
*/
|
|
@@ -3528,7 +3728,7 @@ type XChainNonLinearTransaction = {
|
|
|
3528
3728
|
*/
|
|
3529
3729
|
destinationChain?: string;
|
|
3530
3730
|
/**
|
|
3531
|
-
*
|
|
3731
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3532
3732
|
*/
|
|
3533
3733
|
assetCreated?: XChainAssetDetails;
|
|
3534
3734
|
/**
|
|
@@ -3562,19 +3762,21 @@ declare enum PChainId {
|
|
|
3562
3762
|
|
|
3563
3763
|
declare enum PrimaryNetworkTxType {
|
|
3564
3764
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3765
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3766
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3767
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3768
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3769
|
IMPORT_TX = "ImportTx",
|
|
3574
3770
|
EXPORT_TX = "ExportTx",
|
|
3575
3771
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3576
|
-
|
|
3772
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3773
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3774
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3775
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3776
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3577
3777
|
BASE_TX = "BaseTx",
|
|
3778
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3779
|
+
UNKNOWN = "UNKNOWN",
|
|
3578
3780
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3579
3781
|
OPERATION_TX = "OperationTx"
|
|
3580
3782
|
}
|
|
@@ -3606,13 +3808,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3808
|
* List latest transactions
|
|
3607
3809
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3810
|
*
|
|
3609
|
-
* Transactions are filterable by addresses.
|
|
3811
|
+
* 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.
|
|
3610
3812
|
*
|
|
3611
3813
|
* 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.
|
|
3612
3814
|
* @returns any
|
|
3613
3815
|
* @throws ApiError
|
|
3614
3816
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3817
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3818
|
/**
|
|
3617
3819
|
* A primary network blockchain id or alias.
|
|
3618
3820
|
*/
|
|
@@ -3637,14 +3839,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3839
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3840
|
*/
|
|
3639
3841
|
endTimestamp?: number;
|
|
3640
|
-
/**
|
|
3641
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3642
|
-
*/
|
|
3643
|
-
pageSize?: number;
|
|
3644
3842
|
/**
|
|
3645
3843
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3844
|
*/
|
|
3647
3845
|
pageToken?: string;
|
|
3846
|
+
/**
|
|
3847
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3848
|
+
*/
|
|
3849
|
+
pageSize?: number;
|
|
3648
3850
|
/**
|
|
3649
3851
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3650
3852
|
*/
|
|
@@ -3656,7 +3858,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
3858
|
* @returns ListPChainTransactionsResponse
|
|
3657
3859
|
* @throws ApiError
|
|
3658
3860
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3861
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
3862
|
/**
|
|
3661
3863
|
* A primary network blockchain id or alias.
|
|
3662
3864
|
*/
|
|
@@ -3681,14 +3883,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
3883
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
3884
|
*/
|
|
3683
3885
|
endTimestamp?: number;
|
|
3684
|
-
/**
|
|
3685
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3686
|
-
*/
|
|
3687
|
-
pageSize?: number;
|
|
3688
3886
|
/**
|
|
3689
3887
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
3888
|
*/
|
|
3691
3889
|
pageToken?: string;
|
|
3890
|
+
/**
|
|
3891
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3892
|
+
*/
|
|
3893
|
+
pageSize?: number;
|
|
3692
3894
|
/**
|
|
3693
3895
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3694
3896
|
*/
|
|
@@ -3700,7 +3902,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
3902
|
* @returns ListXChainTransactionsResponse
|
|
3701
3903
|
* @throws ApiError
|
|
3702
3904
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3905
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
3906
|
/**
|
|
3705
3907
|
* A primary network blockchain id or alias.
|
|
3706
3908
|
*/
|
|
@@ -3725,14 +3927,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
3927
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
3928
|
*/
|
|
3727
3929
|
endTimestamp?: number;
|
|
3728
|
-
/**
|
|
3729
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3730
|
-
*/
|
|
3731
|
-
pageSize?: number;
|
|
3732
3930
|
/**
|
|
3733
3931
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
3932
|
*/
|
|
3735
3933
|
pageToken?: string;
|
|
3934
|
+
/**
|
|
3935
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3936
|
+
*/
|
|
3937
|
+
pageSize?: number;
|
|
3736
3938
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
3939
|
}
|
|
3738
3940
|
|
|
@@ -3763,7 +3965,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
3965
|
* @returns any
|
|
3764
3966
|
* @throws ApiError
|
|
3765
3967
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3968
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
3969
|
/**
|
|
3768
3970
|
* A primary network blockchain id or alias.
|
|
3769
3971
|
*/
|
|
@@ -3776,14 +3978,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
3978
|
* 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".
|
|
3777
3979
|
*/
|
|
3778
3980
|
addresses?: string;
|
|
3779
|
-
/**
|
|
3780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3781
|
-
*/
|
|
3782
|
-
pageSize?: number;
|
|
3783
3981
|
/**
|
|
3784
3982
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
3983
|
*/
|
|
3786
3984
|
pageToken?: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3987
|
+
*/
|
|
3988
|
+
pageSize?: number;
|
|
3787
3989
|
/**
|
|
3788
3990
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
3991
|
*/
|
|
@@ -3828,7 +4030,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4030
|
* @returns ListXChainVerticesResponse
|
|
3829
4031
|
* @throws ApiError
|
|
3830
4032
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4033
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4034
|
/**
|
|
3833
4035
|
* A primary network blockchain id or alias.
|
|
3834
4036
|
*/
|
|
@@ -3837,14 +4039,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4039
|
* Either mainnet or a testnet.
|
|
3838
4040
|
*/
|
|
3839
4041
|
network: Network;
|
|
3840
|
-
/**
|
|
3841
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3842
|
-
*/
|
|
3843
|
-
pageSize?: number;
|
|
3844
4042
|
/**
|
|
3845
4043
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4044
|
*/
|
|
3847
4045
|
pageToken?: string;
|
|
4046
|
+
/**
|
|
4047
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4048
|
+
*/
|
|
4049
|
+
pageSize?: number;
|
|
3848
4050
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4051
|
/**
|
|
3850
4052
|
* Get vertex
|
|
@@ -3872,7 +4074,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4074
|
* @returns ListXChainVerticesResponse
|
|
3873
4075
|
* @throws ApiError
|
|
3874
4076
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4077
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4078
|
/**
|
|
3877
4079
|
* The height of a vertex.
|
|
3878
4080
|
*/
|
|
@@ -3885,19 +4087,404 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4087
|
* Either mainnet or a testnet.
|
|
3886
4088
|
*/
|
|
3887
4089
|
network: Network;
|
|
4090
|
+
/**
|
|
4091
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4092
|
+
*/
|
|
4093
|
+
pageToken?: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4096
|
+
*/
|
|
4097
|
+
pageSize?: number;
|
|
4098
|
+
/**
|
|
4099
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4100
|
+
*/
|
|
4101
|
+
sortOrder?: SortOrder;
|
|
4102
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
type RpcErrorDto = {
|
|
4106
|
+
code: number;
|
|
4107
|
+
message: string;
|
|
4108
|
+
data?: Record<string, any>;
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
type RpcErrorResponseDto = {
|
|
4112
|
+
jsonrpc: string;
|
|
4113
|
+
id?: (string | number);
|
|
4114
|
+
error: RpcErrorDto;
|
|
4115
|
+
};
|
|
4116
|
+
|
|
4117
|
+
type RpcRequestBodyDto = {
|
|
4118
|
+
method: string;
|
|
4119
|
+
params?: Record<string, any>;
|
|
4120
|
+
id?: (string | number);
|
|
4121
|
+
jsonrpc?: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type RpcSuccessResponseDto = {
|
|
4125
|
+
jsonrpc: string;
|
|
4126
|
+
id?: (string | number);
|
|
4127
|
+
result: Record<string, any>;
|
|
4128
|
+
};
|
|
4129
|
+
|
|
4130
|
+
declare class RpcService {
|
|
4131
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4132
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4133
|
+
/**
|
|
4134
|
+
* Calls JSON-RPC method
|
|
4135
|
+
* Calls JSON-RPC method.
|
|
4136
|
+
* @returns any
|
|
4137
|
+
* @throws ApiError
|
|
4138
|
+
*/
|
|
4139
|
+
rpc({ chainId, requestBody, }: {
|
|
4140
|
+
/**
|
|
4141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4142
|
+
*/
|
|
4143
|
+
chainId: string;
|
|
4144
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4145
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
type TeleporterDestinationTransaction = {
|
|
4149
|
+
txHash: string;
|
|
4150
|
+
timestamp: number;
|
|
4151
|
+
gasSpent: string;
|
|
4152
|
+
rewardRedeemer: string;
|
|
4153
|
+
delivererAddress: string;
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
type TeleporterReceipt = {
|
|
4157
|
+
receivedMessageNonce: string;
|
|
4158
|
+
relayerRewardAddress: string;
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
type TeleporterRewardDetails = {
|
|
4162
|
+
/**
|
|
4163
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4164
|
+
*/
|
|
4165
|
+
address: string;
|
|
4166
|
+
/**
|
|
4167
|
+
* The contract name.
|
|
4168
|
+
*/
|
|
4169
|
+
name: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* The contract symbol.
|
|
4172
|
+
*/
|
|
4173
|
+
symbol: string;
|
|
4174
|
+
/**
|
|
4175
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4176
|
+
*/
|
|
4177
|
+
decimals: number;
|
|
4178
|
+
/**
|
|
4179
|
+
* The logo uri for the address.
|
|
4180
|
+
*/
|
|
4181
|
+
logoUri?: string;
|
|
4182
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4183
|
+
/**
|
|
4184
|
+
* The token price, if available.
|
|
4185
|
+
*/
|
|
4186
|
+
price?: Money;
|
|
4187
|
+
value: string;
|
|
4188
|
+
};
|
|
4189
|
+
declare namespace TeleporterRewardDetails {
|
|
4190
|
+
enum ercType {
|
|
4191
|
+
ERC_20 = "ERC-20"
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4196
|
+
messageId: string;
|
|
4197
|
+
teleporterContractAddress: string;
|
|
4198
|
+
sourceBlockchainId: string;
|
|
4199
|
+
destinationBlockchainId: string;
|
|
4200
|
+
messageNonce: string;
|
|
4201
|
+
from: string;
|
|
4202
|
+
to: string;
|
|
4203
|
+
data?: string;
|
|
4204
|
+
messageExecuted: boolean;
|
|
4205
|
+
receipts: Array<TeleporterReceipt>;
|
|
4206
|
+
receiptDelivered: boolean;
|
|
4207
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4208
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4209
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4210
|
+
};
|
|
4211
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4212
|
+
enum status {
|
|
4213
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4214
|
+
}
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
type TeleporterSourceTransaction = {
|
|
4218
|
+
txHash: string;
|
|
4219
|
+
timestamp: number;
|
|
4220
|
+
gasSpent: string;
|
|
4221
|
+
};
|
|
4222
|
+
|
|
4223
|
+
type DeliveredTeleporterMessage = {
|
|
4224
|
+
messageId: string;
|
|
4225
|
+
teleporterContractAddress: string;
|
|
4226
|
+
sourceBlockchainId: string;
|
|
4227
|
+
destinationBlockchainId: string;
|
|
4228
|
+
messageNonce: string;
|
|
4229
|
+
from: string;
|
|
4230
|
+
to: string;
|
|
4231
|
+
data?: string;
|
|
4232
|
+
messageExecuted: boolean;
|
|
4233
|
+
receipts: Array<TeleporterReceipt>;
|
|
4234
|
+
receiptDelivered: boolean;
|
|
4235
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4236
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4237
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4238
|
+
status: DeliveredTeleporterMessage.status;
|
|
4239
|
+
};
|
|
4240
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4241
|
+
enum status {
|
|
4242
|
+
DELIVERED = "delivered"
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
type NextPageToken = {
|
|
4247
|
+
/**
|
|
4248
|
+
* 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.
|
|
4249
|
+
*/
|
|
4250
|
+
nextPageToken?: string;
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
type PendingTeleporterMessage = {
|
|
4254
|
+
messageId: string;
|
|
4255
|
+
teleporterContractAddress: string;
|
|
4256
|
+
sourceBlockchainId: string;
|
|
4257
|
+
destinationBlockchainId: string;
|
|
4258
|
+
messageNonce: string;
|
|
4259
|
+
from: string;
|
|
4260
|
+
to: string;
|
|
4261
|
+
data?: string;
|
|
4262
|
+
messageExecuted: boolean;
|
|
4263
|
+
receipts: Array<TeleporterReceipt>;
|
|
4264
|
+
receiptDelivered: boolean;
|
|
4265
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4266
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4267
|
+
status: PendingTeleporterMessage.status;
|
|
4268
|
+
};
|
|
4269
|
+
declare namespace PendingTeleporterMessage {
|
|
4270
|
+
enum status {
|
|
4271
|
+
PENDING = "pending"
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
declare class TeleporterService {
|
|
4276
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4277
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4278
|
+
/**
|
|
4279
|
+
* Get a teleporter message
|
|
4280
|
+
* Gets a teleporter message by message ID.
|
|
4281
|
+
* @returns any
|
|
4282
|
+
* @throws ApiError
|
|
4283
|
+
*/
|
|
4284
|
+
getTeleporterMessage({ messageId, }: {
|
|
4285
|
+
/**
|
|
4286
|
+
* The message ID of the teleporter message.
|
|
4287
|
+
*/
|
|
4288
|
+
messageId: string;
|
|
4289
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4290
|
+
/**
|
|
4291
|
+
* List teleporter messages
|
|
4292
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4293
|
+
* @returns any
|
|
4294
|
+
* @throws ApiError
|
|
4295
|
+
*/
|
|
4296
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4297
|
+
/**
|
|
4298
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4299
|
+
*/
|
|
4300
|
+
pageToken?: string;
|
|
3888
4301
|
/**
|
|
3889
4302
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3890
4303
|
*/
|
|
3891
4304
|
pageSize?: number;
|
|
4305
|
+
/**
|
|
4306
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4307
|
+
*/
|
|
4308
|
+
sourceBlockchainId?: string;
|
|
4309
|
+
/**
|
|
4310
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4311
|
+
*/
|
|
4312
|
+
destinationBlockchainId?: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* The address of the recipient of the teleporter message.
|
|
4315
|
+
*/
|
|
4316
|
+
to?: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The address of the sender of the teleporter message.
|
|
4319
|
+
*/
|
|
4320
|
+
from?: string;
|
|
4321
|
+
}): CancelablePromise<NextPageToken>;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
type AddressActivityMetadata = {
|
|
4325
|
+
/**
|
|
4326
|
+
* Ethereum address for the address_activity event type
|
|
4327
|
+
*/
|
|
4328
|
+
address: string;
|
|
4329
|
+
/**
|
|
4330
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4331
|
+
*/
|
|
4332
|
+
eventSignatures?: Array<string>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
declare enum EventType {
|
|
4336
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
declare enum WebhookStatusType {
|
|
4340
|
+
ACTIVE = "active",
|
|
4341
|
+
INACTIVE = "inactive"
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
type WebhookResponse = {
|
|
4345
|
+
id: string;
|
|
4346
|
+
eventType: EventType;
|
|
4347
|
+
metadata: AddressActivityMetadata;
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether to include traces in the webhook payload.
|
|
4350
|
+
*/
|
|
4351
|
+
includeInternalTxs?: boolean;
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether to include logs in the webhook payload.
|
|
4354
|
+
*/
|
|
4355
|
+
includeLogs?: boolean;
|
|
4356
|
+
url: string;
|
|
4357
|
+
chainId: string;
|
|
4358
|
+
status: WebhookStatusType;
|
|
4359
|
+
createdAt: number;
|
|
4360
|
+
name: string;
|
|
4361
|
+
description: string;
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
type ListWebhooksResponse = {
|
|
4365
|
+
/**
|
|
4366
|
+
* 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.
|
|
4367
|
+
*/
|
|
4368
|
+
nextPageToken?: string;
|
|
4369
|
+
webhooks: Array<WebhookResponse>;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type RegisterWebhookRequest = {
|
|
4373
|
+
url: string;
|
|
4374
|
+
chainId: string;
|
|
4375
|
+
eventType: EventType;
|
|
4376
|
+
metadata: AddressActivityMetadata;
|
|
4377
|
+
/**
|
|
4378
|
+
* Whether to include traces in the webhook payload.
|
|
4379
|
+
*/
|
|
4380
|
+
includeInternalTxs?: boolean;
|
|
4381
|
+
/**
|
|
4382
|
+
* Whether to include logs in the webhook payload.
|
|
4383
|
+
*/
|
|
4384
|
+
includeLogs?: boolean;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
type SharedSecretsResponse = {
|
|
4388
|
+
secret: string;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
type UpdateWebhookRequest = {
|
|
4392
|
+
name?: string;
|
|
4393
|
+
description?: string;
|
|
4394
|
+
url?: string;
|
|
4395
|
+
status?: WebhookStatusType;
|
|
4396
|
+
includeInternalTxs?: boolean;
|
|
4397
|
+
includeLogs?: boolean;
|
|
4398
|
+
};
|
|
4399
|
+
|
|
4400
|
+
declare enum WebhookStatus {
|
|
4401
|
+
ACTIVE = "active",
|
|
4402
|
+
INACTIVE = "inactive"
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
declare class WebhooksService {
|
|
4406
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4407
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4408
|
+
/**
|
|
4409
|
+
* Register a webhook
|
|
4410
|
+
* Registers a new webhook.
|
|
4411
|
+
* @returns WebhookResponse
|
|
4412
|
+
* @throws ApiError
|
|
4413
|
+
*/
|
|
4414
|
+
registerWebhook({ requestBody, }: {
|
|
4415
|
+
requestBody: RegisterWebhookRequest;
|
|
4416
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4417
|
+
/**
|
|
4418
|
+
* List webhooks
|
|
4419
|
+
* Lists webhooks for the user.
|
|
4420
|
+
* @returns ListWebhooksResponse
|
|
4421
|
+
* @throws ApiError
|
|
4422
|
+
*/
|
|
4423
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3892
4424
|
/**
|
|
3893
4425
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4426
|
*/
|
|
3895
4427
|
pageToken?: string;
|
|
3896
4428
|
/**
|
|
3897
|
-
* The
|
|
4429
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
4430
|
*/
|
|
3899
|
-
|
|
3900
|
-
|
|
4431
|
+
pageSize?: number;
|
|
4432
|
+
/**
|
|
4433
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
4434
|
+
*/
|
|
4435
|
+
status?: WebhookStatus;
|
|
4436
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get a webhook by ID
|
|
4439
|
+
* Retrieves a webhook by ID.
|
|
4440
|
+
* @returns WebhookResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
getWebhook({ id, }: {
|
|
4444
|
+
/**
|
|
4445
|
+
* The webhook identifier.
|
|
4446
|
+
*/
|
|
4447
|
+
id: string;
|
|
4448
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4449
|
+
/**
|
|
4450
|
+
* Deactivate a webhook
|
|
4451
|
+
* Deactivates a webhook by ID.
|
|
4452
|
+
* @returns WebhookResponse
|
|
4453
|
+
* @throws ApiError
|
|
4454
|
+
*/
|
|
4455
|
+
deactivateWebhook({ id, }: {
|
|
4456
|
+
/**
|
|
4457
|
+
* The webhook identifier.
|
|
4458
|
+
*/
|
|
4459
|
+
id: string;
|
|
4460
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4461
|
+
/**
|
|
4462
|
+
* Update a webhook
|
|
4463
|
+
* Updates an existing webhook.
|
|
4464
|
+
* @returns WebhookResponse
|
|
4465
|
+
* @throws ApiError
|
|
4466
|
+
*/
|
|
4467
|
+
updateWebhook({ id, requestBody, }: {
|
|
4468
|
+
/**
|
|
4469
|
+
* The webhook identifier.
|
|
4470
|
+
*/
|
|
4471
|
+
id: string;
|
|
4472
|
+
requestBody: UpdateWebhookRequest;
|
|
4473
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4474
|
+
/**
|
|
4475
|
+
* Generate a shared secret
|
|
4476
|
+
* Generates a new shared secret.
|
|
4477
|
+
* @returns SharedSecretsResponse
|
|
4478
|
+
* @throws ApiError
|
|
4479
|
+
*/
|
|
4480
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4481
|
+
/**
|
|
4482
|
+
* Get a shared secret
|
|
4483
|
+
* Get a previously generated shared secret.
|
|
4484
|
+
* @returns SharedSecretsResponse
|
|
4485
|
+
* @throws ApiError
|
|
4486
|
+
*/
|
|
4487
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
3901
4488
|
}
|
|
3902
4489
|
|
|
3903
4490
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3918,6 +4505,9 @@ declare class Glacier {
|
|
|
3918
4505
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3919
4506
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3920
4507
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4508
|
+
readonly rpc: RpcService;
|
|
4509
|
+
readonly teleporter: TeleporterService;
|
|
4510
|
+
readonly webhooks: WebhooksService;
|
|
3921
4511
|
readonly request: BaseHttpRequest;
|
|
3922
4512
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3923
4513
|
}
|
|
@@ -3939,4 +4529,4 @@ declare class ApiError extends Error {
|
|
|
3939
4529
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4530
|
}
|
|
3941
4531
|
|
|
3942
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4532
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, 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, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, 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, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, 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, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|