@avalabs/glacier-sdk 2.8.0-canary.f19144b.0 → 2.8.0-canary.f220003.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 +1527 -668
- package/dist/index.js +540 -119
- package/esm/generated/Glacier.d.ts +10 -0
- package/esm/generated/Glacier.js +15 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -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 +2 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -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/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- 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 +2 -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/ListContractsResponse.d.ts +1 -1
- 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 +3 -2
- 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 +13 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -4
- package/esm/generated/models/PChainTransactionType.js +8 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- 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 +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -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 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
- 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/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -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/UnknownContract.d.ts +0 -1
- 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/ValidatorHealthDetails.d.ts +20 -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 +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -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 +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
- package/esm/generated/services/PrimaryNetworkService.js +26 -14
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -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 +42 -3
- package/esm/index.js +29 -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;
|
|
@@ -680,13 +687,16 @@ type GetChainResponse = {
|
|
|
680
687
|
utilityAddresses?: UtilityAddresses;
|
|
681
688
|
networkToken: NetworkToken;
|
|
682
689
|
chainLogoUri?: string;
|
|
690
|
+
private?: boolean;
|
|
691
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
683
692
|
};
|
|
684
693
|
|
|
694
|
+
declare enum GlacierApiFeature {
|
|
695
|
+
NFT_INDEXING = "nftIndexing"
|
|
696
|
+
}
|
|
697
|
+
|
|
685
698
|
type ChainInfo = {
|
|
686
699
|
chainId: string;
|
|
687
|
-
/**
|
|
688
|
-
* 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.
|
|
689
|
-
*/
|
|
690
700
|
status: ChainStatus;
|
|
691
701
|
chainName: string;
|
|
692
702
|
description: string;
|
|
@@ -701,6 +711,8 @@ type ChainInfo = {
|
|
|
701
711
|
utilityAddresses?: UtilityAddresses;
|
|
702
712
|
networkToken: NetworkToken;
|
|
703
713
|
chainLogoUri?: string;
|
|
714
|
+
private?: boolean;
|
|
715
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
704
716
|
};
|
|
705
717
|
|
|
706
718
|
type ListChainsResponse = {
|
|
@@ -721,11 +733,15 @@ declare class EvmChainsService {
|
|
|
721
733
|
* @returns ListChainsResponse
|
|
722
734
|
* @throws ApiError
|
|
723
735
|
*/
|
|
724
|
-
supportedChains({ network, }: {
|
|
736
|
+
supportedChains({ network, feature, }: {
|
|
725
737
|
/**
|
|
726
738
|
* mainnet or testnet.
|
|
727
739
|
*/
|
|
728
740
|
network?: NetworkType;
|
|
741
|
+
/**
|
|
742
|
+
* Filter by feature.
|
|
743
|
+
*/
|
|
744
|
+
feature?: GlacierApiFeature;
|
|
729
745
|
}): CancelablePromise<ListChainsResponse>;
|
|
730
746
|
/**
|
|
731
747
|
* Get chain information
|
|
@@ -735,163 +751,479 @@ declare class EvmChainsService {
|
|
|
735
751
|
*/
|
|
736
752
|
getChainInfo({ chainId, }: {
|
|
737
753
|
/**
|
|
738
|
-
* 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.
|
|
739
755
|
*/
|
|
740
756
|
chainId: string;
|
|
741
757
|
}): CancelablePromise<GetChainResponse>;
|
|
742
758
|
}
|
|
743
759
|
|
|
744
|
-
type
|
|
760
|
+
type ImageAsset = {
|
|
761
|
+
assetId?: string;
|
|
745
762
|
/**
|
|
746
|
-
*
|
|
763
|
+
* OUTPUT ONLY
|
|
747
764
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
765
|
+
imageUri?: string;
|
|
753
766
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
767
|
+
|
|
768
|
+
type PricingProviders = {
|
|
769
|
+
coingeckoCoinId?: string;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
declare enum ResourceLinkType {
|
|
773
|
+
BLOG = "Blog",
|
|
774
|
+
COIN_GECKO = "CoinGecko",
|
|
775
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
776
|
+
DISCORD = "Discord",
|
|
777
|
+
DOCUMENTATION = "Documentation",
|
|
778
|
+
FACEBOOK = "Facebook",
|
|
779
|
+
GITHUB = "Github",
|
|
780
|
+
INSTAGRAM = "Instagram",
|
|
781
|
+
LINKED_IN = "LinkedIn",
|
|
782
|
+
MEDIUM = "Medium",
|
|
783
|
+
REDDIT = "Reddit",
|
|
784
|
+
SUPPORT = "Support",
|
|
785
|
+
TELEGRAM = "Telegram",
|
|
786
|
+
TIK_TOK = "TikTok",
|
|
787
|
+
TWITTER = "Twitter",
|
|
788
|
+
WEBSITE = "Website",
|
|
789
|
+
WHITEPAPER = "Whitepaper",
|
|
790
|
+
YOUTUBE = "Youtube"
|
|
758
791
|
}
|
|
759
792
|
|
|
760
|
-
type
|
|
793
|
+
type ResourceLink = {
|
|
794
|
+
type: ResourceLinkType;
|
|
795
|
+
url: string;
|
|
796
|
+
};
|
|
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>;
|
|
761
807
|
/**
|
|
762
808
|
* The contract name.
|
|
763
809
|
*/
|
|
764
|
-
name
|
|
810
|
+
name: string;
|
|
811
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
812
|
/**
|
|
766
813
|
* The contract symbol.
|
|
767
814
|
*/
|
|
768
|
-
symbol
|
|
769
|
-
|
|
770
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
771
|
-
*/
|
|
772
|
-
decimals?: number;
|
|
773
|
-
/**
|
|
774
|
-
* The logo uri for the address.
|
|
775
|
-
*/
|
|
776
|
-
logoUri?: string;
|
|
777
|
-
/**
|
|
778
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
779
|
-
*/
|
|
780
|
-
address: string;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
type Erc1155TransferDetails = {
|
|
784
|
-
from: RichAddress;
|
|
785
|
-
to: RichAddress;
|
|
786
|
-
logIndex: number;
|
|
787
|
-
value: string;
|
|
788
|
-
erc1155Token: Erc1155Token;
|
|
815
|
+
symbol: string;
|
|
816
|
+
pricingProviders?: PricingProviders;
|
|
789
817
|
};
|
|
818
|
+
declare namespace ContractSubmissionErc1155 {
|
|
819
|
+
enum ercType {
|
|
820
|
+
ERC_1155 = "ERC-1155"
|
|
821
|
+
}
|
|
822
|
+
}
|
|
790
823
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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>;
|
|
796
833
|
/**
|
|
797
834
|
* The contract name.
|
|
798
835
|
*/
|
|
799
836
|
name: string;
|
|
837
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
838
|
/**
|
|
801
839
|
* The contract symbol.
|
|
802
840
|
*/
|
|
803
841
|
symbol: string;
|
|
804
|
-
|
|
805
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
806
|
-
*/
|
|
807
|
-
decimals: number;
|
|
808
|
-
/**
|
|
809
|
-
* The logo uri for the address.
|
|
810
|
-
*/
|
|
811
|
-
logoUri?: string;
|
|
812
|
-
ercType: Erc20Token.ercType;
|
|
813
|
-
/**
|
|
814
|
-
* The token price, if available.
|
|
815
|
-
*/
|
|
816
|
-
price?: Money;
|
|
842
|
+
pricingProviders?: PricingProviders;
|
|
817
843
|
};
|
|
818
|
-
declare namespace
|
|
844
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
845
|
enum ercType {
|
|
820
846
|
ERC_20 = "ERC-20"
|
|
821
847
|
}
|
|
822
848
|
}
|
|
823
849
|
|
|
824
|
-
type
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
835
|
-
*/
|
|
836
|
-
address: string;
|
|
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>;
|
|
837
859
|
/**
|
|
838
860
|
* The contract name.
|
|
839
861
|
*/
|
|
840
862
|
name: string;
|
|
863
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
864
|
/**
|
|
842
865
|
* The contract symbol.
|
|
843
866
|
*/
|
|
844
867
|
symbol: string;
|
|
845
|
-
ercType: Erc721Token.ercType;
|
|
846
|
-
tokenId: string;
|
|
847
|
-
tokenUri: string;
|
|
848
|
-
metadata: Erc721TokenMetadata;
|
|
849
|
-
/**
|
|
850
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
851
|
-
*/
|
|
852
|
-
ownerAddress?: string;
|
|
853
868
|
};
|
|
854
|
-
declare namespace
|
|
869
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
870
|
enum ercType {
|
|
856
871
|
ERC_721 = "ERC-721"
|
|
857
872
|
}
|
|
858
873
|
}
|
|
859
874
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
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;
|
|
865
889
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
890
|
+
declare namespace ContractSubmissionUnknown {
|
|
891
|
+
enum ercType {
|
|
892
|
+
UNKNOWN = "UNKNOWN"
|
|
893
|
+
}
|
|
871
894
|
}
|
|
872
895
|
|
|
873
|
-
type
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
896
|
+
type ContractSubmissionBody = {
|
|
897
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
type ContractDeploymentDetails = {
|
|
901
|
+
txHash: string;
|
|
878
902
|
/**
|
|
879
|
-
* The
|
|
903
|
+
* The address that initiated the transaction which deployed this contract.
|
|
880
904
|
*/
|
|
881
|
-
|
|
905
|
+
deployerAddress: string;
|
|
882
906
|
/**
|
|
883
|
-
* The contract
|
|
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.
|
|
884
908
|
*/
|
|
885
|
-
|
|
909
|
+
deployerContractAddress?: string;
|
|
886
910
|
};
|
|
887
911
|
|
|
888
|
-
type
|
|
912
|
+
type Erc1155Contract = {
|
|
889
913
|
/**
|
|
890
|
-
* The
|
|
914
|
+
* The contract name.
|
|
891
915
|
*/
|
|
892
|
-
|
|
916
|
+
name?: string;
|
|
917
|
+
description?: string;
|
|
918
|
+
officialSite?: string;
|
|
919
|
+
email?: string;
|
|
920
|
+
logoAsset?: ImageAsset;
|
|
921
|
+
bannerAsset?: ImageAsset;
|
|
922
|
+
color?: string;
|
|
923
|
+
resourceLinks?: Array<ResourceLink>;
|
|
924
|
+
tags?: Array<string>;
|
|
893
925
|
/**
|
|
894
|
-
*
|
|
926
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
927
|
+
*/
|
|
928
|
+
address: string;
|
|
929
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
930
|
+
ercType: Erc1155Contract.ercType;
|
|
931
|
+
/**
|
|
932
|
+
* The contract symbol.
|
|
933
|
+
*/
|
|
934
|
+
symbol?: string;
|
|
935
|
+
pricingProviders?: PricingProviders;
|
|
936
|
+
};
|
|
937
|
+
declare namespace Erc1155Contract {
|
|
938
|
+
enum ercType {
|
|
939
|
+
ERC_1155 = "ERC-1155"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
type Erc20Contract = {
|
|
944
|
+
/**
|
|
945
|
+
* The contract name.
|
|
946
|
+
*/
|
|
947
|
+
name?: string;
|
|
948
|
+
description?: string;
|
|
949
|
+
officialSite?: string;
|
|
950
|
+
email?: string;
|
|
951
|
+
logoAsset?: ImageAsset;
|
|
952
|
+
bannerAsset?: ImageAsset;
|
|
953
|
+
color?: string;
|
|
954
|
+
resourceLinks?: Array<ResourceLink>;
|
|
955
|
+
tags?: Array<string>;
|
|
956
|
+
/**
|
|
957
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
958
|
+
*/
|
|
959
|
+
address: string;
|
|
960
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
961
|
+
ercType: Erc20Contract.ercType;
|
|
962
|
+
/**
|
|
963
|
+
* The contract symbol.
|
|
964
|
+
*/
|
|
965
|
+
symbol?: string;
|
|
966
|
+
/**
|
|
967
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
968
|
+
*/
|
|
969
|
+
decimals: number;
|
|
970
|
+
pricingProviders?: PricingProviders;
|
|
971
|
+
};
|
|
972
|
+
declare namespace Erc20Contract {
|
|
973
|
+
enum ercType {
|
|
974
|
+
ERC_20 = "ERC-20"
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
type Erc721Contract = {
|
|
979
|
+
/**
|
|
980
|
+
* The contract name.
|
|
981
|
+
*/
|
|
982
|
+
name?: string;
|
|
983
|
+
description?: string;
|
|
984
|
+
officialSite?: string;
|
|
985
|
+
email?: string;
|
|
986
|
+
logoAsset?: ImageAsset;
|
|
987
|
+
bannerAsset?: ImageAsset;
|
|
988
|
+
color?: string;
|
|
989
|
+
resourceLinks?: Array<ResourceLink>;
|
|
990
|
+
tags?: Array<string>;
|
|
991
|
+
/**
|
|
992
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
993
|
+
*/
|
|
994
|
+
address: string;
|
|
995
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
996
|
+
ercType: Erc721Contract.ercType;
|
|
997
|
+
/**
|
|
998
|
+
* The contract symbol.
|
|
999
|
+
*/
|
|
1000
|
+
symbol?: string;
|
|
1001
|
+
};
|
|
1002
|
+
declare namespace Erc721Contract {
|
|
1003
|
+
enum ercType {
|
|
1004
|
+
ERC_721 = "ERC-721"
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
type UnknownContract = {
|
|
1009
|
+
/**
|
|
1010
|
+
* The contract name.
|
|
1011
|
+
*/
|
|
1012
|
+
name?: string;
|
|
1013
|
+
description?: string;
|
|
1014
|
+
officialSite?: string;
|
|
1015
|
+
email?: string;
|
|
1016
|
+
logoAsset?: ImageAsset;
|
|
1017
|
+
bannerAsset?: ImageAsset;
|
|
1018
|
+
color?: string;
|
|
1019
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1020
|
+
tags?: Array<string>;
|
|
1021
|
+
/**
|
|
1022
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1023
|
+
*/
|
|
1024
|
+
address: string;
|
|
1025
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1026
|
+
ercType: UnknownContract.ercType;
|
|
1027
|
+
};
|
|
1028
|
+
declare namespace UnknownContract {
|
|
1029
|
+
enum ercType {
|
|
1030
|
+
UNKNOWN = "UNKNOWN"
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
type UpdateContractResponse = {
|
|
1035
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
declare class EvmContractsService {
|
|
1039
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1040
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1041
|
+
/**
|
|
1042
|
+
* Get contract metadata
|
|
1043
|
+
* Gets metadata about the contract at the given address.
|
|
1044
|
+
* @returns any
|
|
1045
|
+
* @throws ApiError
|
|
1046
|
+
*/
|
|
1047
|
+
getContractMetadata({ chainId, address, }: {
|
|
1048
|
+
/**
|
|
1049
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1050
|
+
*/
|
|
1051
|
+
chainId: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Contract address on the relevant chain.
|
|
1054
|
+
*/
|
|
1055
|
+
address: string;
|
|
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>;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
type Erc1155Token = {
|
|
1077
|
+
/**
|
|
1078
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1079
|
+
*/
|
|
1080
|
+
address: string;
|
|
1081
|
+
ercType: Erc1155Token.ercType;
|
|
1082
|
+
tokenId: string;
|
|
1083
|
+
tokenUri: string;
|
|
1084
|
+
metadata: Erc1155TokenMetadata;
|
|
1085
|
+
};
|
|
1086
|
+
declare namespace Erc1155Token {
|
|
1087
|
+
enum ercType {
|
|
1088
|
+
ERC_1155 = "ERC-1155"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
type RichAddress = {
|
|
1093
|
+
/**
|
|
1094
|
+
* The contract name.
|
|
1095
|
+
*/
|
|
1096
|
+
name?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* The contract symbol.
|
|
1099
|
+
*/
|
|
1100
|
+
symbol?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1103
|
+
*/
|
|
1104
|
+
decimals?: number;
|
|
1105
|
+
/**
|
|
1106
|
+
* The logo uri for the address.
|
|
1107
|
+
*/
|
|
1108
|
+
logoUri?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1111
|
+
*/
|
|
1112
|
+
address: string;
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
type Erc1155TransferDetails = {
|
|
1116
|
+
from: RichAddress;
|
|
1117
|
+
to: RichAddress;
|
|
1118
|
+
logIndex: number;
|
|
1119
|
+
value: string;
|
|
1120
|
+
erc1155Token: Erc1155Token;
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1123
|
+
type Erc20Token = {
|
|
1124
|
+
/**
|
|
1125
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1126
|
+
*/
|
|
1127
|
+
address: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* The contract name.
|
|
1130
|
+
*/
|
|
1131
|
+
name: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* The contract symbol.
|
|
1134
|
+
*/
|
|
1135
|
+
symbol: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1138
|
+
*/
|
|
1139
|
+
decimals: number;
|
|
1140
|
+
/**
|
|
1141
|
+
* The logo uri for the address.
|
|
1142
|
+
*/
|
|
1143
|
+
logoUri?: string;
|
|
1144
|
+
ercType: Erc20Token.ercType;
|
|
1145
|
+
/**
|
|
1146
|
+
* The token price, if available.
|
|
1147
|
+
*/
|
|
1148
|
+
price?: Money;
|
|
1149
|
+
};
|
|
1150
|
+
declare namespace Erc20Token {
|
|
1151
|
+
enum ercType {
|
|
1152
|
+
ERC_20 = "ERC-20"
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
type Erc20TransferDetails = {
|
|
1157
|
+
from: RichAddress;
|
|
1158
|
+
to: RichAddress;
|
|
1159
|
+
logIndex: number;
|
|
1160
|
+
value: string;
|
|
1161
|
+
erc20Token: Erc20Token;
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
type Erc721Token = {
|
|
1165
|
+
/**
|
|
1166
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1167
|
+
*/
|
|
1168
|
+
address: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* The contract name.
|
|
1171
|
+
*/
|
|
1172
|
+
name: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* The contract symbol.
|
|
1175
|
+
*/
|
|
1176
|
+
symbol: string;
|
|
1177
|
+
ercType: Erc721Token.ercType;
|
|
1178
|
+
tokenId: string;
|
|
1179
|
+
tokenUri: string;
|
|
1180
|
+
metadata: Erc721TokenMetadata;
|
|
1181
|
+
/**
|
|
1182
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1183
|
+
*/
|
|
1184
|
+
ownerAddress?: string;
|
|
1185
|
+
};
|
|
1186
|
+
declare namespace Erc721Token {
|
|
1187
|
+
enum ercType {
|
|
1188
|
+
ERC_721 = "ERC-721"
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
type Erc721TransferDetails = {
|
|
1193
|
+
from: RichAddress;
|
|
1194
|
+
to: RichAddress;
|
|
1195
|
+
logIndex: number;
|
|
1196
|
+
erc721Token: Erc721Token;
|
|
1197
|
+
};
|
|
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
|
+
*/
|
|
1202
|
+
declare enum TransactionMethodType {
|
|
1203
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1204
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1205
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
type Method = {
|
|
1209
|
+
callType: TransactionMethodType;
|
|
1210
|
+
/**
|
|
1211
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1212
|
+
*/
|
|
1213
|
+
methodHash: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1216
|
+
*/
|
|
1217
|
+
methodName?: string;
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
type FullNativeTransactionDetails = {
|
|
1221
|
+
/**
|
|
1222
|
+
* The block number on the chain.
|
|
1223
|
+
*/
|
|
1224
|
+
blockNumber: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* The block finality timestamp.
|
|
895
1227
|
*/
|
|
896
1228
|
blockTimestamp: number;
|
|
897
1229
|
/**
|
|
@@ -999,182 +1331,12 @@ type GetTransactionResponse = {
|
|
|
999
1331
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
1332
|
};
|
|
1001
1333
|
|
|
1002
|
-
type ContractDeploymentDetails = {
|
|
1003
|
-
txHash: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* The address that initiated the transaction which deployed this contract.
|
|
1006
|
-
*/
|
|
1007
|
-
deployerAddress: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* 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.
|
|
1010
|
-
*/
|
|
1011
|
-
deployerContractAddress?: string;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
assetId?: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* OUTPUT ONLY
|
|
1018
|
-
*/
|
|
1019
|
-
imageUri?: string;
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
declare enum ResourceLinkType {
|
|
1023
|
-
BLOG = "Blog",
|
|
1024
|
-
COIN_GECKO = "CoinGecko",
|
|
1025
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1026
|
-
DISCORD = "Discord",
|
|
1027
|
-
DOCUMENTATION = "Documentation",
|
|
1028
|
-
FACEBOOK = "Facebook",
|
|
1029
|
-
GITHUB = "Github",
|
|
1030
|
-
INSTAGRAM = "Instagram",
|
|
1031
|
-
LINKED_IN = "LinkedIn",
|
|
1032
|
-
MEDIUM = "Medium",
|
|
1033
|
-
REDDIT = "Reddit",
|
|
1034
|
-
SUPPORT = "Support",
|
|
1035
|
-
TELEGRAM = "Telegram",
|
|
1036
|
-
TIK_TOK = "TikTok",
|
|
1037
|
-
TWITTER = "Twitter",
|
|
1038
|
-
WEBSITE = "Website",
|
|
1039
|
-
WHITEPAPER = "Whitepaper",
|
|
1040
|
-
YOUTUBE = "Youtube"
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
type ResourceLink = {
|
|
1044
|
-
type: ResourceLinkType;
|
|
1045
|
-
url: string;
|
|
1046
|
-
};
|
|
1047
|
-
|
|
1048
|
-
type Erc1155Contract = {
|
|
1049
|
-
/**
|
|
1050
|
-
* The contract name.
|
|
1051
|
-
*/
|
|
1052
|
-
name?: string;
|
|
1053
|
-
description?: string;
|
|
1054
|
-
officialSite?: string;
|
|
1055
|
-
email?: string;
|
|
1056
|
-
logoAsset?: ImageAsset;
|
|
1057
|
-
bannerAsset?: ImageAsset;
|
|
1058
|
-
color?: string;
|
|
1059
|
-
coingeckoCoinId?: string;
|
|
1060
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1061
|
-
tags?: Array<string>;
|
|
1062
|
-
/**
|
|
1063
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1064
|
-
*/
|
|
1065
|
-
address: string;
|
|
1066
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1067
|
-
ercType: Erc1155Contract.ercType;
|
|
1068
|
-
/**
|
|
1069
|
-
* The contract symbol.
|
|
1070
|
-
*/
|
|
1071
|
-
symbol?: string;
|
|
1072
|
-
};
|
|
1073
|
-
declare namespace Erc1155Contract {
|
|
1074
|
-
enum ercType {
|
|
1075
|
-
ERC_1155 = "ERC-1155"
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
type Erc20Contract = {
|
|
1080
|
-
/**
|
|
1081
|
-
* The contract name.
|
|
1082
|
-
*/
|
|
1083
|
-
name?: string;
|
|
1084
|
-
description?: string;
|
|
1085
|
-
officialSite?: string;
|
|
1086
|
-
email?: string;
|
|
1087
|
-
logoAsset?: ImageAsset;
|
|
1088
|
-
bannerAsset?: ImageAsset;
|
|
1089
|
-
color?: string;
|
|
1090
|
-
coingeckoCoinId?: string;
|
|
1091
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1092
|
-
tags?: Array<string>;
|
|
1093
|
-
/**
|
|
1094
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1095
|
-
*/
|
|
1096
|
-
address: string;
|
|
1097
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1098
|
-
ercType: Erc20Contract.ercType;
|
|
1099
|
-
/**
|
|
1100
|
-
* The contract symbol.
|
|
1101
|
-
*/
|
|
1102
|
-
symbol?: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1105
|
-
*/
|
|
1106
|
-
decimals: number;
|
|
1107
|
-
};
|
|
1108
|
-
declare namespace Erc20Contract {
|
|
1109
|
-
enum ercType {
|
|
1110
|
-
ERC_20 = "ERC-20"
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
type Erc721Contract = {
|
|
1115
|
-
/**
|
|
1116
|
-
* The contract name.
|
|
1117
|
-
*/
|
|
1118
|
-
name?: string;
|
|
1119
|
-
description?: string;
|
|
1120
|
-
officialSite?: string;
|
|
1121
|
-
email?: string;
|
|
1122
|
-
logoAsset?: ImageAsset;
|
|
1123
|
-
bannerAsset?: ImageAsset;
|
|
1124
|
-
color?: string;
|
|
1125
|
-
coingeckoCoinId?: string;
|
|
1126
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1127
|
-
tags?: Array<string>;
|
|
1128
|
-
/**
|
|
1129
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1130
|
-
*/
|
|
1131
|
-
address: string;
|
|
1132
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1133
|
-
ercType: Erc721Contract.ercType;
|
|
1134
|
-
/**
|
|
1135
|
-
* The contract symbol.
|
|
1136
|
-
*/
|
|
1137
|
-
symbol?: string;
|
|
1138
|
-
};
|
|
1139
|
-
declare namespace Erc721Contract {
|
|
1140
|
-
enum ercType {
|
|
1141
|
-
ERC_721 = "ERC-721"
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
type UnknownContract = {
|
|
1146
|
-
/**
|
|
1147
|
-
* The contract name.
|
|
1148
|
-
*/
|
|
1149
|
-
name?: string;
|
|
1150
|
-
description?: string;
|
|
1151
|
-
officialSite?: string;
|
|
1152
|
-
email?: string;
|
|
1153
|
-
logoAsset?: ImageAsset;
|
|
1154
|
-
bannerAsset?: ImageAsset;
|
|
1155
|
-
color?: string;
|
|
1156
|
-
coingeckoCoinId?: string;
|
|
1157
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1158
|
-
tags?: Array<string>;
|
|
1159
|
-
/**
|
|
1160
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1161
|
-
*/
|
|
1162
|
-
address: string;
|
|
1163
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1164
|
-
ercType: UnknownContract.ercType;
|
|
1165
|
-
};
|
|
1166
|
-
declare namespace UnknownContract {
|
|
1167
|
-
enum ercType {
|
|
1168
|
-
UNKNOWN = "UNKNOWN"
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
1334
|
type ListContractsResponse = {
|
|
1173
1335
|
/**
|
|
1174
1336
|
* 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.
|
|
1175
1337
|
*/
|
|
1176
1338
|
nextPageToken?: string;
|
|
1177
|
-
contracts: Array<(
|
|
1339
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1178
1340
|
};
|
|
1179
1341
|
|
|
1180
1342
|
type Erc1155Transfer = {
|
|
@@ -1404,7 +1566,7 @@ type ListTransfersResponse = {
|
|
|
1404
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.
|
|
1405
1567
|
*/
|
|
1406
1568
|
nextPageToken?: string;
|
|
1407
|
-
transfers:
|
|
1569
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1408
1570
|
};
|
|
1409
1571
|
|
|
1410
1572
|
declare enum SortOrder {
|
|
@@ -1428,7 +1590,7 @@ declare class EvmTransactionsService {
|
|
|
1428
1590
|
*/
|
|
1429
1591
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1430
1592
|
/**
|
|
1431
|
-
* 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.
|
|
1432
1594
|
*/
|
|
1433
1595
|
chainId: string;
|
|
1434
1596
|
/**
|
|
@@ -1446,23 +1608,23 @@ declare class EvmTransactionsService {
|
|
|
1446
1608
|
* @returns ListContractsResponse
|
|
1447
1609
|
* @throws ApiError
|
|
1448
1610
|
*/
|
|
1449
|
-
listContractDeployments({ chainId, address,
|
|
1611
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1450
1612
|
/**
|
|
1451
|
-
* 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.
|
|
1452
1614
|
*/
|
|
1453
1615
|
chainId: string;
|
|
1454
1616
|
/**
|
|
1455
1617
|
* A wallet address.
|
|
1456
1618
|
*/
|
|
1457
1619
|
address: string;
|
|
1458
|
-
/**
|
|
1459
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1460
|
-
*/
|
|
1461
|
-
pageSize?: number;
|
|
1462
1620
|
/**
|
|
1463
1621
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1464
1622
|
*/
|
|
1465
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;
|
|
1466
1628
|
}): CancelablePromise<ListContractsResponse>;
|
|
1467
1629
|
/**
|
|
1468
1630
|
* List ERC transfers
|
|
@@ -1470,25 +1632,31 @@ declare class EvmTransactionsService {
|
|
|
1470
1632
|
* @returns ListTransfersResponse
|
|
1471
1633
|
* @throws ApiError
|
|
1472
1634
|
*/
|
|
1473
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1635
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1474
1636
|
/**
|
|
1475
|
-
* 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.
|
|
1476
1638
|
*/
|
|
1477
1639
|
chainId: string;
|
|
1478
1640
|
/**
|
|
1479
1641
|
* A wallet address.
|
|
1480
1642
|
*/
|
|
1481
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
|
+
*/
|
|
1482
1647
|
startBlock?: number;
|
|
1483
|
-
endBlock?: number;
|
|
1484
1648
|
/**
|
|
1485
|
-
* 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.
|
|
1486
1650
|
*/
|
|
1487
|
-
|
|
1651
|
+
endBlock?: number;
|
|
1488
1652
|
/**
|
|
1489
1653
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1490
1654
|
*/
|
|
1491
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;
|
|
1492
1660
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1493
1661
|
/**
|
|
1494
1662
|
* List transactions
|
|
@@ -1498,24 +1666,30 @@ declare class EvmTransactionsService {
|
|
|
1498
1666
|
* @returns ListTransactionDetailsResponse
|
|
1499
1667
|
* @throws ApiError
|
|
1500
1668
|
*/
|
|
1501
|
-
listTransactions({ chainId, address,
|
|
1669
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1502
1670
|
/**
|
|
1503
|
-
* 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.
|
|
1504
1672
|
*/
|
|
1505
1673
|
chainId: string;
|
|
1506
1674
|
/**
|
|
1507
1675
|
* A wallet address.
|
|
1508
1676
|
*/
|
|
1509
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;
|
|
1510
1682
|
/**
|
|
1511
1683
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1512
1684
|
*/
|
|
1513
1685
|
pageSize?: number;
|
|
1514
1686
|
/**
|
|
1515
|
-
*
|
|
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.
|
|
1516
1688
|
*/
|
|
1517
|
-
pageToken?: string;
|
|
1518
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
|
+
*/
|
|
1519
1693
|
endBlock?: number;
|
|
1520
1694
|
/**
|
|
1521
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.
|
|
@@ -1528,25 +1702,31 @@ declare class EvmTransactionsService {
|
|
|
1528
1702
|
* @returns ListNativeTransactionsResponse
|
|
1529
1703
|
* @throws ApiError
|
|
1530
1704
|
*/
|
|
1531
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1705
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1532
1706
|
/**
|
|
1533
|
-
* 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.
|
|
1534
1708
|
*/
|
|
1535
1709
|
chainId: string;
|
|
1536
1710
|
/**
|
|
1537
1711
|
* A wallet address.
|
|
1538
1712
|
*/
|
|
1539
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
|
+
*/
|
|
1540
1717
|
startBlock?: number;
|
|
1541
|
-
endBlock?: number;
|
|
1542
1718
|
/**
|
|
1543
|
-
* 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.
|
|
1544
1720
|
*/
|
|
1545
|
-
|
|
1721
|
+
endBlock?: number;
|
|
1546
1722
|
/**
|
|
1547
1723
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1548
1724
|
*/
|
|
1549
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;
|
|
1550
1730
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1551
1731
|
/**
|
|
1552
1732
|
* List ERC-20 transfers
|
|
@@ -1554,25 +1734,31 @@ declare class EvmTransactionsService {
|
|
|
1554
1734
|
* @returns ListErc20TransactionsResponse
|
|
1555
1735
|
* @throws ApiError
|
|
1556
1736
|
*/
|
|
1557
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1737
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1558
1738
|
/**
|
|
1559
|
-
* 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.
|
|
1560
1740
|
*/
|
|
1561
1741
|
chainId: string;
|
|
1562
1742
|
/**
|
|
1563
1743
|
* A wallet address.
|
|
1564
1744
|
*/
|
|
1565
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
|
+
*/
|
|
1566
1749
|
startBlock?: number;
|
|
1567
|
-
endBlock?: number;
|
|
1568
1750
|
/**
|
|
1569
|
-
* 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.
|
|
1570
1752
|
*/
|
|
1571
|
-
|
|
1753
|
+
endBlock?: number;
|
|
1572
1754
|
/**
|
|
1573
1755
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1574
1756
|
*/
|
|
1575
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;
|
|
1576
1762
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1577
1763
|
/**
|
|
1578
1764
|
* List ERC-721 transfers
|
|
@@ -1580,25 +1766,31 @@ declare class EvmTransactionsService {
|
|
|
1580
1766
|
* @returns ListErc721TransactionsResponse
|
|
1581
1767
|
* @throws ApiError
|
|
1582
1768
|
*/
|
|
1583
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1769
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1584
1770
|
/**
|
|
1585
|
-
* 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.
|
|
1586
1772
|
*/
|
|
1587
1773
|
chainId: string;
|
|
1588
1774
|
/**
|
|
1589
1775
|
* A wallet address.
|
|
1590
1776
|
*/
|
|
1591
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
|
+
*/
|
|
1592
1781
|
startBlock?: number;
|
|
1593
|
-
endBlock?: number;
|
|
1594
1782
|
/**
|
|
1595
|
-
* 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.
|
|
1596
1784
|
*/
|
|
1597
|
-
|
|
1785
|
+
endBlock?: number;
|
|
1598
1786
|
/**
|
|
1599
1787
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1600
1788
|
*/
|
|
1601
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;
|
|
1602
1794
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1603
1795
|
/**
|
|
1604
1796
|
* List ERC-1155 transfers
|
|
@@ -1606,25 +1798,31 @@ declare class EvmTransactionsService {
|
|
|
1606
1798
|
* @returns ListErc1155TransactionsResponse
|
|
1607
1799
|
* @throws ApiError
|
|
1608
1800
|
*/
|
|
1609
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1801
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1610
1802
|
/**
|
|
1611
|
-
* 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.
|
|
1612
1804
|
*/
|
|
1613
1805
|
chainId: string;
|
|
1614
1806
|
/**
|
|
1615
1807
|
* A wallet address.
|
|
1616
1808
|
*/
|
|
1617
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
|
+
*/
|
|
1618
1813
|
startBlock?: number;
|
|
1619
|
-
endBlock?: number;
|
|
1620
1814
|
/**
|
|
1621
|
-
* 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.
|
|
1622
1816
|
*/
|
|
1623
|
-
|
|
1817
|
+
endBlock?: number;
|
|
1624
1818
|
/**
|
|
1625
1819
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1626
1820
|
*/
|
|
1627
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;
|
|
1628
1826
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1629
1827
|
/**
|
|
1630
1828
|
* List internal transactions
|
|
@@ -1634,25 +1832,31 @@ declare class EvmTransactionsService {
|
|
|
1634
1832
|
* @returns ListInternalTransactionsResponse
|
|
1635
1833
|
* @throws ApiError
|
|
1636
1834
|
*/
|
|
1637
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1835
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1638
1836
|
/**
|
|
1639
|
-
* 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.
|
|
1640
1838
|
*/
|
|
1641
1839
|
chainId: string;
|
|
1642
1840
|
/**
|
|
1643
1841
|
* A wallet address.
|
|
1644
1842
|
*/
|
|
1645
|
-
address: string;
|
|
1843
|
+
address: string;
|
|
1844
|
+
/**
|
|
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.
|
|
1846
|
+
*/
|
|
1646
1847
|
startBlock?: number;
|
|
1647
|
-
endBlock?: number;
|
|
1648
1848
|
/**
|
|
1649
|
-
* The
|
|
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.
|
|
1650
1850
|
*/
|
|
1651
|
-
|
|
1851
|
+
endBlock?: number;
|
|
1652
1852
|
/**
|
|
1653
1853
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1654
1854
|
*/
|
|
1655
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;
|
|
1656
1860
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1657
1861
|
/**
|
|
1658
1862
|
* Get transaction
|
|
@@ -1662,7 +1866,7 @@ declare class EvmTransactionsService {
|
|
|
1662
1866
|
*/
|
|
1663
1867
|
getTransaction({ chainId, txHash, }: {
|
|
1664
1868
|
/**
|
|
1665
|
-
* 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.
|
|
1666
1870
|
*/
|
|
1667
1871
|
chainId: string;
|
|
1668
1872
|
/**
|
|
@@ -1678,7 +1882,7 @@ declare class EvmTransactionsService {
|
|
|
1678
1882
|
*/
|
|
1679
1883
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1680
1884
|
/**
|
|
1681
|
-
* 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.
|
|
1682
1886
|
*/
|
|
1683
1887
|
chainId: string;
|
|
1684
1888
|
/**
|
|
@@ -1692,19 +1896,19 @@ declare class EvmTransactionsService {
|
|
|
1692
1896
|
* @returns ListNativeTransactionsResponse
|
|
1693
1897
|
* @throws ApiError
|
|
1694
1898
|
*/
|
|
1695
|
-
listLatestTransactions({ chainId,
|
|
1899
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1696
1900
|
/**
|
|
1697
|
-
* 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.
|
|
1698
1902
|
*/
|
|
1699
1903
|
chainId: string;
|
|
1700
|
-
/**
|
|
1701
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1702
|
-
*/
|
|
1703
|
-
pageSize?: number;
|
|
1704
1904
|
/**
|
|
1705
1905
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1906
|
*/
|
|
1707
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;
|
|
1708
1912
|
/**
|
|
1709
1913
|
* A status filter for listed transactions.
|
|
1710
1914
|
*/
|
|
@@ -1728,13 +1932,94 @@ declare class HealthCheckService {
|
|
|
1728
1932
|
}>;
|
|
1729
1933
|
}
|
|
1730
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
|
+
|
|
1943
|
+
declare class NfTsService {
|
|
1944
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1945
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1946
|
+
/**
|
|
1947
|
+
* Reindex NFT metadata
|
|
1948
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1949
|
+
* @returns any
|
|
1950
|
+
* @throws ApiError
|
|
1951
|
+
*/
|
|
1952
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1953
|
+
/**
|
|
1954
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1955
|
+
*/
|
|
1956
|
+
chainId: string;
|
|
1957
|
+
/**
|
|
1958
|
+
* Contract address on the relevant chain.
|
|
1959
|
+
*/
|
|
1960
|
+
address: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* TokenId on the contract
|
|
1963
|
+
*/
|
|
1964
|
+
tokenId: string;
|
|
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>;
|
|
1990
|
+
/**
|
|
1991
|
+
* Get token details
|
|
1992
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1993
|
+
* @returns any
|
|
1994
|
+
* @throws ApiError
|
|
1995
|
+
*/
|
|
1996
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1997
|
+
/**
|
|
1998
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1999
|
+
*/
|
|
2000
|
+
chainId: string;
|
|
2001
|
+
/**
|
|
2002
|
+
* Contract address on the relevant chain.
|
|
2003
|
+
*/
|
|
2004
|
+
address: string;
|
|
2005
|
+
/**
|
|
2006
|
+
* TokenId on the contract
|
|
2007
|
+
*/
|
|
2008
|
+
tokenId: string;
|
|
2009
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
1731
2012
|
type EvmNetworkOptions = {
|
|
1732
2013
|
addresses: Array<string>;
|
|
1733
2014
|
includeChains: Array<string>;
|
|
1734
2015
|
};
|
|
1735
2016
|
|
|
2017
|
+
declare enum EVMOperationType {
|
|
2018
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1736
2021
|
type CreateEvmTransactionExportRequest = {
|
|
1737
|
-
type:
|
|
2022
|
+
type: EVMOperationType;
|
|
1738
2023
|
firstDate: string;
|
|
1739
2024
|
lastDate: string;
|
|
1740
2025
|
/**
|
|
@@ -1747,20 +2032,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1747
2032
|
endDate: string;
|
|
1748
2033
|
options: EvmNetworkOptions;
|
|
1749
2034
|
};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
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"
|
|
1754
2040
|
}
|
|
1755
2041
|
|
|
1756
2042
|
type PrimaryNetworkOptions = {
|
|
1757
|
-
addresses
|
|
2043
|
+
addresses?: Array<string>;
|
|
1758
2044
|
cChainEvmAddresses?: Array<string>;
|
|
1759
2045
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1760
2046
|
};
|
|
1761
2047
|
|
|
1762
2048
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1763
|
-
type:
|
|
2049
|
+
type: PrimaryNetworkOperationType;
|
|
1764
2050
|
firstDate: string;
|
|
1765
2051
|
lastDate: string;
|
|
1766
2052
|
/**
|
|
@@ -1773,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1773
2059
|
endDate: string;
|
|
1774
2060
|
options: PrimaryNetworkOptions;
|
|
1775
2061
|
};
|
|
1776
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1777
|
-
enum type {
|
|
1778
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
2062
|
|
|
1782
2063
|
declare enum OperationStatus {
|
|
1783
2064
|
RUNNING = "RUNNING",
|
|
@@ -1787,8 +2068,10 @@ declare enum OperationStatus {
|
|
|
1787
2068
|
}
|
|
1788
2069
|
|
|
1789
2070
|
declare enum OperationType {
|
|
1790
|
-
|
|
1791
|
-
|
|
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"
|
|
1792
2075
|
}
|
|
1793
2076
|
|
|
1794
2077
|
declare enum OperationStatusCode {
|
|
@@ -1822,17 +2105,6 @@ type OperationStatusResponse = {
|
|
|
1822
2105
|
declare class OperationsService {
|
|
1823
2106
|
readonly httpRequest: BaseHttpRequest;
|
|
1824
2107
|
constructor(httpRequest: BaseHttpRequest);
|
|
1825
|
-
/**
|
|
1826
|
-
* Create transaction export operation
|
|
1827
|
-
* Trigger a transaction export operation with given parameters.
|
|
1828
|
-
*
|
|
1829
|
-
* 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.
|
|
1830
|
-
* @returns OperationStatusResponse
|
|
1831
|
-
* @throws ApiError
|
|
1832
|
-
*/
|
|
1833
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1834
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1835
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1836
2108
|
/**
|
|
1837
2109
|
* Get operation
|
|
1838
2110
|
* Gets operation details for the given operation id.
|
|
@@ -1845,6 +2117,17 @@ declare class OperationsService {
|
|
|
1845
2117
|
*/
|
|
1846
2118
|
operationId: string;
|
|
1847
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>;
|
|
1848
2131
|
}
|
|
1849
2132
|
|
|
1850
2133
|
declare enum BlockchainIds {
|
|
@@ -1913,39 +2196,57 @@ type ListBlockchainsResponse = {
|
|
|
1913
2196
|
|
|
1914
2197
|
type ActiveDelegatorDetails = {
|
|
1915
2198
|
txHash: string;
|
|
2199
|
+
nodeId: string;
|
|
1916
2200
|
rewardAddresses: Array<string>;
|
|
1917
2201
|
amountDelegated: string;
|
|
1918
2202
|
delegationFee: string;
|
|
1919
2203
|
startTimestamp: number;
|
|
1920
2204
|
endTimestamp: number;
|
|
1921
|
-
delegationStatus: DelegationStatusType;
|
|
1922
2205
|
estimatedGrossReward: string;
|
|
1923
2206
|
estimatedNetReward: string;
|
|
2207
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1924
2208
|
};
|
|
2209
|
+
declare namespace ActiveDelegatorDetails {
|
|
2210
|
+
enum delegationStatus {
|
|
2211
|
+
ACTIVE = "active"
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
1925
2214
|
|
|
1926
2215
|
type CompletedDelegatorDetails = {
|
|
1927
2216
|
txHash: string;
|
|
2217
|
+
nodeId: string;
|
|
1928
2218
|
rewardAddresses: Array<string>;
|
|
1929
2219
|
amountDelegated: string;
|
|
1930
2220
|
delegationFee: string;
|
|
1931
2221
|
startTimestamp: number;
|
|
1932
2222
|
endTimestamp: number;
|
|
1933
|
-
delegationStatus: DelegationStatusType;
|
|
1934
2223
|
grossReward: string;
|
|
1935
2224
|
netReward: string;
|
|
2225
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1936
2226
|
};
|
|
2227
|
+
declare namespace CompletedDelegatorDetails {
|
|
2228
|
+
enum delegationStatus {
|
|
2229
|
+
COMPLETED = "completed"
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
1937
2232
|
|
|
1938
2233
|
type PendingDelegatorDetails = {
|
|
1939
2234
|
txHash: string;
|
|
2235
|
+
nodeId: string;
|
|
1940
2236
|
rewardAddresses: Array<string>;
|
|
1941
2237
|
amountDelegated: string;
|
|
1942
2238
|
delegationFee: string;
|
|
1943
2239
|
startTimestamp: number;
|
|
1944
2240
|
endTimestamp: number;
|
|
1945
|
-
delegationStatus: DelegationStatusType;
|
|
1946
2241
|
estimatedGrossReward: string;
|
|
1947
2242
|
estimatedNetReward: string;
|
|
2243
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1948
2244
|
};
|
|
2245
|
+
declare namespace PendingDelegatorDetails {
|
|
2246
|
+
enum delegationStatus {
|
|
2247
|
+
PENDING = "pending"
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
1949
2250
|
|
|
1950
2251
|
type ListDelegatorDetailsResponse = {
|
|
1951
2252
|
/**
|
|
@@ -1962,13 +2263,44 @@ type BlockchainInfo = {
|
|
|
1962
2263
|
blockchainId: string;
|
|
1963
2264
|
};
|
|
1964
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
|
+
|
|
1965
2281
|
type Subnet = {
|
|
1966
2282
|
createBlockTimestamp: number;
|
|
1967
2283
|
createBlockIndex: string;
|
|
1968
2284
|
subnetId: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
1969
2289
|
ownerAddresses: Array<string>;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
1970
2294
|
threshold: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2297
|
+
* @deprecated
|
|
2298
|
+
*/
|
|
1971
2299
|
locktime: number;
|
|
2300
|
+
/**
|
|
2301
|
+
* Latest subnet owner details for this Subnet.
|
|
2302
|
+
*/
|
|
2303
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
1972
2304
|
blockchains: Array<BlockchainInfo>;
|
|
1973
2305
|
};
|
|
1974
2306
|
|
|
@@ -1983,49 +2315,104 @@ type ListSubnetsResponse = {
|
|
|
1983
2315
|
type Rewards = {
|
|
1984
2316
|
validationRewardAmount: string;
|
|
1985
2317
|
delegationRewardAmount: string;
|
|
2318
|
+
rewardAddresses?: Array<string>;
|
|
2319
|
+
rewardTxHash?: string;
|
|
1986
2320
|
};
|
|
1987
2321
|
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
2322
|
+
type ValidatorHealthDetails = {
|
|
2323
|
+
/**
|
|
2324
|
+
* Percent of requests responded to in last polling.
|
|
2325
|
+
*/
|
|
2326
|
+
reachabilityPercent: number;
|
|
2327
|
+
/**
|
|
2328
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2329
|
+
*/
|
|
2330
|
+
benchedPChainRequestsPercent: number;
|
|
2331
|
+
/**
|
|
2332
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2333
|
+
*/
|
|
2334
|
+
benchedXChainRequestsPercent: number;
|
|
2335
|
+
/**
|
|
2336
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2337
|
+
*/
|
|
2338
|
+
benchedCChainRequestsPercent: number;
|
|
2339
|
+
};
|
|
1993
2340
|
|
|
1994
2341
|
type ActiveValidatorDetails = {
|
|
2342
|
+
txHash: string;
|
|
1995
2343
|
nodeId: string;
|
|
2344
|
+
subnetId: string;
|
|
1996
2345
|
amountStaked: string;
|
|
1997
|
-
delegationFee
|
|
2346
|
+
delegationFee?: string;
|
|
1998
2347
|
startTimestamp: number;
|
|
1999
2348
|
endTimestamp: number;
|
|
2000
|
-
validationStatus: ValidationStatusType;
|
|
2001
2349
|
stakePercentage: number;
|
|
2002
2350
|
delegatorCount: number;
|
|
2003
|
-
amountDelegated
|
|
2351
|
+
amountDelegated?: string;
|
|
2004
2352
|
uptimePerformance: number;
|
|
2005
|
-
avalancheGoVersion
|
|
2006
|
-
delegationCapacity
|
|
2353
|
+
avalancheGoVersion?: string;
|
|
2354
|
+
delegationCapacity?: string;
|
|
2007
2355
|
potentialRewards: Rewards;
|
|
2356
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2357
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2008
2358
|
};
|
|
2359
|
+
declare namespace ActiveValidatorDetails {
|
|
2360
|
+
enum validationStatus {
|
|
2361
|
+
ACTIVE = "active"
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2009
2364
|
|
|
2010
2365
|
type CompletedValidatorDetails = {
|
|
2366
|
+
txHash: string;
|
|
2011
2367
|
nodeId: string;
|
|
2368
|
+
subnetId: string;
|
|
2012
2369
|
amountStaked: string;
|
|
2013
|
-
delegationFee
|
|
2370
|
+
delegationFee?: string;
|
|
2014
2371
|
startTimestamp: number;
|
|
2015
2372
|
endTimestamp: number;
|
|
2016
|
-
validationStatus: ValidationStatusType;
|
|
2017
2373
|
delegatorCount: number;
|
|
2018
2374
|
rewards: Rewards;
|
|
2375
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2019
2376
|
};
|
|
2377
|
+
declare namespace CompletedValidatorDetails {
|
|
2378
|
+
enum validationStatus {
|
|
2379
|
+
COMPLETED = "completed"
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2020
2382
|
|
|
2021
2383
|
type PendingValidatorDetails = {
|
|
2384
|
+
txHash: string;
|
|
2022
2385
|
nodeId: string;
|
|
2386
|
+
subnetId: string;
|
|
2023
2387
|
amountStaked: string;
|
|
2024
|
-
delegationFee
|
|
2388
|
+
delegationFee?: string;
|
|
2025
2389
|
startTimestamp: number;
|
|
2026
2390
|
endTimestamp: number;
|
|
2027
|
-
validationStatus:
|
|
2391
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2028
2392
|
};
|
|
2393
|
+
declare namespace PendingValidatorDetails {
|
|
2394
|
+
enum validationStatus {
|
|
2395
|
+
PENDING = "pending"
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
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
|
+
}
|
|
2029
2416
|
|
|
2030
2417
|
type ListValidatorDetailsResponse = {
|
|
2031
2418
|
/**
|
|
@@ -2033,9 +2420,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2033
2420
|
*/
|
|
2034
2421
|
nextPageToken?: string;
|
|
2035
2422
|
/**
|
|
2036
|
-
* The list of
|
|
2423
|
+
* The list of validator Details.
|
|
2037
2424
|
*/
|
|
2038
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2425
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2039
2426
|
};
|
|
2040
2427
|
|
|
2041
2428
|
declare enum Network {
|
|
@@ -2043,6 +2430,29 @@ declare enum Network {
|
|
|
2043
2430
|
FUJI = "fuji"
|
|
2044
2431
|
}
|
|
2045
2432
|
|
|
2433
|
+
declare enum ValidationStatusType {
|
|
2434
|
+
COMPLETED = "completed",
|
|
2435
|
+
ACTIVE = "active",
|
|
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"
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2046
2456
|
type XChainAssetDetails = {
|
|
2047
2457
|
/**
|
|
2048
2458
|
* Unique ID for an asset.
|
|
@@ -2060,18 +2470,12 @@ type XChainAssetDetails = {
|
|
|
2060
2470
|
* Denomination of this asset to represent fungibility.
|
|
2061
2471
|
*/
|
|
2062
2472
|
denomination: number;
|
|
2063
|
-
|
|
2064
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2065
|
-
*/
|
|
2066
|
-
type: string;
|
|
2473
|
+
type: PrimaryNetworkAssetType;
|
|
2067
2474
|
/**
|
|
2068
2475
|
* Timestamp in seconds this asset was created on.
|
|
2069
2476
|
*/
|
|
2070
2477
|
createdAtTimestamp: number;
|
|
2071
|
-
|
|
2072
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2073
|
-
*/
|
|
2074
|
-
cap: string;
|
|
2478
|
+
cap: PrimaryNetworkAssetCap;
|
|
2075
2479
|
};
|
|
2076
2480
|
|
|
2077
2481
|
declare enum XChainId {
|
|
@@ -2137,19 +2541,19 @@ declare class PrimaryNetworkService {
|
|
|
2137
2541
|
* @returns ListBlockchainsResponse
|
|
2138
2542
|
* @throws ApiError
|
|
2139
2543
|
*/
|
|
2140
|
-
listBlockchains({ network,
|
|
2544
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2141
2545
|
/**
|
|
2142
2546
|
* Either mainnet or a testnet.
|
|
2143
2547
|
*/
|
|
2144
2548
|
network: Network;
|
|
2145
|
-
/**
|
|
2146
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2147
|
-
*/
|
|
2148
|
-
pageSize?: number;
|
|
2149
2549
|
/**
|
|
2150
2550
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2151
2551
|
*/
|
|
2152
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;
|
|
2153
2557
|
/**
|
|
2154
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.
|
|
2155
2559
|
*/
|
|
@@ -2161,19 +2565,19 @@ declare class PrimaryNetworkService {
|
|
|
2161
2565
|
* @returns ListSubnetsResponse
|
|
2162
2566
|
* @throws ApiError
|
|
2163
2567
|
*/
|
|
2164
|
-
listSubnets({ network,
|
|
2568
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2165
2569
|
/**
|
|
2166
2570
|
* Either mainnet or a testnet.
|
|
2167
2571
|
*/
|
|
2168
2572
|
network: Network;
|
|
2169
|
-
/**
|
|
2170
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2171
|
-
*/
|
|
2172
|
-
pageSize?: number;
|
|
2173
2573
|
/**
|
|
2174
2574
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2175
2575
|
*/
|
|
2176
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;
|
|
2177
2581
|
/**
|
|
2178
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.
|
|
2179
2583
|
*/
|
|
@@ -2185,19 +2589,19 @@ declare class PrimaryNetworkService {
|
|
|
2185
2589
|
* @returns ListValidatorDetailsResponse
|
|
2186
2590
|
* @throws ApiError
|
|
2187
2591
|
*/
|
|
2188
|
-
listValidators({ network,
|
|
2592
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2189
2593
|
/**
|
|
2190
2594
|
* Either mainnet or a testnet.
|
|
2191
2595
|
*/
|
|
2192
2596
|
network: Network;
|
|
2193
|
-
/**
|
|
2194
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2195
|
-
*/
|
|
2196
|
-
pageSize?: number;
|
|
2197
2597
|
/**
|
|
2198
2598
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2199
2599
|
*/
|
|
2200
2600
|
pageToken?: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2603
|
+
*/
|
|
2604
|
+
pageSize?: number;
|
|
2201
2605
|
/**
|
|
2202
2606
|
* A comma separated list of node ids to filter by.
|
|
2203
2607
|
*/
|
|
@@ -2211,9 +2615,33 @@ declare class PrimaryNetworkService {
|
|
|
2211
2615
|
*/
|
|
2212
2616
|
validationStatus?: ValidationStatusType;
|
|
2213
2617
|
/**
|
|
2214
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
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
|
|
2619
|
+
*/
|
|
2620
|
+
minDelegationCapacity?: string;
|
|
2621
|
+
/**
|
|
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.
|
|
2623
|
+
*/
|
|
2624
|
+
maxDelegationCapacity?: string;
|
|
2625
|
+
/**
|
|
2626
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2627
|
+
*/
|
|
2628
|
+
minTimeRemaining?: number;
|
|
2629
|
+
/**
|
|
2630
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2631
|
+
*/
|
|
2632
|
+
maxTimeRemaining?: number;
|
|
2633
|
+
/**
|
|
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.
|
|
2635
|
+
*/
|
|
2636
|
+
minFeePercentage?: number;
|
|
2637
|
+
/**
|
|
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.
|
|
2639
|
+
*/
|
|
2640
|
+
maxFeePercentage?: number;
|
|
2641
|
+
/**
|
|
2642
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2215
2643
|
*/
|
|
2216
|
-
|
|
2644
|
+
subnetId?: any;
|
|
2217
2645
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2218
2646
|
/**
|
|
2219
2647
|
* Get single validator details
|
|
@@ -2221,7 +2649,7 @@ declare class PrimaryNetworkService {
|
|
|
2221
2649
|
* @returns ListValidatorDetailsResponse
|
|
2222
2650
|
* @throws ApiError
|
|
2223
2651
|
*/
|
|
2224
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2652
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2225
2653
|
/**
|
|
2226
2654
|
* Either mainnet or a testnet.
|
|
2227
2655
|
*/
|
|
@@ -2230,14 +2658,14 @@ declare class PrimaryNetworkService {
|
|
|
2230
2658
|
* A primary network (P or X chain) nodeId.
|
|
2231
2659
|
*/
|
|
2232
2660
|
nodeId: string;
|
|
2233
|
-
/**
|
|
2234
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2235
|
-
*/
|
|
2236
|
-
pageSize?: number;
|
|
2237
2661
|
/**
|
|
2238
2662
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2239
2663
|
*/
|
|
2240
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;
|
|
2241
2669
|
/**
|
|
2242
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.
|
|
2243
2671
|
*/
|
|
@@ -2253,19 +2681,23 @@ declare class PrimaryNetworkService {
|
|
|
2253
2681
|
* @returns ListDelegatorDetailsResponse
|
|
2254
2682
|
* @throws ApiError
|
|
2255
2683
|
*/
|
|
2256
|
-
listDelegators({ network, pageSize,
|
|
2684
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2257
2685
|
/**
|
|
2258
2686
|
* Either mainnet or a testnet.
|
|
2259
2687
|
*/
|
|
2260
2688
|
network: Network;
|
|
2689
|
+
/**
|
|
2690
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2691
|
+
*/
|
|
2692
|
+
pageToken?: string;
|
|
2261
2693
|
/**
|
|
2262
2694
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2263
2695
|
*/
|
|
2264
2696
|
pageSize?: number;
|
|
2265
2697
|
/**
|
|
2266
|
-
* A
|
|
2698
|
+
* A comma separated list of reward addresses to filter by.
|
|
2267
2699
|
*/
|
|
2268
|
-
|
|
2700
|
+
rewardAddresses?: string;
|
|
2269
2701
|
/**
|
|
2270
2702
|
* 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.
|
|
2271
2703
|
*/
|
|
@@ -2274,10 +2706,6 @@ declare class PrimaryNetworkService {
|
|
|
2274
2706
|
* Delegation status of the node.
|
|
2275
2707
|
*/
|
|
2276
2708
|
delegationStatus?: DelegationStatusType;
|
|
2277
|
-
/**
|
|
2278
|
-
* A comma separated list of reward addresses to filter by.
|
|
2279
|
-
*/
|
|
2280
|
-
rewardAddresses?: string;
|
|
2281
2709
|
/**
|
|
2282
2710
|
* A comma separated list of node ids to filter by.
|
|
2283
2711
|
*/
|
|
@@ -2313,10 +2741,7 @@ type CChainSharedAssetBalance = {
|
|
|
2313
2741
|
* Denomination of this asset to represent fungibility.
|
|
2314
2742
|
*/
|
|
2315
2743
|
denomination: number;
|
|
2316
|
-
|
|
2317
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2318
|
-
*/
|
|
2319
|
-
type: string;
|
|
2744
|
+
type: PrimaryNetworkAssetType;
|
|
2320
2745
|
/**
|
|
2321
2746
|
* Amount of the asset.
|
|
2322
2747
|
*/
|
|
@@ -2351,49 +2776,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2351
2776
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2352
2777
|
};
|
|
2353
2778
|
|
|
2354
|
-
type
|
|
2779
|
+
type AggregatedAssetAmount = {
|
|
2780
|
+
/**
|
|
2781
|
+
* Unique ID for an asset.
|
|
2782
|
+
*/
|
|
2355
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
|
+
*/
|
|
2356
2800
|
amount: string;
|
|
2801
|
+
utxoCount: number;
|
|
2357
2802
|
};
|
|
2358
2803
|
|
|
2359
2804
|
type PChainSharedAsset = {
|
|
2805
|
+
/**
|
|
2806
|
+
* Unique ID for an asset.
|
|
2807
|
+
*/
|
|
2360
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
|
+
*/
|
|
2361
2825
|
amount: string;
|
|
2826
|
+
utxoCount: number;
|
|
2362
2827
|
sharedWithChainId: string;
|
|
2363
2828
|
status: string;
|
|
2364
2829
|
};
|
|
2365
2830
|
|
|
2366
2831
|
type PChainBalance = {
|
|
2367
2832
|
/**
|
|
2368
|
-
* 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.
|
|
2369
2834
|
*/
|
|
2370
|
-
unlockedUnstaked: Array<
|
|
2835
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2371
2836
|
/**
|
|
2372
|
-
* 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.
|
|
2373
2838
|
*/
|
|
2374
|
-
unlockedStaked: Array<
|
|
2839
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2375
2840
|
/**
|
|
2376
|
-
* 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.
|
|
2377
2842
|
*/
|
|
2378
|
-
lockedPlatform: Array<
|
|
2843
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2379
2844
|
/**
|
|
2380
|
-
* 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.
|
|
2381
2846
|
*/
|
|
2382
|
-
lockedStakeable: Array<
|
|
2847
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2383
2848
|
/**
|
|
2384
|
-
* 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.
|
|
2385
2850
|
*/
|
|
2386
|
-
lockedStaked: Array<
|
|
2851
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2387
2852
|
/**
|
|
2388
|
-
* 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.
|
|
2389
2854
|
*/
|
|
2390
|
-
pendingStaked: Array<
|
|
2855
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2391
2856
|
/**
|
|
2392
|
-
* 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.
|
|
2393
2858
|
*/
|
|
2394
2859
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2395
2860
|
/**
|
|
2396
|
-
* 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.
|
|
2397
2862
|
*/
|
|
2398
2863
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2399
2864
|
};
|
|
@@ -2403,34 +2868,6 @@ type ListPChainBalancesResponse = {
|
|
|
2403
2868
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2404
2869
|
};
|
|
2405
2870
|
|
|
2406
|
-
type XChainAssetBalance = {
|
|
2407
|
-
/**
|
|
2408
|
-
* Unique ID for an asset.
|
|
2409
|
-
*/
|
|
2410
|
-
assetId: string;
|
|
2411
|
-
/**
|
|
2412
|
-
* Name of this asset.
|
|
2413
|
-
*/
|
|
2414
|
-
name: string;
|
|
2415
|
-
/**
|
|
2416
|
-
* Symbol for this asset (max 4 characters).
|
|
2417
|
-
*/
|
|
2418
|
-
symbol: string;
|
|
2419
|
-
/**
|
|
2420
|
-
* Denomination of this asset to represent fungibility.
|
|
2421
|
-
*/
|
|
2422
|
-
denomination: number;
|
|
2423
|
-
/**
|
|
2424
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2425
|
-
*/
|
|
2426
|
-
type: string;
|
|
2427
|
-
/**
|
|
2428
|
-
* Amount of the asset.
|
|
2429
|
-
*/
|
|
2430
|
-
amount: string;
|
|
2431
|
-
utxoCount: number;
|
|
2432
|
-
};
|
|
2433
|
-
|
|
2434
2871
|
type XChainSharedAssetBalance = {
|
|
2435
2872
|
/**
|
|
2436
2873
|
* Unique ID for an asset.
|
|
@@ -2448,10 +2885,7 @@ type XChainSharedAssetBalance = {
|
|
|
2448
2885
|
* Denomination of this asset to represent fungibility.
|
|
2449
2886
|
*/
|
|
2450
2887
|
denomination: number;
|
|
2451
|
-
|
|
2452
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2453
|
-
*/
|
|
2454
|
-
type: string;
|
|
2888
|
+
type: PrimaryNetworkAssetType;
|
|
2455
2889
|
/**
|
|
2456
2890
|
* Amount of the asset.
|
|
2457
2891
|
*/
|
|
@@ -2464,11 +2898,11 @@ type XChainBalances = {
|
|
|
2464
2898
|
/**
|
|
2465
2899
|
* A list of objects containing X-chain Asset balance information.
|
|
2466
2900
|
*/
|
|
2467
|
-
locked: Array<
|
|
2901
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2468
2902
|
/**
|
|
2469
2903
|
* A list of objects containing X-chain Asset balance information.
|
|
2470
2904
|
*/
|
|
2471
|
-
unlocked: Array<
|
|
2905
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2472
2906
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2473
2907
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2474
2908
|
};
|
|
@@ -2526,6 +2960,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2526
2960
|
txCount: number;
|
|
2527
2961
|
transactions: Array<string>;
|
|
2528
2962
|
blockSizeBytes: number;
|
|
2963
|
+
currentSupply?: string;
|
|
2529
2964
|
proposerDetails?: ProposerDetails;
|
|
2530
2965
|
};
|
|
2531
2966
|
|
|
@@ -2538,6 +2973,7 @@ type PrimaryNetworkBlock = {
|
|
|
2538
2973
|
txCount: number;
|
|
2539
2974
|
transactions: Array<string>;
|
|
2540
2975
|
blockSizeBytes: number;
|
|
2976
|
+
currentSupply?: string;
|
|
2541
2977
|
proposerDetails?: ProposerDetails;
|
|
2542
2978
|
};
|
|
2543
2979
|
|
|
@@ -2579,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2579
3015
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2580
3016
|
* @throws ApiError
|
|
2581
3017
|
*/
|
|
2582
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3018
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2583
3019
|
/**
|
|
2584
3020
|
* A primary network blockchain id or alias.
|
|
2585
3021
|
*/
|
|
@@ -2592,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2592
3028
|
* A primary network (P or X chain) nodeId.
|
|
2593
3029
|
*/
|
|
2594
3030
|
nodeId: string;
|
|
2595
|
-
/**
|
|
2596
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2597
|
-
*/
|
|
2598
|
-
pageSize?: number;
|
|
2599
3031
|
/**
|
|
2600
3032
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2601
3033
|
*/
|
|
2602
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;
|
|
2603
3039
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2604
3040
|
/**
|
|
2605
3041
|
* List latest blocks
|
|
@@ -2607,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2607
3043
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2608
3044
|
* @throws ApiError
|
|
2609
3045
|
*/
|
|
2610
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3046
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2611
3047
|
/**
|
|
2612
3048
|
* A primary network blockchain id or alias.
|
|
2613
3049
|
*/
|
|
@@ -2616,20 +3052,49 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2616
3052
|
* Either mainnet or a testnet.
|
|
2617
3053
|
*/
|
|
2618
3054
|
network: Network;
|
|
2619
|
-
/**
|
|
2620
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2621
|
-
*/
|
|
2622
|
-
pageSize?: number;
|
|
2623
3055
|
/**
|
|
2624
3056
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2625
3057
|
*/
|
|
2626
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;
|
|
2627
3063
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2628
3064
|
}
|
|
2629
3065
|
|
|
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
|
+
|
|
2630
3094
|
declare enum RewardType {
|
|
2631
3095
|
VALIDATOR = "VALIDATOR",
|
|
2632
|
-
DELEGATOR = "DELEGATOR"
|
|
3096
|
+
DELEGATOR = "DELEGATOR",
|
|
3097
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2633
3098
|
}
|
|
2634
3099
|
|
|
2635
3100
|
type HistoricalReward = {
|
|
@@ -2645,10 +3110,7 @@ type HistoricalReward = {
|
|
|
2645
3110
|
rewardType: RewardType;
|
|
2646
3111
|
utxoId: string;
|
|
2647
3112
|
outputIndex: number;
|
|
2648
|
-
|
|
2649
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2650
|
-
*/
|
|
2651
|
-
reward: PChainAsset;
|
|
3113
|
+
reward: AssetWithPriceInfo;
|
|
2652
3114
|
rewardTxHash: string;
|
|
2653
3115
|
};
|
|
2654
3116
|
|
|
@@ -2660,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2660
3122
|
historicalRewards: Array<HistoricalReward>;
|
|
2661
3123
|
};
|
|
2662
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
|
+
|
|
2663
3149
|
type PendingReward = {
|
|
2664
3150
|
/**
|
|
2665
3151
|
* An array of P-Chain wallet addresses.
|
|
@@ -2673,9 +3159,9 @@ type PendingReward = {
|
|
|
2673
3159
|
rewardType: RewardType;
|
|
2674
3160
|
progress: number;
|
|
2675
3161
|
/**
|
|
2676
|
-
* An object containing P-chain Asset
|
|
3162
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2677
3163
|
*/
|
|
2678
|
-
estimatedReward:
|
|
3164
|
+
estimatedReward: AssetAmount;
|
|
2679
3165
|
};
|
|
2680
3166
|
|
|
2681
3167
|
type ListPendingRewardsResponse = {
|
|
@@ -2695,23 +3181,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2695
3181
|
* @returns ListPendingRewardsResponse
|
|
2696
3182
|
* @throws ApiError
|
|
2697
3183
|
*/
|
|
2698
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3184
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2699
3185
|
/**
|
|
2700
3186
|
* Either mainnet or a testnet.
|
|
2701
3187
|
*/
|
|
2702
3188
|
network: Network;
|
|
2703
3189
|
/**
|
|
2704
|
-
* 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.
|
|
2705
3191
|
*/
|
|
2706
3192
|
addresses?: string;
|
|
3193
|
+
/**
|
|
3194
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3195
|
+
*/
|
|
3196
|
+
pageToken?: string;
|
|
2707
3197
|
/**
|
|
2708
3198
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2709
3199
|
*/
|
|
2710
3200
|
pageSize?: number;
|
|
2711
3201
|
/**
|
|
2712
|
-
* A
|
|
3202
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2713
3203
|
*/
|
|
2714
|
-
|
|
3204
|
+
nodeIds?: string;
|
|
2715
3205
|
/**
|
|
2716
3206
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2717
3207
|
*/
|
|
@@ -2723,64 +3213,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2723
3213
|
* @returns ListHistoricalRewardsResponse
|
|
2724
3214
|
* @throws ApiError
|
|
2725
3215
|
*/
|
|
2726
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3216
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2727
3217
|
/**
|
|
2728
3218
|
* Either mainnet or a testnet.
|
|
2729
3219
|
*/
|
|
2730
3220
|
network: Network;
|
|
2731
3221
|
/**
|
|
2732
|
-
* 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.
|
|
2733
3223
|
*/
|
|
2734
3224
|
addresses?: string;
|
|
3225
|
+
/**
|
|
3226
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3227
|
+
*/
|
|
3228
|
+
pageToken?: string;
|
|
2735
3229
|
/**
|
|
2736
3230
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
3231
|
*/
|
|
2738
3232
|
pageSize?: number;
|
|
2739
3233
|
/**
|
|
2740
|
-
* A
|
|
3234
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2741
3235
|
*/
|
|
2742
|
-
|
|
3236
|
+
nodeIds?: string;
|
|
2743
3237
|
/**
|
|
2744
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.
|
|
2745
3239
|
*/
|
|
2746
3240
|
sortOrder?: SortOrder;
|
|
3241
|
+
/**
|
|
3242
|
+
* The currency that return values should use. Defaults to USD.
|
|
3243
|
+
*/
|
|
3244
|
+
currency?: CurrencyCode;
|
|
2747
3245
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2748
3246
|
}
|
|
2749
3247
|
|
|
2750
|
-
type Asset = {
|
|
2751
|
-
/**
|
|
2752
|
-
* Unique ID for an asset.
|
|
2753
|
-
*/
|
|
2754
|
-
assetId: string;
|
|
2755
|
-
/**
|
|
2756
|
-
* Name of this asset.
|
|
2757
|
-
*/
|
|
2758
|
-
name: string;
|
|
2759
|
-
/**
|
|
2760
|
-
* Symbol for this asset (max 4 characters).
|
|
2761
|
-
*/
|
|
2762
|
-
symbol: string;
|
|
2763
|
-
/**
|
|
2764
|
-
* Denomination of this asset to represent fungibility.
|
|
2765
|
-
*/
|
|
2766
|
-
denomination: number;
|
|
2767
|
-
/**
|
|
2768
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2769
|
-
*/
|
|
2770
|
-
type: string;
|
|
2771
|
-
/**
|
|
2772
|
-
* Amount of the asset.
|
|
2773
|
-
*/
|
|
2774
|
-
amount: string;
|
|
2775
|
-
};
|
|
2776
|
-
|
|
2777
3248
|
type UtxoCredential = {
|
|
2778
3249
|
/**
|
|
2779
|
-
* Signature provided to consume the output
|
|
3250
|
+
* Signature provided to consume the output.
|
|
2780
3251
|
*/
|
|
2781
3252
|
signature?: string;
|
|
2782
3253
|
/**
|
|
2783
|
-
* Public key associated with the signature
|
|
3254
|
+
* Public key associated with the signature.
|
|
2784
3255
|
*/
|
|
2785
3256
|
publicKey?: string;
|
|
2786
3257
|
};
|
|
@@ -2791,9 +3262,9 @@ type EVMInput = {
|
|
|
2791
3262
|
*/
|
|
2792
3263
|
fromAddress: string;
|
|
2793
3264
|
/**
|
|
2794
|
-
*
|
|
3265
|
+
* AssetAmount details for the asset being transferred.
|
|
2795
3266
|
*/
|
|
2796
|
-
asset:
|
|
3267
|
+
asset: AssetAmount;
|
|
2797
3268
|
/**
|
|
2798
3269
|
* Credentials that signed this transaction.
|
|
2799
3270
|
*/
|
|
@@ -2802,66 +3273,66 @@ type EVMInput = {
|
|
|
2802
3273
|
|
|
2803
3274
|
type Utxo = {
|
|
2804
3275
|
/**
|
|
2805
|
-
*
|
|
3276
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2806
3277
|
*/
|
|
2807
|
-
|
|
2808
|
-
asset:
|
|
3278
|
+
addresses: Array<string>;
|
|
3279
|
+
asset: AssetAmount;
|
|
2809
3280
|
/**
|
|
2810
|
-
*
|
|
3281
|
+
* Blockchain ID on which this output is consumed on.
|
|
2811
3282
|
*/
|
|
2812
|
-
|
|
3283
|
+
consumedOnChainId: string;
|
|
2813
3284
|
/**
|
|
2814
|
-
*
|
|
3285
|
+
* Transaction ID that consumed this output.
|
|
2815
3286
|
*/
|
|
2816
|
-
|
|
3287
|
+
consumingTxHash?: string;
|
|
2817
3288
|
/**
|
|
2818
|
-
* Blockchain ID on which this output is
|
|
3289
|
+
* Blockchain ID on which this output is created on.
|
|
2819
3290
|
*/
|
|
2820
|
-
|
|
3291
|
+
createdOnChainId: string;
|
|
2821
3292
|
/**
|
|
2822
|
-
*
|
|
3293
|
+
* UTXO ID for this output.
|
|
2823
3294
|
*/
|
|
2824
|
-
|
|
3295
|
+
utxoId: string;
|
|
2825
3296
|
/**
|
|
2826
|
-
*
|
|
3297
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2827
3298
|
*/
|
|
2828
|
-
|
|
3299
|
+
consumingTxTimestamp?: number;
|
|
2829
3300
|
/**
|
|
2830
|
-
*
|
|
3301
|
+
* Transaction ID that created this output.
|
|
2831
3302
|
*/
|
|
2832
|
-
|
|
3303
|
+
creationTxHash: string;
|
|
2833
3304
|
/**
|
|
2834
|
-
*
|
|
3305
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2835
3306
|
*/
|
|
2836
|
-
|
|
3307
|
+
credentials?: Array<UtxoCredential>;
|
|
2837
3308
|
/**
|
|
2838
|
-
*
|
|
3309
|
+
* Index representing the minting set for the NFT mint output.
|
|
2839
3310
|
*/
|
|
2840
|
-
|
|
3311
|
+
groupId?: number;
|
|
2841
3312
|
/**
|
|
2842
3313
|
* Locktime in seconds after which this output can be consumed.
|
|
2843
3314
|
*/
|
|
2844
3315
|
locktime: number;
|
|
2845
3316
|
/**
|
|
2846
|
-
*
|
|
3317
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2847
3318
|
*/
|
|
2848
|
-
|
|
3319
|
+
outputIndex: string;
|
|
2849
3320
|
/**
|
|
2850
|
-
*
|
|
3321
|
+
* Hex encoded data for NFT assets.
|
|
2851
3322
|
*/
|
|
2852
|
-
|
|
3323
|
+
payload?: string;
|
|
2853
3324
|
/**
|
|
2854
|
-
*
|
|
3325
|
+
* Minimum number of signatures required to consume this output.
|
|
2855
3326
|
*/
|
|
2856
|
-
|
|
3327
|
+
threshold: number;
|
|
2857
3328
|
/**
|
|
2858
|
-
*
|
|
3329
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2859
3330
|
*/
|
|
2860
|
-
|
|
3331
|
+
timestamp: number;
|
|
2861
3332
|
/**
|
|
2862
|
-
*
|
|
3333
|
+
* Type of output.
|
|
2863
3334
|
*/
|
|
2864
|
-
|
|
3335
|
+
utxoType: string;
|
|
2865
3336
|
};
|
|
2866
3337
|
|
|
2867
3338
|
type CChainExportTransaction = {
|
|
@@ -2888,11 +3359,11 @@ type CChainExportTransaction = {
|
|
|
2888
3359
|
/**
|
|
2889
3360
|
* Assets unlocked by inputs of this transaction.
|
|
2890
3361
|
*/
|
|
2891
|
-
amountUnlocked: Array<
|
|
3362
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2892
3363
|
/**
|
|
2893
3364
|
* Assets created by outputs of this transaction.
|
|
2894
3365
|
*/
|
|
2895
|
-
amountCreated: Array<
|
|
3366
|
+
amountCreated: Array<AssetAmount>;
|
|
2896
3367
|
/**
|
|
2897
3368
|
* Source chain for an atomic transaction.
|
|
2898
3369
|
*/
|
|
@@ -2923,9 +3394,9 @@ type EVMOutput = {
|
|
|
2923
3394
|
*/
|
|
2924
3395
|
toAddress: string;
|
|
2925
3396
|
/**
|
|
2926
|
-
*
|
|
3397
|
+
* AssetAmount details for the asset being transferred.
|
|
2927
3398
|
*/
|
|
2928
|
-
asset:
|
|
3399
|
+
asset: AssetAmount;
|
|
2929
3400
|
};
|
|
2930
3401
|
|
|
2931
3402
|
type CChainImportTransaction = {
|
|
@@ -2952,11 +3423,11 @@ type CChainImportTransaction = {
|
|
|
2952
3423
|
/**
|
|
2953
3424
|
* Assets unlocked by inputs of this transaction.
|
|
2954
3425
|
*/
|
|
2955
|
-
amountUnlocked: Array<
|
|
3426
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2956
3427
|
/**
|
|
2957
3428
|
* Assets created by outputs of this transaction.
|
|
2958
3429
|
*/
|
|
2959
|
-
amountCreated: Array<
|
|
3430
|
+
amountCreated: Array<AssetAmount>;
|
|
2960
3431
|
/**
|
|
2961
3432
|
* Source chain for an atomic transaction.
|
|
2962
3433
|
*/
|
|
@@ -2992,16 +3463,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2992
3463
|
|
|
2993
3464
|
declare enum PChainTransactionType {
|
|
2994
3465
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
2995
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
2996
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
2997
3466
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
2998
|
-
|
|
2999
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3467
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3000
3468
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3001
3469
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3002
3470
|
IMPORT_TX = "ImportTx",
|
|
3003
3471
|
EXPORT_TX = "ExportTx",
|
|
3004
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",
|
|
3005
3480
|
UNKNOWN = "UNKNOWN"
|
|
3006
3481
|
}
|
|
3007
3482
|
|
|
@@ -3012,29 +3487,48 @@ declare enum UtxoType {
|
|
|
3012
3487
|
|
|
3013
3488
|
type PChainUtxo = {
|
|
3014
3489
|
/**
|
|
3015
|
-
*
|
|
3490
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3016
3491
|
*/
|
|
3017
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
|
+
*/
|
|
3018
3509
|
utxoId: string;
|
|
3019
|
-
|
|
3020
|
-
|
|
3510
|
+
/**
|
|
3511
|
+
* @deprecated
|
|
3512
|
+
*/
|
|
3513
|
+
amount: string;
|
|
3514
|
+
/**
|
|
3515
|
+
* @deprecated
|
|
3516
|
+
*/
|
|
3517
|
+
assetId: string;
|
|
3021
3518
|
blockNumber: string;
|
|
3022
3519
|
blockTimestamp: number;
|
|
3023
|
-
consumingTxHash?: string;
|
|
3024
|
-
consumingBlockTimestamp?: number;
|
|
3025
3520
|
consumingBlockNumber?: string;
|
|
3026
|
-
|
|
3027
|
-
utxoType: UtxoType;
|
|
3028
|
-
amount: string;
|
|
3029
|
-
stakeableLocktime?: number;
|
|
3521
|
+
consumingBlockTimestamp?: number;
|
|
3030
3522
|
platformLocktime?: number;
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3523
|
+
outputIndex: number;
|
|
3524
|
+
rewardType?: RewardType;
|
|
3525
|
+
stakeableLocktime?: number;
|
|
3034
3526
|
staked?: boolean;
|
|
3035
|
-
|
|
3527
|
+
threshold?: number;
|
|
3528
|
+
txHash: string;
|
|
3036
3529
|
utxoEndTimestamp?: number;
|
|
3037
|
-
|
|
3530
|
+
utxoStartTimestamp?: number;
|
|
3531
|
+
utxoType: UtxoType;
|
|
3038
3532
|
};
|
|
3039
3533
|
|
|
3040
3534
|
type PChainTransaction = {
|
|
@@ -3060,17 +3554,17 @@ type PChainTransaction = {
|
|
|
3060
3554
|
*/
|
|
3061
3555
|
destinationChain?: string;
|
|
3062
3556
|
/**
|
|
3063
|
-
* 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.
|
|
3064
3558
|
*/
|
|
3065
|
-
value: Array<
|
|
3559
|
+
value: Array<AssetAmount>;
|
|
3066
3560
|
/**
|
|
3067
|
-
* 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.
|
|
3068
3562
|
*/
|
|
3069
|
-
amountBurned: Array<
|
|
3563
|
+
amountBurned: Array<AssetAmount>;
|
|
3070
3564
|
/**
|
|
3071
|
-
* 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
|
|
3072
3566
|
*/
|
|
3073
|
-
amountStaked: Array<
|
|
3567
|
+
amountStaked: Array<AssetAmount>;
|
|
3074
3568
|
/**
|
|
3075
3569
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3076
3570
|
*/
|
|
@@ -3096,11 +3590,16 @@ type PChainTransaction = {
|
|
|
3096
3590
|
*/
|
|
3097
3591
|
estimatedReward?: string;
|
|
3098
3592
|
rewardTxHash?: string;
|
|
3593
|
+
rewardAddresses?: Array<string>;
|
|
3099
3594
|
memo?: string;
|
|
3100
3595
|
/**
|
|
3101
3596
|
* Present for RewardValidatorTx
|
|
3102
3597
|
*/
|
|
3103
3598
|
stakingTxHash?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3601
|
+
*/
|
|
3602
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3104
3603
|
};
|
|
3105
3604
|
|
|
3106
3605
|
type ListPChainTransactionsResponse = {
|
|
@@ -3112,6 +3611,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3112
3611
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3113
3612
|
};
|
|
3114
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
|
+
|
|
3115
3626
|
type XChainLinearTransaction = {
|
|
3116
3627
|
/**
|
|
3117
3628
|
* Unique ID for this transaction.
|
|
@@ -3125,10 +3636,7 @@ type XChainLinearTransaction = {
|
|
|
3125
3636
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3126
3637
|
*/
|
|
3127
3638
|
timestamp: number;
|
|
3128
|
-
|
|
3129
|
-
* Type of transaction.
|
|
3130
|
-
*/
|
|
3131
|
-
txType: string;
|
|
3639
|
+
txType: XChainTransactionType;
|
|
3132
3640
|
/**
|
|
3133
3641
|
* Hex encoded memo bytes for this transaction.
|
|
3134
3642
|
*/
|
|
@@ -3138,11 +3646,11 @@ type XChainLinearTransaction = {
|
|
|
3138
3646
|
/**
|
|
3139
3647
|
* Assets unlocked by inputs of this transaction.
|
|
3140
3648
|
*/
|
|
3141
|
-
amountUnlocked: Array<
|
|
3649
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3142
3650
|
/**
|
|
3143
3651
|
* Assets created by outputs of this transaction.
|
|
3144
3652
|
*/
|
|
3145
|
-
amountCreated: Array<
|
|
3653
|
+
amountCreated: Array<AssetAmount>;
|
|
3146
3654
|
/**
|
|
3147
3655
|
* Source chain for an atomic transaction.
|
|
3148
3656
|
*/
|
|
@@ -3152,7 +3660,7 @@ type XChainLinearTransaction = {
|
|
|
3152
3660
|
*/
|
|
3153
3661
|
destinationChain?: string;
|
|
3154
3662
|
/**
|
|
3155
|
-
*
|
|
3663
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3156
3664
|
*/
|
|
3157
3665
|
assetCreated?: XChainAssetDetails;
|
|
3158
3666
|
/**
|
|
@@ -3202,10 +3710,7 @@ type XChainNonLinearTransaction = {
|
|
|
3202
3710
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3203
3711
|
*/
|
|
3204
3712
|
timestamp: number;
|
|
3205
|
-
|
|
3206
|
-
* Type of transaction.
|
|
3207
|
-
*/
|
|
3208
|
-
txType: string;
|
|
3713
|
+
txType: XChainTransactionType;
|
|
3209
3714
|
/**
|
|
3210
3715
|
* Hex encoded memo bytes for this transaction.
|
|
3211
3716
|
*/
|
|
@@ -3215,11 +3720,11 @@ type XChainNonLinearTransaction = {
|
|
|
3215
3720
|
/**
|
|
3216
3721
|
* Assets unlocked by inputs of this transaction.
|
|
3217
3722
|
*/
|
|
3218
|
-
amountUnlocked: Array<
|
|
3723
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3219
3724
|
/**
|
|
3220
3725
|
* Assets created by outputs of this transaction.
|
|
3221
3726
|
*/
|
|
3222
|
-
amountCreated: Array<
|
|
3727
|
+
amountCreated: Array<AssetAmount>;
|
|
3223
3728
|
/**
|
|
3224
3729
|
* Source chain for an atomic transaction.
|
|
3225
3730
|
*/
|
|
@@ -3229,7 +3734,7 @@ type XChainNonLinearTransaction = {
|
|
|
3229
3734
|
*/
|
|
3230
3735
|
destinationChain?: string;
|
|
3231
3736
|
/**
|
|
3232
|
-
*
|
|
3737
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3233
3738
|
*/
|
|
3234
3739
|
assetCreated?: XChainAssetDetails;
|
|
3235
3740
|
/**
|
|
@@ -3263,18 +3768,21 @@ declare enum PChainId {
|
|
|
3263
3768
|
|
|
3264
3769
|
declare enum PrimaryNetworkTxType {
|
|
3265
3770
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3266
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3267
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3268
3771
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3269
|
-
|
|
3270
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3772
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3271
3773
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3272
3774
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3273
3775
|
IMPORT_TX = "ImportTx",
|
|
3274
3776
|
EXPORT_TX = "ExportTx",
|
|
3275
3777
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3276
|
-
|
|
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",
|
|
3277
3783
|
BASE_TX = "BaseTx",
|
|
3784
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3785
|
+
UNKNOWN = "UNKNOWN",
|
|
3278
3786
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3279
3787
|
OPERATION_TX = "OperationTx"
|
|
3280
3788
|
}
|
|
@@ -3304,11 +3812,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3304
3812
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3305
3813
|
/**
|
|
3306
3814
|
* List latest transactions
|
|
3307
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3815
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3816
|
+
*
|
|
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.
|
|
3818
|
+
*
|
|
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.
|
|
3308
3820
|
* @returns any
|
|
3309
3821
|
* @throws ApiError
|
|
3310
3822
|
*/
|
|
3311
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3823
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3312
3824
|
/**
|
|
3313
3825
|
* A primary network blockchain id or alias.
|
|
3314
3826
|
*/
|
|
@@ -3333,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3333
3845
|
* Query param for retrieving items before a specific timestamp.
|
|
3334
3846
|
*/
|
|
3335
3847
|
endTimestamp?: number;
|
|
3336
|
-
/**
|
|
3337
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3338
|
-
*/
|
|
3339
|
-
pageSize?: number;
|
|
3340
3848
|
/**
|
|
3341
3849
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3342
3850
|
*/
|
|
3343
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;
|
|
3344
3856
|
/**
|
|
3345
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.
|
|
3346
3858
|
*/
|
|
@@ -3352,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3352
3864
|
* @returns ListPChainTransactionsResponse
|
|
3353
3865
|
* @throws ApiError
|
|
3354
3866
|
*/
|
|
3355
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3867
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3356
3868
|
/**
|
|
3357
3869
|
* A primary network blockchain id or alias.
|
|
3358
3870
|
*/
|
|
@@ -3377,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3377
3889
|
* Query param for retrieving items before a specific timestamp.
|
|
3378
3890
|
*/
|
|
3379
3891
|
endTimestamp?: number;
|
|
3380
|
-
/**
|
|
3381
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3382
|
-
*/
|
|
3383
|
-
pageSize?: number;
|
|
3384
3892
|
/**
|
|
3385
3893
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3386
3894
|
*/
|
|
3387
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;
|
|
3388
3900
|
/**
|
|
3389
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.
|
|
3390
3902
|
*/
|
|
@@ -3396,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3396
3908
|
* @returns ListXChainTransactionsResponse
|
|
3397
3909
|
* @throws ApiError
|
|
3398
3910
|
*/
|
|
3399
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3911
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3400
3912
|
/**
|
|
3401
3913
|
* A primary network blockchain id or alias.
|
|
3402
3914
|
*/
|
|
@@ -3421,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3421
3933
|
* Query param for retrieving items before a specific timestamp.
|
|
3422
3934
|
*/
|
|
3423
3935
|
endTimestamp?: number;
|
|
3424
|
-
/**
|
|
3425
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3426
|
-
*/
|
|
3427
|
-
pageSize?: number;
|
|
3428
3936
|
/**
|
|
3429
3937
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3430
3938
|
*/
|
|
3431
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;
|
|
3432
3944
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3433
3945
|
}
|
|
3434
3946
|
|
|
@@ -3459,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3459
3971
|
* @returns any
|
|
3460
3972
|
* @throws ApiError
|
|
3461
3973
|
*/
|
|
3462
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3974
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3463
3975
|
/**
|
|
3464
3976
|
* A primary network blockchain id or alias.
|
|
3465
3977
|
*/
|
|
@@ -3472,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3472
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".
|
|
3473
3985
|
*/
|
|
3474
3986
|
addresses?: string;
|
|
3475
|
-
/**
|
|
3476
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3477
|
-
*/
|
|
3478
|
-
pageSize?: number;
|
|
3479
3987
|
/**
|
|
3480
3988
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3481
3989
|
*/
|
|
3482
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;
|
|
3483
3995
|
/**
|
|
3484
3996
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3485
3997
|
*/
|
|
@@ -3524,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3524
4036
|
* @returns ListXChainVerticesResponse
|
|
3525
4037
|
* @throws ApiError
|
|
3526
4038
|
*/
|
|
3527
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4039
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3528
4040
|
/**
|
|
3529
4041
|
* A primary network blockchain id or alias.
|
|
3530
4042
|
*/
|
|
@@ -3533,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3533
4045
|
* Either mainnet or a testnet.
|
|
3534
4046
|
*/
|
|
3535
4047
|
network: Network;
|
|
3536
|
-
/**
|
|
3537
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3538
|
-
*/
|
|
3539
|
-
pageSize?: number;
|
|
3540
4048
|
/**
|
|
3541
4049
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3542
4050
|
*/
|
|
3543
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;
|
|
3544
4056
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3545
4057
|
/**
|
|
3546
4058
|
* Get vertex
|
|
@@ -3568,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3568
4080
|
* @returns ListXChainVerticesResponse
|
|
3569
4081
|
* @throws ApiError
|
|
3570
4082
|
*/
|
|
3571
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4083
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3572
4084
|
/**
|
|
3573
4085
|
* The height of a vertex.
|
|
3574
4086
|
*/
|
|
@@ -3581,28 +4093,373 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3581
4093
|
* Either mainnet or a testnet.
|
|
3582
4094
|
*/
|
|
3583
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;
|
|
3584
4264
|
/**
|
|
3585
4265
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3586
4266
|
*/
|
|
3587
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, }: {
|
|
3588
4387
|
/**
|
|
3589
4388
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3590
4389
|
*/
|
|
3591
4390
|
pageToken?: string;
|
|
3592
4391
|
/**
|
|
3593
|
-
* The
|
|
4392
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3594
4393
|
*/
|
|
3595
|
-
|
|
3596
|
-
|
|
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>;
|
|
3597
4451
|
}
|
|
3598
4452
|
|
|
3599
4453
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3600
4454
|
declare class Glacier {
|
|
4455
|
+
readonly default: DefaultService;
|
|
3601
4456
|
readonly evmBalances: EvmBalancesService;
|
|
3602
4457
|
readonly evmBlocks: EvmBlocksService;
|
|
3603
4458
|
readonly evmChains: EvmChainsService;
|
|
4459
|
+
readonly evmContracts: EvmContractsService;
|
|
3604
4460
|
readonly evmTransactions: EvmTransactionsService;
|
|
3605
4461
|
readonly healthCheck: HealthCheckService;
|
|
4462
|
+
readonly nfTs: NfTsService;
|
|
3606
4463
|
readonly operations: OperationsService;
|
|
3607
4464
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3608
4465
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3611,6 +4468,8 @@ declare class Glacier {
|
|
|
3611
4468
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3612
4469
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3613
4470
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4471
|
+
readonly teleporter: TeleporterService;
|
|
4472
|
+
readonly webhooks: WebhooksService;
|
|
3614
4473
|
readonly request: BaseHttpRequest;
|
|
3615
4474
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3616
4475
|
}
|
|
@@ -3632,4 +4491,4 @@ declare class ApiError extends Error {
|
|
|
3632
4491
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3633
4492
|
}
|
|
3634
4493
|
|
|
3635
|
-
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 };
|