@avalabs/glacier-sdk 2.8.0-canary.ae0a5d3.0 → 2.8.0-canary.ae5f86f.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 +1138 -414
- 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/ActiveValidatorDetails.d.ts +5 -0
- 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/BlsCredentials.d.ts +6 -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/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
- 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 +17 -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/PendingValidatorDetails.d.ts +6 -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/RemovedValidatorDetails.d.ts +25 -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 +41 -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
|
|
|
@@ -2201,6 +2311,11 @@ type ListSubnetsResponse = {
|
|
|
2201
2311
|
subnets: Array<Subnet>;
|
|
2202
2312
|
};
|
|
2203
2313
|
|
|
2314
|
+
type BlsCredentials = {
|
|
2315
|
+
publicKey: string;
|
|
2316
|
+
proofOfPossession: string;
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2204
2319
|
type Rewards = {
|
|
2205
2320
|
validationRewardAmount: string;
|
|
2206
2321
|
delegationRewardAmount: string;
|
|
@@ -2235,6 +2350,10 @@ type ActiveValidatorDetails = {
|
|
|
2235
2350
|
delegationFee?: string;
|
|
2236
2351
|
startTimestamp: number;
|
|
2237
2352
|
endTimestamp: number;
|
|
2353
|
+
/**
|
|
2354
|
+
* Present for AddPermissionlessValidatorTx
|
|
2355
|
+
*/
|
|
2356
|
+
blsCredentials?: BlsCredentials;
|
|
2238
2357
|
stakePercentage: number;
|
|
2239
2358
|
delegatorCount: number;
|
|
2240
2359
|
amountDelegated?: string;
|
|
@@ -2259,6 +2378,10 @@ type CompletedValidatorDetails = {
|
|
|
2259
2378
|
delegationFee?: string;
|
|
2260
2379
|
startTimestamp: number;
|
|
2261
2380
|
endTimestamp: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Present for AddPermissionlessValidatorTx
|
|
2383
|
+
*/
|
|
2384
|
+
blsCredentials?: BlsCredentials;
|
|
2262
2385
|
delegatorCount: number;
|
|
2263
2386
|
rewards: Rewards;
|
|
2264
2387
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
@@ -2277,6 +2400,10 @@ type PendingValidatorDetails = {
|
|
|
2277
2400
|
delegationFee?: string;
|
|
2278
2401
|
startTimestamp: number;
|
|
2279
2402
|
endTimestamp: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Present for AddPermissionlessValidatorTx
|
|
2405
|
+
*/
|
|
2406
|
+
blsCredentials?: BlsCredentials;
|
|
2280
2407
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2281
2408
|
};
|
|
2282
2409
|
declare namespace PendingValidatorDetails {
|
|
@@ -2285,6 +2412,28 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2412
|
}
|
|
2286
2413
|
}
|
|
2287
2414
|
|
|
2415
|
+
type RemovedValidatorDetails = {
|
|
2416
|
+
txHash: string;
|
|
2417
|
+
nodeId: string;
|
|
2418
|
+
subnetId: string;
|
|
2419
|
+
amountStaked: string;
|
|
2420
|
+
delegationFee?: string;
|
|
2421
|
+
startTimestamp: number;
|
|
2422
|
+
endTimestamp: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Present for AddPermissionlessValidatorTx
|
|
2425
|
+
*/
|
|
2426
|
+
blsCredentials?: BlsCredentials;
|
|
2427
|
+
removeTxHash: string;
|
|
2428
|
+
removeTimestamp: number;
|
|
2429
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2430
|
+
};
|
|
2431
|
+
declare namespace RemovedValidatorDetails {
|
|
2432
|
+
enum validationStatus {
|
|
2433
|
+
REMOVED = "removed"
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2288
2437
|
type ListValidatorDetailsResponse = {
|
|
2289
2438
|
/**
|
|
2290
2439
|
* 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 +2442,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2442
|
/**
|
|
2294
2443
|
* The list of validator Details.
|
|
2295
2444
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2445
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2446
|
};
|
|
2298
2447
|
|
|
2299
2448
|
declare enum Network {
|
|
@@ -2301,10 +2450,35 @@ declare enum Network {
|
|
|
2301
2450
|
FUJI = "fuji"
|
|
2302
2451
|
}
|
|
2303
2452
|
|
|
2453
|
+
declare enum SortByOption {
|
|
2454
|
+
BLOCK_INDEX = "blockIndex",
|
|
2455
|
+
DELEGATION_CAPACITY = "delegationCapacity",
|
|
2456
|
+
TIME_REMAINING = "timeRemaining",
|
|
2457
|
+
DELEGATION_FEE = "delegationFee",
|
|
2458
|
+
UPTIME_PERFORMANCE = "uptimePerformance"
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2304
2461
|
declare enum ValidationStatusType {
|
|
2305
2462
|
COMPLETED = "completed",
|
|
2306
2463
|
ACTIVE = "active",
|
|
2307
|
-
PENDING = "pending"
|
|
2464
|
+
PENDING = "pending",
|
|
2465
|
+
REMOVED = "removed"
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2470
|
+
*/
|
|
2471
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2472
|
+
FIXED = "fixed",
|
|
2473
|
+
VARIABLE = "variable"
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2478
|
+
*/
|
|
2479
|
+
declare enum PrimaryNetworkAssetType {
|
|
2480
|
+
SECP256K1 = "secp256k1",
|
|
2481
|
+
NFT = "nft"
|
|
2308
2482
|
}
|
|
2309
2483
|
|
|
2310
2484
|
type XChainAssetDetails = {
|
|
@@ -2324,18 +2498,12 @@ type XChainAssetDetails = {
|
|
|
2324
2498
|
* Denomination of this asset to represent fungibility.
|
|
2325
2499
|
*/
|
|
2326
2500
|
denomination: number;
|
|
2327
|
-
|
|
2328
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2329
|
-
*/
|
|
2330
|
-
type: string;
|
|
2501
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2502
|
/**
|
|
2332
2503
|
* Timestamp in seconds this asset was created on.
|
|
2333
2504
|
*/
|
|
2334
2505
|
createdAtTimestamp: number;
|
|
2335
|
-
|
|
2336
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2337
|
-
*/
|
|
2338
|
-
cap: string;
|
|
2506
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2507
|
};
|
|
2340
2508
|
|
|
2341
2509
|
declare enum XChainId {
|
|
@@ -2401,19 +2569,19 @@ declare class PrimaryNetworkService {
|
|
|
2401
2569
|
* @returns ListBlockchainsResponse
|
|
2402
2570
|
* @throws ApiError
|
|
2403
2571
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2572
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2573
|
/**
|
|
2406
2574
|
* Either mainnet or a testnet.
|
|
2407
2575
|
*/
|
|
2408
2576
|
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
2577
|
/**
|
|
2414
2578
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2579
|
*/
|
|
2416
2580
|
pageToken?: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2583
|
+
*/
|
|
2584
|
+
pageSize?: number;
|
|
2417
2585
|
/**
|
|
2418
2586
|
* 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
2587
|
*/
|
|
@@ -2425,19 +2593,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2593
|
* @returns ListSubnetsResponse
|
|
2426
2594
|
* @throws ApiError
|
|
2427
2595
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2596
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2597
|
/**
|
|
2430
2598
|
* Either mainnet or a testnet.
|
|
2431
2599
|
*/
|
|
2432
2600
|
network: Network;
|
|
2433
2601
|
/**
|
|
2434
|
-
*
|
|
2602
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2435
2603
|
*/
|
|
2436
|
-
|
|
2604
|
+
pageToken?: string;
|
|
2437
2605
|
/**
|
|
2438
|
-
*
|
|
2606
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2439
2607
|
*/
|
|
2440
|
-
|
|
2608
|
+
pageSize?: number;
|
|
2441
2609
|
/**
|
|
2442
2610
|
* 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
2611
|
*/
|
|
@@ -2449,59 +2617,73 @@ declare class PrimaryNetworkService {
|
|
|
2449
2617
|
* @returns ListValidatorDetailsResponse
|
|
2450
2618
|
* @throws ApiError
|
|
2451
2619
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2620
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2453
2621
|
/**
|
|
2454
2622
|
* Either mainnet or a testnet.
|
|
2455
2623
|
*/
|
|
2456
2624
|
network: Network;
|
|
2625
|
+
/**
|
|
2626
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2627
|
+
*/
|
|
2628
|
+
pageToken?: string;
|
|
2457
2629
|
/**
|
|
2458
2630
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2459
2631
|
*/
|
|
2460
2632
|
pageSize?: number;
|
|
2461
2633
|
/**
|
|
2462
|
-
* A
|
|
2634
|
+
* A comma separated list of node ids to filter by.
|
|
2463
2635
|
*/
|
|
2464
|
-
|
|
2636
|
+
nodeIds?: string;
|
|
2465
2637
|
/**
|
|
2466
|
-
*
|
|
2638
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
2639
|
+
*
|
|
2640
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
2467
2641
|
*/
|
|
2468
|
-
|
|
2642
|
+
sortBy?: SortByOption;
|
|
2469
2643
|
/**
|
|
2470
|
-
* The
|
|
2644
|
+
* 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.
|
|
2645
|
+
*/
|
|
2646
|
+
sortOrder?: SortOrder;
|
|
2647
|
+
/**
|
|
2648
|
+
* Validation status of the node.
|
|
2471
2649
|
*/
|
|
2472
|
-
|
|
2650
|
+
validationStatus?: ValidationStatusType;
|
|
2473
2651
|
/**
|
|
2474
2652
|
* 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
2653
|
*/
|
|
2476
|
-
minDelegationCapacity?:
|
|
2654
|
+
minDelegationCapacity?: string;
|
|
2477
2655
|
/**
|
|
2478
2656
|
* 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
2657
|
*/
|
|
2480
|
-
maxDelegationCapacity?:
|
|
2658
|
+
maxDelegationCapacity?: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2661
|
+
*/
|
|
2662
|
+
minTimeRemaining?: number;
|
|
2481
2663
|
/**
|
|
2482
|
-
* The
|
|
2664
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2483
2665
|
*/
|
|
2484
|
-
|
|
2666
|
+
maxTimeRemaining?: number;
|
|
2485
2667
|
/**
|
|
2486
|
-
* The
|
|
2668
|
+
* 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.
|
|
2487
2669
|
*/
|
|
2488
|
-
|
|
2670
|
+
minFeePercentage?: number;
|
|
2489
2671
|
/**
|
|
2490
|
-
*
|
|
2672
|
+
* 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.
|
|
2491
2673
|
*/
|
|
2492
|
-
|
|
2674
|
+
maxFeePercentage?: number;
|
|
2493
2675
|
/**
|
|
2494
|
-
* The
|
|
2676
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
2495
2677
|
*/
|
|
2496
|
-
|
|
2678
|
+
minUptimePerformance?: number;
|
|
2497
2679
|
/**
|
|
2498
|
-
*
|
|
2680
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
2499
2681
|
*/
|
|
2500
|
-
|
|
2682
|
+
maxUptimePerformance?: number;
|
|
2501
2683
|
/**
|
|
2502
2684
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2685
|
*/
|
|
2504
|
-
subnetId?:
|
|
2686
|
+
subnetId?: any;
|
|
2505
2687
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2506
2688
|
/**
|
|
2507
2689
|
* Get single validator details
|
|
@@ -2509,7 +2691,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2691
|
* @returns ListValidatorDetailsResponse
|
|
2510
2692
|
* @throws ApiError
|
|
2511
2693
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId, pageSize,
|
|
2694
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2513
2695
|
/**
|
|
2514
2696
|
* Either mainnet or a testnet.
|
|
2515
2697
|
*/
|
|
@@ -2518,22 +2700,22 @@ declare class PrimaryNetworkService {
|
|
|
2518
2700
|
* A primary network (P or X chain) nodeId.
|
|
2519
2701
|
*/
|
|
2520
2702
|
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
2703
|
/**
|
|
2526
2704
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2705
|
*/
|
|
2528
2706
|
pageToken?: string;
|
|
2529
2707
|
/**
|
|
2530
|
-
* The
|
|
2708
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2531
2709
|
*/
|
|
2532
|
-
|
|
2710
|
+
pageSize?: number;
|
|
2533
2711
|
/**
|
|
2534
2712
|
* Validation status of the node.
|
|
2535
2713
|
*/
|
|
2536
2714
|
validationStatus?: ValidationStatusType;
|
|
2715
|
+
/**
|
|
2716
|
+
* 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.
|
|
2717
|
+
*/
|
|
2718
|
+
sortOrder?: SortOrder;
|
|
2537
2719
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2538
2720
|
/**
|
|
2539
2721
|
* List delegators
|
|
@@ -2541,19 +2723,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2723
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2724
|
* @throws ApiError
|
|
2543
2725
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2726
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2727
|
/**
|
|
2546
2728
|
* Either mainnet or a testnet.
|
|
2547
2729
|
*/
|
|
2548
2730
|
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
2731
|
/**
|
|
2554
2732
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2733
|
*/
|
|
2556
2734
|
pageToken?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
|
+
*/
|
|
2738
|
+
pageSize?: number;
|
|
2557
2739
|
/**
|
|
2558
2740
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2741
|
*/
|
|
@@ -2601,10 +2783,7 @@ type CChainSharedAssetBalance = {
|
|
|
2601
2783
|
* Denomination of this asset to represent fungibility.
|
|
2602
2784
|
*/
|
|
2603
2785
|
denomination: number;
|
|
2604
|
-
|
|
2605
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2606
|
-
*/
|
|
2607
|
-
type: string;
|
|
2786
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2787
|
/**
|
|
2609
2788
|
* Amount of the asset.
|
|
2610
2789
|
*/
|
|
@@ -2639,49 +2818,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2818
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2819
|
};
|
|
2641
2820
|
|
|
2642
|
-
type
|
|
2821
|
+
type AggregatedAssetAmount = {
|
|
2822
|
+
/**
|
|
2823
|
+
* Unique ID for an asset.
|
|
2824
|
+
*/
|
|
2643
2825
|
assetId: string;
|
|
2826
|
+
/**
|
|
2827
|
+
* Name of this asset.
|
|
2828
|
+
*/
|
|
2829
|
+
name: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* Symbol for this asset (max 4 characters).
|
|
2832
|
+
*/
|
|
2833
|
+
symbol: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* Denomination of this asset to represent fungibility.
|
|
2836
|
+
*/
|
|
2837
|
+
denomination: number;
|
|
2838
|
+
type: PrimaryNetworkAssetType;
|
|
2839
|
+
/**
|
|
2840
|
+
* Amount of the asset.
|
|
2841
|
+
*/
|
|
2644
2842
|
amount: string;
|
|
2843
|
+
utxoCount: number;
|
|
2645
2844
|
};
|
|
2646
2845
|
|
|
2647
2846
|
type PChainSharedAsset = {
|
|
2847
|
+
/**
|
|
2848
|
+
* Unique ID for an asset.
|
|
2849
|
+
*/
|
|
2648
2850
|
assetId: string;
|
|
2851
|
+
/**
|
|
2852
|
+
* Name of this asset.
|
|
2853
|
+
*/
|
|
2854
|
+
name: string;
|
|
2855
|
+
/**
|
|
2856
|
+
* Symbol for this asset (max 4 characters).
|
|
2857
|
+
*/
|
|
2858
|
+
symbol: string;
|
|
2859
|
+
/**
|
|
2860
|
+
* Denomination of this asset to represent fungibility.
|
|
2861
|
+
*/
|
|
2862
|
+
denomination: number;
|
|
2863
|
+
type: PrimaryNetworkAssetType;
|
|
2864
|
+
/**
|
|
2865
|
+
* Amount of the asset.
|
|
2866
|
+
*/
|
|
2649
2867
|
amount: string;
|
|
2868
|
+
utxoCount: number;
|
|
2650
2869
|
sharedWithChainId: string;
|
|
2651
2870
|
status: string;
|
|
2652
2871
|
};
|
|
2653
2872
|
|
|
2654
2873
|
type PChainBalance = {
|
|
2655
2874
|
/**
|
|
2656
|
-
* A list of objects containing P-chain Asset
|
|
2875
|
+
* 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
2876
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2877
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2659
2878
|
/**
|
|
2660
|
-
* A list of objects containing P-chain Asset
|
|
2879
|
+
* 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
2880
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2881
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2663
2882
|
/**
|
|
2664
|
-
* A list of objects containing P-chain Asset
|
|
2883
|
+
* 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
2884
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2885
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2667
2886
|
/**
|
|
2668
|
-
* A list of objects containing P-chain Asset
|
|
2887
|
+
* 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
2888
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2889
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2671
2890
|
/**
|
|
2672
|
-
* A list of objects containing P-chain Asset
|
|
2891
|
+
* 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
2892
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2893
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2675
2894
|
/**
|
|
2676
|
-
* A list of objects containing P-chain Asset
|
|
2895
|
+
* 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
2896
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2897
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2679
2898
|
/**
|
|
2680
|
-
* A list of objects containing P-chain Asset
|
|
2899
|
+
* 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
2900
|
*/
|
|
2682
2901
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2683
2902
|
/**
|
|
2684
|
-
* A list of objects containing P-chain Asset
|
|
2903
|
+
* 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
2904
|
*/
|
|
2686
2905
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2687
2906
|
};
|
|
@@ -2691,34 +2910,6 @@ type ListPChainBalancesResponse = {
|
|
|
2691
2910
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2692
2911
|
};
|
|
2693
2912
|
|
|
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
2913
|
type XChainSharedAssetBalance = {
|
|
2723
2914
|
/**
|
|
2724
2915
|
* Unique ID for an asset.
|
|
@@ -2736,10 +2927,7 @@ type XChainSharedAssetBalance = {
|
|
|
2736
2927
|
* Denomination of this asset to represent fungibility.
|
|
2737
2928
|
*/
|
|
2738
2929
|
denomination: number;
|
|
2739
|
-
|
|
2740
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2741
|
-
*/
|
|
2742
|
-
type: string;
|
|
2930
|
+
type: PrimaryNetworkAssetType;
|
|
2743
2931
|
/**
|
|
2744
2932
|
* Amount of the asset.
|
|
2745
2933
|
*/
|
|
@@ -2752,11 +2940,11 @@ type XChainBalances = {
|
|
|
2752
2940
|
/**
|
|
2753
2941
|
* A list of objects containing X-chain Asset balance information.
|
|
2754
2942
|
*/
|
|
2755
|
-
locked: Array<
|
|
2943
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2756
2944
|
/**
|
|
2757
2945
|
* A list of objects containing X-chain Asset balance information.
|
|
2758
2946
|
*/
|
|
2759
|
-
unlocked: Array<
|
|
2947
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2760
2948
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2761
2949
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2762
2950
|
};
|
|
@@ -2814,6 +3002,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
3002
|
txCount: number;
|
|
2815
3003
|
transactions: Array<string>;
|
|
2816
3004
|
blockSizeBytes: number;
|
|
3005
|
+
currentSupply?: string;
|
|
2817
3006
|
proposerDetails?: ProposerDetails;
|
|
2818
3007
|
};
|
|
2819
3008
|
|
|
@@ -2826,6 +3015,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
3015
|
txCount: number;
|
|
2827
3016
|
transactions: Array<string>;
|
|
2828
3017
|
blockSizeBytes: number;
|
|
3018
|
+
currentSupply?: string;
|
|
2829
3019
|
proposerDetails?: ProposerDetails;
|
|
2830
3020
|
};
|
|
2831
3021
|
|
|
@@ -2867,7 +3057,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3057
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3058
|
* @throws ApiError
|
|
2869
3059
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3060
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3061
|
/**
|
|
2872
3062
|
* A primary network blockchain id or alias.
|
|
2873
3063
|
*/
|
|
@@ -2880,14 +3070,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3070
|
* A primary network (P or X chain) nodeId.
|
|
2881
3071
|
*/
|
|
2882
3072
|
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
3073
|
/**
|
|
2888
3074
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3075
|
*/
|
|
2890
3076
|
pageToken?: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3079
|
+
*/
|
|
3080
|
+
pageSize?: number;
|
|
2891
3081
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3082
|
/**
|
|
2893
3083
|
* List latest blocks
|
|
@@ -2895,7 +3085,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3085
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3086
|
* @throws ApiError
|
|
2897
3087
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3088
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3089
|
/**
|
|
2900
3090
|
* A primary network blockchain id or alias.
|
|
2901
3091
|
*/
|
|
@@ -2904,17 +3094,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3094
|
* Either mainnet or a testnet.
|
|
2905
3095
|
*/
|
|
2906
3096
|
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
3097
|
/**
|
|
2912
3098
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3099
|
*/
|
|
2914
3100
|
pageToken?: string;
|
|
3101
|
+
/**
|
|
3102
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3103
|
+
*/
|
|
3104
|
+
pageSize?: number;
|
|
2915
3105
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3106
|
}
|
|
2917
3107
|
|
|
3108
|
+
type AssetWithPriceInfo = {
|
|
3109
|
+
/**
|
|
3110
|
+
* Unique ID for an asset.
|
|
3111
|
+
*/
|
|
3112
|
+
assetId: string;
|
|
3113
|
+
/**
|
|
3114
|
+
* Name of this asset.
|
|
3115
|
+
*/
|
|
3116
|
+
name: string;
|
|
3117
|
+
/**
|
|
3118
|
+
* Symbol for this asset (max 4 characters).
|
|
3119
|
+
*/
|
|
3120
|
+
symbol: string;
|
|
3121
|
+
/**
|
|
3122
|
+
* Denomination of this asset to represent fungibility.
|
|
3123
|
+
*/
|
|
3124
|
+
denomination: number;
|
|
3125
|
+
type: PrimaryNetworkAssetType;
|
|
3126
|
+
/**
|
|
3127
|
+
* Amount of the asset.
|
|
3128
|
+
*/
|
|
3129
|
+
amount: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* 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.
|
|
3132
|
+
*/
|
|
3133
|
+
historicalPrice?: Money;
|
|
3134
|
+
};
|
|
3135
|
+
|
|
2918
3136
|
declare enum RewardType {
|
|
2919
3137
|
VALIDATOR = "VALIDATOR",
|
|
2920
3138
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3152,7 @@ type HistoricalReward = {
|
|
|
2934
3152
|
rewardType: RewardType;
|
|
2935
3153
|
utxoId: string;
|
|
2936
3154
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3155
|
+
reward: AssetWithPriceInfo;
|
|
2941
3156
|
rewardTxHash: string;
|
|
2942
3157
|
};
|
|
2943
3158
|
|
|
@@ -2949,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2949
3164
|
historicalRewards: Array<HistoricalReward>;
|
|
2950
3165
|
};
|
|
2951
3166
|
|
|
3167
|
+
type AssetAmount = {
|
|
3168
|
+
/**
|
|
3169
|
+
* Unique ID for an asset.
|
|
3170
|
+
*/
|
|
3171
|
+
assetId: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Name of this asset.
|
|
3174
|
+
*/
|
|
3175
|
+
name: string;
|
|
3176
|
+
/**
|
|
3177
|
+
* Symbol for this asset (max 4 characters).
|
|
3178
|
+
*/
|
|
3179
|
+
symbol: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* Denomination of this asset to represent fungibility.
|
|
3182
|
+
*/
|
|
3183
|
+
denomination: number;
|
|
3184
|
+
type: PrimaryNetworkAssetType;
|
|
3185
|
+
/**
|
|
3186
|
+
* Amount of the asset.
|
|
3187
|
+
*/
|
|
3188
|
+
amount: string;
|
|
3189
|
+
};
|
|
3190
|
+
|
|
2952
3191
|
type PendingReward = {
|
|
2953
3192
|
/**
|
|
2954
3193
|
* An array of P-Chain wallet addresses.
|
|
@@ -2962,9 +3201,9 @@ type PendingReward = {
|
|
|
2962
3201
|
rewardType: RewardType;
|
|
2963
3202
|
progress: number;
|
|
2964
3203
|
/**
|
|
2965
|
-
* An object containing P-chain Asset
|
|
3204
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2966
3205
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3206
|
+
estimatedReward: AssetAmount;
|
|
2968
3207
|
};
|
|
2969
3208
|
|
|
2970
3209
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3223,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3223
|
* @returns ListPendingRewardsResponse
|
|
2985
3224
|
* @throws ApiError
|
|
2986
3225
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3226
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3227
|
/**
|
|
2989
3228
|
* Either mainnet or a testnet.
|
|
2990
3229
|
*/
|
|
2991
3230
|
network: Network;
|
|
2992
3231
|
/**
|
|
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".
|
|
3232
|
+
* 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
3233
|
*/
|
|
2995
3234
|
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
3235
|
/**
|
|
3001
3236
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3237
|
*/
|
|
3003
3238
|
pageToken?: string;
|
|
3004
3239
|
/**
|
|
3005
|
-
*
|
|
3240
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3241
|
+
*/
|
|
3242
|
+
pageSize?: number;
|
|
3243
|
+
/**
|
|
3244
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3006
3245
|
*/
|
|
3007
3246
|
nodeIds?: string;
|
|
3008
3247
|
/**
|
|
@@ -3016,68 +3255,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3255
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3256
|
* @throws ApiError
|
|
3018
3257
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3258
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3259
|
/**
|
|
3021
3260
|
* Either mainnet or a testnet.
|
|
3022
3261
|
*/
|
|
3023
3262
|
network: Network;
|
|
3024
3263
|
/**
|
|
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".
|
|
3264
|
+
* 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
3265
|
*/
|
|
3027
3266
|
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
3267
|
/**
|
|
3033
3268
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3269
|
*/
|
|
3035
3270
|
pageToken?: string;
|
|
3036
3271
|
/**
|
|
3037
|
-
*
|
|
3272
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3273
|
+
*/
|
|
3274
|
+
pageSize?: number;
|
|
3275
|
+
/**
|
|
3276
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3038
3277
|
*/
|
|
3039
3278
|
nodeIds?: string;
|
|
3040
3279
|
/**
|
|
3041
3280
|
* 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
3281
|
*/
|
|
3043
3282
|
sortOrder?: SortOrder;
|
|
3283
|
+
/**
|
|
3284
|
+
* The currency that return values should use. Defaults to USD.
|
|
3285
|
+
*/
|
|
3286
|
+
currency?: CurrencyCode;
|
|
3044
3287
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3288
|
}
|
|
3046
3289
|
|
|
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
3290
|
type UtxoCredential = {
|
|
3075
3291
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3292
|
+
* Signature provided to consume the output.
|
|
3077
3293
|
*/
|
|
3078
3294
|
signature?: string;
|
|
3079
3295
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3296
|
+
* Public key associated with the signature.
|
|
3081
3297
|
*/
|
|
3082
3298
|
publicKey?: string;
|
|
3083
3299
|
};
|
|
@@ -3088,9 +3304,9 @@ type EVMInput = {
|
|
|
3088
3304
|
*/
|
|
3089
3305
|
fromAddress: string;
|
|
3090
3306
|
/**
|
|
3091
|
-
*
|
|
3307
|
+
* AssetAmount details for the asset being transferred.
|
|
3092
3308
|
*/
|
|
3093
|
-
asset:
|
|
3309
|
+
asset: AssetAmount;
|
|
3094
3310
|
/**
|
|
3095
3311
|
* Credentials that signed this transaction.
|
|
3096
3312
|
*/
|
|
@@ -3099,66 +3315,66 @@ type EVMInput = {
|
|
|
3099
3315
|
|
|
3100
3316
|
type Utxo = {
|
|
3101
3317
|
/**
|
|
3102
|
-
*
|
|
3318
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3319
|
*/
|
|
3104
|
-
|
|
3105
|
-
asset:
|
|
3320
|
+
addresses: Array<string>;
|
|
3321
|
+
asset: AssetAmount;
|
|
3106
3322
|
/**
|
|
3107
|
-
*
|
|
3323
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3324
|
*/
|
|
3109
|
-
|
|
3325
|
+
consumedOnChainId: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* Transaction ID that consumed this output.
|
|
3328
|
+
*/
|
|
3329
|
+
consumingTxHash?: string;
|
|
3110
3330
|
/**
|
|
3111
3331
|
* Blockchain ID on which this output is created on.
|
|
3112
3332
|
*/
|
|
3113
3333
|
createdOnChainId: string;
|
|
3114
3334
|
/**
|
|
3115
|
-
*
|
|
3335
|
+
* UTXO ID for this output.
|
|
3116
3336
|
*/
|
|
3117
|
-
|
|
3337
|
+
utxoId: string;
|
|
3338
|
+
/**
|
|
3339
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3340
|
+
*/
|
|
3341
|
+
consumingTxTimestamp?: number;
|
|
3118
3342
|
/**
|
|
3119
3343
|
* Transaction ID that created this output.
|
|
3120
3344
|
*/
|
|
3121
3345
|
creationTxHash: string;
|
|
3122
3346
|
/**
|
|
3123
|
-
*
|
|
3347
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3124
3348
|
*/
|
|
3125
|
-
|
|
3349
|
+
credentials?: Array<UtxoCredential>;
|
|
3126
3350
|
/**
|
|
3127
|
-
*
|
|
3351
|
+
* Index representing the minting set for the NFT mint output.
|
|
3128
3352
|
*/
|
|
3129
|
-
|
|
3130
|
-
/**
|
|
3131
|
-
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3132
|
-
*/
|
|
3133
|
-
outputIndex: string;
|
|
3134
|
-
/**
|
|
3135
|
-
* Timestamp in seconds this outptut is created on.
|
|
3136
|
-
*/
|
|
3137
|
-
timestamp: number;
|
|
3353
|
+
groupId?: number;
|
|
3138
3354
|
/**
|
|
3139
3355
|
* Locktime in seconds after which this output can be consumed.
|
|
3140
3356
|
*/
|
|
3141
3357
|
locktime: number;
|
|
3142
3358
|
/**
|
|
3143
|
-
*
|
|
3359
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3144
3360
|
*/
|
|
3145
|
-
|
|
3361
|
+
outputIndex: string;
|
|
3146
3362
|
/**
|
|
3147
|
-
*
|
|
3363
|
+
* Hex encoded data for NFT assets.
|
|
3148
3364
|
*/
|
|
3149
|
-
|
|
3365
|
+
payload?: string;
|
|
3150
3366
|
/**
|
|
3151
|
-
*
|
|
3367
|
+
* Minimum number of signatures required to consume this output.
|
|
3152
3368
|
*/
|
|
3153
|
-
|
|
3369
|
+
threshold: number;
|
|
3154
3370
|
/**
|
|
3155
|
-
*
|
|
3371
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3156
3372
|
*/
|
|
3157
|
-
|
|
3373
|
+
timestamp: number;
|
|
3158
3374
|
/**
|
|
3159
|
-
*
|
|
3375
|
+
* Type of output.
|
|
3160
3376
|
*/
|
|
3161
|
-
|
|
3377
|
+
utxoType: string;
|
|
3162
3378
|
};
|
|
3163
3379
|
|
|
3164
3380
|
type CChainExportTransaction = {
|
|
@@ -3185,11 +3401,11 @@ type CChainExportTransaction = {
|
|
|
3185
3401
|
/**
|
|
3186
3402
|
* Assets unlocked by inputs of this transaction.
|
|
3187
3403
|
*/
|
|
3188
|
-
amountUnlocked: Array<
|
|
3404
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3189
3405
|
/**
|
|
3190
3406
|
* Assets created by outputs of this transaction.
|
|
3191
3407
|
*/
|
|
3192
|
-
amountCreated: Array<
|
|
3408
|
+
amountCreated: Array<AssetAmount>;
|
|
3193
3409
|
/**
|
|
3194
3410
|
* Source chain for an atomic transaction.
|
|
3195
3411
|
*/
|
|
@@ -3220,9 +3436,9 @@ type EVMOutput = {
|
|
|
3220
3436
|
*/
|
|
3221
3437
|
toAddress: string;
|
|
3222
3438
|
/**
|
|
3223
|
-
*
|
|
3439
|
+
* AssetAmount details for the asset being transferred.
|
|
3224
3440
|
*/
|
|
3225
|
-
asset:
|
|
3441
|
+
asset: AssetAmount;
|
|
3226
3442
|
};
|
|
3227
3443
|
|
|
3228
3444
|
type CChainImportTransaction = {
|
|
@@ -3249,11 +3465,11 @@ type CChainImportTransaction = {
|
|
|
3249
3465
|
/**
|
|
3250
3466
|
* Assets unlocked by inputs of this transaction.
|
|
3251
3467
|
*/
|
|
3252
|
-
amountUnlocked: Array<
|
|
3468
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3253
3469
|
/**
|
|
3254
3470
|
* Assets created by outputs of this transaction.
|
|
3255
3471
|
*/
|
|
3256
|
-
amountCreated: Array<
|
|
3472
|
+
amountCreated: Array<AssetAmount>;
|
|
3257
3473
|
/**
|
|
3258
3474
|
* Source chain for an atomic transaction.
|
|
3259
3475
|
*/
|
|
@@ -3289,17 +3505,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3505
|
|
|
3290
3506
|
declare enum PChainTransactionType {
|
|
3291
3507
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3508
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3509
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3510
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3511
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3512
|
IMPORT_TX = "ImportTx",
|
|
3301
3513
|
EXPORT_TX = "ExportTx",
|
|
3302
3514
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3515
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3516
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3517
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3518
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3519
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3520
|
+
BASE_TX = "BaseTx",
|
|
3521
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3303
3522
|
UNKNOWN = "UNKNOWN"
|
|
3304
3523
|
}
|
|
3305
3524
|
|
|
@@ -3310,29 +3529,48 @@ declare enum UtxoType {
|
|
|
3310
3529
|
|
|
3311
3530
|
type PChainUtxo = {
|
|
3312
3531
|
/**
|
|
3313
|
-
*
|
|
3532
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3533
|
*/
|
|
3315
3534
|
addresses: Array<string>;
|
|
3535
|
+
asset: AssetAmount;
|
|
3536
|
+
/**
|
|
3537
|
+
* Blockchain ID on which this output is consumed on.
|
|
3538
|
+
*/
|
|
3539
|
+
consumedOnChainId: string;
|
|
3540
|
+
/**
|
|
3541
|
+
* Transaction ID that consumed this output.
|
|
3542
|
+
*/
|
|
3543
|
+
consumingTxHash?: string;
|
|
3544
|
+
/**
|
|
3545
|
+
* Blockchain ID on which this output is created on.
|
|
3546
|
+
*/
|
|
3547
|
+
createdOnChainId: string;
|
|
3548
|
+
/**
|
|
3549
|
+
* UTXO ID for this output.
|
|
3550
|
+
*/
|
|
3316
3551
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3552
|
+
/**
|
|
3553
|
+
* @deprecated
|
|
3554
|
+
*/
|
|
3555
|
+
amount: string;
|
|
3556
|
+
/**
|
|
3557
|
+
* @deprecated
|
|
3558
|
+
*/
|
|
3559
|
+
assetId: string;
|
|
3319
3560
|
blockNumber: string;
|
|
3320
3561
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3562
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3563
|
+
consumingBlockTimestamp?: number;
|
|
3328
3564
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3565
|
+
outputIndex: number;
|
|
3566
|
+
rewardType?: RewardType;
|
|
3567
|
+
stakeableLocktime?: number;
|
|
3332
3568
|
staked?: boolean;
|
|
3333
|
-
|
|
3569
|
+
threshold?: number;
|
|
3570
|
+
txHash: string;
|
|
3334
3571
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3572
|
+
utxoStartTimestamp?: number;
|
|
3573
|
+
utxoType: UtxoType;
|
|
3336
3574
|
};
|
|
3337
3575
|
|
|
3338
3576
|
type PChainTransaction = {
|
|
@@ -3358,17 +3596,17 @@ type PChainTransaction = {
|
|
|
3358
3596
|
*/
|
|
3359
3597
|
destinationChain?: string;
|
|
3360
3598
|
/**
|
|
3361
|
-
* A list of objects containing P-chain Asset
|
|
3599
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3362
3600
|
*/
|
|
3363
|
-
value: Array<
|
|
3601
|
+
value: Array<AssetAmount>;
|
|
3364
3602
|
/**
|
|
3365
|
-
* A list of objects containing P-chain Asset
|
|
3603
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3366
3604
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3605
|
+
amountBurned: Array<AssetAmount>;
|
|
3368
3606
|
/**
|
|
3369
|
-
* A list of objects containing P-chain Asset
|
|
3607
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3608
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3609
|
+
amountStaked: Array<AssetAmount>;
|
|
3372
3610
|
/**
|
|
3373
3611
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3612
|
*/
|
|
@@ -3400,6 +3638,14 @@ type PChainTransaction = {
|
|
|
3400
3638
|
* Present for RewardValidatorTx
|
|
3401
3639
|
*/
|
|
3402
3640
|
stakingTxHash?: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3643
|
+
*/
|
|
3644
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3645
|
+
/**
|
|
3646
|
+
* Present for AddPermissionlessValidatorTx
|
|
3647
|
+
*/
|
|
3648
|
+
blsCredentials?: BlsCredentials;
|
|
3403
3649
|
};
|
|
3404
3650
|
|
|
3405
3651
|
type ListPChainTransactionsResponse = {
|
|
@@ -3411,6 +3657,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3657
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3658
|
};
|
|
3413
3659
|
|
|
3660
|
+
/**
|
|
3661
|
+
* Type of transaction.
|
|
3662
|
+
*/
|
|
3663
|
+
declare enum XChainTransactionType {
|
|
3664
|
+
BASE_TX = "BaseTx",
|
|
3665
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3666
|
+
OPERATION_TX = "OperationTx",
|
|
3667
|
+
IMPORT_TX = "ImportTx",
|
|
3668
|
+
EXPORT_TX = "ExportTx",
|
|
3669
|
+
UNKNOWN = "UNKNOWN"
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3414
3672
|
type XChainLinearTransaction = {
|
|
3415
3673
|
/**
|
|
3416
3674
|
* Unique ID for this transaction.
|
|
@@ -3424,10 +3682,7 @@ type XChainLinearTransaction = {
|
|
|
3424
3682
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3425
3683
|
*/
|
|
3426
3684
|
timestamp: number;
|
|
3427
|
-
|
|
3428
|
-
* Type of transaction.
|
|
3429
|
-
*/
|
|
3430
|
-
txType: string;
|
|
3685
|
+
txType: XChainTransactionType;
|
|
3431
3686
|
/**
|
|
3432
3687
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3688
|
*/
|
|
@@ -3437,11 +3692,11 @@ type XChainLinearTransaction = {
|
|
|
3437
3692
|
/**
|
|
3438
3693
|
* Assets unlocked by inputs of this transaction.
|
|
3439
3694
|
*/
|
|
3440
|
-
amountUnlocked: Array<
|
|
3695
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3441
3696
|
/**
|
|
3442
3697
|
* Assets created by outputs of this transaction.
|
|
3443
3698
|
*/
|
|
3444
|
-
amountCreated: Array<
|
|
3699
|
+
amountCreated: Array<AssetAmount>;
|
|
3445
3700
|
/**
|
|
3446
3701
|
* Source chain for an atomic transaction.
|
|
3447
3702
|
*/
|
|
@@ -3451,7 +3706,7 @@ type XChainLinearTransaction = {
|
|
|
3451
3706
|
*/
|
|
3452
3707
|
destinationChain?: string;
|
|
3453
3708
|
/**
|
|
3454
|
-
*
|
|
3709
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3455
3710
|
*/
|
|
3456
3711
|
assetCreated?: XChainAssetDetails;
|
|
3457
3712
|
/**
|
|
@@ -3501,10 +3756,7 @@ type XChainNonLinearTransaction = {
|
|
|
3501
3756
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3502
3757
|
*/
|
|
3503
3758
|
timestamp: number;
|
|
3504
|
-
|
|
3505
|
-
* Type of transaction.
|
|
3506
|
-
*/
|
|
3507
|
-
txType: string;
|
|
3759
|
+
txType: XChainTransactionType;
|
|
3508
3760
|
/**
|
|
3509
3761
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3762
|
*/
|
|
@@ -3514,11 +3766,11 @@ type XChainNonLinearTransaction = {
|
|
|
3514
3766
|
/**
|
|
3515
3767
|
* Assets unlocked by inputs of this transaction.
|
|
3516
3768
|
*/
|
|
3517
|
-
amountUnlocked: Array<
|
|
3769
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3518
3770
|
/**
|
|
3519
3771
|
* Assets created by outputs of this transaction.
|
|
3520
3772
|
*/
|
|
3521
|
-
amountCreated: Array<
|
|
3773
|
+
amountCreated: Array<AssetAmount>;
|
|
3522
3774
|
/**
|
|
3523
3775
|
* Source chain for an atomic transaction.
|
|
3524
3776
|
*/
|
|
@@ -3528,7 +3780,7 @@ type XChainNonLinearTransaction = {
|
|
|
3528
3780
|
*/
|
|
3529
3781
|
destinationChain?: string;
|
|
3530
3782
|
/**
|
|
3531
|
-
*
|
|
3783
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3532
3784
|
*/
|
|
3533
3785
|
assetCreated?: XChainAssetDetails;
|
|
3534
3786
|
/**
|
|
@@ -3562,19 +3814,21 @@ declare enum PChainId {
|
|
|
3562
3814
|
|
|
3563
3815
|
declare enum PrimaryNetworkTxType {
|
|
3564
3816
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3817
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3818
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3819
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3820
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3821
|
IMPORT_TX = "ImportTx",
|
|
3574
3822
|
EXPORT_TX = "ExportTx",
|
|
3575
3823
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3576
|
-
|
|
3824
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3825
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3826
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3827
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3828
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3577
3829
|
BASE_TX = "BaseTx",
|
|
3830
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3831
|
+
UNKNOWN = "UNKNOWN",
|
|
3578
3832
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3579
3833
|
OPERATION_TX = "OperationTx"
|
|
3580
3834
|
}
|
|
@@ -3606,13 +3860,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3860
|
* List latest transactions
|
|
3607
3861
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3862
|
*
|
|
3609
|
-
* Transactions are filterable by addresses.
|
|
3863
|
+
* 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
3864
|
*
|
|
3611
3865
|
* 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
3866
|
* @returns any
|
|
3613
3867
|
* @throws ApiError
|
|
3614
3868
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3869
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3870
|
/**
|
|
3617
3871
|
* A primary network blockchain id or alias.
|
|
3618
3872
|
*/
|
|
@@ -3637,14 +3891,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3891
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3892
|
*/
|
|
3639
3893
|
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
3894
|
/**
|
|
3645
3895
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3896
|
*/
|
|
3647
3897
|
pageToken?: string;
|
|
3898
|
+
/**
|
|
3899
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3900
|
+
*/
|
|
3901
|
+
pageSize?: number;
|
|
3648
3902
|
/**
|
|
3649
3903
|
* 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
3904
|
*/
|
|
@@ -3656,7 +3910,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
3910
|
* @returns ListPChainTransactionsResponse
|
|
3657
3911
|
* @throws ApiError
|
|
3658
3912
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3913
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
3914
|
/**
|
|
3661
3915
|
* A primary network blockchain id or alias.
|
|
3662
3916
|
*/
|
|
@@ -3681,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
3935
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
3936
|
*/
|
|
3683
3937
|
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
3938
|
/**
|
|
3689
3939
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
3940
|
*/
|
|
3691
3941
|
pageToken?: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3944
|
+
*/
|
|
3945
|
+
pageSize?: number;
|
|
3692
3946
|
/**
|
|
3693
3947
|
* 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
3948
|
*/
|
|
@@ -3700,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
3954
|
* @returns ListXChainTransactionsResponse
|
|
3701
3955
|
* @throws ApiError
|
|
3702
3956
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3957
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
3958
|
/**
|
|
3705
3959
|
* A primary network blockchain id or alias.
|
|
3706
3960
|
*/
|
|
@@ -3725,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
3979
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
3980
|
*/
|
|
3727
3981
|
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
3982
|
/**
|
|
3733
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
3984
|
*/
|
|
3735
3985
|
pageToken?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3988
|
+
*/
|
|
3989
|
+
pageSize?: number;
|
|
3736
3990
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
3991
|
}
|
|
3738
3992
|
|
|
@@ -3763,7 +4017,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
4017
|
* @returns any
|
|
3764
4018
|
* @throws ApiError
|
|
3765
4019
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4020
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
4021
|
/**
|
|
3768
4022
|
* A primary network blockchain id or alias.
|
|
3769
4023
|
*/
|
|
@@ -3776,14 +4030,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
4030
|
* 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
4031
|
*/
|
|
3778
4032
|
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
4033
|
/**
|
|
3784
4034
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
4035
|
*/
|
|
3786
4036
|
pageToken?: string;
|
|
4037
|
+
/**
|
|
4038
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4039
|
+
*/
|
|
4040
|
+
pageSize?: number;
|
|
3787
4041
|
/**
|
|
3788
4042
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
4043
|
*/
|
|
@@ -3828,7 +4082,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4082
|
* @returns ListXChainVerticesResponse
|
|
3829
4083
|
* @throws ApiError
|
|
3830
4084
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4085
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4086
|
/**
|
|
3833
4087
|
* A primary network blockchain id or alias.
|
|
3834
4088
|
*/
|
|
@@ -3837,14 +4091,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4091
|
* Either mainnet or a testnet.
|
|
3838
4092
|
*/
|
|
3839
4093
|
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
4094
|
/**
|
|
3845
4095
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4096
|
*/
|
|
3847
4097
|
pageToken?: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4100
|
+
*/
|
|
4101
|
+
pageSize?: number;
|
|
3848
4102
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4103
|
/**
|
|
3850
4104
|
* Get vertex
|
|
@@ -3872,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4126
|
* @returns ListXChainVerticesResponse
|
|
3873
4127
|
* @throws ApiError
|
|
3874
4128
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4129
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4130
|
/**
|
|
3877
4131
|
* The height of a vertex.
|
|
3878
4132
|
*/
|
|
@@ -3885,19 +4139,479 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4139
|
* Either mainnet or a testnet.
|
|
3886
4140
|
*/
|
|
3887
4141
|
network: Network;
|
|
4142
|
+
/**
|
|
4143
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4144
|
+
*/
|
|
4145
|
+
pageToken?: string;
|
|
3888
4146
|
/**
|
|
3889
4147
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3890
4148
|
*/
|
|
3891
4149
|
pageSize?: number;
|
|
4150
|
+
/**
|
|
4151
|
+
* 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.
|
|
4152
|
+
*/
|
|
4153
|
+
sortOrder?: SortOrder;
|
|
4154
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4155
|
+
}
|
|
4156
|
+
|
|
4157
|
+
type RpcErrorDto = {
|
|
4158
|
+
code: number;
|
|
4159
|
+
message: string;
|
|
4160
|
+
data?: Record<string, any>;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4163
|
+
type RpcErrorResponseDto = {
|
|
4164
|
+
jsonrpc: string;
|
|
4165
|
+
id?: (string | number);
|
|
4166
|
+
error: RpcErrorDto;
|
|
4167
|
+
};
|
|
4168
|
+
|
|
4169
|
+
type RpcRequestBodyDto = {
|
|
4170
|
+
method: string;
|
|
4171
|
+
params?: Record<string, any>;
|
|
4172
|
+
id?: (string | number);
|
|
4173
|
+
jsonrpc?: string;
|
|
4174
|
+
};
|
|
4175
|
+
|
|
4176
|
+
type RpcSuccessResponseDto = {
|
|
4177
|
+
jsonrpc: string;
|
|
4178
|
+
id?: (string | number);
|
|
4179
|
+
result: Record<string, any>;
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4182
|
+
declare class RpcService {
|
|
4183
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4184
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4185
|
+
/**
|
|
4186
|
+
* Calls JSON-RPC method
|
|
4187
|
+
* Calls JSON-RPC method.
|
|
4188
|
+
* @returns any
|
|
4189
|
+
* @throws ApiError
|
|
4190
|
+
*/
|
|
4191
|
+
rpc({ chainId, requestBody, }: {
|
|
4192
|
+
/**
|
|
4193
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4194
|
+
*/
|
|
4195
|
+
chainId: string;
|
|
4196
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4197
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4200
|
+
type TeleporterDestinationTransaction = {
|
|
4201
|
+
txHash: string;
|
|
4202
|
+
timestamp: number;
|
|
4203
|
+
gasSpent: string;
|
|
4204
|
+
rewardRedeemer: string;
|
|
4205
|
+
delivererAddress: string;
|
|
4206
|
+
};
|
|
4207
|
+
|
|
4208
|
+
type TeleporterReceipt = {
|
|
4209
|
+
receivedMessageNonce: string;
|
|
4210
|
+
relayerRewardAddress: string;
|
|
4211
|
+
};
|
|
4212
|
+
|
|
4213
|
+
type TeleporterRewardDetails = {
|
|
4214
|
+
/**
|
|
4215
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4216
|
+
*/
|
|
4217
|
+
address: string;
|
|
4218
|
+
/**
|
|
4219
|
+
* The contract name.
|
|
4220
|
+
*/
|
|
4221
|
+
name: string;
|
|
4222
|
+
/**
|
|
4223
|
+
* The contract symbol.
|
|
4224
|
+
*/
|
|
4225
|
+
symbol: string;
|
|
4226
|
+
/**
|
|
4227
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4228
|
+
*/
|
|
4229
|
+
decimals: number;
|
|
4230
|
+
/**
|
|
4231
|
+
* The logo uri for the address.
|
|
4232
|
+
*/
|
|
4233
|
+
logoUri?: string;
|
|
4234
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4235
|
+
/**
|
|
4236
|
+
* The token price, if available.
|
|
4237
|
+
*/
|
|
4238
|
+
price?: Money;
|
|
4239
|
+
value: string;
|
|
4240
|
+
};
|
|
4241
|
+
declare namespace TeleporterRewardDetails {
|
|
4242
|
+
enum ercType {
|
|
4243
|
+
ERC_20 = "ERC-20"
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4248
|
+
messageId: string;
|
|
4249
|
+
teleporterContractAddress: string;
|
|
4250
|
+
sourceBlockchainId: string;
|
|
4251
|
+
destinationBlockchainId: string;
|
|
4252
|
+
sourceEvmChainId: string;
|
|
4253
|
+
destinationEvmChainId: string;
|
|
4254
|
+
messageNonce: string;
|
|
4255
|
+
from: string;
|
|
4256
|
+
to: string;
|
|
4257
|
+
data?: string;
|
|
4258
|
+
messageExecuted: boolean;
|
|
4259
|
+
receipts: Array<TeleporterReceipt>;
|
|
4260
|
+
receiptDelivered: boolean;
|
|
4261
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4262
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4263
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4264
|
+
};
|
|
4265
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4266
|
+
enum status {
|
|
4267
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4268
|
+
}
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
type TeleporterSourceTransaction = {
|
|
4272
|
+
txHash: string;
|
|
4273
|
+
timestamp: number;
|
|
4274
|
+
gasSpent: string;
|
|
4275
|
+
};
|
|
4276
|
+
|
|
4277
|
+
type DeliveredTeleporterMessage = {
|
|
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
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4294
|
+
status: DeliveredTeleporterMessage.status;
|
|
4295
|
+
};
|
|
4296
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4297
|
+
enum status {
|
|
4298
|
+
DELIVERED = "delivered"
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
type PendingTeleporterMessage = {
|
|
4303
|
+
messageId: string;
|
|
4304
|
+
teleporterContractAddress: string;
|
|
4305
|
+
sourceBlockchainId: string;
|
|
4306
|
+
destinationBlockchainId: string;
|
|
4307
|
+
sourceEvmChainId: string;
|
|
4308
|
+
destinationEvmChainId: string;
|
|
4309
|
+
messageNonce: string;
|
|
4310
|
+
from: string;
|
|
4311
|
+
to: string;
|
|
4312
|
+
data?: string;
|
|
4313
|
+
messageExecuted: boolean;
|
|
4314
|
+
receipts: Array<TeleporterReceipt>;
|
|
4315
|
+
receiptDelivered: boolean;
|
|
4316
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4317
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4318
|
+
status: PendingTeleporterMessage.status;
|
|
4319
|
+
};
|
|
4320
|
+
declare namespace PendingTeleporterMessage {
|
|
4321
|
+
enum status {
|
|
4322
|
+
PENDING = "pending"
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4326
|
+
type ListTeleporterMessagesResponse = {
|
|
4327
|
+
/**
|
|
4328
|
+
* 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.
|
|
4329
|
+
*/
|
|
4330
|
+
nextPageToken?: string;
|
|
4331
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4334
|
+
declare class TeleporterService {
|
|
4335
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4336
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4337
|
+
/**
|
|
4338
|
+
* Get a teleporter message
|
|
4339
|
+
* Gets a teleporter message by message ID.
|
|
4340
|
+
* @returns any
|
|
4341
|
+
* @throws ApiError
|
|
4342
|
+
*/
|
|
4343
|
+
getTeleporterMessage({ messageId, }: {
|
|
4344
|
+
/**
|
|
4345
|
+
* The message ID of the teleporter message.
|
|
4346
|
+
*/
|
|
4347
|
+
messageId: string;
|
|
4348
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4349
|
+
/**
|
|
4350
|
+
* List teleporter messages
|
|
4351
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4352
|
+
* @returns ListTeleporterMessagesResponse
|
|
4353
|
+
* @throws ApiError
|
|
4354
|
+
*/
|
|
4355
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
3892
4356
|
/**
|
|
3893
4357
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4358
|
*/
|
|
3895
4359
|
pageToken?: string;
|
|
3896
4360
|
/**
|
|
3897
|
-
* The
|
|
4361
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
4362
|
*/
|
|
3899
|
-
|
|
3900
|
-
|
|
4363
|
+
pageSize?: number;
|
|
4364
|
+
/**
|
|
4365
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4366
|
+
*/
|
|
4367
|
+
sourceBlockchainId?: string;
|
|
4368
|
+
/**
|
|
4369
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4370
|
+
*/
|
|
4371
|
+
destinationBlockchainId?: string;
|
|
4372
|
+
/**
|
|
4373
|
+
* The address of the recipient of the teleporter message.
|
|
4374
|
+
*/
|
|
4375
|
+
to?: string;
|
|
4376
|
+
/**
|
|
4377
|
+
* The address of the sender of the teleporter message.
|
|
4378
|
+
*/
|
|
4379
|
+
from?: string;
|
|
4380
|
+
/**
|
|
4381
|
+
* mainnet or testnet.
|
|
4382
|
+
*/
|
|
4383
|
+
network?: NetworkType;
|
|
4384
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
type AddressesChangeRequest = {
|
|
4388
|
+
/**
|
|
4389
|
+
* Ethereum address(es) for the address_activity event type
|
|
4390
|
+
*/
|
|
4391
|
+
addresses: Array<any[]>;
|
|
4392
|
+
};
|
|
4393
|
+
|
|
4394
|
+
type AddressActivityMetadata = {
|
|
4395
|
+
/**
|
|
4396
|
+
* Ethereum address(es) for the address_activity event type
|
|
4397
|
+
*/
|
|
4398
|
+
addresses: Array<string>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4401
|
+
*/
|
|
4402
|
+
eventSignatures?: Array<string>;
|
|
4403
|
+
};
|
|
4404
|
+
|
|
4405
|
+
declare enum EventType {
|
|
4406
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
type CreateWebhookRequest = {
|
|
4410
|
+
url: string;
|
|
4411
|
+
chainId: string;
|
|
4412
|
+
eventType: EventType;
|
|
4413
|
+
metadata: AddressActivityMetadata;
|
|
4414
|
+
name?: string;
|
|
4415
|
+
description?: string;
|
|
4416
|
+
/**
|
|
4417
|
+
* Whether to include traces in the webhook payload.
|
|
4418
|
+
*/
|
|
4419
|
+
includeInternalTxs?: boolean;
|
|
4420
|
+
/**
|
|
4421
|
+
* Whether to include logs in the webhook payload.
|
|
4422
|
+
*/
|
|
4423
|
+
includeLogs?: boolean;
|
|
4424
|
+
};
|
|
4425
|
+
|
|
4426
|
+
type ListWebhookAddressesResponse = {
|
|
4427
|
+
/**
|
|
4428
|
+
* 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.
|
|
4429
|
+
*/
|
|
4430
|
+
nextPageToken?: string;
|
|
4431
|
+
addresses: Array<string>;
|
|
4432
|
+
totalAddresses: number;
|
|
4433
|
+
};
|
|
4434
|
+
|
|
4435
|
+
declare enum WebhookStatusType {
|
|
4436
|
+
ACTIVE = "active",
|
|
4437
|
+
INACTIVE = "inactive"
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
type WebhookResponse = {
|
|
4441
|
+
id: string;
|
|
4442
|
+
eventType: EventType;
|
|
4443
|
+
metadata: AddressActivityMetadata;
|
|
4444
|
+
/**
|
|
4445
|
+
* Whether to include traces in the webhook payload.
|
|
4446
|
+
*/
|
|
4447
|
+
includeInternalTxs?: boolean;
|
|
4448
|
+
/**
|
|
4449
|
+
* Whether to include logs in the webhook payload.
|
|
4450
|
+
*/
|
|
4451
|
+
includeLogs?: boolean;
|
|
4452
|
+
url: string;
|
|
4453
|
+
chainId: string;
|
|
4454
|
+
status: WebhookStatusType;
|
|
4455
|
+
createdAt: number;
|
|
4456
|
+
name: string;
|
|
4457
|
+
description: string;
|
|
4458
|
+
};
|
|
4459
|
+
|
|
4460
|
+
type ListWebhooksResponse = {
|
|
4461
|
+
/**
|
|
4462
|
+
* 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.
|
|
4463
|
+
*/
|
|
4464
|
+
nextPageToken?: string;
|
|
4465
|
+
webhooks: Array<WebhookResponse>;
|
|
4466
|
+
};
|
|
4467
|
+
|
|
4468
|
+
type SharedSecretsResponse = {
|
|
4469
|
+
secret: string;
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
type UpdateWebhookRequest = {
|
|
4473
|
+
name?: string;
|
|
4474
|
+
description?: string;
|
|
4475
|
+
url?: string;
|
|
4476
|
+
status?: WebhookStatusType;
|
|
4477
|
+
includeInternalTxs?: boolean;
|
|
4478
|
+
includeLogs?: boolean;
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
declare enum WebhookStatus {
|
|
4482
|
+
ACTIVE = "active",
|
|
4483
|
+
INACTIVE = "inactive"
|
|
4484
|
+
}
|
|
4485
|
+
|
|
4486
|
+
declare class WebhooksService {
|
|
4487
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4488
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4489
|
+
/**
|
|
4490
|
+
* Create a webhook
|
|
4491
|
+
* Create a new webhook.
|
|
4492
|
+
* @returns WebhookResponse
|
|
4493
|
+
* @throws ApiError
|
|
4494
|
+
*/
|
|
4495
|
+
createWebhook({ requestBody, }: {
|
|
4496
|
+
requestBody: CreateWebhookRequest;
|
|
4497
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4498
|
+
/**
|
|
4499
|
+
* List webhooks
|
|
4500
|
+
* Lists webhooks for the user.
|
|
4501
|
+
* @returns ListWebhooksResponse
|
|
4502
|
+
* @throws ApiError
|
|
4503
|
+
*/
|
|
4504
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4505
|
+
/**
|
|
4506
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4507
|
+
*/
|
|
4508
|
+
pageToken?: string;
|
|
4509
|
+
/**
|
|
4510
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4511
|
+
*/
|
|
4512
|
+
pageSize?: number;
|
|
4513
|
+
/**
|
|
4514
|
+
* 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.
|
|
4515
|
+
*/
|
|
4516
|
+
status?: WebhookStatus;
|
|
4517
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4518
|
+
/**
|
|
4519
|
+
* Get a webhook by ID
|
|
4520
|
+
* Retrieves a webhook by ID.
|
|
4521
|
+
* @returns WebhookResponse
|
|
4522
|
+
* @throws ApiError
|
|
4523
|
+
*/
|
|
4524
|
+
getWebhook({ id, }: {
|
|
4525
|
+
/**
|
|
4526
|
+
* The webhook identifier.
|
|
4527
|
+
*/
|
|
4528
|
+
id: string;
|
|
4529
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4530
|
+
/**
|
|
4531
|
+
* Deactivate a webhook
|
|
4532
|
+
* Deactivates a webhook by ID.
|
|
4533
|
+
* @returns WebhookResponse
|
|
4534
|
+
* @throws ApiError
|
|
4535
|
+
*/
|
|
4536
|
+
deactivateWebhook({ id, }: {
|
|
4537
|
+
/**
|
|
4538
|
+
* The webhook identifier.
|
|
4539
|
+
*/
|
|
4540
|
+
id: string;
|
|
4541
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4542
|
+
/**
|
|
4543
|
+
* Update a webhook
|
|
4544
|
+
* Updates an existing webhook.
|
|
4545
|
+
* @returns WebhookResponse
|
|
4546
|
+
* @throws ApiError
|
|
4547
|
+
*/
|
|
4548
|
+
updateWebhook({ id, requestBody, }: {
|
|
4549
|
+
/**
|
|
4550
|
+
* The webhook identifier.
|
|
4551
|
+
*/
|
|
4552
|
+
id: string;
|
|
4553
|
+
requestBody: UpdateWebhookRequest;
|
|
4554
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4555
|
+
/**
|
|
4556
|
+
* Generate a shared secret
|
|
4557
|
+
* Generates a new shared secret.
|
|
4558
|
+
* @returns SharedSecretsResponse
|
|
4559
|
+
* @throws ApiError
|
|
4560
|
+
*/
|
|
4561
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4562
|
+
/**
|
|
4563
|
+
* Get a shared secret
|
|
4564
|
+
* Get a previously generated shared secret.
|
|
4565
|
+
* @returns SharedSecretsResponse
|
|
4566
|
+
* @throws ApiError
|
|
4567
|
+
*/
|
|
4568
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4569
|
+
/**
|
|
4570
|
+
* Add addresses to webhook
|
|
4571
|
+
* Add addresses to webhook.
|
|
4572
|
+
* @returns WebhookResponse
|
|
4573
|
+
* @throws ApiError
|
|
4574
|
+
*/
|
|
4575
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4576
|
+
/**
|
|
4577
|
+
* The webhook identifier.
|
|
4578
|
+
*/
|
|
4579
|
+
id: string;
|
|
4580
|
+
requestBody: AddressesChangeRequest;
|
|
4581
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4582
|
+
/**
|
|
4583
|
+
* Remove addresses from webhook
|
|
4584
|
+
* Remove addresses from webhook.
|
|
4585
|
+
* @returns WebhookResponse
|
|
4586
|
+
* @throws ApiError
|
|
4587
|
+
*/
|
|
4588
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4589
|
+
/**
|
|
4590
|
+
* The webhook identifier.
|
|
4591
|
+
*/
|
|
4592
|
+
id: string;
|
|
4593
|
+
requestBody: AddressesChangeRequest;
|
|
4594
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4595
|
+
/**
|
|
4596
|
+
* List adresses by webhook
|
|
4597
|
+
* List adresses by webhook.
|
|
4598
|
+
* @returns ListWebhookAddressesResponse
|
|
4599
|
+
* @throws ApiError
|
|
4600
|
+
*/
|
|
4601
|
+
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
4602
|
+
/**
|
|
4603
|
+
* The webhook identifier.
|
|
4604
|
+
*/
|
|
4605
|
+
id: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4608
|
+
*/
|
|
4609
|
+
pageToken?: string;
|
|
4610
|
+
/**
|
|
4611
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4612
|
+
*/
|
|
4613
|
+
pageSize?: number;
|
|
4614
|
+
}): CancelablePromise<ListWebhookAddressesResponse>;
|
|
3901
4615
|
}
|
|
3902
4616
|
|
|
3903
4617
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3918,6 +4632,9 @@ declare class Glacier {
|
|
|
3918
4632
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3919
4633
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3920
4634
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4635
|
+
readonly rpc: RpcService;
|
|
4636
|
+
readonly teleporter: TeleporterService;
|
|
4637
|
+
readonly webhooks: WebhooksService;
|
|
3921
4638
|
readonly request: BaseHttpRequest;
|
|
3922
4639
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3923
4640
|
}
|
|
@@ -3939,4 +4656,11 @@ declare class ApiError extends Error {
|
|
|
3939
4656
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4657
|
}
|
|
3941
4658
|
|
|
3942
|
-
|
|
4659
|
+
type NextPageToken = {
|
|
4660
|
+
/**
|
|
4661
|
+
* 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.
|
|
4662
|
+
*/
|
|
4663
|
+
nextPageToken?: string;
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, 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, 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 };
|