@avalabs/glacier-sdk 2.8.0-canary.ec0cd0f.0 → 2.8.0-canary.f04d277.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 +1116 -423
- package/dist/index.js +431 -130
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +8 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -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/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +20 -1
- package/esm/generated/services/EvmContractsService.js +16 -0
- 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 +43 -39
- package/esm/generated/services/PrimaryNetworkService.js +22 -20
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +38 -3
- package/esm/index.js +21 -2
- package/package.json +2 -2
- 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
|
@@ -60,6 +60,19 @@ declare abstract class BaseHttpRequest {
|
|
|
60
60
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
declare class DefaultService {
|
|
64
|
+
readonly httpRequest: BaseHttpRequest;
|
|
65
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
66
|
+
/**
|
|
67
|
+
* @returns any
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* ISO 4217 currency code.
|
|
75
|
+
*/
|
|
63
76
|
declare enum CurrencyCode {
|
|
64
77
|
USD = "usd",
|
|
65
78
|
EUR = "eur",
|
|
@@ -78,9 +91,6 @@ declare enum CurrencyCode {
|
|
|
78
91
|
}
|
|
79
92
|
|
|
80
93
|
type Money = {
|
|
81
|
-
/**
|
|
82
|
-
* ISO 4217 currency code.
|
|
83
|
-
*/
|
|
84
94
|
currencyCode: CurrencyCode;
|
|
85
95
|
/**
|
|
86
96
|
* Monetary value in base 10 decimals.
|
|
@@ -130,6 +140,9 @@ type GetNativeBalanceResponse = {
|
|
|
130
140
|
nativeTokenBalance: NativeTokenBalance;
|
|
131
141
|
};
|
|
132
142
|
|
|
143
|
+
/**
|
|
144
|
+
* The metadata indexing status of the nft.
|
|
145
|
+
*/
|
|
133
146
|
declare enum NftTokenMetadataStatus {
|
|
134
147
|
UNKNOWN = "UNKNOWN",
|
|
135
148
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -145,9 +158,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
145
158
|
}
|
|
146
159
|
|
|
147
160
|
type Erc1155TokenMetadata = {
|
|
148
|
-
/**
|
|
149
|
-
* The metadata indexing status of the nft.
|
|
150
|
-
*/
|
|
151
161
|
indexStatus: NftTokenMetadataStatus;
|
|
152
162
|
metadataLastUpdatedTimestamp?: number;
|
|
153
163
|
name?: string;
|
|
@@ -186,9 +196,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
186
196
|
}
|
|
187
197
|
|
|
188
198
|
type Erc721TokenMetadata = {
|
|
189
|
-
/**
|
|
190
|
-
* The metadata indexing status of the nft.
|
|
191
|
-
*/
|
|
192
199
|
indexStatus: NftTokenMetadataStatus;
|
|
193
200
|
metadataLastUpdatedTimestamp?: number;
|
|
194
201
|
name?: string;
|
|
@@ -335,7 +342,7 @@ declare class EvmBalancesService {
|
|
|
335
342
|
*/
|
|
336
343
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
344
|
/**
|
|
338
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
345
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
346
|
*/
|
|
340
347
|
chainId: string;
|
|
341
348
|
/**
|
|
@@ -361,9 +368,9 @@ declare class EvmBalancesService {
|
|
|
361
368
|
* @returns ListErc20BalancesResponse
|
|
362
369
|
* @throws ApiError
|
|
363
370
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
371
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
372
|
/**
|
|
366
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
373
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
374
|
*/
|
|
368
375
|
chainId: string;
|
|
369
376
|
/**
|
|
@@ -374,14 +381,14 @@ declare class EvmBalancesService {
|
|
|
374
381
|
* The block number, if not defined the block number will be the latest block.
|
|
375
382
|
*/
|
|
376
383
|
blockNumber?: string;
|
|
377
|
-
/**
|
|
378
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
379
|
-
*/
|
|
380
|
-
pageSize?: number;
|
|
381
384
|
/**
|
|
382
385
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
386
|
*/
|
|
384
387
|
pageToken?: string;
|
|
388
|
+
/**
|
|
389
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
390
|
+
*/
|
|
391
|
+
pageSize?: number;
|
|
385
392
|
/**
|
|
386
393
|
* A comma separated list of contract addresses to filter by.
|
|
387
394
|
*/
|
|
@@ -399,23 +406,23 @@ declare class EvmBalancesService {
|
|
|
399
406
|
* @returns ListErc721BalancesResponse
|
|
400
407
|
* @throws ApiError
|
|
401
408
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
409
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
410
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
411
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
412
|
*/
|
|
406
413
|
chainId: string;
|
|
407
414
|
/**
|
|
408
415
|
* A wallet address.
|
|
409
416
|
*/
|
|
410
417
|
address: string;
|
|
411
|
-
/**
|
|
412
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
413
|
-
*/
|
|
414
|
-
pageSize?: number;
|
|
415
418
|
/**
|
|
416
419
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
420
|
*/
|
|
418
421
|
pageToken?: string;
|
|
422
|
+
/**
|
|
423
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
424
|
+
*/
|
|
425
|
+
pageSize?: number;
|
|
419
426
|
/**
|
|
420
427
|
* A contract addresses to filter by.
|
|
421
428
|
*/
|
|
@@ -431,9 +438,9 @@ declare class EvmBalancesService {
|
|
|
431
438
|
* @returns ListErc1155BalancesResponse
|
|
432
439
|
* @throws ApiError
|
|
433
440
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
441
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
442
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
443
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
444
|
*/
|
|
438
445
|
chainId: string;
|
|
439
446
|
/**
|
|
@@ -444,14 +451,14 @@ declare class EvmBalancesService {
|
|
|
444
451
|
* The block number, if not defined the block number will be the latest block.
|
|
445
452
|
*/
|
|
446
453
|
blockNumber?: string;
|
|
447
|
-
/**
|
|
448
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
449
|
-
*/
|
|
450
|
-
pageSize?: number;
|
|
451
454
|
/**
|
|
452
455
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
456
|
*/
|
|
454
457
|
pageToken?: string;
|
|
458
|
+
/**
|
|
459
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
460
|
+
*/
|
|
461
|
+
pageSize?: number;
|
|
455
462
|
/**
|
|
456
463
|
* A contract addresses to filter by.
|
|
457
464
|
*/
|
|
@@ -465,23 +472,23 @@ declare class EvmBalancesService {
|
|
|
465
472
|
* @returns ListCollectibleBalancesResponse
|
|
466
473
|
* @throws ApiError
|
|
467
474
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
475
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
476
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
477
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
478
|
*/
|
|
472
479
|
chainId: string;
|
|
473
480
|
/**
|
|
474
481
|
* A wallet address.
|
|
475
482
|
*/
|
|
476
483
|
address: string;
|
|
477
|
-
/**
|
|
478
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
479
|
-
*/
|
|
480
|
-
pageSize?: number;
|
|
481
484
|
/**
|
|
482
485
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
486
|
*/
|
|
484
487
|
pageToken?: string;
|
|
488
|
+
/**
|
|
489
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
490
|
+
*/
|
|
491
|
+
pageSize?: number;
|
|
485
492
|
/**
|
|
486
493
|
* A contract addresses to filter by.
|
|
487
494
|
*/
|
|
@@ -594,19 +601,19 @@ declare class EvmBlocksService {
|
|
|
594
601
|
* @returns ListEvmBlocksResponse
|
|
595
602
|
* @throws ApiError
|
|
596
603
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
604
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
605
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
606
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
607
|
*/
|
|
601
608
|
chainId: string;
|
|
602
|
-
/**
|
|
603
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
604
|
-
*/
|
|
605
|
-
pageSize?: number;
|
|
606
609
|
/**
|
|
607
610
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
611
|
*/
|
|
609
612
|
pageToken?: string;
|
|
613
|
+
/**
|
|
614
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
615
|
+
*/
|
|
616
|
+
pageSize?: number;
|
|
610
617
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
618
|
/**
|
|
612
619
|
* Get block
|
|
@@ -616,7 +623,7 @@ declare class EvmBlocksService {
|
|
|
616
623
|
*/
|
|
617
624
|
getBlock({ chainId, blockId, }: {
|
|
618
625
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
626
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
627
|
*/
|
|
621
628
|
chainId: string;
|
|
622
629
|
/**
|
|
@@ -626,6 +633,9 @@ declare class EvmBlocksService {
|
|
|
626
633
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
627
634
|
}
|
|
628
635
|
|
|
636
|
+
/**
|
|
637
|
+
* 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.
|
|
638
|
+
*/
|
|
629
639
|
declare enum ChainStatus {
|
|
630
640
|
OK = "OK",
|
|
631
641
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -663,9 +673,6 @@ declare enum VmName {
|
|
|
663
673
|
|
|
664
674
|
type GetChainResponse = {
|
|
665
675
|
chainId: string;
|
|
666
|
-
/**
|
|
667
|
-
* 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.
|
|
668
|
-
*/
|
|
669
676
|
status: ChainStatus;
|
|
670
677
|
chainName: string;
|
|
671
678
|
description: string;
|
|
@@ -681,13 +688,15 @@ type GetChainResponse = {
|
|
|
681
688
|
networkToken: NetworkToken;
|
|
682
689
|
chainLogoUri?: string;
|
|
683
690
|
private?: boolean;
|
|
691
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
684
692
|
};
|
|
685
693
|
|
|
694
|
+
declare enum GlacierApiFeature {
|
|
695
|
+
NFT_INDEXING = "nftIndexing"
|
|
696
|
+
}
|
|
697
|
+
|
|
686
698
|
type ChainInfo = {
|
|
687
699
|
chainId: string;
|
|
688
|
-
/**
|
|
689
|
-
* 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.
|
|
690
|
-
*/
|
|
691
700
|
status: ChainStatus;
|
|
692
701
|
chainName: string;
|
|
693
702
|
description: string;
|
|
@@ -703,6 +712,7 @@ type ChainInfo = {
|
|
|
703
712
|
networkToken: NetworkToken;
|
|
704
713
|
chainLogoUri?: string;
|
|
705
714
|
private?: boolean;
|
|
715
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
706
716
|
};
|
|
707
717
|
|
|
708
718
|
type ListChainsResponse = {
|
|
@@ -723,11 +733,15 @@ declare class EvmChainsService {
|
|
|
723
733
|
* @returns ListChainsResponse
|
|
724
734
|
* @throws ApiError
|
|
725
735
|
*/
|
|
726
|
-
supportedChains({ network, }: {
|
|
736
|
+
supportedChains({ network, feature, }: {
|
|
727
737
|
/**
|
|
728
738
|
* mainnet or testnet.
|
|
729
739
|
*/
|
|
730
740
|
network?: NetworkType;
|
|
741
|
+
/**
|
|
742
|
+
* Filter by feature.
|
|
743
|
+
*/
|
|
744
|
+
feature?: GlacierApiFeature;
|
|
731
745
|
}): CancelablePromise<ListChainsResponse>;
|
|
732
746
|
/**
|
|
733
747
|
* Get chain information
|
|
@@ -737,24 +751,12 @@ declare class EvmChainsService {
|
|
|
737
751
|
*/
|
|
738
752
|
getChainInfo({ chainId, }: {
|
|
739
753
|
/**
|
|
740
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
741
755
|
*/
|
|
742
756
|
chainId: string;
|
|
743
757
|
}): CancelablePromise<GetChainResponse>;
|
|
744
758
|
}
|
|
745
759
|
|
|
746
|
-
type ContractDeploymentDetails = {
|
|
747
|
-
txHash: string;
|
|
748
|
-
/**
|
|
749
|
-
* The address that initiated the transaction which deployed this contract.
|
|
750
|
-
*/
|
|
751
|
-
deployerAddress: string;
|
|
752
|
-
/**
|
|
753
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
754
|
-
*/
|
|
755
|
-
deployerContractAddress?: string;
|
|
756
|
-
};
|
|
757
|
-
|
|
758
760
|
type ImageAsset = {
|
|
759
761
|
assetId?: string;
|
|
760
762
|
/**
|
|
@@ -793,6 +795,120 @@ type ResourceLink = {
|
|
|
793
795
|
url: string;
|
|
794
796
|
};
|
|
795
797
|
|
|
798
|
+
type ContractSubmissionErc1155 = {
|
|
799
|
+
description?: string;
|
|
800
|
+
officialSite?: string;
|
|
801
|
+
email?: string;
|
|
802
|
+
logoAsset?: ImageAsset;
|
|
803
|
+
bannerAsset?: ImageAsset;
|
|
804
|
+
color?: string;
|
|
805
|
+
resourceLinks?: Array<ResourceLink>;
|
|
806
|
+
tags?: Array<string>;
|
|
807
|
+
/**
|
|
808
|
+
* The contract name.
|
|
809
|
+
*/
|
|
810
|
+
name: string;
|
|
811
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
812
|
+
/**
|
|
813
|
+
* The contract symbol.
|
|
814
|
+
*/
|
|
815
|
+
symbol: string;
|
|
816
|
+
pricingProviders?: PricingProviders;
|
|
817
|
+
};
|
|
818
|
+
declare namespace ContractSubmissionErc1155 {
|
|
819
|
+
enum ercType {
|
|
820
|
+
ERC_1155 = "ERC-1155"
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
type ContractSubmissionErc20 = {
|
|
825
|
+
description?: string;
|
|
826
|
+
officialSite?: string;
|
|
827
|
+
email?: string;
|
|
828
|
+
logoAsset?: ImageAsset;
|
|
829
|
+
bannerAsset?: ImageAsset;
|
|
830
|
+
color?: string;
|
|
831
|
+
resourceLinks?: Array<ResourceLink>;
|
|
832
|
+
tags?: Array<string>;
|
|
833
|
+
/**
|
|
834
|
+
* The contract name.
|
|
835
|
+
*/
|
|
836
|
+
name: string;
|
|
837
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
838
|
+
/**
|
|
839
|
+
* The contract symbol.
|
|
840
|
+
*/
|
|
841
|
+
symbol: string;
|
|
842
|
+
pricingProviders?: PricingProviders;
|
|
843
|
+
};
|
|
844
|
+
declare namespace ContractSubmissionErc20 {
|
|
845
|
+
enum ercType {
|
|
846
|
+
ERC_20 = "ERC-20"
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
type ContractSubmissionErc721 = {
|
|
851
|
+
description?: string;
|
|
852
|
+
officialSite?: string;
|
|
853
|
+
email?: string;
|
|
854
|
+
logoAsset?: ImageAsset;
|
|
855
|
+
bannerAsset?: ImageAsset;
|
|
856
|
+
color?: string;
|
|
857
|
+
resourceLinks?: Array<ResourceLink>;
|
|
858
|
+
tags?: Array<string>;
|
|
859
|
+
/**
|
|
860
|
+
* The contract name.
|
|
861
|
+
*/
|
|
862
|
+
name: string;
|
|
863
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
864
|
+
/**
|
|
865
|
+
* The contract symbol.
|
|
866
|
+
*/
|
|
867
|
+
symbol: string;
|
|
868
|
+
};
|
|
869
|
+
declare namespace ContractSubmissionErc721 {
|
|
870
|
+
enum ercType {
|
|
871
|
+
ERC_721 = "ERC-721"
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
type ContractSubmissionUnknown = {
|
|
876
|
+
description?: string;
|
|
877
|
+
officialSite?: string;
|
|
878
|
+
email?: string;
|
|
879
|
+
logoAsset?: ImageAsset;
|
|
880
|
+
bannerAsset?: ImageAsset;
|
|
881
|
+
color?: string;
|
|
882
|
+
resourceLinks?: Array<ResourceLink>;
|
|
883
|
+
tags?: Array<string>;
|
|
884
|
+
/**
|
|
885
|
+
* The contract name.
|
|
886
|
+
*/
|
|
887
|
+
name: string;
|
|
888
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
889
|
+
};
|
|
890
|
+
declare namespace ContractSubmissionUnknown {
|
|
891
|
+
enum ercType {
|
|
892
|
+
UNKNOWN = "UNKNOWN"
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
type ContractSubmissionBody = {
|
|
897
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
type ContractDeploymentDetails = {
|
|
901
|
+
txHash: string;
|
|
902
|
+
/**
|
|
903
|
+
* The address that initiated the transaction which deployed this contract.
|
|
904
|
+
*/
|
|
905
|
+
deployerAddress: string;
|
|
906
|
+
/**
|
|
907
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
908
|
+
*/
|
|
909
|
+
deployerContractAddress?: string;
|
|
910
|
+
};
|
|
911
|
+
|
|
796
912
|
type Erc1155Contract = {
|
|
797
913
|
/**
|
|
798
914
|
* The contract name.
|
|
@@ -915,6 +1031,10 @@ declare namespace UnknownContract {
|
|
|
915
1031
|
}
|
|
916
1032
|
}
|
|
917
1033
|
|
|
1034
|
+
type UpdateContractResponse = {
|
|
1035
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1036
|
+
};
|
|
1037
|
+
|
|
918
1038
|
declare class EvmContractsService {
|
|
919
1039
|
readonly httpRequest: BaseHttpRequest;
|
|
920
1040
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -926,7 +1046,7 @@ declare class EvmContractsService {
|
|
|
926
1046
|
*/
|
|
927
1047
|
getContractMetadata({ chainId, address, }: {
|
|
928
1048
|
/**
|
|
929
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
930
1050
|
*/
|
|
931
1051
|
chainId: string;
|
|
932
1052
|
/**
|
|
@@ -934,6 +1054,23 @@ declare class EvmContractsService {
|
|
|
934
1054
|
*/
|
|
935
1055
|
address: string;
|
|
936
1056
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Update contract information
|
|
1059
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1060
|
+
* @returns UpdateContractResponse
|
|
1061
|
+
* @throws ApiError
|
|
1062
|
+
*/
|
|
1063
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1064
|
+
/**
|
|
1065
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1066
|
+
*/
|
|
1067
|
+
chainId: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* Contract address on the relevant chain.
|
|
1070
|
+
*/
|
|
1071
|
+
address: string;
|
|
1072
|
+
requestBody: ContractSubmissionBody;
|
|
1073
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
937
1074
|
}
|
|
938
1075
|
|
|
939
1076
|
type Erc1155Token = {
|
|
@@ -1059,6 +1196,9 @@ type Erc721TransferDetails = {
|
|
|
1059
1196
|
erc721Token: Erc721Token;
|
|
1060
1197
|
};
|
|
1061
1198
|
|
|
1199
|
+
/**
|
|
1200
|
+
* 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.
|
|
1201
|
+
*/
|
|
1062
1202
|
declare enum TransactionMethodType {
|
|
1063
1203
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1064
1204
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1066,9 +1206,6 @@ declare enum TransactionMethodType {
|
|
|
1066
1206
|
}
|
|
1067
1207
|
|
|
1068
1208
|
type Method = {
|
|
1069
|
-
/**
|
|
1070
|
-
* 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.
|
|
1071
|
-
*/
|
|
1072
1209
|
callType: TransactionMethodType;
|
|
1073
1210
|
/**
|
|
1074
1211
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1429,7 +1566,7 @@ type ListTransfersResponse = {
|
|
|
1429
1566
|
* 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.
|
|
1430
1567
|
*/
|
|
1431
1568
|
nextPageToken?: string;
|
|
1432
|
-
transfers:
|
|
1569
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1433
1570
|
};
|
|
1434
1571
|
|
|
1435
1572
|
declare enum SortOrder {
|
|
@@ -1453,7 +1590,7 @@ declare class EvmTransactionsService {
|
|
|
1453
1590
|
*/
|
|
1454
1591
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1455
1592
|
/**
|
|
1456
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1457
1594
|
*/
|
|
1458
1595
|
chainId: string;
|
|
1459
1596
|
/**
|
|
@@ -1471,23 +1608,23 @@ declare class EvmTransactionsService {
|
|
|
1471
1608
|
* @returns ListContractsResponse
|
|
1472
1609
|
* @throws ApiError
|
|
1473
1610
|
*/
|
|
1474
|
-
listContractDeployments({ chainId, address,
|
|
1611
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1475
1612
|
/**
|
|
1476
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1477
1614
|
*/
|
|
1478
1615
|
chainId: string;
|
|
1479
1616
|
/**
|
|
1480
1617
|
* A wallet address.
|
|
1481
1618
|
*/
|
|
1482
1619
|
address: string;
|
|
1483
|
-
/**
|
|
1484
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1485
|
-
*/
|
|
1486
|
-
pageSize?: number;
|
|
1487
1620
|
/**
|
|
1488
1621
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1489
1622
|
*/
|
|
1490
1623
|
pageToken?: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1626
|
+
*/
|
|
1627
|
+
pageSize?: number;
|
|
1491
1628
|
}): CancelablePromise<ListContractsResponse>;
|
|
1492
1629
|
/**
|
|
1493
1630
|
* List ERC transfers
|
|
@@ -1495,25 +1632,31 @@ declare class EvmTransactionsService {
|
|
|
1495
1632
|
* @returns ListTransfersResponse
|
|
1496
1633
|
* @throws ApiError
|
|
1497
1634
|
*/
|
|
1498
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1635
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1499
1636
|
/**
|
|
1500
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1501
1638
|
*/
|
|
1502
1639
|
chainId: string;
|
|
1503
1640
|
/**
|
|
1504
1641
|
* A wallet address.
|
|
1505
1642
|
*/
|
|
1506
1643
|
address: string;
|
|
1644
|
+
/**
|
|
1645
|
+
* 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.
|
|
1646
|
+
*/
|
|
1507
1647
|
startBlock?: number;
|
|
1508
|
-
endBlock?: number;
|
|
1509
1648
|
/**
|
|
1510
|
-
* The
|
|
1649
|
+
* 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.
|
|
1511
1650
|
*/
|
|
1512
|
-
|
|
1651
|
+
endBlock?: number;
|
|
1513
1652
|
/**
|
|
1514
1653
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1515
1654
|
*/
|
|
1516
1655
|
pageToken?: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1658
|
+
*/
|
|
1659
|
+
pageSize?: number;
|
|
1517
1660
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1518
1661
|
/**
|
|
1519
1662
|
* List transactions
|
|
@@ -1523,24 +1666,30 @@ declare class EvmTransactionsService {
|
|
|
1523
1666
|
* @returns ListTransactionDetailsResponse
|
|
1524
1667
|
* @throws ApiError
|
|
1525
1668
|
*/
|
|
1526
|
-
listTransactions({ chainId, address,
|
|
1669
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1527
1670
|
/**
|
|
1528
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1529
1672
|
*/
|
|
1530
1673
|
chainId: string;
|
|
1531
1674
|
/**
|
|
1532
1675
|
* A wallet address.
|
|
1533
1676
|
*/
|
|
1534
1677
|
address: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1680
|
+
*/
|
|
1681
|
+
pageToken?: string;
|
|
1535
1682
|
/**
|
|
1536
1683
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1537
1684
|
*/
|
|
1538
1685
|
pageSize?: number;
|
|
1539
1686
|
/**
|
|
1540
|
-
*
|
|
1687
|
+
* 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.
|
|
1541
1688
|
*/
|
|
1542
|
-
pageToken?: string;
|
|
1543
1689
|
startBlock?: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* 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.
|
|
1692
|
+
*/
|
|
1544
1693
|
endBlock?: number;
|
|
1545
1694
|
/**
|
|
1546
1695
|
* 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.
|
|
@@ -1553,25 +1702,31 @@ declare class EvmTransactionsService {
|
|
|
1553
1702
|
* @returns ListNativeTransactionsResponse
|
|
1554
1703
|
* @throws ApiError
|
|
1555
1704
|
*/
|
|
1556
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1705
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1557
1706
|
/**
|
|
1558
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1559
1708
|
*/
|
|
1560
1709
|
chainId: string;
|
|
1561
1710
|
/**
|
|
1562
1711
|
* A wallet address.
|
|
1563
1712
|
*/
|
|
1564
1713
|
address: string;
|
|
1714
|
+
/**
|
|
1715
|
+
* 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.
|
|
1716
|
+
*/
|
|
1565
1717
|
startBlock?: number;
|
|
1566
|
-
endBlock?: number;
|
|
1567
1718
|
/**
|
|
1568
|
-
* The
|
|
1719
|
+
* 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.
|
|
1569
1720
|
*/
|
|
1570
|
-
|
|
1721
|
+
endBlock?: number;
|
|
1571
1722
|
/**
|
|
1572
1723
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1573
1724
|
*/
|
|
1574
1725
|
pageToken?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1728
|
+
*/
|
|
1729
|
+
pageSize?: number;
|
|
1575
1730
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1576
1731
|
/**
|
|
1577
1732
|
* List ERC-20 transfers
|
|
@@ -1579,25 +1734,31 @@ declare class EvmTransactionsService {
|
|
|
1579
1734
|
* @returns ListErc20TransactionsResponse
|
|
1580
1735
|
* @throws ApiError
|
|
1581
1736
|
*/
|
|
1582
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1737
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1583
1738
|
/**
|
|
1584
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1585
1740
|
*/
|
|
1586
1741
|
chainId: string;
|
|
1587
1742
|
/**
|
|
1588
1743
|
* A wallet address.
|
|
1589
1744
|
*/
|
|
1590
1745
|
address: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* 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.
|
|
1748
|
+
*/
|
|
1591
1749
|
startBlock?: number;
|
|
1592
|
-
endBlock?: number;
|
|
1593
1750
|
/**
|
|
1594
|
-
* The
|
|
1751
|
+
* 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.
|
|
1595
1752
|
*/
|
|
1596
|
-
|
|
1753
|
+
endBlock?: number;
|
|
1597
1754
|
/**
|
|
1598
1755
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1599
1756
|
*/
|
|
1600
1757
|
pageToken?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1760
|
+
*/
|
|
1761
|
+
pageSize?: number;
|
|
1601
1762
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1602
1763
|
/**
|
|
1603
1764
|
* List ERC-721 transfers
|
|
@@ -1605,25 +1766,31 @@ declare class EvmTransactionsService {
|
|
|
1605
1766
|
* @returns ListErc721TransactionsResponse
|
|
1606
1767
|
* @throws ApiError
|
|
1607
1768
|
*/
|
|
1608
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1769
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1609
1770
|
/**
|
|
1610
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1611
1772
|
*/
|
|
1612
1773
|
chainId: string;
|
|
1613
1774
|
/**
|
|
1614
1775
|
* A wallet address.
|
|
1615
1776
|
*/
|
|
1616
1777
|
address: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* 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.
|
|
1780
|
+
*/
|
|
1617
1781
|
startBlock?: number;
|
|
1618
|
-
endBlock?: number;
|
|
1619
1782
|
/**
|
|
1620
|
-
* The
|
|
1783
|
+
* 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.
|
|
1621
1784
|
*/
|
|
1622
|
-
|
|
1785
|
+
endBlock?: number;
|
|
1623
1786
|
/**
|
|
1624
1787
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1625
1788
|
*/
|
|
1626
1789
|
pageToken?: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1792
|
+
*/
|
|
1793
|
+
pageSize?: number;
|
|
1627
1794
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1628
1795
|
/**
|
|
1629
1796
|
* List ERC-1155 transfers
|
|
@@ -1631,25 +1798,31 @@ declare class EvmTransactionsService {
|
|
|
1631
1798
|
* @returns ListErc1155TransactionsResponse
|
|
1632
1799
|
* @throws ApiError
|
|
1633
1800
|
*/
|
|
1634
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1801
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1635
1802
|
/**
|
|
1636
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
1804
|
*/
|
|
1638
1805
|
chainId: string;
|
|
1639
1806
|
/**
|
|
1640
1807
|
* A wallet address.
|
|
1641
1808
|
*/
|
|
1642
1809
|
address: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* 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.
|
|
1812
|
+
*/
|
|
1643
1813
|
startBlock?: number;
|
|
1644
|
-
endBlock?: number;
|
|
1645
1814
|
/**
|
|
1646
|
-
* The
|
|
1815
|
+
* 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.
|
|
1647
1816
|
*/
|
|
1648
|
-
|
|
1817
|
+
endBlock?: number;
|
|
1649
1818
|
/**
|
|
1650
1819
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1651
1820
|
*/
|
|
1652
1821
|
pageToken?: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1824
|
+
*/
|
|
1825
|
+
pageSize?: number;
|
|
1653
1826
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1654
1827
|
/**
|
|
1655
1828
|
* List internal transactions
|
|
@@ -1659,25 +1832,31 @@ declare class EvmTransactionsService {
|
|
|
1659
1832
|
* @returns ListInternalTransactionsResponse
|
|
1660
1833
|
* @throws ApiError
|
|
1661
1834
|
*/
|
|
1662
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1835
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1663
1836
|
/**
|
|
1664
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1665
1838
|
*/
|
|
1666
1839
|
chainId: string;
|
|
1667
1840
|
/**
|
|
1668
1841
|
* A wallet address.
|
|
1669
1842
|
*/
|
|
1670
1843
|
address: string;
|
|
1671
|
-
startBlock?: number;
|
|
1672
|
-
endBlock?: number;
|
|
1673
1844
|
/**
|
|
1674
|
-
* The
|
|
1845
|
+
* 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.
|
|
1675
1846
|
*/
|
|
1676
|
-
|
|
1847
|
+
startBlock?: number;
|
|
1848
|
+
/**
|
|
1849
|
+
* 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.
|
|
1850
|
+
*/
|
|
1851
|
+
endBlock?: number;
|
|
1677
1852
|
/**
|
|
1678
1853
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1679
1854
|
*/
|
|
1680
1855
|
pageToken?: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1858
|
+
*/
|
|
1859
|
+
pageSize?: number;
|
|
1681
1860
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1682
1861
|
/**
|
|
1683
1862
|
* Get transaction
|
|
@@ -1687,7 +1866,7 @@ declare class EvmTransactionsService {
|
|
|
1687
1866
|
*/
|
|
1688
1867
|
getTransaction({ chainId, txHash, }: {
|
|
1689
1868
|
/**
|
|
1690
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1691
1870
|
*/
|
|
1692
1871
|
chainId: string;
|
|
1693
1872
|
/**
|
|
@@ -1703,7 +1882,7 @@ declare class EvmTransactionsService {
|
|
|
1703
1882
|
*/
|
|
1704
1883
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1705
1884
|
/**
|
|
1706
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1885
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
1886
|
*/
|
|
1708
1887
|
chainId: string;
|
|
1709
1888
|
/**
|
|
@@ -1717,19 +1896,19 @@ declare class EvmTransactionsService {
|
|
|
1717
1896
|
* @returns ListNativeTransactionsResponse
|
|
1718
1897
|
* @throws ApiError
|
|
1719
1898
|
*/
|
|
1720
|
-
listLatestTransactions({ chainId,
|
|
1899
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1721
1900
|
/**
|
|
1722
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1723
1902
|
*/
|
|
1724
1903
|
chainId: 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;
|
|
1729
1904
|
/**
|
|
1730
1905
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1731
1906
|
*/
|
|
1732
1907
|
pageToken?: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1910
|
+
*/
|
|
1911
|
+
pageSize?: number;
|
|
1733
1912
|
/**
|
|
1734
1913
|
* A status filter for listed transactions.
|
|
1735
1914
|
*/
|
|
@@ -1753,6 +1932,14 @@ declare class HealthCheckService {
|
|
|
1753
1932
|
}>;
|
|
1754
1933
|
}
|
|
1755
1934
|
|
|
1935
|
+
type ListNftTokens = {
|
|
1936
|
+
/**
|
|
1937
|
+
* 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.
|
|
1938
|
+
*/
|
|
1939
|
+
nextPageToken?: string;
|
|
1940
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1756
1943
|
declare class NfTsService {
|
|
1757
1944
|
readonly httpRequest: BaseHttpRequest;
|
|
1758
1945
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1764,7 +1951,7 @@ declare class NfTsService {
|
|
|
1764
1951
|
*/
|
|
1765
1952
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1766
1953
|
/**
|
|
1767
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1954
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1768
1955
|
*/
|
|
1769
1956
|
chainId: string;
|
|
1770
1957
|
/**
|
|
@@ -1776,6 +1963,30 @@ declare class NfTsService {
|
|
|
1776
1963
|
*/
|
|
1777
1964
|
tokenId: string;
|
|
1778
1965
|
}): CancelablePromise<any>;
|
|
1966
|
+
/**
|
|
1967
|
+
* List tokens
|
|
1968
|
+
* Lists tokens for an NFT contract.
|
|
1969
|
+
* @returns ListNftTokens
|
|
1970
|
+
* @throws ApiError
|
|
1971
|
+
*/
|
|
1972
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1973
|
+
/**
|
|
1974
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1975
|
+
*/
|
|
1976
|
+
chainId: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* Contract address on the relevant chain.
|
|
1979
|
+
*/
|
|
1980
|
+
address: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1983
|
+
*/
|
|
1984
|
+
pageToken?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1987
|
+
*/
|
|
1988
|
+
pageSize?: number;
|
|
1989
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1779
1990
|
/**
|
|
1780
1991
|
* Get token details
|
|
1781
1992
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1784,7 +1995,7 @@ declare class NfTsService {
|
|
|
1784
1995
|
*/
|
|
1785
1996
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1786
1997
|
/**
|
|
1787
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1998
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1788
1999
|
*/
|
|
1789
2000
|
chainId: string;
|
|
1790
2001
|
/**
|
|
@@ -1803,8 +2014,12 @@ type EvmNetworkOptions = {
|
|
|
1803
2014
|
includeChains: Array<string>;
|
|
1804
2015
|
};
|
|
1805
2016
|
|
|
2017
|
+
declare enum EVMOperationType {
|
|
2018
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1806
2021
|
type CreateEvmTransactionExportRequest = {
|
|
1807
|
-
type:
|
|
2022
|
+
type: EVMOperationType;
|
|
1808
2023
|
firstDate: string;
|
|
1809
2024
|
lastDate: string;
|
|
1810
2025
|
/**
|
|
@@ -1817,20 +2032,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1817
2032
|
endDate: string;
|
|
1818
2033
|
options: EvmNetworkOptions;
|
|
1819
2034
|
};
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
2035
|
+
|
|
2036
|
+
declare enum PrimaryNetworkOperationType {
|
|
2037
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2038
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2039
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1824
2040
|
}
|
|
1825
2041
|
|
|
1826
2042
|
type PrimaryNetworkOptions = {
|
|
1827
|
-
addresses
|
|
2043
|
+
addresses?: Array<string>;
|
|
1828
2044
|
cChainEvmAddresses?: Array<string>;
|
|
1829
2045
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1830
2046
|
};
|
|
1831
2047
|
|
|
1832
2048
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1833
|
-
type:
|
|
2049
|
+
type: PrimaryNetworkOperationType;
|
|
1834
2050
|
firstDate: string;
|
|
1835
2051
|
lastDate: string;
|
|
1836
2052
|
/**
|
|
@@ -1843,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1843
2059
|
endDate: string;
|
|
1844
2060
|
options: PrimaryNetworkOptions;
|
|
1845
2061
|
};
|
|
1846
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1847
|
-
enum type {
|
|
1848
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
2062
|
|
|
1852
2063
|
declare enum OperationStatus {
|
|
1853
2064
|
RUNNING = "RUNNING",
|
|
@@ -1857,8 +2068,10 @@ declare enum OperationStatus {
|
|
|
1857
2068
|
}
|
|
1858
2069
|
|
|
1859
2070
|
declare enum OperationType {
|
|
1860
|
-
|
|
1861
|
-
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2072
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2073
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2074
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1862
2075
|
}
|
|
1863
2076
|
|
|
1864
2077
|
declare enum OperationStatusCode {
|
|
@@ -1892,17 +2105,6 @@ type OperationStatusResponse = {
|
|
|
1892
2105
|
declare class OperationsService {
|
|
1893
2106
|
readonly httpRequest: BaseHttpRequest;
|
|
1894
2107
|
constructor(httpRequest: BaseHttpRequest);
|
|
1895
|
-
/**
|
|
1896
|
-
* Create transaction export operation
|
|
1897
|
-
* Trigger a transaction export operation with given parameters.
|
|
1898
|
-
*
|
|
1899
|
-
* 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.
|
|
1900
|
-
* @returns OperationStatusResponse
|
|
1901
|
-
* @throws ApiError
|
|
1902
|
-
*/
|
|
1903
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1904
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1905
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1906
2108
|
/**
|
|
1907
2109
|
* Get operation
|
|
1908
2110
|
* Gets operation details for the given operation id.
|
|
@@ -1915,6 +2117,17 @@ declare class OperationsService {
|
|
|
1915
2117
|
*/
|
|
1916
2118
|
operationId: string;
|
|
1917
2119
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2120
|
+
/**
|
|
2121
|
+
* Create transaction export operation
|
|
2122
|
+
* Trigger a transaction export operation with given parameters.
|
|
2123
|
+
*
|
|
2124
|
+
* 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.
|
|
2125
|
+
* @returns OperationStatusResponse
|
|
2126
|
+
* @throws ApiError
|
|
2127
|
+
*/
|
|
2128
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2129
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2130
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1918
2131
|
}
|
|
1919
2132
|
|
|
1920
2133
|
declare enum BlockchainIds {
|
|
@@ -2050,13 +2263,44 @@ type BlockchainInfo = {
|
|
|
2050
2263
|
blockchainId: string;
|
|
2051
2264
|
};
|
|
2052
2265
|
|
|
2266
|
+
type SubnetOwnershipInfo = {
|
|
2267
|
+
/**
|
|
2268
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2269
|
+
*/
|
|
2270
|
+
locktime: number;
|
|
2271
|
+
/**
|
|
2272
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2273
|
+
*/
|
|
2274
|
+
threshold: number;
|
|
2275
|
+
/**
|
|
2276
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2277
|
+
*/
|
|
2278
|
+
addresses: Array<string>;
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2053
2281
|
type Subnet = {
|
|
2054
2282
|
createBlockTimestamp: number;
|
|
2055
2283
|
createBlockIndex: string;
|
|
2056
2284
|
subnetId: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
2057
2289
|
ownerAddresses: Array<string>;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
2058
2294
|
threshold: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2297
|
+
* @deprecated
|
|
2298
|
+
*/
|
|
2059
2299
|
locktime: number;
|
|
2300
|
+
/**
|
|
2301
|
+
* Latest subnet owner details for this Subnet.
|
|
2302
|
+
*/
|
|
2303
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2060
2304
|
blockchains: Array<BlockchainInfo>;
|
|
2061
2305
|
};
|
|
2062
2306
|
|
|
@@ -2095,6 +2339,7 @@ type ValidatorHealthDetails = {
|
|
|
2095
2339
|
};
|
|
2096
2340
|
|
|
2097
2341
|
type ActiveValidatorDetails = {
|
|
2342
|
+
txHash: string;
|
|
2098
2343
|
nodeId: string;
|
|
2099
2344
|
subnetId: string;
|
|
2100
2345
|
amountStaked: string;
|
|
@@ -2118,6 +2363,7 @@ declare namespace ActiveValidatorDetails {
|
|
|
2118
2363
|
}
|
|
2119
2364
|
|
|
2120
2365
|
type CompletedValidatorDetails = {
|
|
2366
|
+
txHash: string;
|
|
2121
2367
|
nodeId: string;
|
|
2122
2368
|
subnetId: string;
|
|
2123
2369
|
amountStaked: string;
|
|
@@ -2135,6 +2381,7 @@ declare namespace CompletedValidatorDetails {
|
|
|
2135
2381
|
}
|
|
2136
2382
|
|
|
2137
2383
|
type PendingValidatorDetails = {
|
|
2384
|
+
txHash: string;
|
|
2138
2385
|
nodeId: string;
|
|
2139
2386
|
subnetId: string;
|
|
2140
2387
|
amountStaked: string;
|
|
@@ -2149,6 +2396,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2149
2396
|
}
|
|
2150
2397
|
}
|
|
2151
2398
|
|
|
2399
|
+
type RemovedValidatorDetails = {
|
|
2400
|
+
txHash: string;
|
|
2401
|
+
nodeId: string;
|
|
2402
|
+
subnetId: string;
|
|
2403
|
+
amountStaked: string;
|
|
2404
|
+
delegationFee?: string;
|
|
2405
|
+
startTimestamp: number;
|
|
2406
|
+
endTimestamp: number;
|
|
2407
|
+
removeTxHash: string;
|
|
2408
|
+
removeTimestamp: number;
|
|
2409
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2410
|
+
};
|
|
2411
|
+
declare namespace RemovedValidatorDetails {
|
|
2412
|
+
enum validationStatus {
|
|
2413
|
+
REMOVED = "removed"
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2152
2417
|
type ListValidatorDetailsResponse = {
|
|
2153
2418
|
/**
|
|
2154
2419
|
* 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.
|
|
@@ -2157,7 +2422,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2157
2422
|
/**
|
|
2158
2423
|
* The list of validator Details.
|
|
2159
2424
|
*/
|
|
2160
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2425
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2161
2426
|
};
|
|
2162
2427
|
|
|
2163
2428
|
declare enum Network {
|
|
@@ -2168,7 +2433,24 @@ declare enum Network {
|
|
|
2168
2433
|
declare enum ValidationStatusType {
|
|
2169
2434
|
COMPLETED = "completed",
|
|
2170
2435
|
ACTIVE = "active",
|
|
2171
|
-
PENDING = "pending"
|
|
2436
|
+
PENDING = "pending",
|
|
2437
|
+
REMOVED = "removed"
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2442
|
+
*/
|
|
2443
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2444
|
+
FIXED = "fixed",
|
|
2445
|
+
VARIABLE = "variable"
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2450
|
+
*/
|
|
2451
|
+
declare enum PrimaryNetworkAssetType {
|
|
2452
|
+
SECP256K1 = "secp256k1",
|
|
2453
|
+
NFT = "nft"
|
|
2172
2454
|
}
|
|
2173
2455
|
|
|
2174
2456
|
type XChainAssetDetails = {
|
|
@@ -2188,18 +2470,12 @@ type XChainAssetDetails = {
|
|
|
2188
2470
|
* Denomination of this asset to represent fungibility.
|
|
2189
2471
|
*/
|
|
2190
2472
|
denomination: number;
|
|
2191
|
-
|
|
2192
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2193
|
-
*/
|
|
2194
|
-
type: string;
|
|
2473
|
+
type: PrimaryNetworkAssetType;
|
|
2195
2474
|
/**
|
|
2196
2475
|
* Timestamp in seconds this asset was created on.
|
|
2197
2476
|
*/
|
|
2198
2477
|
createdAtTimestamp: number;
|
|
2199
|
-
|
|
2200
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2201
|
-
*/
|
|
2202
|
-
cap: string;
|
|
2478
|
+
cap: PrimaryNetworkAssetCap;
|
|
2203
2479
|
};
|
|
2204
2480
|
|
|
2205
2481
|
declare enum XChainId {
|
|
@@ -2265,19 +2541,19 @@ declare class PrimaryNetworkService {
|
|
|
2265
2541
|
* @returns ListBlockchainsResponse
|
|
2266
2542
|
* @throws ApiError
|
|
2267
2543
|
*/
|
|
2268
|
-
listBlockchains({ network,
|
|
2544
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2269
2545
|
/**
|
|
2270
2546
|
* Either mainnet or a testnet.
|
|
2271
2547
|
*/
|
|
2272
2548
|
network: Network;
|
|
2273
|
-
/**
|
|
2274
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2275
|
-
*/
|
|
2276
|
-
pageSize?: number;
|
|
2277
2549
|
/**
|
|
2278
2550
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2279
2551
|
*/
|
|
2280
2552
|
pageToken?: string;
|
|
2553
|
+
/**
|
|
2554
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2555
|
+
*/
|
|
2556
|
+
pageSize?: number;
|
|
2281
2557
|
/**
|
|
2282
2558
|
* 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.
|
|
2283
2559
|
*/
|
|
@@ -2289,19 +2565,19 @@ declare class PrimaryNetworkService {
|
|
|
2289
2565
|
* @returns ListSubnetsResponse
|
|
2290
2566
|
* @throws ApiError
|
|
2291
2567
|
*/
|
|
2292
|
-
listSubnets({ network,
|
|
2568
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2293
2569
|
/**
|
|
2294
2570
|
* Either mainnet or a testnet.
|
|
2295
2571
|
*/
|
|
2296
2572
|
network: Network;
|
|
2297
|
-
/**
|
|
2298
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2299
|
-
*/
|
|
2300
|
-
pageSize?: number;
|
|
2301
2573
|
/**
|
|
2302
2574
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2303
2575
|
*/
|
|
2304
2576
|
pageToken?: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2579
|
+
*/
|
|
2580
|
+
pageSize?: number;
|
|
2305
2581
|
/**
|
|
2306
2582
|
* 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.
|
|
2307
2583
|
*/
|
|
@@ -2313,55 +2589,59 @@ declare class PrimaryNetworkService {
|
|
|
2313
2589
|
* @returns ListValidatorDetailsResponse
|
|
2314
2590
|
* @throws ApiError
|
|
2315
2591
|
*/
|
|
2316
|
-
listValidators({ network, pageSize,
|
|
2592
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2317
2593
|
/**
|
|
2318
2594
|
* Either mainnet or a testnet.
|
|
2319
2595
|
*/
|
|
2320
2596
|
network: Network;
|
|
2597
|
+
/**
|
|
2598
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2599
|
+
*/
|
|
2600
|
+
pageToken?: string;
|
|
2321
2601
|
/**
|
|
2322
2602
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2323
2603
|
*/
|
|
2324
2604
|
pageSize?: number;
|
|
2325
2605
|
/**
|
|
2326
|
-
* A
|
|
2606
|
+
* A comma separated list of node ids to filter by.
|
|
2327
2607
|
*/
|
|
2328
|
-
|
|
2608
|
+
nodeIds?: string;
|
|
2329
2609
|
/**
|
|
2330
|
-
* The
|
|
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.
|
|
2331
2611
|
*/
|
|
2332
|
-
|
|
2612
|
+
sortOrder?: SortOrder;
|
|
2333
2613
|
/**
|
|
2334
|
-
*
|
|
2614
|
+
* Validation status of the node.
|
|
2335
2615
|
*/
|
|
2336
|
-
|
|
2616
|
+
validationStatus?: ValidationStatusType;
|
|
2337
2617
|
/**
|
|
2338
2618
|
* 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
|
|
2339
2619
|
*/
|
|
2340
|
-
minDelegationCapacity?:
|
|
2620
|
+
minDelegationCapacity?: string;
|
|
2341
2621
|
/**
|
|
2342
2622
|
* 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.
|
|
2343
2623
|
*/
|
|
2344
|
-
maxDelegationCapacity?:
|
|
2624
|
+
maxDelegationCapacity?: string;
|
|
2345
2625
|
/**
|
|
2346
|
-
* The minimum
|
|
2626
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2347
2627
|
*/
|
|
2348
|
-
|
|
2628
|
+
minTimeRemaining?: number;
|
|
2349
2629
|
/**
|
|
2350
|
-
* The maximum
|
|
2630
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2351
2631
|
*/
|
|
2352
|
-
|
|
2632
|
+
maxTimeRemaining?: number;
|
|
2353
2633
|
/**
|
|
2354
|
-
*
|
|
2634
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2355
2635
|
*/
|
|
2356
|
-
|
|
2636
|
+
minFeePercentage?: number;
|
|
2357
2637
|
/**
|
|
2358
|
-
* The
|
|
2638
|
+
* 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.
|
|
2359
2639
|
*/
|
|
2360
|
-
|
|
2640
|
+
maxFeePercentage?: number;
|
|
2361
2641
|
/**
|
|
2362
|
-
*
|
|
2642
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2363
2643
|
*/
|
|
2364
|
-
|
|
2644
|
+
subnetId?: any;
|
|
2365
2645
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2366
2646
|
/**
|
|
2367
2647
|
* Get single validator details
|
|
@@ -2369,7 +2649,7 @@ declare class PrimaryNetworkService {
|
|
|
2369
2649
|
* @returns ListValidatorDetailsResponse
|
|
2370
2650
|
* @throws ApiError
|
|
2371
2651
|
*/
|
|
2372
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2652
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2373
2653
|
/**
|
|
2374
2654
|
* Either mainnet or a testnet.
|
|
2375
2655
|
*/
|
|
@@ -2378,14 +2658,14 @@ declare class PrimaryNetworkService {
|
|
|
2378
2658
|
* A primary network (P or X chain) nodeId.
|
|
2379
2659
|
*/
|
|
2380
2660
|
nodeId: string;
|
|
2381
|
-
/**
|
|
2382
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2383
|
-
*/
|
|
2384
|
-
pageSize?: number;
|
|
2385
2661
|
/**
|
|
2386
2662
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2387
2663
|
*/
|
|
2388
2664
|
pageToken?: string;
|
|
2665
|
+
/**
|
|
2666
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2667
|
+
*/
|
|
2668
|
+
pageSize?: number;
|
|
2389
2669
|
/**
|
|
2390
2670
|
* 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.
|
|
2391
2671
|
*/
|
|
@@ -2401,19 +2681,19 @@ declare class PrimaryNetworkService {
|
|
|
2401
2681
|
* @returns ListDelegatorDetailsResponse
|
|
2402
2682
|
* @throws ApiError
|
|
2403
2683
|
*/
|
|
2404
|
-
listDelegators({ network,
|
|
2684
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2405
2685
|
/**
|
|
2406
2686
|
* Either mainnet or a testnet.
|
|
2407
2687
|
*/
|
|
2408
2688
|
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
2689
|
/**
|
|
2414
2690
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2691
|
*/
|
|
2416
2692
|
pageToken?: string;
|
|
2693
|
+
/**
|
|
2694
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2695
|
+
*/
|
|
2696
|
+
pageSize?: number;
|
|
2417
2697
|
/**
|
|
2418
2698
|
* A comma separated list of reward addresses to filter by.
|
|
2419
2699
|
*/
|
|
@@ -2461,10 +2741,7 @@ type CChainSharedAssetBalance = {
|
|
|
2461
2741
|
* Denomination of this asset to represent fungibility.
|
|
2462
2742
|
*/
|
|
2463
2743
|
denomination: number;
|
|
2464
|
-
|
|
2465
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2466
|
-
*/
|
|
2467
|
-
type: string;
|
|
2744
|
+
type: PrimaryNetworkAssetType;
|
|
2468
2745
|
/**
|
|
2469
2746
|
* Amount of the asset.
|
|
2470
2747
|
*/
|
|
@@ -2499,49 +2776,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2499
2776
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2500
2777
|
};
|
|
2501
2778
|
|
|
2502
|
-
type
|
|
2779
|
+
type AggregatedAssetAmount = {
|
|
2780
|
+
/**
|
|
2781
|
+
* Unique ID for an asset.
|
|
2782
|
+
*/
|
|
2503
2783
|
assetId: string;
|
|
2784
|
+
/**
|
|
2785
|
+
* Name of this asset.
|
|
2786
|
+
*/
|
|
2787
|
+
name: string;
|
|
2788
|
+
/**
|
|
2789
|
+
* Symbol for this asset (max 4 characters).
|
|
2790
|
+
*/
|
|
2791
|
+
symbol: string;
|
|
2792
|
+
/**
|
|
2793
|
+
* Denomination of this asset to represent fungibility.
|
|
2794
|
+
*/
|
|
2795
|
+
denomination: number;
|
|
2796
|
+
type: PrimaryNetworkAssetType;
|
|
2797
|
+
/**
|
|
2798
|
+
* Amount of the asset.
|
|
2799
|
+
*/
|
|
2504
2800
|
amount: string;
|
|
2801
|
+
utxoCount: number;
|
|
2505
2802
|
};
|
|
2506
2803
|
|
|
2507
2804
|
type PChainSharedAsset = {
|
|
2805
|
+
/**
|
|
2806
|
+
* Unique ID for an asset.
|
|
2807
|
+
*/
|
|
2508
2808
|
assetId: string;
|
|
2809
|
+
/**
|
|
2810
|
+
* Name of this asset.
|
|
2811
|
+
*/
|
|
2812
|
+
name: string;
|
|
2813
|
+
/**
|
|
2814
|
+
* Symbol for this asset (max 4 characters).
|
|
2815
|
+
*/
|
|
2816
|
+
symbol: string;
|
|
2817
|
+
/**
|
|
2818
|
+
* Denomination of this asset to represent fungibility.
|
|
2819
|
+
*/
|
|
2820
|
+
denomination: number;
|
|
2821
|
+
type: PrimaryNetworkAssetType;
|
|
2822
|
+
/**
|
|
2823
|
+
* Amount of the asset.
|
|
2824
|
+
*/
|
|
2509
2825
|
amount: string;
|
|
2826
|
+
utxoCount: number;
|
|
2510
2827
|
sharedWithChainId: string;
|
|
2511
2828
|
status: string;
|
|
2512
2829
|
};
|
|
2513
2830
|
|
|
2514
2831
|
type PChainBalance = {
|
|
2515
2832
|
/**
|
|
2516
|
-
* A list of objects containing P-chain Asset
|
|
2833
|
+
* 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.
|
|
2517
2834
|
*/
|
|
2518
|
-
unlockedUnstaked: Array<
|
|
2835
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2519
2836
|
/**
|
|
2520
|
-
* A list of objects containing P-chain Asset
|
|
2837
|
+
* 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.
|
|
2521
2838
|
*/
|
|
2522
|
-
unlockedStaked: Array<
|
|
2839
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2523
2840
|
/**
|
|
2524
|
-
* A list of objects containing P-chain Asset
|
|
2841
|
+
* 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.
|
|
2525
2842
|
*/
|
|
2526
|
-
lockedPlatform: Array<
|
|
2843
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2527
2844
|
/**
|
|
2528
|
-
* A list of objects containing P-chain Asset
|
|
2845
|
+
* 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.
|
|
2529
2846
|
*/
|
|
2530
|
-
lockedStakeable: Array<
|
|
2847
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2531
2848
|
/**
|
|
2532
|
-
* A list of objects containing P-chain Asset
|
|
2849
|
+
* 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.
|
|
2533
2850
|
*/
|
|
2534
|
-
lockedStaked: Array<
|
|
2851
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2535
2852
|
/**
|
|
2536
|
-
* A list of objects containing P-chain Asset
|
|
2853
|
+
* 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.
|
|
2537
2854
|
*/
|
|
2538
|
-
pendingStaked: Array<
|
|
2855
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2539
2856
|
/**
|
|
2540
|
-
* A list of objects containing P-chain Asset
|
|
2857
|
+
* 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.
|
|
2541
2858
|
*/
|
|
2542
2859
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2543
2860
|
/**
|
|
2544
|
-
* A list of objects containing P-chain Asset
|
|
2861
|
+
* 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.
|
|
2545
2862
|
*/
|
|
2546
2863
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2547
2864
|
};
|
|
@@ -2551,34 +2868,6 @@ type ListPChainBalancesResponse = {
|
|
|
2551
2868
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2552
2869
|
};
|
|
2553
2870
|
|
|
2554
|
-
type XChainAssetBalance = {
|
|
2555
|
-
/**
|
|
2556
|
-
* Unique ID for an asset.
|
|
2557
|
-
*/
|
|
2558
|
-
assetId: string;
|
|
2559
|
-
/**
|
|
2560
|
-
* Name of this asset.
|
|
2561
|
-
*/
|
|
2562
|
-
name: string;
|
|
2563
|
-
/**
|
|
2564
|
-
* Symbol for this asset (max 4 characters).
|
|
2565
|
-
*/
|
|
2566
|
-
symbol: string;
|
|
2567
|
-
/**
|
|
2568
|
-
* Denomination of this asset to represent fungibility.
|
|
2569
|
-
*/
|
|
2570
|
-
denomination: number;
|
|
2571
|
-
/**
|
|
2572
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2573
|
-
*/
|
|
2574
|
-
type: string;
|
|
2575
|
-
/**
|
|
2576
|
-
* Amount of the asset.
|
|
2577
|
-
*/
|
|
2578
|
-
amount: string;
|
|
2579
|
-
utxoCount: number;
|
|
2580
|
-
};
|
|
2581
|
-
|
|
2582
2871
|
type XChainSharedAssetBalance = {
|
|
2583
2872
|
/**
|
|
2584
2873
|
* Unique ID for an asset.
|
|
@@ -2596,10 +2885,7 @@ type XChainSharedAssetBalance = {
|
|
|
2596
2885
|
* Denomination of this asset to represent fungibility.
|
|
2597
2886
|
*/
|
|
2598
2887
|
denomination: number;
|
|
2599
|
-
|
|
2600
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2601
|
-
*/
|
|
2602
|
-
type: string;
|
|
2888
|
+
type: PrimaryNetworkAssetType;
|
|
2603
2889
|
/**
|
|
2604
2890
|
* Amount of the asset.
|
|
2605
2891
|
*/
|
|
@@ -2612,11 +2898,11 @@ type XChainBalances = {
|
|
|
2612
2898
|
/**
|
|
2613
2899
|
* A list of objects containing X-chain Asset balance information.
|
|
2614
2900
|
*/
|
|
2615
|
-
locked: Array<
|
|
2901
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2616
2902
|
/**
|
|
2617
2903
|
* A list of objects containing X-chain Asset balance information.
|
|
2618
2904
|
*/
|
|
2619
|
-
unlocked: Array<
|
|
2905
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2620
2906
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2621
2907
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2622
2908
|
};
|
|
@@ -2674,6 +2960,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2674
2960
|
txCount: number;
|
|
2675
2961
|
transactions: Array<string>;
|
|
2676
2962
|
blockSizeBytes: number;
|
|
2963
|
+
currentSupply?: string;
|
|
2677
2964
|
proposerDetails?: ProposerDetails;
|
|
2678
2965
|
};
|
|
2679
2966
|
|
|
@@ -2686,6 +2973,7 @@ type PrimaryNetworkBlock = {
|
|
|
2686
2973
|
txCount: number;
|
|
2687
2974
|
transactions: Array<string>;
|
|
2688
2975
|
blockSizeBytes: number;
|
|
2976
|
+
currentSupply?: string;
|
|
2689
2977
|
proposerDetails?: ProposerDetails;
|
|
2690
2978
|
};
|
|
2691
2979
|
|
|
@@ -2727,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2727
3015
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2728
3016
|
* @throws ApiError
|
|
2729
3017
|
*/
|
|
2730
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3018
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2731
3019
|
/**
|
|
2732
3020
|
* A primary network blockchain id or alias.
|
|
2733
3021
|
*/
|
|
@@ -2740,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2740
3028
|
* A primary network (P or X chain) nodeId.
|
|
2741
3029
|
*/
|
|
2742
3030
|
nodeId: string;
|
|
2743
|
-
/**
|
|
2744
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2745
|
-
*/
|
|
2746
|
-
pageSize?: number;
|
|
2747
3031
|
/**
|
|
2748
3032
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2749
3033
|
*/
|
|
2750
3034
|
pageToken?: string;
|
|
3035
|
+
/**
|
|
3036
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3037
|
+
*/
|
|
3038
|
+
pageSize?: number;
|
|
2751
3039
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2752
3040
|
/**
|
|
2753
3041
|
* List latest blocks
|
|
@@ -2755,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2755
3043
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2756
3044
|
* @throws ApiError
|
|
2757
3045
|
*/
|
|
2758
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3046
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2759
3047
|
/**
|
|
2760
3048
|
* A primary network blockchain id or alias.
|
|
2761
3049
|
*/
|
|
@@ -2764,23 +3052,51 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2764
3052
|
* Either mainnet or a testnet.
|
|
2765
3053
|
*/
|
|
2766
3054
|
network: Network;
|
|
2767
|
-
/**
|
|
2768
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2769
|
-
*/
|
|
2770
|
-
pageSize?: number;
|
|
2771
3055
|
/**
|
|
2772
3056
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2773
3057
|
*/
|
|
2774
3058
|
pageToken?: string;
|
|
3059
|
+
/**
|
|
3060
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3061
|
+
*/
|
|
3062
|
+
pageSize?: number;
|
|
2775
3063
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2776
3064
|
}
|
|
2777
3065
|
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
3066
|
+
type AssetWithPriceInfo = {
|
|
3067
|
+
/**
|
|
3068
|
+
* Unique ID for an asset.
|
|
3069
|
+
*/
|
|
3070
|
+
assetId: string;
|
|
3071
|
+
/**
|
|
3072
|
+
* Name of this asset.
|
|
3073
|
+
*/
|
|
3074
|
+
name: string;
|
|
3075
|
+
/**
|
|
3076
|
+
* Symbol for this asset (max 4 characters).
|
|
3077
|
+
*/
|
|
3078
|
+
symbol: string;
|
|
3079
|
+
/**
|
|
3080
|
+
* Denomination of this asset to represent fungibility.
|
|
3081
|
+
*/
|
|
3082
|
+
denomination: number;
|
|
3083
|
+
type: PrimaryNetworkAssetType;
|
|
3084
|
+
/**
|
|
3085
|
+
* Amount of the asset.
|
|
3086
|
+
*/
|
|
3087
|
+
amount: string;
|
|
3088
|
+
/**
|
|
3089
|
+
* 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.
|
|
3090
|
+
*/
|
|
3091
|
+
historicalPrice?: Money;
|
|
3092
|
+
};
|
|
3093
|
+
|
|
3094
|
+
declare enum RewardType {
|
|
3095
|
+
VALIDATOR = "VALIDATOR",
|
|
3096
|
+
DELEGATOR = "DELEGATOR",
|
|
3097
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
3098
|
+
}
|
|
3099
|
+
|
|
2784
3100
|
type HistoricalReward = {
|
|
2785
3101
|
/**
|
|
2786
3102
|
* An array of P-Chain wallet addresses.
|
|
@@ -2794,10 +3110,7 @@ type HistoricalReward = {
|
|
|
2794
3110
|
rewardType: RewardType;
|
|
2795
3111
|
utxoId: string;
|
|
2796
3112
|
outputIndex: number;
|
|
2797
|
-
|
|
2798
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2799
|
-
*/
|
|
2800
|
-
reward: PChainAsset;
|
|
3113
|
+
reward: AssetWithPriceInfo;
|
|
2801
3114
|
rewardTxHash: string;
|
|
2802
3115
|
};
|
|
2803
3116
|
|
|
@@ -2809,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2809
3122
|
historicalRewards: Array<HistoricalReward>;
|
|
2810
3123
|
};
|
|
2811
3124
|
|
|
3125
|
+
type AssetAmount = {
|
|
3126
|
+
/**
|
|
3127
|
+
* Unique ID for an asset.
|
|
3128
|
+
*/
|
|
3129
|
+
assetId: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* Name of this asset.
|
|
3132
|
+
*/
|
|
3133
|
+
name: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* Symbol for this asset (max 4 characters).
|
|
3136
|
+
*/
|
|
3137
|
+
symbol: string;
|
|
3138
|
+
/**
|
|
3139
|
+
* Denomination of this asset to represent fungibility.
|
|
3140
|
+
*/
|
|
3141
|
+
denomination: number;
|
|
3142
|
+
type: PrimaryNetworkAssetType;
|
|
3143
|
+
/**
|
|
3144
|
+
* Amount of the asset.
|
|
3145
|
+
*/
|
|
3146
|
+
amount: string;
|
|
3147
|
+
};
|
|
3148
|
+
|
|
2812
3149
|
type PendingReward = {
|
|
2813
3150
|
/**
|
|
2814
3151
|
* An array of P-Chain wallet addresses.
|
|
@@ -2822,9 +3159,9 @@ type PendingReward = {
|
|
|
2822
3159
|
rewardType: RewardType;
|
|
2823
3160
|
progress: number;
|
|
2824
3161
|
/**
|
|
2825
|
-
* An object containing P-chain Asset
|
|
3162
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2826
3163
|
*/
|
|
2827
|
-
estimatedReward:
|
|
3164
|
+
estimatedReward: AssetAmount;
|
|
2828
3165
|
};
|
|
2829
3166
|
|
|
2830
3167
|
type ListPendingRewardsResponse = {
|
|
@@ -2844,25 +3181,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2844
3181
|
* @returns ListPendingRewardsResponse
|
|
2845
3182
|
* @throws ApiError
|
|
2846
3183
|
*/
|
|
2847
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3184
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2848
3185
|
/**
|
|
2849
3186
|
* Either mainnet or a testnet.
|
|
2850
3187
|
*/
|
|
2851
3188
|
network: Network;
|
|
2852
3189
|
/**
|
|
2853
|
-
* 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".
|
|
3190
|
+
* 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.
|
|
2854
3191
|
*/
|
|
2855
3192
|
addresses?: string;
|
|
2856
|
-
/**
|
|
2857
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2858
|
-
*/
|
|
2859
|
-
pageSize?: number;
|
|
2860
3193
|
/**
|
|
2861
3194
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2862
3195
|
*/
|
|
2863
3196
|
pageToken?: string;
|
|
2864
3197
|
/**
|
|
2865
|
-
*
|
|
3198
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3199
|
+
*/
|
|
3200
|
+
pageSize?: number;
|
|
3201
|
+
/**
|
|
3202
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2866
3203
|
*/
|
|
2867
3204
|
nodeIds?: string;
|
|
2868
3205
|
/**
|
|
@@ -2876,68 +3213,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2876
3213
|
* @returns ListHistoricalRewardsResponse
|
|
2877
3214
|
* @throws ApiError
|
|
2878
3215
|
*/
|
|
2879
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3216
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2880
3217
|
/**
|
|
2881
3218
|
* Either mainnet or a testnet.
|
|
2882
3219
|
*/
|
|
2883
3220
|
network: Network;
|
|
2884
3221
|
/**
|
|
2885
|
-
* 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".
|
|
3222
|
+
* 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.
|
|
2886
3223
|
*/
|
|
2887
3224
|
addresses?: string;
|
|
2888
|
-
/**
|
|
2889
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2890
|
-
*/
|
|
2891
|
-
pageSize?: number;
|
|
2892
3225
|
/**
|
|
2893
3226
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2894
3227
|
*/
|
|
2895
3228
|
pageToken?: string;
|
|
2896
3229
|
/**
|
|
2897
|
-
*
|
|
3230
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3231
|
+
*/
|
|
3232
|
+
pageSize?: number;
|
|
3233
|
+
/**
|
|
3234
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2898
3235
|
*/
|
|
2899
3236
|
nodeIds?: string;
|
|
2900
3237
|
/**
|
|
2901
3238
|
* 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.
|
|
2902
3239
|
*/
|
|
2903
3240
|
sortOrder?: SortOrder;
|
|
3241
|
+
/**
|
|
3242
|
+
* The currency that return values should use. Defaults to USD.
|
|
3243
|
+
*/
|
|
3244
|
+
currency?: CurrencyCode;
|
|
2904
3245
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2905
3246
|
}
|
|
2906
3247
|
|
|
2907
|
-
type Asset = {
|
|
2908
|
-
/**
|
|
2909
|
-
* Unique ID for an asset.
|
|
2910
|
-
*/
|
|
2911
|
-
assetId: string;
|
|
2912
|
-
/**
|
|
2913
|
-
* Name of this asset.
|
|
2914
|
-
*/
|
|
2915
|
-
name: string;
|
|
2916
|
-
/**
|
|
2917
|
-
* Symbol for this asset (max 4 characters).
|
|
2918
|
-
*/
|
|
2919
|
-
symbol: string;
|
|
2920
|
-
/**
|
|
2921
|
-
* Denomination of this asset to represent fungibility.
|
|
2922
|
-
*/
|
|
2923
|
-
denomination: number;
|
|
2924
|
-
/**
|
|
2925
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2926
|
-
*/
|
|
2927
|
-
type: string;
|
|
2928
|
-
/**
|
|
2929
|
-
* Amount of the asset.
|
|
2930
|
-
*/
|
|
2931
|
-
amount: string;
|
|
2932
|
-
};
|
|
2933
|
-
|
|
2934
3248
|
type UtxoCredential = {
|
|
2935
3249
|
/**
|
|
2936
|
-
* Signature provided to consume the output
|
|
3250
|
+
* Signature provided to consume the output.
|
|
2937
3251
|
*/
|
|
2938
3252
|
signature?: string;
|
|
2939
3253
|
/**
|
|
2940
|
-
* Public key associated with the signature
|
|
3254
|
+
* Public key associated with the signature.
|
|
2941
3255
|
*/
|
|
2942
3256
|
publicKey?: string;
|
|
2943
3257
|
};
|
|
@@ -2948,9 +3262,9 @@ type EVMInput = {
|
|
|
2948
3262
|
*/
|
|
2949
3263
|
fromAddress: string;
|
|
2950
3264
|
/**
|
|
2951
|
-
*
|
|
3265
|
+
* AssetAmount details for the asset being transferred.
|
|
2952
3266
|
*/
|
|
2953
|
-
asset:
|
|
3267
|
+
asset: AssetAmount;
|
|
2954
3268
|
/**
|
|
2955
3269
|
* Credentials that signed this transaction.
|
|
2956
3270
|
*/
|
|
@@ -2959,66 +3273,66 @@ type EVMInput = {
|
|
|
2959
3273
|
|
|
2960
3274
|
type Utxo = {
|
|
2961
3275
|
/**
|
|
2962
|
-
*
|
|
3276
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2963
3277
|
*/
|
|
2964
|
-
|
|
2965
|
-
asset:
|
|
3278
|
+
addresses: Array<string>;
|
|
3279
|
+
asset: AssetAmount;
|
|
2966
3280
|
/**
|
|
2967
|
-
*
|
|
3281
|
+
* Blockchain ID on which this output is consumed on.
|
|
2968
3282
|
*/
|
|
2969
|
-
|
|
3283
|
+
consumedOnChainId: string;
|
|
2970
3284
|
/**
|
|
2971
|
-
*
|
|
3285
|
+
* Transaction ID that consumed this output.
|
|
2972
3286
|
*/
|
|
2973
|
-
|
|
3287
|
+
consumingTxHash?: string;
|
|
2974
3288
|
/**
|
|
2975
|
-
* Blockchain ID on which this output is
|
|
3289
|
+
* Blockchain ID on which this output is created on.
|
|
2976
3290
|
*/
|
|
2977
|
-
|
|
3291
|
+
createdOnChainId: string;
|
|
2978
3292
|
/**
|
|
2979
|
-
*
|
|
3293
|
+
* UTXO ID for this output.
|
|
2980
3294
|
*/
|
|
2981
|
-
|
|
3295
|
+
utxoId: string;
|
|
2982
3296
|
/**
|
|
2983
|
-
*
|
|
3297
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2984
3298
|
*/
|
|
2985
|
-
|
|
3299
|
+
consumingTxTimestamp?: number;
|
|
2986
3300
|
/**
|
|
2987
|
-
*
|
|
3301
|
+
* Transaction ID that created this output.
|
|
2988
3302
|
*/
|
|
2989
|
-
|
|
3303
|
+
creationTxHash: string;
|
|
2990
3304
|
/**
|
|
2991
|
-
*
|
|
3305
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2992
3306
|
*/
|
|
2993
|
-
|
|
3307
|
+
credentials?: Array<UtxoCredential>;
|
|
2994
3308
|
/**
|
|
2995
|
-
*
|
|
3309
|
+
* Index representing the minting set for the NFT mint output.
|
|
2996
3310
|
*/
|
|
2997
|
-
|
|
3311
|
+
groupId?: number;
|
|
2998
3312
|
/**
|
|
2999
3313
|
* Locktime in seconds after which this output can be consumed.
|
|
3000
3314
|
*/
|
|
3001
3315
|
locktime: number;
|
|
3002
3316
|
/**
|
|
3003
|
-
*
|
|
3317
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3004
3318
|
*/
|
|
3005
|
-
|
|
3319
|
+
outputIndex: string;
|
|
3006
3320
|
/**
|
|
3007
|
-
*
|
|
3321
|
+
* Hex encoded data for NFT assets.
|
|
3008
3322
|
*/
|
|
3009
|
-
|
|
3323
|
+
payload?: string;
|
|
3010
3324
|
/**
|
|
3011
|
-
*
|
|
3325
|
+
* Minimum number of signatures required to consume this output.
|
|
3012
3326
|
*/
|
|
3013
|
-
|
|
3327
|
+
threshold: number;
|
|
3014
3328
|
/**
|
|
3015
|
-
*
|
|
3329
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3016
3330
|
*/
|
|
3017
|
-
|
|
3331
|
+
timestamp: number;
|
|
3018
3332
|
/**
|
|
3019
|
-
*
|
|
3333
|
+
* Type of output.
|
|
3020
3334
|
*/
|
|
3021
|
-
|
|
3335
|
+
utxoType: string;
|
|
3022
3336
|
};
|
|
3023
3337
|
|
|
3024
3338
|
type CChainExportTransaction = {
|
|
@@ -3045,11 +3359,11 @@ type CChainExportTransaction = {
|
|
|
3045
3359
|
/**
|
|
3046
3360
|
* Assets unlocked by inputs of this transaction.
|
|
3047
3361
|
*/
|
|
3048
|
-
amountUnlocked: Array<
|
|
3362
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3049
3363
|
/**
|
|
3050
3364
|
* Assets created by outputs of this transaction.
|
|
3051
3365
|
*/
|
|
3052
|
-
amountCreated: Array<
|
|
3366
|
+
amountCreated: Array<AssetAmount>;
|
|
3053
3367
|
/**
|
|
3054
3368
|
* Source chain for an atomic transaction.
|
|
3055
3369
|
*/
|
|
@@ -3080,9 +3394,9 @@ type EVMOutput = {
|
|
|
3080
3394
|
*/
|
|
3081
3395
|
toAddress: string;
|
|
3082
3396
|
/**
|
|
3083
|
-
*
|
|
3397
|
+
* AssetAmount details for the asset being transferred.
|
|
3084
3398
|
*/
|
|
3085
|
-
asset:
|
|
3399
|
+
asset: AssetAmount;
|
|
3086
3400
|
};
|
|
3087
3401
|
|
|
3088
3402
|
type CChainImportTransaction = {
|
|
@@ -3109,11 +3423,11 @@ type CChainImportTransaction = {
|
|
|
3109
3423
|
/**
|
|
3110
3424
|
* Assets unlocked by inputs of this transaction.
|
|
3111
3425
|
*/
|
|
3112
|
-
amountUnlocked: Array<
|
|
3426
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3113
3427
|
/**
|
|
3114
3428
|
* Assets created by outputs of this transaction.
|
|
3115
3429
|
*/
|
|
3116
|
-
amountCreated: Array<
|
|
3430
|
+
amountCreated: Array<AssetAmount>;
|
|
3117
3431
|
/**
|
|
3118
3432
|
* Source chain for an atomic transaction.
|
|
3119
3433
|
*/
|
|
@@ -3149,17 +3463,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3149
3463
|
|
|
3150
3464
|
declare enum PChainTransactionType {
|
|
3151
3465
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3152
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3153
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3154
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3155
3466
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3156
|
-
|
|
3157
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3467
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3158
3468
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3159
3469
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3160
3470
|
IMPORT_TX = "ImportTx",
|
|
3161
3471
|
EXPORT_TX = "ExportTx",
|
|
3162
3472
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3473
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3474
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3475
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3476
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3477
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3478
|
+
BASE_TX = "BaseTx",
|
|
3479
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3163
3480
|
UNKNOWN = "UNKNOWN"
|
|
3164
3481
|
}
|
|
3165
3482
|
|
|
@@ -3170,29 +3487,48 @@ declare enum UtxoType {
|
|
|
3170
3487
|
|
|
3171
3488
|
type PChainUtxo = {
|
|
3172
3489
|
/**
|
|
3173
|
-
*
|
|
3490
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3174
3491
|
*/
|
|
3175
3492
|
addresses: Array<string>;
|
|
3493
|
+
asset: AssetAmount;
|
|
3494
|
+
/**
|
|
3495
|
+
* Blockchain ID on which this output is consumed on.
|
|
3496
|
+
*/
|
|
3497
|
+
consumedOnChainId: string;
|
|
3498
|
+
/**
|
|
3499
|
+
* Transaction ID that consumed this output.
|
|
3500
|
+
*/
|
|
3501
|
+
consumingTxHash?: string;
|
|
3502
|
+
/**
|
|
3503
|
+
* Blockchain ID on which this output is created on.
|
|
3504
|
+
*/
|
|
3505
|
+
createdOnChainId: string;
|
|
3506
|
+
/**
|
|
3507
|
+
* UTXO ID for this output.
|
|
3508
|
+
*/
|
|
3176
3509
|
utxoId: string;
|
|
3177
|
-
|
|
3178
|
-
|
|
3510
|
+
/**
|
|
3511
|
+
* @deprecated
|
|
3512
|
+
*/
|
|
3513
|
+
amount: string;
|
|
3514
|
+
/**
|
|
3515
|
+
* @deprecated
|
|
3516
|
+
*/
|
|
3517
|
+
assetId: string;
|
|
3179
3518
|
blockNumber: string;
|
|
3180
3519
|
blockTimestamp: number;
|
|
3181
|
-
consumingTxHash?: string;
|
|
3182
|
-
consumingBlockTimestamp?: number;
|
|
3183
3520
|
consumingBlockNumber?: string;
|
|
3184
|
-
|
|
3185
|
-
utxoType: UtxoType;
|
|
3186
|
-
amount: string;
|
|
3187
|
-
stakeableLocktime?: number;
|
|
3521
|
+
consumingBlockTimestamp?: number;
|
|
3188
3522
|
platformLocktime?: number;
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3523
|
+
outputIndex: number;
|
|
3524
|
+
rewardType?: RewardType;
|
|
3525
|
+
stakeableLocktime?: number;
|
|
3192
3526
|
staked?: boolean;
|
|
3193
|
-
|
|
3527
|
+
threshold?: number;
|
|
3528
|
+
txHash: string;
|
|
3194
3529
|
utxoEndTimestamp?: number;
|
|
3195
|
-
|
|
3530
|
+
utxoStartTimestamp?: number;
|
|
3531
|
+
utxoType: UtxoType;
|
|
3196
3532
|
};
|
|
3197
3533
|
|
|
3198
3534
|
type PChainTransaction = {
|
|
@@ -3218,17 +3554,17 @@ type PChainTransaction = {
|
|
|
3218
3554
|
*/
|
|
3219
3555
|
destinationChain?: string;
|
|
3220
3556
|
/**
|
|
3221
|
-
* A list of objects containing P-chain Asset
|
|
3557
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3222
3558
|
*/
|
|
3223
|
-
value: Array<
|
|
3559
|
+
value: Array<AssetAmount>;
|
|
3224
3560
|
/**
|
|
3225
|
-
* A list of objects containing P-chain Asset
|
|
3561
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3226
3562
|
*/
|
|
3227
|
-
amountBurned: Array<
|
|
3563
|
+
amountBurned: Array<AssetAmount>;
|
|
3228
3564
|
/**
|
|
3229
|
-
* A list of objects containing P-chain Asset
|
|
3565
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3230
3566
|
*/
|
|
3231
|
-
amountStaked: Array<
|
|
3567
|
+
amountStaked: Array<AssetAmount>;
|
|
3232
3568
|
/**
|
|
3233
3569
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3234
3570
|
*/
|
|
@@ -3260,6 +3596,10 @@ type PChainTransaction = {
|
|
|
3260
3596
|
* Present for RewardValidatorTx
|
|
3261
3597
|
*/
|
|
3262
3598
|
stakingTxHash?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3601
|
+
*/
|
|
3602
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3263
3603
|
};
|
|
3264
3604
|
|
|
3265
3605
|
type ListPChainTransactionsResponse = {
|
|
@@ -3271,6 +3611,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3271
3611
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3272
3612
|
};
|
|
3273
3613
|
|
|
3614
|
+
/**
|
|
3615
|
+
* Type of transaction.
|
|
3616
|
+
*/
|
|
3617
|
+
declare enum XChainTransactionType {
|
|
3618
|
+
BASE_TX = "BaseTx",
|
|
3619
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3620
|
+
OPERATION_TX = "OperationTx",
|
|
3621
|
+
IMPORT_TX = "ImportTx",
|
|
3622
|
+
EXPORT_TX = "ExportTx",
|
|
3623
|
+
UNKNOWN = "UNKNOWN"
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3274
3626
|
type XChainLinearTransaction = {
|
|
3275
3627
|
/**
|
|
3276
3628
|
* Unique ID for this transaction.
|
|
@@ -3284,10 +3636,7 @@ type XChainLinearTransaction = {
|
|
|
3284
3636
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3285
3637
|
*/
|
|
3286
3638
|
timestamp: number;
|
|
3287
|
-
|
|
3288
|
-
* Type of transaction.
|
|
3289
|
-
*/
|
|
3290
|
-
txType: string;
|
|
3639
|
+
txType: XChainTransactionType;
|
|
3291
3640
|
/**
|
|
3292
3641
|
* Hex encoded memo bytes for this transaction.
|
|
3293
3642
|
*/
|
|
@@ -3297,11 +3646,11 @@ type XChainLinearTransaction = {
|
|
|
3297
3646
|
/**
|
|
3298
3647
|
* Assets unlocked by inputs of this transaction.
|
|
3299
3648
|
*/
|
|
3300
|
-
amountUnlocked: Array<
|
|
3649
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3301
3650
|
/**
|
|
3302
3651
|
* Assets created by outputs of this transaction.
|
|
3303
3652
|
*/
|
|
3304
|
-
amountCreated: Array<
|
|
3653
|
+
amountCreated: Array<AssetAmount>;
|
|
3305
3654
|
/**
|
|
3306
3655
|
* Source chain for an atomic transaction.
|
|
3307
3656
|
*/
|
|
@@ -3311,7 +3660,7 @@ type XChainLinearTransaction = {
|
|
|
3311
3660
|
*/
|
|
3312
3661
|
destinationChain?: string;
|
|
3313
3662
|
/**
|
|
3314
|
-
*
|
|
3663
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3315
3664
|
*/
|
|
3316
3665
|
assetCreated?: XChainAssetDetails;
|
|
3317
3666
|
/**
|
|
@@ -3361,10 +3710,7 @@ type XChainNonLinearTransaction = {
|
|
|
3361
3710
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3362
3711
|
*/
|
|
3363
3712
|
timestamp: number;
|
|
3364
|
-
|
|
3365
|
-
* Type of transaction.
|
|
3366
|
-
*/
|
|
3367
|
-
txType: string;
|
|
3713
|
+
txType: XChainTransactionType;
|
|
3368
3714
|
/**
|
|
3369
3715
|
* Hex encoded memo bytes for this transaction.
|
|
3370
3716
|
*/
|
|
@@ -3374,11 +3720,11 @@ type XChainNonLinearTransaction = {
|
|
|
3374
3720
|
/**
|
|
3375
3721
|
* Assets unlocked by inputs of this transaction.
|
|
3376
3722
|
*/
|
|
3377
|
-
amountUnlocked: Array<
|
|
3723
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3378
3724
|
/**
|
|
3379
3725
|
* Assets created by outputs of this transaction.
|
|
3380
3726
|
*/
|
|
3381
|
-
amountCreated: Array<
|
|
3727
|
+
amountCreated: Array<AssetAmount>;
|
|
3382
3728
|
/**
|
|
3383
3729
|
* Source chain for an atomic transaction.
|
|
3384
3730
|
*/
|
|
@@ -3388,7 +3734,7 @@ type XChainNonLinearTransaction = {
|
|
|
3388
3734
|
*/
|
|
3389
3735
|
destinationChain?: string;
|
|
3390
3736
|
/**
|
|
3391
|
-
*
|
|
3737
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3392
3738
|
*/
|
|
3393
3739
|
assetCreated?: XChainAssetDetails;
|
|
3394
3740
|
/**
|
|
@@ -3422,19 +3768,21 @@ declare enum PChainId {
|
|
|
3422
3768
|
|
|
3423
3769
|
declare enum PrimaryNetworkTxType {
|
|
3424
3770
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3425
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3426
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3427
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3428
3771
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3429
|
-
|
|
3430
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3772
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3431
3773
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3432
3774
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3433
3775
|
IMPORT_TX = "ImportTx",
|
|
3434
3776
|
EXPORT_TX = "ExportTx",
|
|
3435
3777
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3436
|
-
|
|
3778
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3779
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3780
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3781
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3782
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3437
3783
|
BASE_TX = "BaseTx",
|
|
3784
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3785
|
+
UNKNOWN = "UNKNOWN",
|
|
3438
3786
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3439
3787
|
OPERATION_TX = "OperationTx"
|
|
3440
3788
|
}
|
|
@@ -3466,13 +3814,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3466
3814
|
* List latest transactions
|
|
3467
3815
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3468
3816
|
*
|
|
3469
|
-
* Transactions are filterable by addresses.
|
|
3817
|
+
* 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.
|
|
3470
3818
|
*
|
|
3471
3819
|
* 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.
|
|
3472
3820
|
* @returns any
|
|
3473
3821
|
* @throws ApiError
|
|
3474
3822
|
*/
|
|
3475
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3823
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3476
3824
|
/**
|
|
3477
3825
|
* A primary network blockchain id or alias.
|
|
3478
3826
|
*/
|
|
@@ -3497,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3497
3845
|
* Query param for retrieving items before a specific timestamp.
|
|
3498
3846
|
*/
|
|
3499
3847
|
endTimestamp?: number;
|
|
3500
|
-
/**
|
|
3501
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3502
|
-
*/
|
|
3503
|
-
pageSize?: number;
|
|
3504
3848
|
/**
|
|
3505
3849
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3506
3850
|
*/
|
|
3507
3851
|
pageToken?: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3854
|
+
*/
|
|
3855
|
+
pageSize?: number;
|
|
3508
3856
|
/**
|
|
3509
3857
|
* 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.
|
|
3510
3858
|
*/
|
|
@@ -3516,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3516
3864
|
* @returns ListPChainTransactionsResponse
|
|
3517
3865
|
* @throws ApiError
|
|
3518
3866
|
*/
|
|
3519
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3867
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3520
3868
|
/**
|
|
3521
3869
|
* A primary network blockchain id or alias.
|
|
3522
3870
|
*/
|
|
@@ -3541,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3541
3889
|
* Query param for retrieving items before a specific timestamp.
|
|
3542
3890
|
*/
|
|
3543
3891
|
endTimestamp?: number;
|
|
3544
|
-
/**
|
|
3545
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3546
|
-
*/
|
|
3547
|
-
pageSize?: number;
|
|
3548
3892
|
/**
|
|
3549
3893
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3550
3894
|
*/
|
|
3551
3895
|
pageToken?: string;
|
|
3896
|
+
/**
|
|
3897
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
|
+
*/
|
|
3899
|
+
pageSize?: number;
|
|
3552
3900
|
/**
|
|
3553
3901
|
* 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.
|
|
3554
3902
|
*/
|
|
@@ -3560,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3560
3908
|
* @returns ListXChainTransactionsResponse
|
|
3561
3909
|
* @throws ApiError
|
|
3562
3910
|
*/
|
|
3563
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3911
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3564
3912
|
/**
|
|
3565
3913
|
* A primary network blockchain id or alias.
|
|
3566
3914
|
*/
|
|
@@ -3585,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3585
3933
|
* Query param for retrieving items before a specific timestamp.
|
|
3586
3934
|
*/
|
|
3587
3935
|
endTimestamp?: number;
|
|
3588
|
-
/**
|
|
3589
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3590
|
-
*/
|
|
3591
|
-
pageSize?: number;
|
|
3592
3936
|
/**
|
|
3593
3937
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3594
3938
|
*/
|
|
3595
3939
|
pageToken?: string;
|
|
3940
|
+
/**
|
|
3941
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3942
|
+
*/
|
|
3943
|
+
pageSize?: number;
|
|
3596
3944
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3597
3945
|
}
|
|
3598
3946
|
|
|
@@ -3623,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3623
3971
|
* @returns any
|
|
3624
3972
|
* @throws ApiError
|
|
3625
3973
|
*/
|
|
3626
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3974
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3627
3975
|
/**
|
|
3628
3976
|
* A primary network blockchain id or alias.
|
|
3629
3977
|
*/
|
|
@@ -3636,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3636
3984
|
* 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".
|
|
3637
3985
|
*/
|
|
3638
3986
|
addresses?: string;
|
|
3639
|
-
/**
|
|
3640
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3641
|
-
*/
|
|
3642
|
-
pageSize?: number;
|
|
3643
3987
|
/**
|
|
3644
3988
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3645
3989
|
*/
|
|
3646
3990
|
pageToken?: string;
|
|
3991
|
+
/**
|
|
3992
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3993
|
+
*/
|
|
3994
|
+
pageSize?: number;
|
|
3647
3995
|
/**
|
|
3648
3996
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3649
3997
|
*/
|
|
@@ -3688,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3688
4036
|
* @returns ListXChainVerticesResponse
|
|
3689
4037
|
* @throws ApiError
|
|
3690
4038
|
*/
|
|
3691
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4039
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3692
4040
|
/**
|
|
3693
4041
|
* A primary network blockchain id or alias.
|
|
3694
4042
|
*/
|
|
@@ -3697,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3697
4045
|
* Either mainnet or a testnet.
|
|
3698
4046
|
*/
|
|
3699
4047
|
network: Network;
|
|
3700
|
-
/**
|
|
3701
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3702
|
-
*/
|
|
3703
|
-
pageSize?: number;
|
|
3704
4048
|
/**
|
|
3705
4049
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3706
4050
|
*/
|
|
3707
4051
|
pageToken?: string;
|
|
4052
|
+
/**
|
|
4053
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4054
|
+
*/
|
|
4055
|
+
pageSize?: number;
|
|
3708
4056
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3709
4057
|
/**
|
|
3710
4058
|
* Get vertex
|
|
@@ -3732,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3732
4080
|
* @returns ListXChainVerticesResponse
|
|
3733
4081
|
* @throws ApiError
|
|
3734
4082
|
*/
|
|
3735
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4083
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3736
4084
|
/**
|
|
3737
4085
|
* The height of a vertex.
|
|
3738
4086
|
*/
|
|
@@ -3745,23 +4093,366 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3745
4093
|
* Either mainnet or a testnet.
|
|
3746
4094
|
*/
|
|
3747
4095
|
network: Network;
|
|
4096
|
+
/**
|
|
4097
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4098
|
+
*/
|
|
4099
|
+
pageToken?: string;
|
|
4100
|
+
/**
|
|
4101
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4102
|
+
*/
|
|
4103
|
+
pageSize?: number;
|
|
4104
|
+
/**
|
|
4105
|
+
* 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.
|
|
4106
|
+
*/
|
|
4107
|
+
sortOrder?: SortOrder;
|
|
4108
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
type TeleporterDestinationTransaction = {
|
|
4112
|
+
txHash: string;
|
|
4113
|
+
timestamp: number;
|
|
4114
|
+
gasSpent: string;
|
|
4115
|
+
rewardRedeemer: string;
|
|
4116
|
+
delivererAddress: string;
|
|
4117
|
+
};
|
|
4118
|
+
|
|
4119
|
+
type TeleporterReceipt = {
|
|
4120
|
+
receivedMessageNonce: string;
|
|
4121
|
+
relayerRewardAddress: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type TeleporterRewardDetails = {
|
|
4125
|
+
/**
|
|
4126
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4127
|
+
*/
|
|
4128
|
+
address: string;
|
|
4129
|
+
/**
|
|
4130
|
+
* The contract name.
|
|
4131
|
+
*/
|
|
4132
|
+
name: string;
|
|
4133
|
+
/**
|
|
4134
|
+
* The contract symbol.
|
|
4135
|
+
*/
|
|
4136
|
+
symbol: string;
|
|
4137
|
+
/**
|
|
4138
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4139
|
+
*/
|
|
4140
|
+
decimals: number;
|
|
4141
|
+
/**
|
|
4142
|
+
* The logo uri for the address.
|
|
4143
|
+
*/
|
|
4144
|
+
logoUri?: string;
|
|
4145
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4146
|
+
/**
|
|
4147
|
+
* The token price, if available.
|
|
4148
|
+
*/
|
|
4149
|
+
price?: Money;
|
|
4150
|
+
value: string;
|
|
4151
|
+
};
|
|
4152
|
+
declare namespace TeleporterRewardDetails {
|
|
4153
|
+
enum ercType {
|
|
4154
|
+
ERC_20 = "ERC-20"
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4159
|
+
messageId: string;
|
|
4160
|
+
teleporterContractAddress: string;
|
|
4161
|
+
sourceBlockchainId: string;
|
|
4162
|
+
destinationBlockchainId: string;
|
|
4163
|
+
messageNonce: string;
|
|
4164
|
+
from: string;
|
|
4165
|
+
to: string;
|
|
4166
|
+
data?: string;
|
|
4167
|
+
messageExecuted: boolean;
|
|
4168
|
+
receipts: Array<TeleporterReceipt>;
|
|
4169
|
+
receiptDelivered: boolean;
|
|
4170
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4171
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4172
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4173
|
+
};
|
|
4174
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4175
|
+
enum status {
|
|
4176
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
type TeleporterSourceTransaction = {
|
|
4181
|
+
txHash: string;
|
|
4182
|
+
timestamp: number;
|
|
4183
|
+
gasSpent: string;
|
|
4184
|
+
};
|
|
4185
|
+
|
|
4186
|
+
type DeliveredTeleporterMessage = {
|
|
4187
|
+
messageId: string;
|
|
4188
|
+
teleporterContractAddress: string;
|
|
4189
|
+
sourceBlockchainId: string;
|
|
4190
|
+
destinationBlockchainId: string;
|
|
4191
|
+
messageNonce: string;
|
|
4192
|
+
from: string;
|
|
4193
|
+
to: string;
|
|
4194
|
+
data?: string;
|
|
4195
|
+
messageExecuted: boolean;
|
|
4196
|
+
receipts: Array<TeleporterReceipt>;
|
|
4197
|
+
receiptDelivered: boolean;
|
|
4198
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4199
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4200
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4201
|
+
status: DeliveredTeleporterMessage.status;
|
|
4202
|
+
};
|
|
4203
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4204
|
+
enum status {
|
|
4205
|
+
DELIVERED = "delivered"
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
type NextPageToken = {
|
|
4210
|
+
/**
|
|
4211
|
+
* 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.
|
|
4212
|
+
*/
|
|
4213
|
+
nextPageToken?: string;
|
|
4214
|
+
};
|
|
4215
|
+
|
|
4216
|
+
type PendingTeleporterMessage = {
|
|
4217
|
+
messageId: string;
|
|
4218
|
+
teleporterContractAddress: string;
|
|
4219
|
+
sourceBlockchainId: string;
|
|
4220
|
+
destinationBlockchainId: string;
|
|
4221
|
+
messageNonce: string;
|
|
4222
|
+
from: string;
|
|
4223
|
+
to: string;
|
|
4224
|
+
data?: string;
|
|
4225
|
+
messageExecuted: boolean;
|
|
4226
|
+
receipts: Array<TeleporterReceipt>;
|
|
4227
|
+
receiptDelivered: boolean;
|
|
4228
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4229
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4230
|
+
status: PendingTeleporterMessage.status;
|
|
4231
|
+
};
|
|
4232
|
+
declare namespace PendingTeleporterMessage {
|
|
4233
|
+
enum status {
|
|
4234
|
+
PENDING = "pending"
|
|
4235
|
+
}
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
declare class TeleporterService {
|
|
4239
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4240
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4241
|
+
/**
|
|
4242
|
+
* Get a teleporter message
|
|
4243
|
+
* Gets a teleporter message by message ID.
|
|
4244
|
+
* @returns any
|
|
4245
|
+
* @throws ApiError
|
|
4246
|
+
*/
|
|
4247
|
+
getTeleporterMessage({ messageId, }: {
|
|
4248
|
+
/**
|
|
4249
|
+
* The message ID of the teleporter message.
|
|
4250
|
+
*/
|
|
4251
|
+
messageId: string;
|
|
4252
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4253
|
+
/**
|
|
4254
|
+
* List teleporter messages
|
|
4255
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4256
|
+
* @returns any
|
|
4257
|
+
* @throws ApiError
|
|
4258
|
+
*/
|
|
4259
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4260
|
+
/**
|
|
4261
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4262
|
+
*/
|
|
4263
|
+
pageToken?: string;
|
|
3748
4264
|
/**
|
|
3749
4265
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3750
4266
|
*/
|
|
3751
4267
|
pageSize?: number;
|
|
4268
|
+
/**
|
|
4269
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4270
|
+
*/
|
|
4271
|
+
sourceBlockchainId?: string;
|
|
4272
|
+
/**
|
|
4273
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4274
|
+
*/
|
|
4275
|
+
destinationBlockchainId?: string;
|
|
4276
|
+
/**
|
|
4277
|
+
* The address of the recipient of the teleporter message.
|
|
4278
|
+
*/
|
|
4279
|
+
to?: string;
|
|
4280
|
+
/**
|
|
4281
|
+
* The address of the sender of the teleporter message.
|
|
4282
|
+
*/
|
|
4283
|
+
from?: string;
|
|
4284
|
+
}): CancelablePromise<NextPageToken>;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
type AddressActivityMetadata = {
|
|
4288
|
+
/**
|
|
4289
|
+
* Ethereum address for the address_activity event type
|
|
4290
|
+
*/
|
|
4291
|
+
address: string;
|
|
4292
|
+
/**
|
|
4293
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4294
|
+
*/
|
|
4295
|
+
eventSignatures?: Array<string>;
|
|
4296
|
+
};
|
|
4297
|
+
|
|
4298
|
+
declare enum EventType {
|
|
4299
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
declare enum WebhookStatusType {
|
|
4303
|
+
ACTIVE = "active",
|
|
4304
|
+
INACTIVE = "inactive"
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4307
|
+
type WebhookResponse = {
|
|
4308
|
+
id: string;
|
|
4309
|
+
eventType: EventType;
|
|
4310
|
+
metadata: AddressActivityMetadata;
|
|
4311
|
+
/**
|
|
4312
|
+
* Whether to include traces in the webhook payload.
|
|
4313
|
+
*/
|
|
4314
|
+
includeTraces?: boolean;
|
|
4315
|
+
/**
|
|
4316
|
+
* Whether to include logs in the webhook payload.
|
|
4317
|
+
*/
|
|
4318
|
+
includeLogs?: boolean;
|
|
4319
|
+
url: string;
|
|
4320
|
+
chainId: string;
|
|
4321
|
+
status: WebhookStatusType;
|
|
4322
|
+
createdAt: number;
|
|
4323
|
+
name: string;
|
|
4324
|
+
description: string;
|
|
4325
|
+
};
|
|
4326
|
+
|
|
4327
|
+
type ListWebhooksResponse = {
|
|
4328
|
+
/**
|
|
4329
|
+
* 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.
|
|
4330
|
+
*/
|
|
4331
|
+
nextPageToken?: string;
|
|
4332
|
+
webhooks: Array<WebhookResponse>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
type RegisterWebhookRequest = {
|
|
4336
|
+
url: string;
|
|
4337
|
+
chainId: string;
|
|
4338
|
+
eventType: EventType;
|
|
4339
|
+
metadata: AddressActivityMetadata;
|
|
4340
|
+
/**
|
|
4341
|
+
* Whether to include traces in the webhook payload.
|
|
4342
|
+
*/
|
|
4343
|
+
includeTraces?: boolean;
|
|
4344
|
+
/**
|
|
4345
|
+
* Whether to include logs in the webhook payload.
|
|
4346
|
+
*/
|
|
4347
|
+
includeLogs?: boolean;
|
|
4348
|
+
};
|
|
4349
|
+
|
|
4350
|
+
type SharedSecretsResponse = {
|
|
4351
|
+
secret: string;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
type UpdateWebhookRequest = {
|
|
4355
|
+
name?: string;
|
|
4356
|
+
description?: string;
|
|
4357
|
+
url?: string;
|
|
4358
|
+
status?: WebhookStatusType;
|
|
4359
|
+
includeTraces?: boolean;
|
|
4360
|
+
includeLogs?: boolean;
|
|
4361
|
+
};
|
|
4362
|
+
|
|
4363
|
+
declare enum WebhookStatus {
|
|
4364
|
+
ACTIVE = "active",
|
|
4365
|
+
INACTIVE = "inactive"
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
declare class WebhooksService {
|
|
4369
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4370
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4371
|
+
/**
|
|
4372
|
+
* Register a webhook
|
|
4373
|
+
* Registers a new webhook.
|
|
4374
|
+
* @returns WebhookResponse
|
|
4375
|
+
* @throws ApiError
|
|
4376
|
+
*/
|
|
4377
|
+
registerWebhook({ requestBody, }: {
|
|
4378
|
+
requestBody: RegisterWebhookRequest;
|
|
4379
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4380
|
+
/**
|
|
4381
|
+
* List webhooks
|
|
4382
|
+
* Lists webhooks for the user.
|
|
4383
|
+
* @returns ListWebhooksResponse
|
|
4384
|
+
* @throws ApiError
|
|
4385
|
+
*/
|
|
4386
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3752
4387
|
/**
|
|
3753
4388
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3754
4389
|
*/
|
|
3755
4390
|
pageToken?: string;
|
|
3756
4391
|
/**
|
|
3757
|
-
* The
|
|
4392
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3758
4393
|
*/
|
|
3759
|
-
|
|
3760
|
-
|
|
4394
|
+
pageSize?: number;
|
|
4395
|
+
/**
|
|
4396
|
+
* 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.
|
|
4397
|
+
*/
|
|
4398
|
+
status?: WebhookStatus;
|
|
4399
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4400
|
+
/**
|
|
4401
|
+
* Get a webhook by ID
|
|
4402
|
+
* Retrieves a webhook by ID.
|
|
4403
|
+
* @returns WebhookResponse
|
|
4404
|
+
* @throws ApiError
|
|
4405
|
+
*/
|
|
4406
|
+
getWebhook({ id, }: {
|
|
4407
|
+
/**
|
|
4408
|
+
* The webhook identifier.
|
|
4409
|
+
*/
|
|
4410
|
+
id: string;
|
|
4411
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4412
|
+
/**
|
|
4413
|
+
* Deactivate a webhook
|
|
4414
|
+
* Deactivates a webhook by ID.
|
|
4415
|
+
* @returns WebhookResponse
|
|
4416
|
+
* @throws ApiError
|
|
4417
|
+
*/
|
|
4418
|
+
deactivateWebhook({ id, }: {
|
|
4419
|
+
/**
|
|
4420
|
+
* The webhook identifier.
|
|
4421
|
+
*/
|
|
4422
|
+
id: string;
|
|
4423
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4424
|
+
/**
|
|
4425
|
+
* Update a webhook
|
|
4426
|
+
* Updates an existing webhook.
|
|
4427
|
+
* @returns WebhookResponse
|
|
4428
|
+
* @throws ApiError
|
|
4429
|
+
*/
|
|
4430
|
+
updateWebhook({ id, requestBody, }: {
|
|
4431
|
+
/**
|
|
4432
|
+
* The webhook identifier.
|
|
4433
|
+
*/
|
|
4434
|
+
id: string;
|
|
4435
|
+
requestBody: UpdateWebhookRequest;
|
|
4436
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Generate a shared secret
|
|
4439
|
+
* Generates a new shared secret.
|
|
4440
|
+
* @returns SharedSecretsResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4444
|
+
/**
|
|
4445
|
+
* Get a shared secret
|
|
4446
|
+
* Get a previously generated shared secret.
|
|
4447
|
+
* @returns SharedSecretsResponse
|
|
4448
|
+
* @throws ApiError
|
|
4449
|
+
*/
|
|
4450
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
3761
4451
|
}
|
|
3762
4452
|
|
|
3763
4453
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3764
4454
|
declare class Glacier {
|
|
4455
|
+
readonly default: DefaultService;
|
|
3765
4456
|
readonly evmBalances: EvmBalancesService;
|
|
3766
4457
|
readonly evmBlocks: EvmBlocksService;
|
|
3767
4458
|
readonly evmChains: EvmChainsService;
|
|
@@ -3777,6 +4468,8 @@ declare class Glacier {
|
|
|
3777
4468
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3778
4469
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3779
4470
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4471
|
+
readonly teleporter: TeleporterService;
|
|
4472
|
+
readonly webhooks: WebhooksService;
|
|
3780
4473
|
readonly request: BaseHttpRequest;
|
|
3781
4474
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3782
4475
|
}
|
|
@@ -3798,4 +4491,4 @@ declare class ApiError extends Error {
|
|
|
3798
4491
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3799
4492
|
}
|
|
3800
4493
|
|
|
3801
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4494
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|