@avalabs/glacier-sdk 2.8.0-canary.5ea9049.0 → 2.8.0-canary.5ec79a1.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 +1113 -416
- package/dist/index.js +509 -174
- 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 +38 -36
- package/esm/generated/core/request.js +3 -2
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -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 +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -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 +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.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/ListWebhookAddressesResponse.d.ts +10 -0
- 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 +29 -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/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +10 -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 +27 -23
- package/esm/generated/services/EvmBalancesService.js +10 -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 +57 -42
- package/esm/generated/services/PrimaryNetworkService.js +30 -24
- 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 +62 -0
- package/esm/generated/services/TeleporterService.js +41 -0
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +125 -0
- package/esm/index.d.ts +40 -3
- package/esm/index.js +18 -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>;
|
|
@@ -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, pageSize,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, 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,18 @@ 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;
|
|
378
|
+
/**
|
|
379
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
380
|
+
*/
|
|
381
|
+
pageToken?: string;
|
|
387
382
|
/**
|
|
388
383
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
389
384
|
*/
|
|
390
385
|
pageSize?: number;
|
|
391
386
|
/**
|
|
392
|
-
*
|
|
387
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
393
388
|
*/
|
|
394
|
-
|
|
389
|
+
filterSpamTokens?: boolean;
|
|
395
390
|
/**
|
|
396
391
|
* A comma separated list of contract addresses to filter by.
|
|
397
392
|
*/
|
|
@@ -409,23 +404,23 @@ declare class EvmBalancesService {
|
|
|
409
404
|
* @returns ListErc721BalancesResponse
|
|
410
405
|
* @throws ApiError
|
|
411
406
|
*/
|
|
412
|
-
listErc721Balances({ chainId, address,
|
|
407
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
413
408
|
/**
|
|
414
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
409
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
415
410
|
*/
|
|
416
411
|
chainId: string;
|
|
417
412
|
/**
|
|
418
413
|
* A wallet address.
|
|
419
414
|
*/
|
|
420
415
|
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
416
|
/**
|
|
426
417
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
427
418
|
*/
|
|
428
419
|
pageToken?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
422
|
+
*/
|
|
423
|
+
pageSize?: number;
|
|
429
424
|
/**
|
|
430
425
|
* A contract addresses to filter by.
|
|
431
426
|
*/
|
|
@@ -441,9 +436,9 @@ declare class EvmBalancesService {
|
|
|
441
436
|
* @returns ListErc1155BalancesResponse
|
|
442
437
|
* @throws ApiError
|
|
443
438
|
*/
|
|
444
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
439
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
445
440
|
/**
|
|
446
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
441
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
447
442
|
*/
|
|
448
443
|
chainId: string;
|
|
449
444
|
/**
|
|
@@ -454,14 +449,14 @@ declare class EvmBalancesService {
|
|
|
454
449
|
* The block number, if not defined the block number will be the latest block.
|
|
455
450
|
*/
|
|
456
451
|
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
452
|
/**
|
|
462
453
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
463
454
|
*/
|
|
464
455
|
pageToken?: string;
|
|
456
|
+
/**
|
|
457
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
458
|
+
*/
|
|
459
|
+
pageSize?: number;
|
|
465
460
|
/**
|
|
466
461
|
* A contract addresses to filter by.
|
|
467
462
|
*/
|
|
@@ -475,23 +470,23 @@ declare class EvmBalancesService {
|
|
|
475
470
|
* @returns ListCollectibleBalancesResponse
|
|
476
471
|
* @throws ApiError
|
|
477
472
|
*/
|
|
478
|
-
listCollectibleBalances({ chainId, address,
|
|
473
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
479
474
|
/**
|
|
480
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
475
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
481
476
|
*/
|
|
482
477
|
chainId: string;
|
|
483
478
|
/**
|
|
484
479
|
* A wallet address.
|
|
485
480
|
*/
|
|
486
481
|
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
482
|
/**
|
|
492
483
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
493
484
|
*/
|
|
494
485
|
pageToken?: string;
|
|
486
|
+
/**
|
|
487
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
488
|
+
*/
|
|
489
|
+
pageSize?: number;
|
|
495
490
|
/**
|
|
496
491
|
* A contract addresses to filter by.
|
|
497
492
|
*/
|
|
@@ -604,19 +599,19 @@ declare class EvmBlocksService {
|
|
|
604
599
|
* @returns ListEvmBlocksResponse
|
|
605
600
|
* @throws ApiError
|
|
606
601
|
*/
|
|
607
|
-
getLatestBlocks({ chainId,
|
|
602
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
608
603
|
/**
|
|
609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
604
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
610
605
|
*/
|
|
611
606
|
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
607
|
/**
|
|
617
608
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
618
609
|
*/
|
|
619
610
|
pageToken?: string;
|
|
611
|
+
/**
|
|
612
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
613
|
+
*/
|
|
614
|
+
pageSize?: number;
|
|
620
615
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
621
616
|
/**
|
|
622
617
|
* Get block
|
|
@@ -626,7 +621,7 @@ declare class EvmBlocksService {
|
|
|
626
621
|
*/
|
|
627
622
|
getBlock({ chainId, blockId, }: {
|
|
628
623
|
/**
|
|
629
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
624
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
630
625
|
*/
|
|
631
626
|
chainId: string;
|
|
632
627
|
/**
|
|
@@ -636,6 +631,9 @@ declare class EvmBlocksService {
|
|
|
636
631
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
637
632
|
}
|
|
638
633
|
|
|
634
|
+
/**
|
|
635
|
+
* 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.
|
|
636
|
+
*/
|
|
639
637
|
declare enum ChainStatus {
|
|
640
638
|
OK = "OK",
|
|
641
639
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -673,9 +671,6 @@ declare enum VmName {
|
|
|
673
671
|
|
|
674
672
|
type GetChainResponse = {
|
|
675
673
|
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
674
|
status: ChainStatus;
|
|
680
675
|
chainName: string;
|
|
681
676
|
description: string;
|
|
@@ -691,13 +686,16 @@ type GetChainResponse = {
|
|
|
691
686
|
networkToken: NetworkToken;
|
|
692
687
|
chainLogoUri?: string;
|
|
693
688
|
private?: boolean;
|
|
689
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
694
690
|
};
|
|
695
691
|
|
|
692
|
+
declare enum GlacierApiFeature {
|
|
693
|
+
NFT_INDEXING = "nftIndexing",
|
|
694
|
+
WEBHOOKS = "webhooks"
|
|
695
|
+
}
|
|
696
|
+
|
|
696
697
|
type ChainInfo = {
|
|
697
698
|
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
699
|
status: ChainStatus;
|
|
702
700
|
chainName: string;
|
|
703
701
|
description: string;
|
|
@@ -713,6 +711,7 @@ type ChainInfo = {
|
|
|
713
711
|
networkToken: NetworkToken;
|
|
714
712
|
chainLogoUri?: string;
|
|
715
713
|
private?: boolean;
|
|
714
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
716
715
|
};
|
|
717
716
|
|
|
718
717
|
type ListChainsResponse = {
|
|
@@ -733,11 +732,15 @@ declare class EvmChainsService {
|
|
|
733
732
|
* @returns ListChainsResponse
|
|
734
733
|
* @throws ApiError
|
|
735
734
|
*/
|
|
736
|
-
supportedChains({ network, }: {
|
|
735
|
+
supportedChains({ network, feature, }: {
|
|
737
736
|
/**
|
|
738
737
|
* mainnet or testnet.
|
|
739
738
|
*/
|
|
740
739
|
network?: NetworkType;
|
|
740
|
+
/**
|
|
741
|
+
* Filter by feature.
|
|
742
|
+
*/
|
|
743
|
+
feature?: GlacierApiFeature;
|
|
741
744
|
}): CancelablePromise<ListChainsResponse>;
|
|
742
745
|
/**
|
|
743
746
|
* Get chain information
|
|
@@ -747,7 +750,7 @@ declare class EvmChainsService {
|
|
|
747
750
|
*/
|
|
748
751
|
getChainInfo({ chainId, }: {
|
|
749
752
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
753
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
754
|
*/
|
|
752
755
|
chainId: string;
|
|
753
756
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1045,7 @@ declare class EvmContractsService {
|
|
|
1042
1045
|
*/
|
|
1043
1046
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1047
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1048
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1049
|
*/
|
|
1047
1050
|
chainId: string;
|
|
1048
1051
|
/**
|
|
@@ -1058,7 +1061,7 @@ declare class EvmContractsService {
|
|
|
1058
1061
|
*/
|
|
1059
1062
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1063
|
/**
|
|
1061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1064
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
1065
|
*/
|
|
1063
1066
|
chainId: string;
|
|
1064
1067
|
/**
|
|
@@ -1192,6 +1195,9 @@ type Erc721TransferDetails = {
|
|
|
1192
1195
|
erc721Token: Erc721Token;
|
|
1193
1196
|
};
|
|
1194
1197
|
|
|
1198
|
+
/**
|
|
1199
|
+
* 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.
|
|
1200
|
+
*/
|
|
1195
1201
|
declare enum TransactionMethodType {
|
|
1196
1202
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1197
1203
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1199,9 +1205,6 @@ declare enum TransactionMethodType {
|
|
|
1199
1205
|
}
|
|
1200
1206
|
|
|
1201
1207
|
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
1208
|
callType: TransactionMethodType;
|
|
1206
1209
|
/**
|
|
1207
1210
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1562,7 +1565,7 @@ type ListTransfersResponse = {
|
|
|
1562
1565
|
* 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
1566
|
*/
|
|
1564
1567
|
nextPageToken?: string;
|
|
1565
|
-
transfers:
|
|
1568
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1566
1569
|
};
|
|
1567
1570
|
|
|
1568
1571
|
declare enum SortOrder {
|
|
@@ -1586,7 +1589,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1589
|
*/
|
|
1587
1590
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1591
|
/**
|
|
1589
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1592
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1590
1593
|
*/
|
|
1591
1594
|
chainId: string;
|
|
1592
1595
|
/**
|
|
@@ -1604,23 +1607,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1607
|
* @returns ListContractsResponse
|
|
1605
1608
|
* @throws ApiError
|
|
1606
1609
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1610
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1611
|
/**
|
|
1609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1612
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1610
1613
|
*/
|
|
1611
1614
|
chainId: string;
|
|
1612
1615
|
/**
|
|
1613
1616
|
* A wallet address.
|
|
1614
1617
|
*/
|
|
1615
1618
|
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
1619
|
/**
|
|
1621
1620
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1621
|
*/
|
|
1623
1622
|
pageToken?: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1625
|
+
*/
|
|
1626
|
+
pageSize?: number;
|
|
1624
1627
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1628
|
/**
|
|
1626
1629
|
* List ERC transfers
|
|
@@ -1628,25 +1631,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1631
|
* @returns ListTransfersResponse
|
|
1629
1632
|
* @throws ApiError
|
|
1630
1633
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1634
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1635
|
/**
|
|
1633
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1636
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1634
1637
|
*/
|
|
1635
1638
|
chainId: string;
|
|
1636
1639
|
/**
|
|
1637
1640
|
* A wallet address.
|
|
1638
1641
|
*/
|
|
1639
1642
|
address: string;
|
|
1643
|
+
/**
|
|
1644
|
+
* 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.
|
|
1645
|
+
*/
|
|
1640
1646
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1647
|
/**
|
|
1643
|
-
* The
|
|
1648
|
+
* 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
1649
|
*/
|
|
1645
|
-
|
|
1650
|
+
endBlock?: number;
|
|
1646
1651
|
/**
|
|
1647
1652
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1653
|
*/
|
|
1649
1654
|
pageToken?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1657
|
+
*/
|
|
1658
|
+
pageSize?: number;
|
|
1650
1659
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1660
|
/**
|
|
1652
1661
|
* List transactions
|
|
@@ -1656,24 +1665,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1665
|
* @returns ListTransactionDetailsResponse
|
|
1657
1666
|
* @throws ApiError
|
|
1658
1667
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1668
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1669
|
/**
|
|
1661
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1670
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1662
1671
|
*/
|
|
1663
1672
|
chainId: string;
|
|
1664
1673
|
/**
|
|
1665
1674
|
* A wallet address.
|
|
1666
1675
|
*/
|
|
1667
1676
|
address: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1679
|
+
*/
|
|
1680
|
+
pageToken?: string;
|
|
1668
1681
|
/**
|
|
1669
1682
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1683
|
*/
|
|
1671
1684
|
pageSize?: number;
|
|
1672
1685
|
/**
|
|
1673
|
-
*
|
|
1686
|
+
* 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
1687
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
1688
|
startBlock?: number;
|
|
1689
|
+
/**
|
|
1690
|
+
* 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.
|
|
1691
|
+
*/
|
|
1677
1692
|
endBlock?: number;
|
|
1678
1693
|
/**
|
|
1679
1694
|
* 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 +1701,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1701
|
* @returns ListNativeTransactionsResponse
|
|
1687
1702
|
* @throws ApiError
|
|
1688
1703
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1704
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1705
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1706
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1707
|
*/
|
|
1693
1708
|
chainId: string;
|
|
1694
1709
|
/**
|
|
1695
1710
|
* A wallet address.
|
|
1696
1711
|
*/
|
|
1697
1712
|
address: string;
|
|
1713
|
+
/**
|
|
1714
|
+
* 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.
|
|
1715
|
+
*/
|
|
1698
1716
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1717
|
/**
|
|
1701
|
-
* The
|
|
1718
|
+
* 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
1719
|
*/
|
|
1703
|
-
|
|
1720
|
+
endBlock?: number;
|
|
1704
1721
|
/**
|
|
1705
1722
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1723
|
*/
|
|
1707
1724
|
pageToken?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1727
|
+
*/
|
|
1728
|
+
pageSize?: number;
|
|
1708
1729
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1730
|
/**
|
|
1710
1731
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1733,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1733
|
* @returns ListErc20TransactionsResponse
|
|
1713
1734
|
* @throws ApiError
|
|
1714
1735
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1736
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1737
|
/**
|
|
1717
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1738
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1718
1739
|
*/
|
|
1719
1740
|
chainId: string;
|
|
1720
1741
|
/**
|
|
1721
1742
|
* A wallet address.
|
|
1722
1743
|
*/
|
|
1723
1744
|
address: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* 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.
|
|
1747
|
+
*/
|
|
1724
1748
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1749
|
/**
|
|
1727
|
-
* The
|
|
1750
|
+
* 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
1751
|
*/
|
|
1729
|
-
|
|
1752
|
+
endBlock?: number;
|
|
1730
1753
|
/**
|
|
1731
1754
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1755
|
*/
|
|
1733
1756
|
pageToken?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1759
|
+
*/
|
|
1760
|
+
pageSize?: number;
|
|
1734
1761
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1762
|
/**
|
|
1736
1763
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1765,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1765
|
* @returns ListErc721TransactionsResponse
|
|
1739
1766
|
* @throws ApiError
|
|
1740
1767
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1768
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1769
|
/**
|
|
1743
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1744
1771
|
*/
|
|
1745
1772
|
chainId: string;
|
|
1746
1773
|
/**
|
|
1747
1774
|
* A wallet address.
|
|
1748
1775
|
*/
|
|
1749
1776
|
address: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* 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.
|
|
1779
|
+
*/
|
|
1750
1780
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1781
|
/**
|
|
1753
|
-
* The
|
|
1782
|
+
* 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
1783
|
*/
|
|
1755
|
-
|
|
1784
|
+
endBlock?: number;
|
|
1756
1785
|
/**
|
|
1757
1786
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1787
|
*/
|
|
1759
1788
|
pageToken?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1791
|
+
*/
|
|
1792
|
+
pageSize?: number;
|
|
1760
1793
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1794
|
/**
|
|
1762
1795
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1797,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1797
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1798
|
* @throws ApiError
|
|
1766
1799
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1800
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1801
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1802
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1803
|
*/
|
|
1771
1804
|
chainId: string;
|
|
1772
1805
|
/**
|
|
1773
1806
|
* A wallet address.
|
|
1774
1807
|
*/
|
|
1775
1808
|
address: string;
|
|
1809
|
+
/**
|
|
1810
|
+
* 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.
|
|
1811
|
+
*/
|
|
1776
1812
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1813
|
/**
|
|
1779
|
-
* The
|
|
1814
|
+
* 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
1815
|
*/
|
|
1781
|
-
|
|
1816
|
+
endBlock?: number;
|
|
1782
1817
|
/**
|
|
1783
1818
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1819
|
*/
|
|
1785
1820
|
pageToken?: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1823
|
+
*/
|
|
1824
|
+
pageSize?: number;
|
|
1786
1825
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1826
|
/**
|
|
1788
1827
|
* List internal transactions
|
|
@@ -1792,25 +1831,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1831
|
* @returns ListInternalTransactionsResponse
|
|
1793
1832
|
* @throws ApiError
|
|
1794
1833
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1834
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1835
|
/**
|
|
1797
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1836
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
1837
|
*/
|
|
1799
1838
|
chainId: string;
|
|
1800
1839
|
/**
|
|
1801
1840
|
* A wallet address.
|
|
1802
1841
|
*/
|
|
1803
1842
|
address: string;
|
|
1843
|
+
/**
|
|
1844
|
+
* 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.
|
|
1845
|
+
*/
|
|
1804
1846
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1847
|
/**
|
|
1807
|
-
* The
|
|
1848
|
+
* 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
1849
|
*/
|
|
1809
|
-
|
|
1850
|
+
endBlock?: number;
|
|
1810
1851
|
/**
|
|
1811
1852
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1853
|
*/
|
|
1813
1854
|
pageToken?: string;
|
|
1855
|
+
/**
|
|
1856
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
+
*/
|
|
1858
|
+
pageSize?: number;
|
|
1814
1859
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1860
|
/**
|
|
1816
1861
|
* Get transaction
|
|
@@ -1820,7 +1865,7 @@ declare class EvmTransactionsService {
|
|
|
1820
1865
|
*/
|
|
1821
1866
|
getTransaction({ chainId, txHash, }: {
|
|
1822
1867
|
/**
|
|
1823
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1868
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1824
1869
|
*/
|
|
1825
1870
|
chainId: string;
|
|
1826
1871
|
/**
|
|
@@ -1836,7 +1881,7 @@ declare class EvmTransactionsService {
|
|
|
1836
1881
|
*/
|
|
1837
1882
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
1883
|
/**
|
|
1839
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1884
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1840
1885
|
*/
|
|
1841
1886
|
chainId: string;
|
|
1842
1887
|
/**
|
|
@@ -1850,19 +1895,19 @@ declare class EvmTransactionsService {
|
|
|
1850
1895
|
* @returns ListNativeTransactionsResponse
|
|
1851
1896
|
* @throws ApiError
|
|
1852
1897
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
1898
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
1899
|
/**
|
|
1855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1900
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1856
1901
|
*/
|
|
1857
1902
|
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
1903
|
/**
|
|
1863
1904
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
1905
|
*/
|
|
1865
1906
|
pageToken?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1909
|
+
*/
|
|
1910
|
+
pageSize?: number;
|
|
1866
1911
|
/**
|
|
1867
1912
|
* A status filter for listed transactions.
|
|
1868
1913
|
*/
|
|
@@ -1886,6 +1931,14 @@ declare class HealthCheckService {
|
|
|
1886
1931
|
}>;
|
|
1887
1932
|
}
|
|
1888
1933
|
|
|
1934
|
+
type ListNftTokens = {
|
|
1935
|
+
/**
|
|
1936
|
+
* 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.
|
|
1937
|
+
*/
|
|
1938
|
+
nextPageToken?: string;
|
|
1939
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1889
1942
|
declare class NfTsService {
|
|
1890
1943
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
1944
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1897,7 +1950,7 @@ declare class NfTsService {
|
|
|
1897
1950
|
*/
|
|
1898
1951
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
1952
|
/**
|
|
1900
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1953
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
1954
|
*/
|
|
1902
1955
|
chainId: string;
|
|
1903
1956
|
/**
|
|
@@ -1909,6 +1962,30 @@ declare class NfTsService {
|
|
|
1909
1962
|
*/
|
|
1910
1963
|
tokenId: string;
|
|
1911
1964
|
}): CancelablePromise<any>;
|
|
1965
|
+
/**
|
|
1966
|
+
* List tokens
|
|
1967
|
+
* Lists tokens for an NFT contract.
|
|
1968
|
+
* @returns ListNftTokens
|
|
1969
|
+
* @throws ApiError
|
|
1970
|
+
*/
|
|
1971
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1972
|
+
/**
|
|
1973
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1974
|
+
*/
|
|
1975
|
+
chainId: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* Contract address on the relevant chain.
|
|
1978
|
+
*/
|
|
1979
|
+
address: string;
|
|
1980
|
+
/**
|
|
1981
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1982
|
+
*/
|
|
1983
|
+
pageToken?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1986
|
+
*/
|
|
1987
|
+
pageSize?: number;
|
|
1988
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
1989
|
/**
|
|
1913
1990
|
* Get token details
|
|
1914
1991
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1917,7 +1994,7 @@ declare class NfTsService {
|
|
|
1917
1994
|
*/
|
|
1918
1995
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
1996
|
/**
|
|
1920
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1997
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1921
1998
|
*/
|
|
1922
1999
|
chainId: string;
|
|
1923
2000
|
/**
|
|
@@ -1936,8 +2013,12 @@ type EvmNetworkOptions = {
|
|
|
1936
2013
|
includeChains: Array<string>;
|
|
1937
2014
|
};
|
|
1938
2015
|
|
|
2016
|
+
declare enum EVMOperationType {
|
|
2017
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1939
2020
|
type CreateEvmTransactionExportRequest = {
|
|
1940
|
-
type:
|
|
2021
|
+
type: EVMOperationType;
|
|
1941
2022
|
firstDate: string;
|
|
1942
2023
|
lastDate: string;
|
|
1943
2024
|
/**
|
|
@@ -1950,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1950
2031
|
endDate: string;
|
|
1951
2032
|
options: EvmNetworkOptions;
|
|
1952
2033
|
};
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
2034
|
+
|
|
2035
|
+
declare enum PrimaryNetworkOperationType {
|
|
2036
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2037
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2038
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1957
2039
|
}
|
|
1958
2040
|
|
|
1959
2041
|
type PrimaryNetworkOptions = {
|
|
1960
|
-
addresses
|
|
2042
|
+
addresses?: Array<string>;
|
|
1961
2043
|
cChainEvmAddresses?: Array<string>;
|
|
1962
2044
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1963
2045
|
};
|
|
1964
2046
|
|
|
1965
2047
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1966
|
-
type:
|
|
2048
|
+
type: PrimaryNetworkOperationType;
|
|
1967
2049
|
firstDate: string;
|
|
1968
2050
|
lastDate: string;
|
|
1969
2051
|
/**
|
|
@@ -1976,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1976
2058
|
endDate: string;
|
|
1977
2059
|
options: PrimaryNetworkOptions;
|
|
1978
2060
|
};
|
|
1979
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1980
|
-
enum type {
|
|
1981
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
2061
|
|
|
1985
2062
|
declare enum OperationStatus {
|
|
1986
2063
|
RUNNING = "RUNNING",
|
|
@@ -1990,8 +2067,10 @@ declare enum OperationStatus {
|
|
|
1990
2067
|
}
|
|
1991
2068
|
|
|
1992
2069
|
declare enum OperationType {
|
|
1993
|
-
|
|
1994
|
-
|
|
2070
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2072
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2073
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1995
2074
|
}
|
|
1996
2075
|
|
|
1997
2076
|
declare enum OperationStatusCode {
|
|
@@ -2025,17 +2104,6 @@ type OperationStatusResponse = {
|
|
|
2025
2104
|
declare class OperationsService {
|
|
2026
2105
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2106
|
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
2107
|
/**
|
|
2040
2108
|
* Get operation
|
|
2041
2109
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2116,17 @@ declare class OperationsService {
|
|
|
2048
2116
|
*/
|
|
2049
2117
|
operationId: string;
|
|
2050
2118
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Create transaction export operation
|
|
2121
|
+
* Trigger a transaction export operation with given parameters.
|
|
2122
|
+
*
|
|
2123
|
+
* 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.
|
|
2124
|
+
* @returns OperationStatusResponse
|
|
2125
|
+
* @throws ApiError
|
|
2126
|
+
*/
|
|
2127
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2128
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2129
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
2130
|
}
|
|
2052
2131
|
|
|
2053
2132
|
declare enum BlockchainIds {
|
|
@@ -2183,13 +2262,44 @@ type BlockchainInfo = {
|
|
|
2183
2262
|
blockchainId: string;
|
|
2184
2263
|
};
|
|
2185
2264
|
|
|
2265
|
+
type SubnetOwnershipInfo = {
|
|
2266
|
+
/**
|
|
2267
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2268
|
+
*/
|
|
2269
|
+
locktime: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
threshold: number;
|
|
2274
|
+
/**
|
|
2275
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2276
|
+
*/
|
|
2277
|
+
addresses: Array<string>;
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2186
2280
|
type Subnet = {
|
|
2187
2281
|
createBlockTimestamp: number;
|
|
2188
2282
|
createBlockIndex: string;
|
|
2189
2283
|
subnetId: string;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2190
2288
|
ownerAddresses: Array<string>;
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2191
2293
|
threshold: number;
|
|
2294
|
+
/**
|
|
2295
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2296
|
+
* @deprecated
|
|
2297
|
+
*/
|
|
2192
2298
|
locktime: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* Latest subnet owner details for this Subnet.
|
|
2301
|
+
*/
|
|
2302
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2193
2303
|
blockchains: Array<BlockchainInfo>;
|
|
2194
2304
|
};
|
|
2195
2305
|
|
|
@@ -2285,6 +2395,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2395
|
}
|
|
2286
2396
|
}
|
|
2287
2397
|
|
|
2398
|
+
type RemovedValidatorDetails = {
|
|
2399
|
+
txHash: string;
|
|
2400
|
+
nodeId: string;
|
|
2401
|
+
subnetId: string;
|
|
2402
|
+
amountStaked: string;
|
|
2403
|
+
delegationFee?: string;
|
|
2404
|
+
startTimestamp: number;
|
|
2405
|
+
endTimestamp: number;
|
|
2406
|
+
removeTxHash: string;
|
|
2407
|
+
removeTimestamp: number;
|
|
2408
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2409
|
+
};
|
|
2410
|
+
declare namespace RemovedValidatorDetails {
|
|
2411
|
+
enum validationStatus {
|
|
2412
|
+
REMOVED = "removed"
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2288
2416
|
type ListValidatorDetailsResponse = {
|
|
2289
2417
|
/**
|
|
2290
2418
|
* 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 +2421,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2421
|
/**
|
|
2294
2422
|
* The list of validator Details.
|
|
2295
2423
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2424
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2425
|
};
|
|
2298
2426
|
|
|
2299
2427
|
declare enum Network {
|
|
@@ -2301,10 +2429,35 @@ declare enum Network {
|
|
|
2301
2429
|
FUJI = "fuji"
|
|
2302
2430
|
}
|
|
2303
2431
|
|
|
2432
|
+
declare enum SortByOption {
|
|
2433
|
+
BLOCK_INDEX = "blockIndex",
|
|
2434
|
+
DELEGATION_CAPACITY = "delegationCapacity",
|
|
2435
|
+
TIME_REMAINING = "timeRemaining",
|
|
2436
|
+
DELEGATION_FEE = "delegationFee",
|
|
2437
|
+
UPTIME_PERFORMANCE = "uptimePerformance"
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2304
2440
|
declare enum ValidationStatusType {
|
|
2305
2441
|
COMPLETED = "completed",
|
|
2306
2442
|
ACTIVE = "active",
|
|
2307
|
-
PENDING = "pending"
|
|
2443
|
+
PENDING = "pending",
|
|
2444
|
+
REMOVED = "removed"
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2449
|
+
*/
|
|
2450
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2451
|
+
FIXED = "fixed",
|
|
2452
|
+
VARIABLE = "variable"
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2457
|
+
*/
|
|
2458
|
+
declare enum PrimaryNetworkAssetType {
|
|
2459
|
+
SECP256K1 = "secp256k1",
|
|
2460
|
+
NFT = "nft"
|
|
2308
2461
|
}
|
|
2309
2462
|
|
|
2310
2463
|
type XChainAssetDetails = {
|
|
@@ -2324,18 +2477,12 @@ type XChainAssetDetails = {
|
|
|
2324
2477
|
* Denomination of this asset to represent fungibility.
|
|
2325
2478
|
*/
|
|
2326
2479
|
denomination: number;
|
|
2327
|
-
|
|
2328
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2329
|
-
*/
|
|
2330
|
-
type: string;
|
|
2480
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2481
|
/**
|
|
2332
2482
|
* Timestamp in seconds this asset was created on.
|
|
2333
2483
|
*/
|
|
2334
2484
|
createdAtTimestamp: number;
|
|
2335
|
-
|
|
2336
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2337
|
-
*/
|
|
2338
|
-
cap: string;
|
|
2485
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2486
|
};
|
|
2340
2487
|
|
|
2341
2488
|
declare enum XChainId {
|
|
@@ -2401,19 +2548,19 @@ declare class PrimaryNetworkService {
|
|
|
2401
2548
|
* @returns ListBlockchainsResponse
|
|
2402
2549
|
* @throws ApiError
|
|
2403
2550
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2551
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2552
|
/**
|
|
2406
2553
|
* Either mainnet or a testnet.
|
|
2407
2554
|
*/
|
|
2408
2555
|
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
2556
|
/**
|
|
2414
2557
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2558
|
*/
|
|
2416
2559
|
pageToken?: string;
|
|
2560
|
+
/**
|
|
2561
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2562
|
+
*/
|
|
2563
|
+
pageSize?: number;
|
|
2417
2564
|
/**
|
|
2418
2565
|
* 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
2566
|
*/
|
|
@@ -2425,19 +2572,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2572
|
* @returns ListSubnetsResponse
|
|
2426
2573
|
* @throws ApiError
|
|
2427
2574
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2575
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2576
|
/**
|
|
2430
2577
|
* Either mainnet or a testnet.
|
|
2431
2578
|
*/
|
|
2432
2579
|
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
2580
|
/**
|
|
2438
2581
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2439
2582
|
*/
|
|
2440
2583
|
pageToken?: string;
|
|
2584
|
+
/**
|
|
2585
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2586
|
+
*/
|
|
2587
|
+
pageSize?: number;
|
|
2441
2588
|
/**
|
|
2442
2589
|
* 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
2590
|
*/
|
|
@@ -2449,59 +2596,73 @@ declare class PrimaryNetworkService {
|
|
|
2449
2596
|
* @returns ListValidatorDetailsResponse
|
|
2450
2597
|
* @throws ApiError
|
|
2451
2598
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2599
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2453
2600
|
/**
|
|
2454
2601
|
* Either mainnet or a testnet.
|
|
2455
2602
|
*/
|
|
2456
2603
|
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
2604
|
/**
|
|
2462
2605
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2463
2606
|
*/
|
|
2464
2607
|
pageToken?: string;
|
|
2465
2608
|
/**
|
|
2466
|
-
* The
|
|
2609
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2467
2610
|
*/
|
|
2468
|
-
|
|
2611
|
+
pageSize?: number;
|
|
2469
2612
|
/**
|
|
2470
|
-
*
|
|
2613
|
+
* A comma separated list of node ids to filter by.
|
|
2614
|
+
*/
|
|
2615
|
+
nodeIds?: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
2618
|
+
*
|
|
2619
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
2471
2620
|
*/
|
|
2472
|
-
|
|
2621
|
+
sortBy?: SortByOption;
|
|
2622
|
+
/**
|
|
2623
|
+
* 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.
|
|
2624
|
+
*/
|
|
2625
|
+
sortOrder?: SortOrder;
|
|
2626
|
+
/**
|
|
2627
|
+
* Validation status of the node.
|
|
2628
|
+
*/
|
|
2629
|
+
validationStatus?: ValidationStatusType;
|
|
2473
2630
|
/**
|
|
2474
2631
|
* 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
|
|
2475
2632
|
*/
|
|
2476
|
-
minDelegationCapacity?:
|
|
2633
|
+
minDelegationCapacity?: string;
|
|
2477
2634
|
/**
|
|
2478
2635
|
* 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.
|
|
2479
2636
|
*/
|
|
2480
|
-
maxDelegationCapacity?:
|
|
2637
|
+
maxDelegationCapacity?: string;
|
|
2481
2638
|
/**
|
|
2482
|
-
* The minimum
|
|
2639
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2483
2640
|
*/
|
|
2484
|
-
|
|
2641
|
+
minTimeRemaining?: number;
|
|
2485
2642
|
/**
|
|
2486
|
-
* The maximum
|
|
2643
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2487
2644
|
*/
|
|
2488
|
-
|
|
2645
|
+
maxTimeRemaining?: number;
|
|
2489
2646
|
/**
|
|
2490
|
-
*
|
|
2647
|
+
* 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.0, as per the Avalanche spec.
|
|
2491
2648
|
*/
|
|
2492
|
-
|
|
2649
|
+
minFeePercentage?: number;
|
|
2493
2650
|
/**
|
|
2494
|
-
* The
|
|
2651
|
+
* 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.0.
|
|
2495
2652
|
*/
|
|
2496
|
-
|
|
2653
|
+
maxFeePercentage?: number;
|
|
2497
2654
|
/**
|
|
2498
|
-
*
|
|
2655
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
2499
2656
|
*/
|
|
2500
|
-
|
|
2657
|
+
minUptimePerformance?: number;
|
|
2658
|
+
/**
|
|
2659
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
2660
|
+
*/
|
|
2661
|
+
maxUptimePerformance?: number;
|
|
2501
2662
|
/**
|
|
2502
2663
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2664
|
*/
|
|
2504
|
-
subnetId?:
|
|
2665
|
+
subnetId?: any;
|
|
2505
2666
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2506
2667
|
/**
|
|
2507
2668
|
* Get single validator details
|
|
@@ -2509,7 +2670,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2670
|
* @returns ListValidatorDetailsResponse
|
|
2510
2671
|
* @throws ApiError
|
|
2511
2672
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId, pageSize,
|
|
2673
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2513
2674
|
/**
|
|
2514
2675
|
* Either mainnet or a testnet.
|
|
2515
2676
|
*/
|
|
@@ -2518,22 +2679,22 @@ declare class PrimaryNetworkService {
|
|
|
2518
2679
|
* A primary network (P or X chain) nodeId.
|
|
2519
2680
|
*/
|
|
2520
2681
|
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
2682
|
/**
|
|
2526
2683
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2684
|
*/
|
|
2528
2685
|
pageToken?: string;
|
|
2529
2686
|
/**
|
|
2530
|
-
* The
|
|
2687
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2531
2688
|
*/
|
|
2532
|
-
|
|
2689
|
+
pageSize?: number;
|
|
2533
2690
|
/**
|
|
2534
2691
|
* Validation status of the node.
|
|
2535
2692
|
*/
|
|
2536
2693
|
validationStatus?: ValidationStatusType;
|
|
2694
|
+
/**
|
|
2695
|
+
* 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.
|
|
2696
|
+
*/
|
|
2697
|
+
sortOrder?: SortOrder;
|
|
2537
2698
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2538
2699
|
/**
|
|
2539
2700
|
* List delegators
|
|
@@ -2541,19 +2702,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2702
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2703
|
* @throws ApiError
|
|
2543
2704
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2705
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2706
|
/**
|
|
2546
2707
|
* Either mainnet or a testnet.
|
|
2547
2708
|
*/
|
|
2548
2709
|
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
2710
|
/**
|
|
2554
2711
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2712
|
*/
|
|
2556
2713
|
pageToken?: string;
|
|
2714
|
+
/**
|
|
2715
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2716
|
+
*/
|
|
2717
|
+
pageSize?: number;
|
|
2557
2718
|
/**
|
|
2558
2719
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2720
|
*/
|
|
@@ -2601,10 +2762,7 @@ type CChainSharedAssetBalance = {
|
|
|
2601
2762
|
* Denomination of this asset to represent fungibility.
|
|
2602
2763
|
*/
|
|
2603
2764
|
denomination: number;
|
|
2604
|
-
|
|
2605
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2606
|
-
*/
|
|
2607
|
-
type: string;
|
|
2765
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2766
|
/**
|
|
2609
2767
|
* Amount of the asset.
|
|
2610
2768
|
*/
|
|
@@ -2639,49 +2797,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2797
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2798
|
};
|
|
2641
2799
|
|
|
2642
|
-
type
|
|
2800
|
+
type AggregatedAssetAmount = {
|
|
2801
|
+
/**
|
|
2802
|
+
* Unique ID for an asset.
|
|
2803
|
+
*/
|
|
2643
2804
|
assetId: string;
|
|
2805
|
+
/**
|
|
2806
|
+
* Name of this asset.
|
|
2807
|
+
*/
|
|
2808
|
+
name: string;
|
|
2809
|
+
/**
|
|
2810
|
+
* Symbol for this asset (max 4 characters).
|
|
2811
|
+
*/
|
|
2812
|
+
symbol: string;
|
|
2813
|
+
/**
|
|
2814
|
+
* Denomination of this asset to represent fungibility.
|
|
2815
|
+
*/
|
|
2816
|
+
denomination: number;
|
|
2817
|
+
type: PrimaryNetworkAssetType;
|
|
2818
|
+
/**
|
|
2819
|
+
* Amount of the asset.
|
|
2820
|
+
*/
|
|
2644
2821
|
amount: string;
|
|
2822
|
+
utxoCount: number;
|
|
2645
2823
|
};
|
|
2646
2824
|
|
|
2647
2825
|
type PChainSharedAsset = {
|
|
2826
|
+
/**
|
|
2827
|
+
* Unique ID for an asset.
|
|
2828
|
+
*/
|
|
2648
2829
|
assetId: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* Name of this asset.
|
|
2832
|
+
*/
|
|
2833
|
+
name: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* Symbol for this asset (max 4 characters).
|
|
2836
|
+
*/
|
|
2837
|
+
symbol: string;
|
|
2838
|
+
/**
|
|
2839
|
+
* Denomination of this asset to represent fungibility.
|
|
2840
|
+
*/
|
|
2841
|
+
denomination: number;
|
|
2842
|
+
type: PrimaryNetworkAssetType;
|
|
2843
|
+
/**
|
|
2844
|
+
* Amount of the asset.
|
|
2845
|
+
*/
|
|
2649
2846
|
amount: string;
|
|
2847
|
+
utxoCount: number;
|
|
2650
2848
|
sharedWithChainId: string;
|
|
2651
2849
|
status: string;
|
|
2652
2850
|
};
|
|
2653
2851
|
|
|
2654
2852
|
type PChainBalance = {
|
|
2655
2853
|
/**
|
|
2656
|
-
* A list of objects containing P-chain Asset
|
|
2854
|
+
* 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
2855
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2856
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2659
2857
|
/**
|
|
2660
|
-
* A list of objects containing P-chain Asset
|
|
2858
|
+
* 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
2859
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2860
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2663
2861
|
/**
|
|
2664
|
-
* A list of objects containing P-chain Asset
|
|
2862
|
+
* 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
2863
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2864
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2667
2865
|
/**
|
|
2668
|
-
* A list of objects containing P-chain Asset
|
|
2866
|
+
* 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
2867
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2868
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2671
2869
|
/**
|
|
2672
|
-
* A list of objects containing P-chain Asset
|
|
2870
|
+
* 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
2871
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2872
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2675
2873
|
/**
|
|
2676
|
-
* A list of objects containing P-chain Asset
|
|
2874
|
+
* 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
2875
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2876
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2679
2877
|
/**
|
|
2680
|
-
* A list of objects containing P-chain Asset
|
|
2878
|
+
* 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
2879
|
*/
|
|
2682
2880
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2683
2881
|
/**
|
|
2684
|
-
* A list of objects containing P-chain Asset
|
|
2882
|
+
* 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
2883
|
*/
|
|
2686
2884
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2687
2885
|
};
|
|
@@ -2691,34 +2889,6 @@ type ListPChainBalancesResponse = {
|
|
|
2691
2889
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2692
2890
|
};
|
|
2693
2891
|
|
|
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
2892
|
type XChainSharedAssetBalance = {
|
|
2723
2893
|
/**
|
|
2724
2894
|
* Unique ID for an asset.
|
|
@@ -2736,10 +2906,7 @@ type XChainSharedAssetBalance = {
|
|
|
2736
2906
|
* Denomination of this asset to represent fungibility.
|
|
2737
2907
|
*/
|
|
2738
2908
|
denomination: number;
|
|
2739
|
-
|
|
2740
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2741
|
-
*/
|
|
2742
|
-
type: string;
|
|
2909
|
+
type: PrimaryNetworkAssetType;
|
|
2743
2910
|
/**
|
|
2744
2911
|
* Amount of the asset.
|
|
2745
2912
|
*/
|
|
@@ -2752,11 +2919,11 @@ type XChainBalances = {
|
|
|
2752
2919
|
/**
|
|
2753
2920
|
* A list of objects containing X-chain Asset balance information.
|
|
2754
2921
|
*/
|
|
2755
|
-
locked: Array<
|
|
2922
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2756
2923
|
/**
|
|
2757
2924
|
* A list of objects containing X-chain Asset balance information.
|
|
2758
2925
|
*/
|
|
2759
|
-
unlocked: Array<
|
|
2926
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2760
2927
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2761
2928
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2762
2929
|
};
|
|
@@ -2814,6 +2981,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
2981
|
txCount: number;
|
|
2815
2982
|
transactions: Array<string>;
|
|
2816
2983
|
blockSizeBytes: number;
|
|
2984
|
+
currentSupply?: string;
|
|
2817
2985
|
proposerDetails?: ProposerDetails;
|
|
2818
2986
|
};
|
|
2819
2987
|
|
|
@@ -2826,6 +2994,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
2994
|
txCount: number;
|
|
2827
2995
|
transactions: Array<string>;
|
|
2828
2996
|
blockSizeBytes: number;
|
|
2997
|
+
currentSupply?: string;
|
|
2829
2998
|
proposerDetails?: ProposerDetails;
|
|
2830
2999
|
};
|
|
2831
3000
|
|
|
@@ -2867,7 +3036,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3036
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3037
|
* @throws ApiError
|
|
2869
3038
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3039
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3040
|
/**
|
|
2872
3041
|
* A primary network blockchain id or alias.
|
|
2873
3042
|
*/
|
|
@@ -2880,14 +3049,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3049
|
* A primary network (P or X chain) nodeId.
|
|
2881
3050
|
*/
|
|
2882
3051
|
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
3052
|
/**
|
|
2888
3053
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3054
|
*/
|
|
2890
3055
|
pageToken?: string;
|
|
3056
|
+
/**
|
|
3057
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3058
|
+
*/
|
|
3059
|
+
pageSize?: number;
|
|
2891
3060
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3061
|
/**
|
|
2893
3062
|
* List latest blocks
|
|
@@ -2895,7 +3064,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3064
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3065
|
* @throws ApiError
|
|
2897
3066
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3067
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3068
|
/**
|
|
2900
3069
|
* A primary network blockchain id or alias.
|
|
2901
3070
|
*/
|
|
@@ -2904,17 +3073,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3073
|
* Either mainnet or a testnet.
|
|
2905
3074
|
*/
|
|
2906
3075
|
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
3076
|
/**
|
|
2912
3077
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3078
|
*/
|
|
2914
3079
|
pageToken?: string;
|
|
3080
|
+
/**
|
|
3081
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3082
|
+
*/
|
|
3083
|
+
pageSize?: number;
|
|
2915
3084
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3085
|
}
|
|
2917
3086
|
|
|
3087
|
+
type AssetWithPriceInfo = {
|
|
3088
|
+
/**
|
|
3089
|
+
* Unique ID for an asset.
|
|
3090
|
+
*/
|
|
3091
|
+
assetId: string;
|
|
3092
|
+
/**
|
|
3093
|
+
* Name of this asset.
|
|
3094
|
+
*/
|
|
3095
|
+
name: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* Symbol for this asset (max 4 characters).
|
|
3098
|
+
*/
|
|
3099
|
+
symbol: string;
|
|
3100
|
+
/**
|
|
3101
|
+
* Denomination of this asset to represent fungibility.
|
|
3102
|
+
*/
|
|
3103
|
+
denomination: number;
|
|
3104
|
+
type: PrimaryNetworkAssetType;
|
|
3105
|
+
/**
|
|
3106
|
+
* Amount of the asset.
|
|
3107
|
+
*/
|
|
3108
|
+
amount: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* 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.
|
|
3111
|
+
*/
|
|
3112
|
+
historicalPrice?: Money;
|
|
3113
|
+
};
|
|
3114
|
+
|
|
2918
3115
|
declare enum RewardType {
|
|
2919
3116
|
VALIDATOR = "VALIDATOR",
|
|
2920
3117
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3131,7 @@ type HistoricalReward = {
|
|
|
2934
3131
|
rewardType: RewardType;
|
|
2935
3132
|
utxoId: string;
|
|
2936
3133
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3134
|
+
reward: AssetWithPriceInfo;
|
|
2941
3135
|
rewardTxHash: string;
|
|
2942
3136
|
};
|
|
2943
3137
|
|
|
@@ -2949,6 +3143,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2949
3143
|
historicalRewards: Array<HistoricalReward>;
|
|
2950
3144
|
};
|
|
2951
3145
|
|
|
3146
|
+
type AssetAmount = {
|
|
3147
|
+
/**
|
|
3148
|
+
* Unique ID for an asset.
|
|
3149
|
+
*/
|
|
3150
|
+
assetId: string;
|
|
3151
|
+
/**
|
|
3152
|
+
* Name of this asset.
|
|
3153
|
+
*/
|
|
3154
|
+
name: string;
|
|
3155
|
+
/**
|
|
3156
|
+
* Symbol for this asset (max 4 characters).
|
|
3157
|
+
*/
|
|
3158
|
+
symbol: string;
|
|
3159
|
+
/**
|
|
3160
|
+
* Denomination of this asset to represent fungibility.
|
|
3161
|
+
*/
|
|
3162
|
+
denomination: number;
|
|
3163
|
+
type: PrimaryNetworkAssetType;
|
|
3164
|
+
/**
|
|
3165
|
+
* Amount of the asset.
|
|
3166
|
+
*/
|
|
3167
|
+
amount: string;
|
|
3168
|
+
};
|
|
3169
|
+
|
|
2952
3170
|
type PendingReward = {
|
|
2953
3171
|
/**
|
|
2954
3172
|
* An array of P-Chain wallet addresses.
|
|
@@ -2962,9 +3180,9 @@ type PendingReward = {
|
|
|
2962
3180
|
rewardType: RewardType;
|
|
2963
3181
|
progress: number;
|
|
2964
3182
|
/**
|
|
2965
|
-
* An object containing P-chain Asset
|
|
3183
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2966
3184
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3185
|
+
estimatedReward: AssetAmount;
|
|
2968
3186
|
};
|
|
2969
3187
|
|
|
2970
3188
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3202,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3202
|
* @returns ListPendingRewardsResponse
|
|
2985
3203
|
* @throws ApiError
|
|
2986
3204
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3205
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3206
|
/**
|
|
2989
3207
|
* Either mainnet or a testnet.
|
|
2990
3208
|
*/
|
|
2991
3209
|
network: Network;
|
|
2992
3210
|
/**
|
|
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".
|
|
3211
|
+
* 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
3212
|
*/
|
|
2995
3213
|
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
3214
|
/**
|
|
3001
3215
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3216
|
*/
|
|
3003
3217
|
pageToken?: string;
|
|
3004
3218
|
/**
|
|
3005
|
-
*
|
|
3219
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3220
|
+
*/
|
|
3221
|
+
pageSize?: number;
|
|
3222
|
+
/**
|
|
3223
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3006
3224
|
*/
|
|
3007
3225
|
nodeIds?: string;
|
|
3008
3226
|
/**
|
|
@@ -3016,68 +3234,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3234
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3235
|
* @throws ApiError
|
|
3018
3236
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3237
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3238
|
/**
|
|
3021
3239
|
* Either mainnet or a testnet.
|
|
3022
3240
|
*/
|
|
3023
3241
|
network: Network;
|
|
3024
3242
|
/**
|
|
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".
|
|
3243
|
+
* 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
3244
|
*/
|
|
3027
3245
|
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
3246
|
/**
|
|
3033
3247
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3248
|
*/
|
|
3035
3249
|
pageToken?: string;
|
|
3036
3250
|
/**
|
|
3037
|
-
*
|
|
3251
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3252
|
+
*/
|
|
3253
|
+
pageSize?: number;
|
|
3254
|
+
/**
|
|
3255
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3038
3256
|
*/
|
|
3039
3257
|
nodeIds?: string;
|
|
3040
3258
|
/**
|
|
3041
3259
|
* 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
3260
|
*/
|
|
3043
3261
|
sortOrder?: SortOrder;
|
|
3262
|
+
/**
|
|
3263
|
+
* The currency that return values should use. Defaults to USD.
|
|
3264
|
+
*/
|
|
3265
|
+
currency?: CurrencyCode;
|
|
3044
3266
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3267
|
}
|
|
3046
3268
|
|
|
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
3269
|
type UtxoCredential = {
|
|
3075
3270
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3271
|
+
* Signature provided to consume the output.
|
|
3077
3272
|
*/
|
|
3078
3273
|
signature?: string;
|
|
3079
3274
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3275
|
+
* Public key associated with the signature.
|
|
3081
3276
|
*/
|
|
3082
3277
|
publicKey?: string;
|
|
3083
3278
|
};
|
|
@@ -3088,9 +3283,9 @@ type EVMInput = {
|
|
|
3088
3283
|
*/
|
|
3089
3284
|
fromAddress: string;
|
|
3090
3285
|
/**
|
|
3091
|
-
*
|
|
3286
|
+
* AssetAmount details for the asset being transferred.
|
|
3092
3287
|
*/
|
|
3093
|
-
asset:
|
|
3288
|
+
asset: AssetAmount;
|
|
3094
3289
|
/**
|
|
3095
3290
|
* Credentials that signed this transaction.
|
|
3096
3291
|
*/
|
|
@@ -3099,66 +3294,66 @@ type EVMInput = {
|
|
|
3099
3294
|
|
|
3100
3295
|
type Utxo = {
|
|
3101
3296
|
/**
|
|
3102
|
-
*
|
|
3297
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3298
|
*/
|
|
3104
|
-
|
|
3105
|
-
asset:
|
|
3299
|
+
addresses: Array<string>;
|
|
3300
|
+
asset: AssetAmount;
|
|
3106
3301
|
/**
|
|
3107
|
-
*
|
|
3302
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3303
|
*/
|
|
3109
|
-
|
|
3304
|
+
consumedOnChainId: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* Transaction ID that consumed this output.
|
|
3307
|
+
*/
|
|
3308
|
+
consumingTxHash?: string;
|
|
3110
3309
|
/**
|
|
3111
3310
|
* Blockchain ID on which this output is created on.
|
|
3112
3311
|
*/
|
|
3113
3312
|
createdOnChainId: string;
|
|
3114
3313
|
/**
|
|
3115
|
-
*
|
|
3314
|
+
* UTXO ID for this output.
|
|
3116
3315
|
*/
|
|
3117
|
-
|
|
3316
|
+
utxoId: string;
|
|
3317
|
+
/**
|
|
3318
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3319
|
+
*/
|
|
3320
|
+
consumingTxTimestamp?: number;
|
|
3118
3321
|
/**
|
|
3119
3322
|
* Transaction ID that created this output.
|
|
3120
3323
|
*/
|
|
3121
3324
|
creationTxHash: string;
|
|
3122
3325
|
/**
|
|
3123
|
-
*
|
|
3326
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3124
3327
|
*/
|
|
3125
|
-
|
|
3328
|
+
credentials?: Array<UtxoCredential>;
|
|
3126
3329
|
/**
|
|
3127
|
-
*
|
|
3330
|
+
* Index representing the minting set for the NFT mint output.
|
|
3128
3331
|
*/
|
|
3129
|
-
|
|
3332
|
+
groupId?: number;
|
|
3333
|
+
/**
|
|
3334
|
+
* Locktime in seconds after which this output can be consumed.
|
|
3335
|
+
*/
|
|
3336
|
+
locktime: number;
|
|
3130
3337
|
/**
|
|
3131
3338
|
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3132
3339
|
*/
|
|
3133
3340
|
outputIndex: string;
|
|
3134
3341
|
/**
|
|
3135
|
-
*
|
|
3342
|
+
* Hex encoded data for NFT assets.
|
|
3136
3343
|
*/
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* Locktime in seconds after which this output can be consumed.
|
|
3140
|
-
*/
|
|
3141
|
-
locktime: number;
|
|
3344
|
+
payload?: string;
|
|
3142
3345
|
/**
|
|
3143
3346
|
* Minimum number of signatures required to consume this output.
|
|
3144
3347
|
*/
|
|
3145
3348
|
threshold: number;
|
|
3146
3349
|
/**
|
|
3147
|
-
*
|
|
3148
|
-
*/
|
|
3149
|
-
addresses: Array<string>;
|
|
3150
|
-
/**
|
|
3151
|
-
* Hex encoded data for NFT assets
|
|
3152
|
-
*/
|
|
3153
|
-
payload?: string;
|
|
3154
|
-
/**
|
|
3155
|
-
* Index representing the minting set for the NFT mint output
|
|
3350
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3156
3351
|
*/
|
|
3157
|
-
|
|
3352
|
+
timestamp: number;
|
|
3158
3353
|
/**
|
|
3159
|
-
*
|
|
3354
|
+
* Type of output.
|
|
3160
3355
|
*/
|
|
3161
|
-
|
|
3356
|
+
utxoType: string;
|
|
3162
3357
|
};
|
|
3163
3358
|
|
|
3164
3359
|
type CChainExportTransaction = {
|
|
@@ -3185,11 +3380,11 @@ type CChainExportTransaction = {
|
|
|
3185
3380
|
/**
|
|
3186
3381
|
* Assets unlocked by inputs of this transaction.
|
|
3187
3382
|
*/
|
|
3188
|
-
amountUnlocked: Array<
|
|
3383
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3189
3384
|
/**
|
|
3190
3385
|
* Assets created by outputs of this transaction.
|
|
3191
3386
|
*/
|
|
3192
|
-
amountCreated: Array<
|
|
3387
|
+
amountCreated: Array<AssetAmount>;
|
|
3193
3388
|
/**
|
|
3194
3389
|
* Source chain for an atomic transaction.
|
|
3195
3390
|
*/
|
|
@@ -3220,9 +3415,9 @@ type EVMOutput = {
|
|
|
3220
3415
|
*/
|
|
3221
3416
|
toAddress: string;
|
|
3222
3417
|
/**
|
|
3223
|
-
*
|
|
3418
|
+
* AssetAmount details for the asset being transferred.
|
|
3224
3419
|
*/
|
|
3225
|
-
asset:
|
|
3420
|
+
asset: AssetAmount;
|
|
3226
3421
|
};
|
|
3227
3422
|
|
|
3228
3423
|
type CChainImportTransaction = {
|
|
@@ -3249,11 +3444,11 @@ type CChainImportTransaction = {
|
|
|
3249
3444
|
/**
|
|
3250
3445
|
* Assets unlocked by inputs of this transaction.
|
|
3251
3446
|
*/
|
|
3252
|
-
amountUnlocked: Array<
|
|
3447
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3253
3448
|
/**
|
|
3254
3449
|
* Assets created by outputs of this transaction.
|
|
3255
3450
|
*/
|
|
3256
|
-
amountCreated: Array<
|
|
3451
|
+
amountCreated: Array<AssetAmount>;
|
|
3257
3452
|
/**
|
|
3258
3453
|
* Source chain for an atomic transaction.
|
|
3259
3454
|
*/
|
|
@@ -3289,17 +3484,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3484
|
|
|
3290
3485
|
declare enum PChainTransactionType {
|
|
3291
3486
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3487
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3488
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3489
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3490
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3491
|
IMPORT_TX = "ImportTx",
|
|
3301
3492
|
EXPORT_TX = "ExportTx",
|
|
3302
3493
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3494
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3495
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3496
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3497
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3498
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3499
|
+
BASE_TX = "BaseTx",
|
|
3500
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3303
3501
|
UNKNOWN = "UNKNOWN"
|
|
3304
3502
|
}
|
|
3305
3503
|
|
|
@@ -3310,29 +3508,48 @@ declare enum UtxoType {
|
|
|
3310
3508
|
|
|
3311
3509
|
type PChainUtxo = {
|
|
3312
3510
|
/**
|
|
3313
|
-
*
|
|
3511
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3512
|
*/
|
|
3315
3513
|
addresses: Array<string>;
|
|
3514
|
+
asset: AssetAmount;
|
|
3515
|
+
/**
|
|
3516
|
+
* Blockchain ID on which this output is consumed on.
|
|
3517
|
+
*/
|
|
3518
|
+
consumedOnChainId: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* Transaction ID that consumed this output.
|
|
3521
|
+
*/
|
|
3522
|
+
consumingTxHash?: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* Blockchain ID on which this output is created on.
|
|
3525
|
+
*/
|
|
3526
|
+
createdOnChainId: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* UTXO ID for this output.
|
|
3529
|
+
*/
|
|
3316
3530
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3531
|
+
/**
|
|
3532
|
+
* @deprecated
|
|
3533
|
+
*/
|
|
3534
|
+
amount: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* @deprecated
|
|
3537
|
+
*/
|
|
3538
|
+
assetId: string;
|
|
3319
3539
|
blockNumber: string;
|
|
3320
3540
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3541
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3542
|
+
consumingBlockTimestamp?: number;
|
|
3328
3543
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3544
|
+
outputIndex: number;
|
|
3545
|
+
rewardType?: RewardType;
|
|
3546
|
+
stakeableLocktime?: number;
|
|
3332
3547
|
staked?: boolean;
|
|
3333
|
-
|
|
3548
|
+
threshold?: number;
|
|
3549
|
+
txHash: string;
|
|
3334
3550
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3551
|
+
utxoStartTimestamp?: number;
|
|
3552
|
+
utxoType: UtxoType;
|
|
3336
3553
|
};
|
|
3337
3554
|
|
|
3338
3555
|
type PChainTransaction = {
|
|
@@ -3358,17 +3575,17 @@ type PChainTransaction = {
|
|
|
3358
3575
|
*/
|
|
3359
3576
|
destinationChain?: string;
|
|
3360
3577
|
/**
|
|
3361
|
-
* A list of objects containing P-chain Asset
|
|
3578
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3362
3579
|
*/
|
|
3363
|
-
value: Array<
|
|
3580
|
+
value: Array<AssetAmount>;
|
|
3364
3581
|
/**
|
|
3365
|
-
* A list of objects containing P-chain Asset
|
|
3582
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3366
3583
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3584
|
+
amountBurned: Array<AssetAmount>;
|
|
3368
3585
|
/**
|
|
3369
|
-
* A list of objects containing P-chain Asset
|
|
3586
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3587
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3588
|
+
amountStaked: Array<AssetAmount>;
|
|
3372
3589
|
/**
|
|
3373
3590
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3591
|
*/
|
|
@@ -3400,6 +3617,10 @@ type PChainTransaction = {
|
|
|
3400
3617
|
* Present for RewardValidatorTx
|
|
3401
3618
|
*/
|
|
3402
3619
|
stakingTxHash?: string;
|
|
3620
|
+
/**
|
|
3621
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3622
|
+
*/
|
|
3623
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3403
3624
|
};
|
|
3404
3625
|
|
|
3405
3626
|
type ListPChainTransactionsResponse = {
|
|
@@ -3411,6 +3632,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3632
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3633
|
};
|
|
3413
3634
|
|
|
3635
|
+
/**
|
|
3636
|
+
* Type of transaction.
|
|
3637
|
+
*/
|
|
3638
|
+
declare enum XChainTransactionType {
|
|
3639
|
+
BASE_TX = "BaseTx",
|
|
3640
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3641
|
+
OPERATION_TX = "OperationTx",
|
|
3642
|
+
IMPORT_TX = "ImportTx",
|
|
3643
|
+
EXPORT_TX = "ExportTx",
|
|
3644
|
+
UNKNOWN = "UNKNOWN"
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3414
3647
|
type XChainLinearTransaction = {
|
|
3415
3648
|
/**
|
|
3416
3649
|
* Unique ID for this transaction.
|
|
@@ -3424,10 +3657,7 @@ type XChainLinearTransaction = {
|
|
|
3424
3657
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3425
3658
|
*/
|
|
3426
3659
|
timestamp: number;
|
|
3427
|
-
|
|
3428
|
-
* Type of transaction.
|
|
3429
|
-
*/
|
|
3430
|
-
txType: string;
|
|
3660
|
+
txType: XChainTransactionType;
|
|
3431
3661
|
/**
|
|
3432
3662
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3663
|
*/
|
|
@@ -3437,11 +3667,11 @@ type XChainLinearTransaction = {
|
|
|
3437
3667
|
/**
|
|
3438
3668
|
* Assets unlocked by inputs of this transaction.
|
|
3439
3669
|
*/
|
|
3440
|
-
amountUnlocked: Array<
|
|
3670
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3441
3671
|
/**
|
|
3442
3672
|
* Assets created by outputs of this transaction.
|
|
3443
3673
|
*/
|
|
3444
|
-
amountCreated: Array<
|
|
3674
|
+
amountCreated: Array<AssetAmount>;
|
|
3445
3675
|
/**
|
|
3446
3676
|
* Source chain for an atomic transaction.
|
|
3447
3677
|
*/
|
|
@@ -3451,7 +3681,7 @@ type XChainLinearTransaction = {
|
|
|
3451
3681
|
*/
|
|
3452
3682
|
destinationChain?: string;
|
|
3453
3683
|
/**
|
|
3454
|
-
*
|
|
3684
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3455
3685
|
*/
|
|
3456
3686
|
assetCreated?: XChainAssetDetails;
|
|
3457
3687
|
/**
|
|
@@ -3501,10 +3731,7 @@ type XChainNonLinearTransaction = {
|
|
|
3501
3731
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3502
3732
|
*/
|
|
3503
3733
|
timestamp: number;
|
|
3504
|
-
|
|
3505
|
-
* Type of transaction.
|
|
3506
|
-
*/
|
|
3507
|
-
txType: string;
|
|
3734
|
+
txType: XChainTransactionType;
|
|
3508
3735
|
/**
|
|
3509
3736
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3737
|
*/
|
|
@@ -3514,11 +3741,11 @@ type XChainNonLinearTransaction = {
|
|
|
3514
3741
|
/**
|
|
3515
3742
|
* Assets unlocked by inputs of this transaction.
|
|
3516
3743
|
*/
|
|
3517
|
-
amountUnlocked: Array<
|
|
3744
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3518
3745
|
/**
|
|
3519
3746
|
* Assets created by outputs of this transaction.
|
|
3520
3747
|
*/
|
|
3521
|
-
amountCreated: Array<
|
|
3748
|
+
amountCreated: Array<AssetAmount>;
|
|
3522
3749
|
/**
|
|
3523
3750
|
* Source chain for an atomic transaction.
|
|
3524
3751
|
*/
|
|
@@ -3528,7 +3755,7 @@ type XChainNonLinearTransaction = {
|
|
|
3528
3755
|
*/
|
|
3529
3756
|
destinationChain?: string;
|
|
3530
3757
|
/**
|
|
3531
|
-
*
|
|
3758
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3532
3759
|
*/
|
|
3533
3760
|
assetCreated?: XChainAssetDetails;
|
|
3534
3761
|
/**
|
|
@@ -3562,19 +3789,21 @@ declare enum PChainId {
|
|
|
3562
3789
|
|
|
3563
3790
|
declare enum PrimaryNetworkTxType {
|
|
3564
3791
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3792
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3793
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3794
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3795
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3796
|
IMPORT_TX = "ImportTx",
|
|
3574
3797
|
EXPORT_TX = "ExportTx",
|
|
3575
3798
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3576
|
-
|
|
3799
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3800
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3801
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3802
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3803
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3577
3804
|
BASE_TX = "BaseTx",
|
|
3805
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3806
|
+
UNKNOWN = "UNKNOWN",
|
|
3578
3807
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3579
3808
|
OPERATION_TX = "OperationTx"
|
|
3580
3809
|
}
|
|
@@ -3606,13 +3835,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3835
|
* List latest transactions
|
|
3607
3836
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3837
|
*
|
|
3609
|
-
* Transactions are filterable by addresses.
|
|
3838
|
+
* 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
3839
|
*
|
|
3611
3840
|
* 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
3841
|
* @returns any
|
|
3613
3842
|
* @throws ApiError
|
|
3614
3843
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3844
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3845
|
/**
|
|
3617
3846
|
* A primary network blockchain id or alias.
|
|
3618
3847
|
*/
|
|
@@ -3637,14 +3866,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3866
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3867
|
*/
|
|
3639
3868
|
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
3869
|
/**
|
|
3645
3870
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3871
|
*/
|
|
3647
3872
|
pageToken?: string;
|
|
3873
|
+
/**
|
|
3874
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3875
|
+
*/
|
|
3876
|
+
pageSize?: number;
|
|
3648
3877
|
/**
|
|
3649
3878
|
* 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
3879
|
*/
|
|
@@ -3656,7 +3885,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
3885
|
* @returns ListPChainTransactionsResponse
|
|
3657
3886
|
* @throws ApiError
|
|
3658
3887
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3888
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
3889
|
/**
|
|
3661
3890
|
* A primary network blockchain id or alias.
|
|
3662
3891
|
*/
|
|
@@ -3681,14 +3910,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
3910
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
3911
|
*/
|
|
3683
3912
|
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
3913
|
/**
|
|
3689
3914
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
3915
|
*/
|
|
3691
3916
|
pageToken?: string;
|
|
3917
|
+
/**
|
|
3918
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3919
|
+
*/
|
|
3920
|
+
pageSize?: number;
|
|
3692
3921
|
/**
|
|
3693
3922
|
* 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
3923
|
*/
|
|
@@ -3700,7 +3929,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
3929
|
* @returns ListXChainTransactionsResponse
|
|
3701
3930
|
* @throws ApiError
|
|
3702
3931
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3932
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
3933
|
/**
|
|
3705
3934
|
* A primary network blockchain id or alias.
|
|
3706
3935
|
*/
|
|
@@ -3725,14 +3954,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
3954
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
3955
|
*/
|
|
3727
3956
|
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
3957
|
/**
|
|
3733
3958
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
3959
|
*/
|
|
3735
3960
|
pageToken?: string;
|
|
3961
|
+
/**
|
|
3962
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3963
|
+
*/
|
|
3964
|
+
pageSize?: number;
|
|
3736
3965
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
3966
|
}
|
|
3738
3967
|
|
|
@@ -3763,7 +3992,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
3992
|
* @returns any
|
|
3764
3993
|
* @throws ApiError
|
|
3765
3994
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3995
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
3996
|
/**
|
|
3768
3997
|
* A primary network blockchain id or alias.
|
|
3769
3998
|
*/
|
|
@@ -3776,14 +4005,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
4005
|
* 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
4006
|
*/
|
|
3778
4007
|
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
4008
|
/**
|
|
3784
4009
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
4010
|
*/
|
|
3786
4011
|
pageToken?: string;
|
|
4012
|
+
/**
|
|
4013
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4014
|
+
*/
|
|
4015
|
+
pageSize?: number;
|
|
3787
4016
|
/**
|
|
3788
4017
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
4018
|
*/
|
|
@@ -3828,7 +4057,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4057
|
* @returns ListXChainVerticesResponse
|
|
3829
4058
|
* @throws ApiError
|
|
3830
4059
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4060
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4061
|
/**
|
|
3833
4062
|
* A primary network blockchain id or alias.
|
|
3834
4063
|
*/
|
|
@@ -3837,14 +4066,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4066
|
* Either mainnet or a testnet.
|
|
3838
4067
|
*/
|
|
3839
4068
|
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
4069
|
/**
|
|
3845
4070
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4071
|
*/
|
|
3847
4072
|
pageToken?: string;
|
|
4073
|
+
/**
|
|
4074
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4075
|
+
*/
|
|
4076
|
+
pageSize?: number;
|
|
3848
4077
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4078
|
/**
|
|
3850
4079
|
* Get vertex
|
|
@@ -3872,7 +4101,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4101
|
* @returns ListXChainVerticesResponse
|
|
3873
4102
|
* @throws ApiError
|
|
3874
4103
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4104
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4105
|
/**
|
|
3877
4106
|
* The height of a vertex.
|
|
3878
4107
|
*/
|
|
@@ -3885,19 +4114,477 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4114
|
* Either mainnet or a testnet.
|
|
3886
4115
|
*/
|
|
3887
4116
|
network: Network;
|
|
4117
|
+
/**
|
|
4118
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4119
|
+
*/
|
|
4120
|
+
pageToken?: string;
|
|
4121
|
+
/**
|
|
4122
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4123
|
+
*/
|
|
4124
|
+
pageSize?: number;
|
|
4125
|
+
/**
|
|
4126
|
+
* 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.
|
|
4127
|
+
*/
|
|
4128
|
+
sortOrder?: SortOrder;
|
|
4129
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
type RpcErrorDto = {
|
|
4133
|
+
code: number;
|
|
4134
|
+
message: string;
|
|
4135
|
+
data?: Record<string, any>;
|
|
4136
|
+
};
|
|
4137
|
+
|
|
4138
|
+
type RpcErrorResponseDto = {
|
|
4139
|
+
jsonrpc: string;
|
|
4140
|
+
id?: (string | number);
|
|
4141
|
+
error: RpcErrorDto;
|
|
4142
|
+
};
|
|
4143
|
+
|
|
4144
|
+
type RpcRequestBodyDto = {
|
|
4145
|
+
method: string;
|
|
4146
|
+
params?: Record<string, any>;
|
|
4147
|
+
id?: (string | number);
|
|
4148
|
+
jsonrpc?: string;
|
|
4149
|
+
};
|
|
4150
|
+
|
|
4151
|
+
type RpcSuccessResponseDto = {
|
|
4152
|
+
jsonrpc: string;
|
|
4153
|
+
id?: (string | number);
|
|
4154
|
+
result: Record<string, any>;
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
declare class RpcService {
|
|
4158
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4159
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4160
|
+
/**
|
|
4161
|
+
* Calls JSON-RPC method
|
|
4162
|
+
* Calls JSON-RPC method.
|
|
4163
|
+
* @returns any
|
|
4164
|
+
* @throws ApiError
|
|
4165
|
+
*/
|
|
4166
|
+
rpc({ chainId, requestBody, }: {
|
|
4167
|
+
/**
|
|
4168
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4169
|
+
*/
|
|
4170
|
+
chainId: string;
|
|
4171
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4172
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
type TeleporterDestinationTransaction = {
|
|
4176
|
+
txHash: string;
|
|
4177
|
+
timestamp: number;
|
|
4178
|
+
gasSpent: string;
|
|
4179
|
+
rewardRedeemer: string;
|
|
4180
|
+
delivererAddress: string;
|
|
4181
|
+
};
|
|
4182
|
+
|
|
4183
|
+
type TeleporterReceipt = {
|
|
4184
|
+
receivedMessageNonce: string;
|
|
4185
|
+
relayerRewardAddress: string;
|
|
4186
|
+
};
|
|
4187
|
+
|
|
4188
|
+
type TeleporterRewardDetails = {
|
|
4189
|
+
/**
|
|
4190
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4191
|
+
*/
|
|
4192
|
+
address: string;
|
|
4193
|
+
/**
|
|
4194
|
+
* The contract name.
|
|
4195
|
+
*/
|
|
4196
|
+
name: string;
|
|
4197
|
+
/**
|
|
4198
|
+
* The contract symbol.
|
|
4199
|
+
*/
|
|
4200
|
+
symbol: string;
|
|
4201
|
+
/**
|
|
4202
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4203
|
+
*/
|
|
4204
|
+
decimals: number;
|
|
4205
|
+
/**
|
|
4206
|
+
* The logo uri for the address.
|
|
4207
|
+
*/
|
|
4208
|
+
logoUri?: string;
|
|
4209
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4210
|
+
/**
|
|
4211
|
+
* The token price, if available.
|
|
4212
|
+
*/
|
|
4213
|
+
price?: Money;
|
|
4214
|
+
value: string;
|
|
4215
|
+
};
|
|
4216
|
+
declare namespace TeleporterRewardDetails {
|
|
4217
|
+
enum ercType {
|
|
4218
|
+
ERC_20 = "ERC-20"
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4223
|
+
messageId: string;
|
|
4224
|
+
teleporterContractAddress: string;
|
|
4225
|
+
sourceBlockchainId: string;
|
|
4226
|
+
destinationBlockchainId: string;
|
|
4227
|
+
sourceEvmChainId: string;
|
|
4228
|
+
destinationEvmChainId: string;
|
|
4229
|
+
messageNonce: string;
|
|
4230
|
+
from: string;
|
|
4231
|
+
to: string;
|
|
4232
|
+
data?: string;
|
|
4233
|
+
messageExecuted: boolean;
|
|
4234
|
+
receipts: Array<TeleporterReceipt>;
|
|
4235
|
+
receiptDelivered: boolean;
|
|
4236
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4237
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4238
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4239
|
+
};
|
|
4240
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4241
|
+
enum status {
|
|
4242
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
type TeleporterSourceTransaction = {
|
|
4247
|
+
txHash: string;
|
|
4248
|
+
timestamp: number;
|
|
4249
|
+
gasSpent: string;
|
|
4250
|
+
};
|
|
4251
|
+
|
|
4252
|
+
type DeliveredTeleporterMessage = {
|
|
4253
|
+
messageId: string;
|
|
4254
|
+
teleporterContractAddress: string;
|
|
4255
|
+
sourceBlockchainId: string;
|
|
4256
|
+
destinationBlockchainId: string;
|
|
4257
|
+
sourceEvmChainId: string;
|
|
4258
|
+
destinationEvmChainId: string;
|
|
4259
|
+
messageNonce: string;
|
|
4260
|
+
from: string;
|
|
4261
|
+
to: string;
|
|
4262
|
+
data?: string;
|
|
4263
|
+
messageExecuted: boolean;
|
|
4264
|
+
receipts: Array<TeleporterReceipt>;
|
|
4265
|
+
receiptDelivered: boolean;
|
|
4266
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4267
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4268
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4269
|
+
status: DeliveredTeleporterMessage.status;
|
|
4270
|
+
};
|
|
4271
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4272
|
+
enum status {
|
|
4273
|
+
DELIVERED = "delivered"
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4276
|
+
|
|
4277
|
+
type PendingTeleporterMessage = {
|
|
4278
|
+
messageId: string;
|
|
4279
|
+
teleporterContractAddress: string;
|
|
4280
|
+
sourceBlockchainId: string;
|
|
4281
|
+
destinationBlockchainId: string;
|
|
4282
|
+
sourceEvmChainId: string;
|
|
4283
|
+
destinationEvmChainId: string;
|
|
4284
|
+
messageNonce: string;
|
|
4285
|
+
from: string;
|
|
4286
|
+
to: string;
|
|
4287
|
+
data?: string;
|
|
4288
|
+
messageExecuted: boolean;
|
|
4289
|
+
receipts: Array<TeleporterReceipt>;
|
|
4290
|
+
receiptDelivered: boolean;
|
|
4291
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4292
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4293
|
+
status: PendingTeleporterMessage.status;
|
|
4294
|
+
};
|
|
4295
|
+
declare namespace PendingTeleporterMessage {
|
|
4296
|
+
enum status {
|
|
4297
|
+
PENDING = "pending"
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
type ListTeleporterMessagesResponse = {
|
|
4302
|
+
/**
|
|
4303
|
+
* 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.
|
|
4304
|
+
*/
|
|
4305
|
+
nextPageToken?: string;
|
|
4306
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4307
|
+
};
|
|
4308
|
+
|
|
4309
|
+
declare class TeleporterService {
|
|
4310
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4311
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4312
|
+
/**
|
|
4313
|
+
* Get a teleporter message
|
|
4314
|
+
* Gets a teleporter message by message ID.
|
|
4315
|
+
* @returns any
|
|
4316
|
+
* @throws ApiError
|
|
4317
|
+
*/
|
|
4318
|
+
getTeleporterMessage({ messageId, }: {
|
|
4319
|
+
/**
|
|
4320
|
+
* The message ID of the teleporter message.
|
|
4321
|
+
*/
|
|
4322
|
+
messageId: string;
|
|
4323
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4324
|
+
/**
|
|
4325
|
+
* List teleporter messages
|
|
4326
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4327
|
+
* @returns ListTeleporterMessagesResponse
|
|
4328
|
+
* @throws ApiError
|
|
4329
|
+
*/
|
|
4330
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4331
|
+
/**
|
|
4332
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4333
|
+
*/
|
|
4334
|
+
pageToken?: string;
|
|
4335
|
+
/**
|
|
4336
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4337
|
+
*/
|
|
4338
|
+
pageSize?: number;
|
|
4339
|
+
/**
|
|
4340
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4341
|
+
*/
|
|
4342
|
+
sourceBlockchainId?: string;
|
|
4343
|
+
/**
|
|
4344
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4345
|
+
*/
|
|
4346
|
+
destinationBlockchainId?: string;
|
|
4347
|
+
/**
|
|
4348
|
+
* The address of the recipient of the teleporter message.
|
|
4349
|
+
*/
|
|
4350
|
+
to?: string;
|
|
4351
|
+
/**
|
|
4352
|
+
* The address of the sender of the teleporter message.
|
|
4353
|
+
*/
|
|
4354
|
+
from?: string;
|
|
4355
|
+
/**
|
|
4356
|
+
* mainnet or testnet.
|
|
4357
|
+
*/
|
|
4358
|
+
network?: NetworkType;
|
|
4359
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4360
|
+
}
|
|
4361
|
+
|
|
4362
|
+
type AddressesChangeRequest = {
|
|
4363
|
+
/**
|
|
4364
|
+
* Ethereum address(es) for the address_activity event type
|
|
4365
|
+
*/
|
|
4366
|
+
addresses: Array<any[]>;
|
|
4367
|
+
};
|
|
4368
|
+
|
|
4369
|
+
type ListWebhookAddressesResponse = {
|
|
4370
|
+
/**
|
|
4371
|
+
* 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.
|
|
4372
|
+
*/
|
|
4373
|
+
nextPageToken?: string;
|
|
4374
|
+
addresses: Array<string>;
|
|
4375
|
+
totalAddresses: number;
|
|
4376
|
+
};
|
|
4377
|
+
|
|
4378
|
+
type AddressActivityMetadata = {
|
|
4379
|
+
/**
|
|
4380
|
+
* Ethereum address(es) for the address_activity event type
|
|
4381
|
+
*/
|
|
4382
|
+
addresses: Array<any[]>;
|
|
4383
|
+
/**
|
|
4384
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4385
|
+
*/
|
|
4386
|
+
eventSignatures?: Array<string>;
|
|
4387
|
+
};
|
|
4388
|
+
|
|
4389
|
+
declare enum EventType {
|
|
4390
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
declare enum WebhookStatusType {
|
|
4394
|
+
ACTIVE = "active",
|
|
4395
|
+
INACTIVE = "inactive"
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
type WebhookResponse = {
|
|
4399
|
+
id: string;
|
|
4400
|
+
eventType: EventType;
|
|
4401
|
+
metadata: AddressActivityMetadata;
|
|
4402
|
+
/**
|
|
4403
|
+
* Whether to include traces in the webhook payload.
|
|
4404
|
+
*/
|
|
4405
|
+
includeInternalTxs?: boolean;
|
|
4406
|
+
/**
|
|
4407
|
+
* Whether to include logs in the webhook payload.
|
|
4408
|
+
*/
|
|
4409
|
+
includeLogs?: boolean;
|
|
4410
|
+
url: string;
|
|
4411
|
+
chainId: string;
|
|
4412
|
+
status: WebhookStatusType;
|
|
4413
|
+
createdAt: number;
|
|
4414
|
+
name: string;
|
|
4415
|
+
description: string;
|
|
4416
|
+
};
|
|
4417
|
+
|
|
4418
|
+
type ListWebhooksResponse = {
|
|
4419
|
+
/**
|
|
4420
|
+
* 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.
|
|
4421
|
+
*/
|
|
4422
|
+
nextPageToken?: string;
|
|
4423
|
+
webhooks: Array<WebhookResponse>;
|
|
4424
|
+
};
|
|
4425
|
+
|
|
4426
|
+
type RegisterWebhookRequest = {
|
|
4427
|
+
url: string;
|
|
4428
|
+
chainId: string;
|
|
4429
|
+
eventType: EventType;
|
|
4430
|
+
metadata: AddressActivityMetadata;
|
|
4431
|
+
/**
|
|
4432
|
+
* Whether to include traces in the webhook payload.
|
|
4433
|
+
*/
|
|
4434
|
+
includeInternalTxs?: boolean;
|
|
4435
|
+
/**
|
|
4436
|
+
* Whether to include logs in the webhook payload.
|
|
4437
|
+
*/
|
|
4438
|
+
includeLogs?: boolean;
|
|
4439
|
+
};
|
|
4440
|
+
|
|
4441
|
+
type SharedSecretsResponse = {
|
|
4442
|
+
secret: string;
|
|
4443
|
+
};
|
|
4444
|
+
|
|
4445
|
+
type UpdateWebhookRequest = {
|
|
4446
|
+
name?: string;
|
|
4447
|
+
description?: string;
|
|
4448
|
+
url?: string;
|
|
4449
|
+
status?: WebhookStatusType;
|
|
4450
|
+
includeInternalTxs?: boolean;
|
|
4451
|
+
includeLogs?: boolean;
|
|
4452
|
+
};
|
|
4453
|
+
|
|
4454
|
+
declare enum WebhookStatus {
|
|
4455
|
+
ACTIVE = "active",
|
|
4456
|
+
INACTIVE = "inactive"
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
declare class WebhooksService {
|
|
4460
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4461
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4462
|
+
/**
|
|
4463
|
+
* Create a webhook
|
|
4464
|
+
* Create a new webhook.
|
|
4465
|
+
* @returns WebhookResponse
|
|
4466
|
+
* @throws ApiError
|
|
4467
|
+
*/
|
|
4468
|
+
registerWebhook({ requestBody, }: {
|
|
4469
|
+
requestBody: RegisterWebhookRequest;
|
|
4470
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4471
|
+
/**
|
|
4472
|
+
* List webhooks
|
|
4473
|
+
* Lists webhooks for the user.
|
|
4474
|
+
* @returns ListWebhooksResponse
|
|
4475
|
+
* @throws ApiError
|
|
4476
|
+
*/
|
|
4477
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4478
|
+
/**
|
|
4479
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4480
|
+
*/
|
|
4481
|
+
pageToken?: string;
|
|
3888
4482
|
/**
|
|
3889
4483
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3890
4484
|
*/
|
|
3891
4485
|
pageSize?: number;
|
|
4486
|
+
/**
|
|
4487
|
+
* 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.
|
|
4488
|
+
*/
|
|
4489
|
+
status?: WebhookStatus;
|
|
4490
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4491
|
+
/**
|
|
4492
|
+
* Get a webhook by ID
|
|
4493
|
+
* Retrieves a webhook by ID.
|
|
4494
|
+
* @returns WebhookResponse
|
|
4495
|
+
* @throws ApiError
|
|
4496
|
+
*/
|
|
4497
|
+
getWebhook({ id, }: {
|
|
4498
|
+
/**
|
|
4499
|
+
* The webhook identifier.
|
|
4500
|
+
*/
|
|
4501
|
+
id: string;
|
|
4502
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4503
|
+
/**
|
|
4504
|
+
* Deactivate a webhook
|
|
4505
|
+
* Deactivates a webhook by ID.
|
|
4506
|
+
* @returns WebhookResponse
|
|
4507
|
+
* @throws ApiError
|
|
4508
|
+
*/
|
|
4509
|
+
deactivateWebhook({ id, }: {
|
|
4510
|
+
/**
|
|
4511
|
+
* The webhook identifier.
|
|
4512
|
+
*/
|
|
4513
|
+
id: string;
|
|
4514
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4515
|
+
/**
|
|
4516
|
+
* Update a webhook
|
|
4517
|
+
* Updates an existing webhook.
|
|
4518
|
+
* @returns WebhookResponse
|
|
4519
|
+
* @throws ApiError
|
|
4520
|
+
*/
|
|
4521
|
+
updateWebhook({ id, requestBody, }: {
|
|
4522
|
+
/**
|
|
4523
|
+
* The webhook identifier.
|
|
4524
|
+
*/
|
|
4525
|
+
id: string;
|
|
4526
|
+
requestBody: UpdateWebhookRequest;
|
|
4527
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4528
|
+
/**
|
|
4529
|
+
* Generate a shared secret
|
|
4530
|
+
* Generates a new shared secret.
|
|
4531
|
+
* @returns SharedSecretsResponse
|
|
4532
|
+
* @throws ApiError
|
|
4533
|
+
*/
|
|
4534
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4535
|
+
/**
|
|
4536
|
+
* Get a shared secret
|
|
4537
|
+
* Get a previously generated shared secret.
|
|
4538
|
+
* @returns SharedSecretsResponse
|
|
4539
|
+
* @throws ApiError
|
|
4540
|
+
*/
|
|
4541
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4542
|
+
/**
|
|
4543
|
+
* Add address(es) to a webhook
|
|
4544
|
+
* Adding address(es) to a given webhook.
|
|
4545
|
+
* @returns WebhookResponse
|
|
4546
|
+
* @throws ApiError
|
|
4547
|
+
*/
|
|
4548
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4549
|
+
/**
|
|
4550
|
+
* The webhook identifier.
|
|
4551
|
+
*/
|
|
4552
|
+
id: string;
|
|
4553
|
+
requestBody: AddressesChangeRequest;
|
|
4554
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4555
|
+
/**
|
|
4556
|
+
* Remove address(es) from a webhook
|
|
4557
|
+
* Removing address(es) from a given webhook.
|
|
4558
|
+
* @returns WebhookResponse
|
|
4559
|
+
* @throws ApiError
|
|
4560
|
+
*/
|
|
4561
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4562
|
+
/**
|
|
4563
|
+
* The webhook identifier.
|
|
4564
|
+
*/
|
|
4565
|
+
id: string;
|
|
4566
|
+
requestBody: AddressesChangeRequest;
|
|
4567
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4568
|
+
/**
|
|
4569
|
+
* Get address(es) from a given webhook
|
|
4570
|
+
* Retrieving address(es) from a given webhook.
|
|
4571
|
+
* @returns ListWebhookAddressesResponse
|
|
4572
|
+
* @throws ApiError
|
|
4573
|
+
*/
|
|
4574
|
+
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
4575
|
+
/**
|
|
4576
|
+
* The webhook identifier.
|
|
4577
|
+
*/
|
|
4578
|
+
id: string;
|
|
3892
4579
|
/**
|
|
3893
4580
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4581
|
*/
|
|
3895
4582
|
pageToken?: string;
|
|
3896
4583
|
/**
|
|
3897
|
-
* The
|
|
4584
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
4585
|
*/
|
|
3899
|
-
|
|
3900
|
-
}): CancelablePromise<
|
|
4586
|
+
pageSize?: number;
|
|
4587
|
+
}): CancelablePromise<ListWebhookAddressesResponse>;
|
|
3901
4588
|
}
|
|
3902
4589
|
|
|
3903
4590
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3918,6 +4605,9 @@ declare class Glacier {
|
|
|
3918
4605
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3919
4606
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3920
4607
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4608
|
+
readonly rpc: RpcService;
|
|
4609
|
+
readonly teleporter: TeleporterService;
|
|
4610
|
+
readonly webhooks: WebhooksService;
|
|
3921
4611
|
readonly request: BaseHttpRequest;
|
|
3922
4612
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3923
4613
|
}
|
|
@@ -3939,4 +4629,11 @@ declare class ApiError extends Error {
|
|
|
3939
4629
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4630
|
}
|
|
3941
4631
|
|
|
3942
|
-
|
|
4632
|
+
type NextPageToken = {
|
|
4633
|
+
/**
|
|
4634
|
+
* 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.
|
|
4635
|
+
*/
|
|
4636
|
+
nextPageToken?: string;
|
|
4637
|
+
};
|
|
4638
|
+
|
|
4639
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, 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, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, 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, SortByOption, 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 };
|