@avalabs/glacier-sdk 2.8.0-canary.1fc6bdf.0 → 2.8.0-canary.22cf4fd.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 +1523 -671
- package/dist/index.js +594 -169
- package/esm/generated/Glacier.d.ts +10 -0
- package/esm/generated/Glacier.js +38 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- 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/ImageAsset.d.ts +0 -3
- 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/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 +51 -31
- package/esm/generated/services/PrimaryNetworkService.js +27 -17
- 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,185 +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
|
-
/**
|
|
1016
|
-
* INPUT ONLY
|
|
1017
|
-
*/
|
|
1018
|
-
assetId?: string;
|
|
1019
|
-
/**
|
|
1020
|
-
* OUTPUT ONLY
|
|
1021
|
-
*/
|
|
1022
|
-
imageUri?: string;
|
|
1023
|
-
};
|
|
1024
|
-
|
|
1025
|
-
declare enum ResourceLinkType {
|
|
1026
|
-
BLOG = "Blog",
|
|
1027
|
-
COIN_GECKO = "CoinGecko",
|
|
1028
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1029
|
-
DISCORD = "Discord",
|
|
1030
|
-
DOCUMENTATION = "Documentation",
|
|
1031
|
-
FACEBOOK = "Facebook",
|
|
1032
|
-
GITHUB = "Github",
|
|
1033
|
-
INSTAGRAM = "Instagram",
|
|
1034
|
-
LINKED_IN = "LinkedIn",
|
|
1035
|
-
MEDIUM = "Medium",
|
|
1036
|
-
REDDIT = "Reddit",
|
|
1037
|
-
SUPPORT = "Support",
|
|
1038
|
-
TELEGRAM = "Telegram",
|
|
1039
|
-
TIK_TOK = "TikTok",
|
|
1040
|
-
TWITTER = "Twitter",
|
|
1041
|
-
WEBSITE = "Website",
|
|
1042
|
-
WHITEPAPER = "Whitepaper",
|
|
1043
|
-
YOUTUBE = "Youtube"
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
type ResourceLink = {
|
|
1047
|
-
type: ResourceLinkType;
|
|
1048
|
-
url: string;
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
type Erc1155Contract = {
|
|
1052
|
-
/**
|
|
1053
|
-
* The contract name.
|
|
1054
|
-
*/
|
|
1055
|
-
name?: string;
|
|
1056
|
-
description?: string;
|
|
1057
|
-
officialSite?: string;
|
|
1058
|
-
email?: string;
|
|
1059
|
-
logoAsset?: ImageAsset;
|
|
1060
|
-
bannerAsset?: ImageAsset;
|
|
1061
|
-
color?: string;
|
|
1062
|
-
coingeckoCoinId?: string;
|
|
1063
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1064
|
-
tags?: Array<string>;
|
|
1065
|
-
/**
|
|
1066
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
|
-
*/
|
|
1068
|
-
address: string;
|
|
1069
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1070
|
-
ercType: Erc1155Contract.ercType;
|
|
1071
|
-
/**
|
|
1072
|
-
* The contract symbol.
|
|
1073
|
-
*/
|
|
1074
|
-
symbol?: string;
|
|
1075
|
-
};
|
|
1076
|
-
declare namespace Erc1155Contract {
|
|
1077
|
-
enum ercType {
|
|
1078
|
-
ERC_1155 = "ERC-1155"
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
type Erc20Contract = {
|
|
1083
|
-
/**
|
|
1084
|
-
* The contract name.
|
|
1085
|
-
*/
|
|
1086
|
-
name?: string;
|
|
1087
|
-
description?: string;
|
|
1088
|
-
officialSite?: string;
|
|
1089
|
-
email?: string;
|
|
1090
|
-
logoAsset?: ImageAsset;
|
|
1091
|
-
bannerAsset?: ImageAsset;
|
|
1092
|
-
color?: string;
|
|
1093
|
-
coingeckoCoinId?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1096
|
-
/**
|
|
1097
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1098
|
-
*/
|
|
1099
|
-
address: string;
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1102
|
-
/**
|
|
1103
|
-
* The contract symbol.
|
|
1104
|
-
*/
|
|
1105
|
-
symbol?: string;
|
|
1106
|
-
/**
|
|
1107
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
|
-
*/
|
|
1109
|
-
decimals: number;
|
|
1110
|
-
};
|
|
1111
|
-
declare namespace Erc20Contract {
|
|
1112
|
-
enum ercType {
|
|
1113
|
-
ERC_20 = "ERC-20"
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
type Erc721Contract = {
|
|
1118
|
-
/**
|
|
1119
|
-
* The contract name.
|
|
1120
|
-
*/
|
|
1121
|
-
name?: string;
|
|
1122
|
-
description?: string;
|
|
1123
|
-
officialSite?: string;
|
|
1124
|
-
email?: string;
|
|
1125
|
-
logoAsset?: ImageAsset;
|
|
1126
|
-
bannerAsset?: ImageAsset;
|
|
1127
|
-
color?: string;
|
|
1128
|
-
coingeckoCoinId?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1131
|
-
/**
|
|
1132
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1133
|
-
*/
|
|
1134
|
-
address: string;
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1137
|
-
/**
|
|
1138
|
-
* The contract symbol.
|
|
1139
|
-
*/
|
|
1140
|
-
symbol?: string;
|
|
1141
|
-
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
type UnknownContract = {
|
|
1149
|
-
/**
|
|
1150
|
-
* The contract name.
|
|
1151
|
-
*/
|
|
1152
|
-
name?: string;
|
|
1153
|
-
description?: string;
|
|
1154
|
-
officialSite?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
logoAsset?: ImageAsset;
|
|
1157
|
-
bannerAsset?: ImageAsset;
|
|
1158
|
-
color?: string;
|
|
1159
|
-
coingeckoCoinId?: string;
|
|
1160
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1161
|
-
tags?: Array<string>;
|
|
1162
|
-
/**
|
|
1163
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1164
|
-
*/
|
|
1165
|
-
address: string;
|
|
1166
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1167
|
-
ercType: UnknownContract.ercType;
|
|
1168
|
-
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
1334
|
type ListContractsResponse = {
|
|
1176
1335
|
/**
|
|
1177
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.
|
|
1178
1337
|
*/
|
|
1179
1338
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1339
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1340
|
};
|
|
1182
1341
|
|
|
1183
1342
|
type Erc1155Transfer = {
|
|
@@ -1407,7 +1566,7 @@ type ListTransfersResponse = {
|
|
|
1407
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.
|
|
1408
1567
|
*/
|
|
1409
1568
|
nextPageToken?: string;
|
|
1410
|
-
transfers:
|
|
1569
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1411
1570
|
};
|
|
1412
1571
|
|
|
1413
1572
|
declare enum SortOrder {
|
|
@@ -1431,7 +1590,7 @@ declare class EvmTransactionsService {
|
|
|
1431
1590
|
*/
|
|
1432
1591
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1433
1592
|
/**
|
|
1434
|
-
* 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.
|
|
1435
1594
|
*/
|
|
1436
1595
|
chainId: string;
|
|
1437
1596
|
/**
|
|
@@ -1449,23 +1608,23 @@ declare class EvmTransactionsService {
|
|
|
1449
1608
|
* @returns ListContractsResponse
|
|
1450
1609
|
* @throws ApiError
|
|
1451
1610
|
*/
|
|
1452
|
-
listContractDeployments({ chainId, address,
|
|
1611
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1453
1612
|
/**
|
|
1454
|
-
* 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.
|
|
1455
1614
|
*/
|
|
1456
1615
|
chainId: string;
|
|
1457
1616
|
/**
|
|
1458
1617
|
* A wallet address.
|
|
1459
1618
|
*/
|
|
1460
1619
|
address: string;
|
|
1461
|
-
/**
|
|
1462
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1463
|
-
*/
|
|
1464
|
-
pageSize?: number;
|
|
1465
1620
|
/**
|
|
1466
1621
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1467
1622
|
*/
|
|
1468
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;
|
|
1469
1628
|
}): CancelablePromise<ListContractsResponse>;
|
|
1470
1629
|
/**
|
|
1471
1630
|
* List ERC transfers
|
|
@@ -1473,25 +1632,31 @@ declare class EvmTransactionsService {
|
|
|
1473
1632
|
* @returns ListTransfersResponse
|
|
1474
1633
|
* @throws ApiError
|
|
1475
1634
|
*/
|
|
1476
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1635
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1477
1636
|
/**
|
|
1478
|
-
* 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.
|
|
1479
1638
|
*/
|
|
1480
1639
|
chainId: string;
|
|
1481
1640
|
/**
|
|
1482
1641
|
* A wallet address.
|
|
1483
1642
|
*/
|
|
1484
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
|
+
*/
|
|
1485
1647
|
startBlock?: number;
|
|
1486
|
-
endBlock?: number;
|
|
1487
1648
|
/**
|
|
1488
|
-
* 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.
|
|
1489
1650
|
*/
|
|
1490
|
-
|
|
1651
|
+
endBlock?: number;
|
|
1491
1652
|
/**
|
|
1492
1653
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1493
1654
|
*/
|
|
1494
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;
|
|
1495
1660
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1496
1661
|
/**
|
|
1497
1662
|
* List transactions
|
|
@@ -1501,24 +1666,30 @@ declare class EvmTransactionsService {
|
|
|
1501
1666
|
* @returns ListTransactionDetailsResponse
|
|
1502
1667
|
* @throws ApiError
|
|
1503
1668
|
*/
|
|
1504
|
-
listTransactions({ chainId, address,
|
|
1669
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1505
1670
|
/**
|
|
1506
|
-
* 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.
|
|
1507
1672
|
*/
|
|
1508
1673
|
chainId: string;
|
|
1509
1674
|
/**
|
|
1510
1675
|
* A wallet address.
|
|
1511
1676
|
*/
|
|
1512
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;
|
|
1513
1682
|
/**
|
|
1514
1683
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1515
1684
|
*/
|
|
1516
1685
|
pageSize?: number;
|
|
1517
1686
|
/**
|
|
1518
|
-
*
|
|
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.
|
|
1519
1688
|
*/
|
|
1520
|
-
pageToken?: string;
|
|
1521
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
|
+
*/
|
|
1522
1693
|
endBlock?: number;
|
|
1523
1694
|
/**
|
|
1524
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.
|
|
@@ -1531,25 +1702,31 @@ declare class EvmTransactionsService {
|
|
|
1531
1702
|
* @returns ListNativeTransactionsResponse
|
|
1532
1703
|
* @throws ApiError
|
|
1533
1704
|
*/
|
|
1534
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1705
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1535
1706
|
/**
|
|
1536
|
-
* 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.
|
|
1537
1708
|
*/
|
|
1538
1709
|
chainId: string;
|
|
1539
1710
|
/**
|
|
1540
1711
|
* A wallet address.
|
|
1541
1712
|
*/
|
|
1542
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
|
+
*/
|
|
1543
1717
|
startBlock?: number;
|
|
1544
|
-
endBlock?: number;
|
|
1545
1718
|
/**
|
|
1546
|
-
* 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.
|
|
1547
1720
|
*/
|
|
1548
|
-
|
|
1721
|
+
endBlock?: number;
|
|
1549
1722
|
/**
|
|
1550
1723
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1551
1724
|
*/
|
|
1552
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;
|
|
1553
1730
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1554
1731
|
/**
|
|
1555
1732
|
* List ERC-20 transfers
|
|
@@ -1557,25 +1734,31 @@ declare class EvmTransactionsService {
|
|
|
1557
1734
|
* @returns ListErc20TransactionsResponse
|
|
1558
1735
|
* @throws ApiError
|
|
1559
1736
|
*/
|
|
1560
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1737
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1561
1738
|
/**
|
|
1562
|
-
* 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.
|
|
1563
1740
|
*/
|
|
1564
1741
|
chainId: string;
|
|
1565
1742
|
/**
|
|
1566
1743
|
* A wallet address.
|
|
1567
1744
|
*/
|
|
1568
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
|
+
*/
|
|
1569
1749
|
startBlock?: number;
|
|
1570
|
-
endBlock?: number;
|
|
1571
1750
|
/**
|
|
1572
|
-
* 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.
|
|
1573
1752
|
*/
|
|
1574
|
-
|
|
1753
|
+
endBlock?: number;
|
|
1575
1754
|
/**
|
|
1576
1755
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1577
1756
|
*/
|
|
1578
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;
|
|
1579
1762
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1580
1763
|
/**
|
|
1581
1764
|
* List ERC-721 transfers
|
|
@@ -1583,25 +1766,31 @@ declare class EvmTransactionsService {
|
|
|
1583
1766
|
* @returns ListErc721TransactionsResponse
|
|
1584
1767
|
* @throws ApiError
|
|
1585
1768
|
*/
|
|
1586
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1769
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1587
1770
|
/**
|
|
1588
|
-
* 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.
|
|
1589
1772
|
*/
|
|
1590
1773
|
chainId: string;
|
|
1591
1774
|
/**
|
|
1592
1775
|
* A wallet address.
|
|
1593
1776
|
*/
|
|
1594
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
|
+
*/
|
|
1595
1781
|
startBlock?: number;
|
|
1596
|
-
endBlock?: number;
|
|
1597
1782
|
/**
|
|
1598
|
-
* 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.
|
|
1599
1784
|
*/
|
|
1600
|
-
|
|
1785
|
+
endBlock?: number;
|
|
1601
1786
|
/**
|
|
1602
1787
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1603
1788
|
*/
|
|
1604
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;
|
|
1605
1794
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1606
1795
|
/**
|
|
1607
1796
|
* List ERC-1155 transfers
|
|
@@ -1609,25 +1798,31 @@ declare class EvmTransactionsService {
|
|
|
1609
1798
|
* @returns ListErc1155TransactionsResponse
|
|
1610
1799
|
* @throws ApiError
|
|
1611
1800
|
*/
|
|
1612
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1801
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1613
1802
|
/**
|
|
1614
|
-
* 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.
|
|
1615
1804
|
*/
|
|
1616
1805
|
chainId: string;
|
|
1617
1806
|
/**
|
|
1618
1807
|
* A wallet address.
|
|
1619
1808
|
*/
|
|
1620
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
|
+
*/
|
|
1621
1813
|
startBlock?: number;
|
|
1622
|
-
endBlock?: number;
|
|
1623
1814
|
/**
|
|
1624
|
-
* 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.
|
|
1625
1816
|
*/
|
|
1626
|
-
|
|
1817
|
+
endBlock?: number;
|
|
1627
1818
|
/**
|
|
1628
1819
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1629
1820
|
*/
|
|
1630
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;
|
|
1631
1826
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1632
1827
|
/**
|
|
1633
1828
|
* List internal transactions
|
|
@@ -1637,25 +1832,31 @@ declare class EvmTransactionsService {
|
|
|
1637
1832
|
* @returns ListInternalTransactionsResponse
|
|
1638
1833
|
* @throws ApiError
|
|
1639
1834
|
*/
|
|
1640
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1835
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1641
1836
|
/**
|
|
1642
|
-
* 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.
|
|
1643
1838
|
*/
|
|
1644
1839
|
chainId: string;
|
|
1645
1840
|
/**
|
|
1646
1841
|
* A wallet address.
|
|
1647
1842
|
*/
|
|
1648
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
|
+
*/
|
|
1649
1847
|
startBlock?: number;
|
|
1650
|
-
endBlock?: number;
|
|
1651
1848
|
/**
|
|
1652
|
-
* 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.
|
|
1653
1850
|
*/
|
|
1654
|
-
|
|
1851
|
+
endBlock?: number;
|
|
1655
1852
|
/**
|
|
1656
1853
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1657
1854
|
*/
|
|
1658
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;
|
|
1659
1860
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1660
1861
|
/**
|
|
1661
1862
|
* Get transaction
|
|
@@ -1665,7 +1866,7 @@ declare class EvmTransactionsService {
|
|
|
1665
1866
|
*/
|
|
1666
1867
|
getTransaction({ chainId, txHash, }: {
|
|
1667
1868
|
/**
|
|
1668
|
-
* 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.
|
|
1669
1870
|
*/
|
|
1670
1871
|
chainId: string;
|
|
1671
1872
|
/**
|
|
@@ -1681,7 +1882,7 @@ declare class EvmTransactionsService {
|
|
|
1681
1882
|
*/
|
|
1682
1883
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1683
1884
|
/**
|
|
1684
|
-
* 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.
|
|
1685
1886
|
*/
|
|
1686
1887
|
chainId: string;
|
|
1687
1888
|
/**
|
|
@@ -1695,19 +1896,19 @@ declare class EvmTransactionsService {
|
|
|
1695
1896
|
* @returns ListNativeTransactionsResponse
|
|
1696
1897
|
* @throws ApiError
|
|
1697
1898
|
*/
|
|
1698
|
-
listLatestTransactions({ chainId,
|
|
1899
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1699
1900
|
/**
|
|
1700
|
-
* 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.
|
|
1701
1902
|
*/
|
|
1702
1903
|
chainId: string;
|
|
1703
|
-
/**
|
|
1704
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1705
|
-
*/
|
|
1706
|
-
pageSize?: number;
|
|
1707
1904
|
/**
|
|
1708
1905
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1709
1906
|
*/
|
|
1710
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;
|
|
1711
1912
|
/**
|
|
1712
1913
|
* A status filter for listed transactions.
|
|
1713
1914
|
*/
|
|
@@ -1731,13 +1932,94 @@ declare class HealthCheckService {
|
|
|
1731
1932
|
}>;
|
|
1732
1933
|
}
|
|
1733
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
|
+
|
|
1734
2012
|
type EvmNetworkOptions = {
|
|
1735
2013
|
addresses: Array<string>;
|
|
1736
2014
|
includeChains: Array<string>;
|
|
1737
2015
|
};
|
|
1738
2016
|
|
|
2017
|
+
declare enum EVMOperationType {
|
|
2018
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1739
2021
|
type CreateEvmTransactionExportRequest = {
|
|
1740
|
-
type:
|
|
2022
|
+
type: EVMOperationType;
|
|
1741
2023
|
firstDate: string;
|
|
1742
2024
|
lastDate: string;
|
|
1743
2025
|
/**
|
|
@@ -1750,10 +2032,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1750
2032
|
endDate: string;
|
|
1751
2033
|
options: EvmNetworkOptions;
|
|
1752
2034
|
};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
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"
|
|
1757
2040
|
}
|
|
1758
2041
|
|
|
1759
2042
|
type PrimaryNetworkOptions = {
|
|
@@ -1763,7 +2046,7 @@ type PrimaryNetworkOptions = {
|
|
|
1763
2046
|
};
|
|
1764
2047
|
|
|
1765
2048
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1766
|
-
type:
|
|
2049
|
+
type: PrimaryNetworkOperationType;
|
|
1767
2050
|
firstDate: string;
|
|
1768
2051
|
lastDate: string;
|
|
1769
2052
|
/**
|
|
@@ -1776,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1776
2059
|
endDate: string;
|
|
1777
2060
|
options: PrimaryNetworkOptions;
|
|
1778
2061
|
};
|
|
1779
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1780
|
-
enum type {
|
|
1781
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
2062
|
|
|
1785
2063
|
declare enum OperationStatus {
|
|
1786
2064
|
RUNNING = "RUNNING",
|
|
@@ -1790,8 +2068,10 @@ declare enum OperationStatus {
|
|
|
1790
2068
|
}
|
|
1791
2069
|
|
|
1792
2070
|
declare enum OperationType {
|
|
1793
|
-
|
|
1794
|
-
|
|
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"
|
|
1795
2075
|
}
|
|
1796
2076
|
|
|
1797
2077
|
declare enum OperationStatusCode {
|
|
@@ -1825,17 +2105,6 @@ type OperationStatusResponse = {
|
|
|
1825
2105
|
declare class OperationsService {
|
|
1826
2106
|
readonly httpRequest: BaseHttpRequest;
|
|
1827
2107
|
constructor(httpRequest: BaseHttpRequest);
|
|
1828
|
-
/**
|
|
1829
|
-
* Create transaction export operation
|
|
1830
|
-
* Trigger a transaction export operation with given parameters.
|
|
1831
|
-
*
|
|
1832
|
-
* 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.
|
|
1833
|
-
* @returns OperationStatusResponse
|
|
1834
|
-
* @throws ApiError
|
|
1835
|
-
*/
|
|
1836
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1837
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1838
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1839
2108
|
/**
|
|
1840
2109
|
* Get operation
|
|
1841
2110
|
* Gets operation details for the given operation id.
|
|
@@ -1848,6 +2117,17 @@ declare class OperationsService {
|
|
|
1848
2117
|
*/
|
|
1849
2118
|
operationId: string;
|
|
1850
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>;
|
|
1851
2131
|
}
|
|
1852
2132
|
|
|
1853
2133
|
declare enum BlockchainIds {
|
|
@@ -1916,39 +2196,57 @@ type ListBlockchainsResponse = {
|
|
|
1916
2196
|
|
|
1917
2197
|
type ActiveDelegatorDetails = {
|
|
1918
2198
|
txHash: string;
|
|
2199
|
+
nodeId: string;
|
|
1919
2200
|
rewardAddresses: Array<string>;
|
|
1920
2201
|
amountDelegated: string;
|
|
1921
2202
|
delegationFee: string;
|
|
1922
2203
|
startTimestamp: number;
|
|
1923
2204
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
2205
|
estimatedGrossReward: string;
|
|
1926
2206
|
estimatedNetReward: string;
|
|
2207
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
2208
|
};
|
|
2209
|
+
declare namespace ActiveDelegatorDetails {
|
|
2210
|
+
enum delegationStatus {
|
|
2211
|
+
ACTIVE = "active"
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
1928
2214
|
|
|
1929
2215
|
type CompletedDelegatorDetails = {
|
|
1930
2216
|
txHash: string;
|
|
2217
|
+
nodeId: string;
|
|
1931
2218
|
rewardAddresses: Array<string>;
|
|
1932
2219
|
amountDelegated: string;
|
|
1933
2220
|
delegationFee: string;
|
|
1934
2221
|
startTimestamp: number;
|
|
1935
2222
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2223
|
grossReward: string;
|
|
1938
2224
|
netReward: string;
|
|
2225
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2226
|
};
|
|
2227
|
+
declare namespace CompletedDelegatorDetails {
|
|
2228
|
+
enum delegationStatus {
|
|
2229
|
+
COMPLETED = "completed"
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
1940
2232
|
|
|
1941
2233
|
type PendingDelegatorDetails = {
|
|
1942
2234
|
txHash: string;
|
|
2235
|
+
nodeId: string;
|
|
1943
2236
|
rewardAddresses: Array<string>;
|
|
1944
2237
|
amountDelegated: string;
|
|
1945
2238
|
delegationFee: string;
|
|
1946
2239
|
startTimestamp: number;
|
|
1947
2240
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2241
|
estimatedGrossReward: string;
|
|
1950
2242
|
estimatedNetReward: string;
|
|
2243
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2244
|
};
|
|
2245
|
+
declare namespace PendingDelegatorDetails {
|
|
2246
|
+
enum delegationStatus {
|
|
2247
|
+
PENDING = "pending"
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
1952
2250
|
|
|
1953
2251
|
type ListDelegatorDetailsResponse = {
|
|
1954
2252
|
/**
|
|
@@ -1965,13 +2263,44 @@ type BlockchainInfo = {
|
|
|
1965
2263
|
blockchainId: string;
|
|
1966
2264
|
};
|
|
1967
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
|
+
|
|
1968
2281
|
type Subnet = {
|
|
1969
2282
|
createBlockTimestamp: number;
|
|
1970
2283
|
createBlockIndex: string;
|
|
1971
2284
|
subnetId: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
1972
2289
|
ownerAddresses: Array<string>;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
1973
2294
|
threshold: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2297
|
+
* @deprecated
|
|
2298
|
+
*/
|
|
1974
2299
|
locktime: number;
|
|
2300
|
+
/**
|
|
2301
|
+
* Latest subnet owner details for this Subnet.
|
|
2302
|
+
*/
|
|
2303
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
1975
2304
|
blockchains: Array<BlockchainInfo>;
|
|
1976
2305
|
};
|
|
1977
2306
|
|
|
@@ -1986,49 +2315,104 @@ type ListSubnetsResponse = {
|
|
|
1986
2315
|
type Rewards = {
|
|
1987
2316
|
validationRewardAmount: string;
|
|
1988
2317
|
delegationRewardAmount: string;
|
|
2318
|
+
rewardAddresses?: Array<string>;
|
|
2319
|
+
rewardTxHash?: string;
|
|
1989
2320
|
};
|
|
1990
2321
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
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
|
+
};
|
|
1996
2340
|
|
|
1997
2341
|
type ActiveValidatorDetails = {
|
|
2342
|
+
txHash: string;
|
|
1998
2343
|
nodeId: string;
|
|
2344
|
+
subnetId: string;
|
|
1999
2345
|
amountStaked: string;
|
|
2000
|
-
delegationFee
|
|
2346
|
+
delegationFee?: string;
|
|
2001
2347
|
startTimestamp: number;
|
|
2002
2348
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2349
|
stakePercentage: number;
|
|
2005
2350
|
delegatorCount: number;
|
|
2006
|
-
amountDelegated
|
|
2351
|
+
amountDelegated?: string;
|
|
2007
2352
|
uptimePerformance: number;
|
|
2008
|
-
avalancheGoVersion
|
|
2009
|
-
delegationCapacity
|
|
2353
|
+
avalancheGoVersion?: string;
|
|
2354
|
+
delegationCapacity?: string;
|
|
2010
2355
|
potentialRewards: Rewards;
|
|
2356
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2357
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2011
2358
|
};
|
|
2359
|
+
declare namespace ActiveValidatorDetails {
|
|
2360
|
+
enum validationStatus {
|
|
2361
|
+
ACTIVE = "active"
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2012
2364
|
|
|
2013
2365
|
type CompletedValidatorDetails = {
|
|
2366
|
+
txHash: string;
|
|
2014
2367
|
nodeId: string;
|
|
2368
|
+
subnetId: string;
|
|
2015
2369
|
amountStaked: string;
|
|
2016
|
-
delegationFee
|
|
2370
|
+
delegationFee?: string;
|
|
2017
2371
|
startTimestamp: number;
|
|
2018
2372
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2373
|
delegatorCount: number;
|
|
2021
2374
|
rewards: Rewards;
|
|
2375
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2376
|
};
|
|
2377
|
+
declare namespace CompletedValidatorDetails {
|
|
2378
|
+
enum validationStatus {
|
|
2379
|
+
COMPLETED = "completed"
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2023
2382
|
|
|
2024
2383
|
type PendingValidatorDetails = {
|
|
2384
|
+
txHash: string;
|
|
2025
2385
|
nodeId: string;
|
|
2386
|
+
subnetId: string;
|
|
2026
2387
|
amountStaked: string;
|
|
2027
|
-
delegationFee
|
|
2388
|
+
delegationFee?: string;
|
|
2028
2389
|
startTimestamp: number;
|
|
2029
2390
|
endTimestamp: number;
|
|
2030
|
-
validationStatus:
|
|
2391
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2031
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
|
+
}
|
|
2032
2416
|
|
|
2033
2417
|
type ListValidatorDetailsResponse = {
|
|
2034
2418
|
/**
|
|
@@ -2036,9 +2420,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2036
2420
|
*/
|
|
2037
2421
|
nextPageToken?: string;
|
|
2038
2422
|
/**
|
|
2039
|
-
* The list of
|
|
2423
|
+
* The list of validator Details.
|
|
2040
2424
|
*/
|
|
2041
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2425
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2042
2426
|
};
|
|
2043
2427
|
|
|
2044
2428
|
declare enum Network {
|
|
@@ -2046,6 +2430,29 @@ declare enum Network {
|
|
|
2046
2430
|
FUJI = "fuji"
|
|
2047
2431
|
}
|
|
2048
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
|
+
|
|
2049
2456
|
type XChainAssetDetails = {
|
|
2050
2457
|
/**
|
|
2051
2458
|
* Unique ID for an asset.
|
|
@@ -2063,18 +2470,12 @@ type XChainAssetDetails = {
|
|
|
2063
2470
|
* Denomination of this asset to represent fungibility.
|
|
2064
2471
|
*/
|
|
2065
2472
|
denomination: number;
|
|
2066
|
-
|
|
2067
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2068
|
-
*/
|
|
2069
|
-
type: string;
|
|
2473
|
+
type: PrimaryNetworkAssetType;
|
|
2070
2474
|
/**
|
|
2071
2475
|
* Timestamp in seconds this asset was created on.
|
|
2072
2476
|
*/
|
|
2073
2477
|
createdAtTimestamp: number;
|
|
2074
|
-
|
|
2075
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2076
|
-
*/
|
|
2077
|
-
cap: string;
|
|
2478
|
+
cap: PrimaryNetworkAssetCap;
|
|
2078
2479
|
};
|
|
2079
2480
|
|
|
2080
2481
|
declare enum XChainId {
|
|
@@ -2140,19 +2541,19 @@ declare class PrimaryNetworkService {
|
|
|
2140
2541
|
* @returns ListBlockchainsResponse
|
|
2141
2542
|
* @throws ApiError
|
|
2142
2543
|
*/
|
|
2143
|
-
listBlockchains({ network,
|
|
2544
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2144
2545
|
/**
|
|
2145
2546
|
* Either mainnet or a testnet.
|
|
2146
2547
|
*/
|
|
2147
2548
|
network: Network;
|
|
2148
|
-
/**
|
|
2149
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2150
|
-
*/
|
|
2151
|
-
pageSize?: number;
|
|
2152
2549
|
/**
|
|
2153
2550
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2154
2551
|
*/
|
|
2155
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;
|
|
2156
2557
|
/**
|
|
2157
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.
|
|
2158
2559
|
*/
|
|
@@ -2164,19 +2565,19 @@ declare class PrimaryNetworkService {
|
|
|
2164
2565
|
* @returns ListSubnetsResponse
|
|
2165
2566
|
* @throws ApiError
|
|
2166
2567
|
*/
|
|
2167
|
-
listSubnets({ network,
|
|
2568
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2168
2569
|
/**
|
|
2169
2570
|
* Either mainnet or a testnet.
|
|
2170
2571
|
*/
|
|
2171
2572
|
network: Network;
|
|
2172
|
-
/**
|
|
2173
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2174
|
-
*/
|
|
2175
|
-
pageSize?: number;
|
|
2176
2573
|
/**
|
|
2177
2574
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2178
2575
|
*/
|
|
2179
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;
|
|
2180
2581
|
/**
|
|
2181
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.
|
|
2182
2583
|
*/
|
|
@@ -2188,19 +2589,19 @@ declare class PrimaryNetworkService {
|
|
|
2188
2589
|
* @returns ListValidatorDetailsResponse
|
|
2189
2590
|
* @throws ApiError
|
|
2190
2591
|
*/
|
|
2191
|
-
listValidators({ network,
|
|
2592
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2192
2593
|
/**
|
|
2193
2594
|
* Either mainnet or a testnet.
|
|
2194
2595
|
*/
|
|
2195
2596
|
network: Network;
|
|
2196
|
-
/**
|
|
2197
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2198
|
-
*/
|
|
2199
|
-
pageSize?: number;
|
|
2200
2597
|
/**
|
|
2201
2598
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2202
2599
|
*/
|
|
2203
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;
|
|
2204
2605
|
/**
|
|
2205
2606
|
* A comma separated list of node ids to filter by.
|
|
2206
2607
|
*/
|
|
@@ -2214,9 +2615,33 @@ declare class PrimaryNetworkService {
|
|
|
2214
2615
|
*/
|
|
2215
2616
|
validationStatus?: ValidationStatusType;
|
|
2216
2617
|
/**
|
|
2217
|
-
* 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.
|
|
2218
2643
|
*/
|
|
2219
|
-
|
|
2644
|
+
subnetId?: string;
|
|
2220
2645
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2221
2646
|
/**
|
|
2222
2647
|
* Get single validator details
|
|
@@ -2224,7 +2649,7 @@ declare class PrimaryNetworkService {
|
|
|
2224
2649
|
* @returns ListValidatorDetailsResponse
|
|
2225
2650
|
* @throws ApiError
|
|
2226
2651
|
*/
|
|
2227
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2652
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2228
2653
|
/**
|
|
2229
2654
|
* Either mainnet or a testnet.
|
|
2230
2655
|
*/
|
|
@@ -2233,14 +2658,14 @@ declare class PrimaryNetworkService {
|
|
|
2233
2658
|
* A primary network (P or X chain) nodeId.
|
|
2234
2659
|
*/
|
|
2235
2660
|
nodeId: string;
|
|
2236
|
-
/**
|
|
2237
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2238
|
-
*/
|
|
2239
|
-
pageSize?: number;
|
|
2240
2661
|
/**
|
|
2241
2662
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2242
2663
|
*/
|
|
2243
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;
|
|
2244
2669
|
/**
|
|
2245
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.
|
|
2246
2671
|
*/
|
|
@@ -2256,23 +2681,23 @@ declare class PrimaryNetworkService {
|
|
|
2256
2681
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2682
|
* @throws ApiError
|
|
2258
2683
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2684
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2260
2685
|
/**
|
|
2261
2686
|
* Either mainnet or a testnet.
|
|
2262
2687
|
*/
|
|
2263
2688
|
network: Network;
|
|
2264
2689
|
/**
|
|
2265
|
-
* A
|
|
2690
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2266
2691
|
*/
|
|
2267
|
-
|
|
2692
|
+
pageToken?: string;
|
|
2268
2693
|
/**
|
|
2269
2694
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2695
|
*/
|
|
2271
2696
|
pageSize?: number;
|
|
2272
2697
|
/**
|
|
2273
|
-
* A
|
|
2698
|
+
* A comma separated list of reward addresses to filter by.
|
|
2274
2699
|
*/
|
|
2275
|
-
|
|
2700
|
+
rewardAddresses?: string;
|
|
2276
2701
|
/**
|
|
2277
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.
|
|
2278
2703
|
*/
|
|
@@ -2281,10 +2706,6 @@ declare class PrimaryNetworkService {
|
|
|
2281
2706
|
* Delegation status of the node.
|
|
2282
2707
|
*/
|
|
2283
2708
|
delegationStatus?: DelegationStatusType;
|
|
2284
|
-
/**
|
|
2285
|
-
* A comma separated list of reward addresses to filter by.
|
|
2286
|
-
*/
|
|
2287
|
-
rewardAddresses?: string;
|
|
2288
2709
|
/**
|
|
2289
2710
|
* A comma separated list of node ids to filter by.
|
|
2290
2711
|
*/
|
|
@@ -2320,10 +2741,7 @@ type CChainSharedAssetBalance = {
|
|
|
2320
2741
|
* Denomination of this asset to represent fungibility.
|
|
2321
2742
|
*/
|
|
2322
2743
|
denomination: number;
|
|
2323
|
-
|
|
2324
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2325
|
-
*/
|
|
2326
|
-
type: string;
|
|
2744
|
+
type: PrimaryNetworkAssetType;
|
|
2327
2745
|
/**
|
|
2328
2746
|
* Amount of the asset.
|
|
2329
2747
|
*/
|
|
@@ -2358,49 +2776,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2358
2776
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2359
2777
|
};
|
|
2360
2778
|
|
|
2361
|
-
type
|
|
2779
|
+
type AggregatedAssetAmount = {
|
|
2780
|
+
/**
|
|
2781
|
+
* Unique ID for an asset.
|
|
2782
|
+
*/
|
|
2362
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
|
+
*/
|
|
2363
2800
|
amount: string;
|
|
2801
|
+
utxoCount: number;
|
|
2364
2802
|
};
|
|
2365
2803
|
|
|
2366
2804
|
type PChainSharedAsset = {
|
|
2805
|
+
/**
|
|
2806
|
+
* Unique ID for an asset.
|
|
2807
|
+
*/
|
|
2367
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
|
+
*/
|
|
2368
2825
|
amount: string;
|
|
2826
|
+
utxoCount: number;
|
|
2369
2827
|
sharedWithChainId: string;
|
|
2370
2828
|
status: string;
|
|
2371
2829
|
};
|
|
2372
2830
|
|
|
2373
2831
|
type PChainBalance = {
|
|
2374
2832
|
/**
|
|
2375
|
-
* 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.
|
|
2376
2834
|
*/
|
|
2377
|
-
unlockedUnstaked: Array<
|
|
2835
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2378
2836
|
/**
|
|
2379
|
-
* 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.
|
|
2380
2838
|
*/
|
|
2381
|
-
unlockedStaked: Array<
|
|
2839
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2382
2840
|
/**
|
|
2383
|
-
* 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.
|
|
2384
2842
|
*/
|
|
2385
|
-
lockedPlatform: Array<
|
|
2843
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2386
2844
|
/**
|
|
2387
|
-
* 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.
|
|
2388
2846
|
*/
|
|
2389
|
-
lockedStakeable: Array<
|
|
2847
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2390
2848
|
/**
|
|
2391
|
-
* 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.
|
|
2392
2850
|
*/
|
|
2393
|
-
lockedStaked: Array<
|
|
2851
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2394
2852
|
/**
|
|
2395
|
-
* 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.
|
|
2396
2854
|
*/
|
|
2397
|
-
pendingStaked: Array<
|
|
2855
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2398
2856
|
/**
|
|
2399
|
-
* 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.
|
|
2400
2858
|
*/
|
|
2401
2859
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2402
2860
|
/**
|
|
2403
|
-
* 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.
|
|
2404
2862
|
*/
|
|
2405
2863
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2406
2864
|
};
|
|
@@ -2410,34 +2868,6 @@ type ListPChainBalancesResponse = {
|
|
|
2410
2868
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2411
2869
|
};
|
|
2412
2870
|
|
|
2413
|
-
type XChainAssetBalance = {
|
|
2414
|
-
/**
|
|
2415
|
-
* Unique ID for an asset.
|
|
2416
|
-
*/
|
|
2417
|
-
assetId: string;
|
|
2418
|
-
/**
|
|
2419
|
-
* Name of this asset.
|
|
2420
|
-
*/
|
|
2421
|
-
name: string;
|
|
2422
|
-
/**
|
|
2423
|
-
* Symbol for this asset (max 4 characters).
|
|
2424
|
-
*/
|
|
2425
|
-
symbol: string;
|
|
2426
|
-
/**
|
|
2427
|
-
* Denomination of this asset to represent fungibility.
|
|
2428
|
-
*/
|
|
2429
|
-
denomination: number;
|
|
2430
|
-
/**
|
|
2431
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2432
|
-
*/
|
|
2433
|
-
type: string;
|
|
2434
|
-
/**
|
|
2435
|
-
* Amount of the asset.
|
|
2436
|
-
*/
|
|
2437
|
-
amount: string;
|
|
2438
|
-
utxoCount: number;
|
|
2439
|
-
};
|
|
2440
|
-
|
|
2441
2871
|
type XChainSharedAssetBalance = {
|
|
2442
2872
|
/**
|
|
2443
2873
|
* Unique ID for an asset.
|
|
@@ -2455,10 +2885,7 @@ type XChainSharedAssetBalance = {
|
|
|
2455
2885
|
* Denomination of this asset to represent fungibility.
|
|
2456
2886
|
*/
|
|
2457
2887
|
denomination: number;
|
|
2458
|
-
|
|
2459
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2460
|
-
*/
|
|
2461
|
-
type: string;
|
|
2888
|
+
type: PrimaryNetworkAssetType;
|
|
2462
2889
|
/**
|
|
2463
2890
|
* Amount of the asset.
|
|
2464
2891
|
*/
|
|
@@ -2471,11 +2898,11 @@ type XChainBalances = {
|
|
|
2471
2898
|
/**
|
|
2472
2899
|
* A list of objects containing X-chain Asset balance information.
|
|
2473
2900
|
*/
|
|
2474
|
-
locked: Array<
|
|
2901
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2475
2902
|
/**
|
|
2476
2903
|
* A list of objects containing X-chain Asset balance information.
|
|
2477
2904
|
*/
|
|
2478
|
-
unlocked: Array<
|
|
2905
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2479
2906
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2480
2907
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2481
2908
|
};
|
|
@@ -2533,6 +2960,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2533
2960
|
txCount: number;
|
|
2534
2961
|
transactions: Array<string>;
|
|
2535
2962
|
blockSizeBytes: number;
|
|
2963
|
+
currentSupply?: string;
|
|
2536
2964
|
proposerDetails?: ProposerDetails;
|
|
2537
2965
|
};
|
|
2538
2966
|
|
|
@@ -2545,6 +2973,7 @@ type PrimaryNetworkBlock = {
|
|
|
2545
2973
|
txCount: number;
|
|
2546
2974
|
transactions: Array<string>;
|
|
2547
2975
|
blockSizeBytes: number;
|
|
2976
|
+
currentSupply?: string;
|
|
2548
2977
|
proposerDetails?: ProposerDetails;
|
|
2549
2978
|
};
|
|
2550
2979
|
|
|
@@ -2586,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2586
3015
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2587
3016
|
* @throws ApiError
|
|
2588
3017
|
*/
|
|
2589
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3018
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2590
3019
|
/**
|
|
2591
3020
|
* A primary network blockchain id or alias.
|
|
2592
3021
|
*/
|
|
@@ -2599,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2599
3028
|
* A primary network (P or X chain) nodeId.
|
|
2600
3029
|
*/
|
|
2601
3030
|
nodeId: string;
|
|
2602
|
-
/**
|
|
2603
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2604
|
-
*/
|
|
2605
|
-
pageSize?: number;
|
|
2606
3031
|
/**
|
|
2607
3032
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2608
3033
|
*/
|
|
2609
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;
|
|
2610
3039
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2611
3040
|
/**
|
|
2612
3041
|
* List latest blocks
|
|
@@ -2614,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2614
3043
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2615
3044
|
* @throws ApiError
|
|
2616
3045
|
*/
|
|
2617
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3046
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2618
3047
|
/**
|
|
2619
3048
|
* A primary network blockchain id or alias.
|
|
2620
3049
|
*/
|
|
@@ -2623,20 +3052,49 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2623
3052
|
* Either mainnet or a testnet.
|
|
2624
3053
|
*/
|
|
2625
3054
|
network: Network;
|
|
2626
|
-
/**
|
|
2627
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2628
|
-
*/
|
|
2629
|
-
pageSize?: number;
|
|
2630
3055
|
/**
|
|
2631
3056
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2632
3057
|
*/
|
|
2633
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;
|
|
2634
3063
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2635
3064
|
}
|
|
2636
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
|
+
|
|
2637
3094
|
declare enum RewardType {
|
|
2638
3095
|
VALIDATOR = "VALIDATOR",
|
|
2639
|
-
DELEGATOR = "DELEGATOR"
|
|
3096
|
+
DELEGATOR = "DELEGATOR",
|
|
3097
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2640
3098
|
}
|
|
2641
3099
|
|
|
2642
3100
|
type HistoricalReward = {
|
|
@@ -2652,10 +3110,7 @@ type HistoricalReward = {
|
|
|
2652
3110
|
rewardType: RewardType;
|
|
2653
3111
|
utxoId: string;
|
|
2654
3112
|
outputIndex: number;
|
|
2655
|
-
|
|
2656
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2657
|
-
*/
|
|
2658
|
-
reward: PChainAsset;
|
|
3113
|
+
reward: AssetWithPriceInfo;
|
|
2659
3114
|
rewardTxHash: string;
|
|
2660
3115
|
};
|
|
2661
3116
|
|
|
@@ -2667,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2667
3122
|
historicalRewards: Array<HistoricalReward>;
|
|
2668
3123
|
};
|
|
2669
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
|
+
|
|
2670
3149
|
type PendingReward = {
|
|
2671
3150
|
/**
|
|
2672
3151
|
* An array of P-Chain wallet addresses.
|
|
@@ -2680,9 +3159,9 @@ type PendingReward = {
|
|
|
2680
3159
|
rewardType: RewardType;
|
|
2681
3160
|
progress: number;
|
|
2682
3161
|
/**
|
|
2683
|
-
* An object containing P-chain Asset
|
|
3162
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2684
3163
|
*/
|
|
2685
|
-
estimatedReward:
|
|
3164
|
+
estimatedReward: AssetAmount;
|
|
2686
3165
|
};
|
|
2687
3166
|
|
|
2688
3167
|
type ListPendingRewardsResponse = {
|
|
@@ -2702,23 +3181,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2702
3181
|
* @returns ListPendingRewardsResponse
|
|
2703
3182
|
* @throws ApiError
|
|
2704
3183
|
*/
|
|
2705
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3184
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2706
3185
|
/**
|
|
2707
3186
|
* Either mainnet or a testnet.
|
|
2708
3187
|
*/
|
|
2709
3188
|
network: Network;
|
|
2710
3189
|
/**
|
|
2711
|
-
* 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.
|
|
2712
3191
|
*/
|
|
2713
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;
|
|
2714
3197
|
/**
|
|
2715
3198
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2716
3199
|
*/
|
|
2717
3200
|
pageSize?: number;
|
|
2718
3201
|
/**
|
|
2719
|
-
* A
|
|
3202
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2720
3203
|
*/
|
|
2721
|
-
|
|
3204
|
+
nodeIds?: string;
|
|
2722
3205
|
/**
|
|
2723
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.
|
|
2724
3207
|
*/
|
|
@@ -2730,64 +3213,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2730
3213
|
* @returns ListHistoricalRewardsResponse
|
|
2731
3214
|
* @throws ApiError
|
|
2732
3215
|
*/
|
|
2733
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3216
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2734
3217
|
/**
|
|
2735
3218
|
* Either mainnet or a testnet.
|
|
2736
3219
|
*/
|
|
2737
3220
|
network: Network;
|
|
2738
3221
|
/**
|
|
2739
|
-
* 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.
|
|
2740
3223
|
*/
|
|
2741
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;
|
|
2742
3229
|
/**
|
|
2743
3230
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2744
3231
|
*/
|
|
2745
3232
|
pageSize?: number;
|
|
2746
3233
|
/**
|
|
2747
|
-
* A
|
|
3234
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2748
3235
|
*/
|
|
2749
|
-
|
|
3236
|
+
nodeIds?: string;
|
|
2750
3237
|
/**
|
|
2751
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.
|
|
2752
3239
|
*/
|
|
2753
3240
|
sortOrder?: SortOrder;
|
|
3241
|
+
/**
|
|
3242
|
+
* The currency that return values should use. Defaults to USD.
|
|
3243
|
+
*/
|
|
3244
|
+
currency?: CurrencyCode;
|
|
2754
3245
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2755
3246
|
}
|
|
2756
3247
|
|
|
2757
|
-
type Asset = {
|
|
2758
|
-
/**
|
|
2759
|
-
* Unique ID for an asset.
|
|
2760
|
-
*/
|
|
2761
|
-
assetId: string;
|
|
2762
|
-
/**
|
|
2763
|
-
* Name of this asset.
|
|
2764
|
-
*/
|
|
2765
|
-
name: string;
|
|
2766
|
-
/**
|
|
2767
|
-
* Symbol for this asset (max 4 characters).
|
|
2768
|
-
*/
|
|
2769
|
-
symbol: string;
|
|
2770
|
-
/**
|
|
2771
|
-
* Denomination of this asset to represent fungibility.
|
|
2772
|
-
*/
|
|
2773
|
-
denomination: number;
|
|
2774
|
-
/**
|
|
2775
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2776
|
-
*/
|
|
2777
|
-
type: string;
|
|
2778
|
-
/**
|
|
2779
|
-
* Amount of the asset.
|
|
2780
|
-
*/
|
|
2781
|
-
amount: string;
|
|
2782
|
-
};
|
|
2783
|
-
|
|
2784
3248
|
type UtxoCredential = {
|
|
2785
3249
|
/**
|
|
2786
|
-
* Signature provided to consume the output
|
|
3250
|
+
* Signature provided to consume the output.
|
|
2787
3251
|
*/
|
|
2788
3252
|
signature?: string;
|
|
2789
3253
|
/**
|
|
2790
|
-
* Public key associated with the signature
|
|
3254
|
+
* Public key associated with the signature.
|
|
2791
3255
|
*/
|
|
2792
3256
|
publicKey?: string;
|
|
2793
3257
|
};
|
|
@@ -2798,9 +3262,9 @@ type EVMInput = {
|
|
|
2798
3262
|
*/
|
|
2799
3263
|
fromAddress: string;
|
|
2800
3264
|
/**
|
|
2801
|
-
*
|
|
3265
|
+
* AssetAmount details for the asset being transferred.
|
|
2802
3266
|
*/
|
|
2803
|
-
asset:
|
|
3267
|
+
asset: AssetAmount;
|
|
2804
3268
|
/**
|
|
2805
3269
|
* Credentials that signed this transaction.
|
|
2806
3270
|
*/
|
|
@@ -2809,66 +3273,66 @@ type EVMInput = {
|
|
|
2809
3273
|
|
|
2810
3274
|
type Utxo = {
|
|
2811
3275
|
/**
|
|
2812
|
-
*
|
|
3276
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2813
3277
|
*/
|
|
2814
|
-
|
|
2815
|
-
asset:
|
|
3278
|
+
addresses: Array<string>;
|
|
3279
|
+
asset: AssetAmount;
|
|
2816
3280
|
/**
|
|
2817
|
-
*
|
|
3281
|
+
* Blockchain ID on which this output is consumed on.
|
|
2818
3282
|
*/
|
|
2819
|
-
|
|
3283
|
+
consumedOnChainId: string;
|
|
2820
3284
|
/**
|
|
2821
|
-
*
|
|
3285
|
+
* Transaction ID that consumed this output.
|
|
2822
3286
|
*/
|
|
2823
|
-
|
|
3287
|
+
consumingTxHash?: string;
|
|
2824
3288
|
/**
|
|
2825
|
-
* Blockchain ID on which this output is
|
|
3289
|
+
* Blockchain ID on which this output is created on.
|
|
2826
3290
|
*/
|
|
2827
|
-
|
|
3291
|
+
createdOnChainId: string;
|
|
2828
3292
|
/**
|
|
2829
|
-
*
|
|
3293
|
+
* UTXO ID for this output.
|
|
2830
3294
|
*/
|
|
2831
|
-
|
|
3295
|
+
utxoId: string;
|
|
2832
3296
|
/**
|
|
2833
|
-
*
|
|
3297
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2834
3298
|
*/
|
|
2835
|
-
|
|
3299
|
+
consumingTxTimestamp?: number;
|
|
2836
3300
|
/**
|
|
2837
|
-
*
|
|
3301
|
+
* Transaction ID that created this output.
|
|
2838
3302
|
*/
|
|
2839
|
-
|
|
3303
|
+
creationTxHash: string;
|
|
2840
3304
|
/**
|
|
2841
|
-
*
|
|
3305
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2842
3306
|
*/
|
|
2843
|
-
|
|
3307
|
+
credentials?: Array<UtxoCredential>;
|
|
2844
3308
|
/**
|
|
2845
|
-
*
|
|
3309
|
+
* Index representing the minting set for the NFT mint output.
|
|
2846
3310
|
*/
|
|
2847
|
-
|
|
3311
|
+
groupId?: number;
|
|
2848
3312
|
/**
|
|
2849
3313
|
* Locktime in seconds after which this output can be consumed.
|
|
2850
3314
|
*/
|
|
2851
3315
|
locktime: number;
|
|
2852
3316
|
/**
|
|
2853
|
-
*
|
|
3317
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2854
3318
|
*/
|
|
2855
|
-
|
|
3319
|
+
outputIndex: string;
|
|
2856
3320
|
/**
|
|
2857
|
-
*
|
|
3321
|
+
* Hex encoded data for NFT assets.
|
|
2858
3322
|
*/
|
|
2859
|
-
|
|
3323
|
+
payload?: string;
|
|
2860
3324
|
/**
|
|
2861
|
-
*
|
|
3325
|
+
* Minimum number of signatures required to consume this output.
|
|
2862
3326
|
*/
|
|
2863
|
-
|
|
3327
|
+
threshold: number;
|
|
2864
3328
|
/**
|
|
2865
|
-
*
|
|
3329
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2866
3330
|
*/
|
|
2867
|
-
|
|
3331
|
+
timestamp: number;
|
|
2868
3332
|
/**
|
|
2869
|
-
*
|
|
3333
|
+
* Type of output.
|
|
2870
3334
|
*/
|
|
2871
|
-
|
|
3335
|
+
utxoType: string;
|
|
2872
3336
|
};
|
|
2873
3337
|
|
|
2874
3338
|
type CChainExportTransaction = {
|
|
@@ -2895,11 +3359,11 @@ type CChainExportTransaction = {
|
|
|
2895
3359
|
/**
|
|
2896
3360
|
* Assets unlocked by inputs of this transaction.
|
|
2897
3361
|
*/
|
|
2898
|
-
amountUnlocked: Array<
|
|
3362
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2899
3363
|
/**
|
|
2900
3364
|
* Assets created by outputs of this transaction.
|
|
2901
3365
|
*/
|
|
2902
|
-
amountCreated: Array<
|
|
3366
|
+
amountCreated: Array<AssetAmount>;
|
|
2903
3367
|
/**
|
|
2904
3368
|
* Source chain for an atomic transaction.
|
|
2905
3369
|
*/
|
|
@@ -2930,9 +3394,9 @@ type EVMOutput = {
|
|
|
2930
3394
|
*/
|
|
2931
3395
|
toAddress: string;
|
|
2932
3396
|
/**
|
|
2933
|
-
*
|
|
3397
|
+
* AssetAmount details for the asset being transferred.
|
|
2934
3398
|
*/
|
|
2935
|
-
asset:
|
|
3399
|
+
asset: AssetAmount;
|
|
2936
3400
|
};
|
|
2937
3401
|
|
|
2938
3402
|
type CChainImportTransaction = {
|
|
@@ -2959,11 +3423,11 @@ type CChainImportTransaction = {
|
|
|
2959
3423
|
/**
|
|
2960
3424
|
* Assets unlocked by inputs of this transaction.
|
|
2961
3425
|
*/
|
|
2962
|
-
amountUnlocked: Array<
|
|
3426
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2963
3427
|
/**
|
|
2964
3428
|
* Assets created by outputs of this transaction.
|
|
2965
3429
|
*/
|
|
2966
|
-
amountCreated: Array<
|
|
3430
|
+
amountCreated: Array<AssetAmount>;
|
|
2967
3431
|
/**
|
|
2968
3432
|
* Source chain for an atomic transaction.
|
|
2969
3433
|
*/
|
|
@@ -2999,16 +3463,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2999
3463
|
|
|
3000
3464
|
declare enum PChainTransactionType {
|
|
3001
3465
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3002
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3003
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3004
3466
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3005
|
-
|
|
3006
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3467
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3007
3468
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3008
3469
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3009
3470
|
IMPORT_TX = "ImportTx",
|
|
3010
3471
|
EXPORT_TX = "ExportTx",
|
|
3011
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",
|
|
3012
3480
|
UNKNOWN = "UNKNOWN"
|
|
3013
3481
|
}
|
|
3014
3482
|
|
|
@@ -3019,29 +3487,48 @@ declare enum UtxoType {
|
|
|
3019
3487
|
|
|
3020
3488
|
type PChainUtxo = {
|
|
3021
3489
|
/**
|
|
3022
|
-
*
|
|
3490
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3023
3491
|
*/
|
|
3024
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
|
+
*/
|
|
3025
3509
|
utxoId: string;
|
|
3026
|
-
|
|
3027
|
-
|
|
3510
|
+
/**
|
|
3511
|
+
* @deprecated
|
|
3512
|
+
*/
|
|
3513
|
+
amount: string;
|
|
3514
|
+
/**
|
|
3515
|
+
* @deprecated
|
|
3516
|
+
*/
|
|
3517
|
+
assetId: string;
|
|
3028
3518
|
blockNumber: string;
|
|
3029
3519
|
blockTimestamp: number;
|
|
3030
|
-
consumingTxHash?: string;
|
|
3031
|
-
consumingBlockTimestamp?: number;
|
|
3032
3520
|
consumingBlockNumber?: string;
|
|
3033
|
-
|
|
3034
|
-
utxoType: UtxoType;
|
|
3035
|
-
amount: string;
|
|
3036
|
-
stakeableLocktime?: number;
|
|
3521
|
+
consumingBlockTimestamp?: number;
|
|
3037
3522
|
platformLocktime?: number;
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3523
|
+
outputIndex: number;
|
|
3524
|
+
rewardType?: RewardType;
|
|
3525
|
+
stakeableLocktime?: number;
|
|
3041
3526
|
staked?: boolean;
|
|
3042
|
-
|
|
3527
|
+
threshold?: number;
|
|
3528
|
+
txHash: string;
|
|
3043
3529
|
utxoEndTimestamp?: number;
|
|
3044
|
-
|
|
3530
|
+
utxoStartTimestamp?: number;
|
|
3531
|
+
utxoType: UtxoType;
|
|
3045
3532
|
};
|
|
3046
3533
|
|
|
3047
3534
|
type PChainTransaction = {
|
|
@@ -3067,17 +3554,17 @@ type PChainTransaction = {
|
|
|
3067
3554
|
*/
|
|
3068
3555
|
destinationChain?: string;
|
|
3069
3556
|
/**
|
|
3070
|
-
* 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.
|
|
3071
3558
|
*/
|
|
3072
|
-
value: Array<
|
|
3559
|
+
value: Array<AssetAmount>;
|
|
3073
3560
|
/**
|
|
3074
|
-
* 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.
|
|
3075
3562
|
*/
|
|
3076
|
-
amountBurned: Array<
|
|
3563
|
+
amountBurned: Array<AssetAmount>;
|
|
3077
3564
|
/**
|
|
3078
|
-
* 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
|
|
3079
3566
|
*/
|
|
3080
|
-
amountStaked: Array<
|
|
3567
|
+
amountStaked: Array<AssetAmount>;
|
|
3081
3568
|
/**
|
|
3082
3569
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3083
3570
|
*/
|
|
@@ -3103,11 +3590,16 @@ type PChainTransaction = {
|
|
|
3103
3590
|
*/
|
|
3104
3591
|
estimatedReward?: string;
|
|
3105
3592
|
rewardTxHash?: string;
|
|
3593
|
+
rewardAddresses?: Array<string>;
|
|
3106
3594
|
memo?: string;
|
|
3107
3595
|
/**
|
|
3108
3596
|
* Present for RewardValidatorTx
|
|
3109
3597
|
*/
|
|
3110
3598
|
stakingTxHash?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3601
|
+
*/
|
|
3602
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3111
3603
|
};
|
|
3112
3604
|
|
|
3113
3605
|
type ListPChainTransactionsResponse = {
|
|
@@ -3119,6 +3611,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3119
3611
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3120
3612
|
};
|
|
3121
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
|
+
|
|
3122
3626
|
type XChainLinearTransaction = {
|
|
3123
3627
|
/**
|
|
3124
3628
|
* Unique ID for this transaction.
|
|
@@ -3132,10 +3636,7 @@ type XChainLinearTransaction = {
|
|
|
3132
3636
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3133
3637
|
*/
|
|
3134
3638
|
timestamp: number;
|
|
3135
|
-
|
|
3136
|
-
* Type of transaction.
|
|
3137
|
-
*/
|
|
3138
|
-
txType: string;
|
|
3639
|
+
txType: XChainTransactionType;
|
|
3139
3640
|
/**
|
|
3140
3641
|
* Hex encoded memo bytes for this transaction.
|
|
3141
3642
|
*/
|
|
@@ -3145,11 +3646,11 @@ type XChainLinearTransaction = {
|
|
|
3145
3646
|
/**
|
|
3146
3647
|
* Assets unlocked by inputs of this transaction.
|
|
3147
3648
|
*/
|
|
3148
|
-
amountUnlocked: Array<
|
|
3649
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3149
3650
|
/**
|
|
3150
3651
|
* Assets created by outputs of this transaction.
|
|
3151
3652
|
*/
|
|
3152
|
-
amountCreated: Array<
|
|
3653
|
+
amountCreated: Array<AssetAmount>;
|
|
3153
3654
|
/**
|
|
3154
3655
|
* Source chain for an atomic transaction.
|
|
3155
3656
|
*/
|
|
@@ -3159,7 +3660,7 @@ type XChainLinearTransaction = {
|
|
|
3159
3660
|
*/
|
|
3160
3661
|
destinationChain?: string;
|
|
3161
3662
|
/**
|
|
3162
|
-
*
|
|
3663
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3163
3664
|
*/
|
|
3164
3665
|
assetCreated?: XChainAssetDetails;
|
|
3165
3666
|
/**
|
|
@@ -3209,10 +3710,7 @@ type XChainNonLinearTransaction = {
|
|
|
3209
3710
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3210
3711
|
*/
|
|
3211
3712
|
timestamp: number;
|
|
3212
|
-
|
|
3213
|
-
* Type of transaction.
|
|
3214
|
-
*/
|
|
3215
|
-
txType: string;
|
|
3713
|
+
txType: XChainTransactionType;
|
|
3216
3714
|
/**
|
|
3217
3715
|
* Hex encoded memo bytes for this transaction.
|
|
3218
3716
|
*/
|
|
@@ -3222,11 +3720,11 @@ type XChainNonLinearTransaction = {
|
|
|
3222
3720
|
/**
|
|
3223
3721
|
* Assets unlocked by inputs of this transaction.
|
|
3224
3722
|
*/
|
|
3225
|
-
amountUnlocked: Array<
|
|
3723
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3226
3724
|
/**
|
|
3227
3725
|
* Assets created by outputs of this transaction.
|
|
3228
3726
|
*/
|
|
3229
|
-
amountCreated: Array<
|
|
3727
|
+
amountCreated: Array<AssetAmount>;
|
|
3230
3728
|
/**
|
|
3231
3729
|
* Source chain for an atomic transaction.
|
|
3232
3730
|
*/
|
|
@@ -3236,7 +3734,7 @@ type XChainNonLinearTransaction = {
|
|
|
3236
3734
|
*/
|
|
3237
3735
|
destinationChain?: string;
|
|
3238
3736
|
/**
|
|
3239
|
-
*
|
|
3737
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3240
3738
|
*/
|
|
3241
3739
|
assetCreated?: XChainAssetDetails;
|
|
3242
3740
|
/**
|
|
@@ -3270,18 +3768,21 @@ declare enum PChainId {
|
|
|
3270
3768
|
|
|
3271
3769
|
declare enum PrimaryNetworkTxType {
|
|
3272
3770
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3273
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3274
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3275
3771
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3276
|
-
|
|
3277
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3772
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3278
3773
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3279
3774
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3280
3775
|
IMPORT_TX = "ImportTx",
|
|
3281
3776
|
EXPORT_TX = "ExportTx",
|
|
3282
3777
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3283
|
-
|
|
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",
|
|
3284
3783
|
BASE_TX = "BaseTx",
|
|
3784
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3785
|
+
UNKNOWN = "UNKNOWN",
|
|
3285
3786
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3286
3787
|
OPERATION_TX = "OperationTx"
|
|
3287
3788
|
}
|
|
@@ -3311,11 +3812,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3812
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3813
|
/**
|
|
3313
3814
|
* List latest transactions
|
|
3314
|
-
* 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.
|
|
3315
3820
|
* @returns any
|
|
3316
3821
|
* @throws ApiError
|
|
3317
3822
|
*/
|
|
3318
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3823
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3319
3824
|
/**
|
|
3320
3825
|
* A primary network blockchain id or alias.
|
|
3321
3826
|
*/
|
|
@@ -3340,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3340
3845
|
* Query param for retrieving items before a specific timestamp.
|
|
3341
3846
|
*/
|
|
3342
3847
|
endTimestamp?: number;
|
|
3343
|
-
/**
|
|
3344
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3345
|
-
*/
|
|
3346
|
-
pageSize?: number;
|
|
3347
3848
|
/**
|
|
3348
3849
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3349
3850
|
*/
|
|
3350
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;
|
|
3351
3856
|
/**
|
|
3352
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.
|
|
3353
3858
|
*/
|
|
@@ -3359,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3359
3864
|
* @returns ListPChainTransactionsResponse
|
|
3360
3865
|
* @throws ApiError
|
|
3361
3866
|
*/
|
|
3362
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3867
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3363
3868
|
/**
|
|
3364
3869
|
* A primary network blockchain id or alias.
|
|
3365
3870
|
*/
|
|
@@ -3384,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3384
3889
|
* Query param for retrieving items before a specific timestamp.
|
|
3385
3890
|
*/
|
|
3386
3891
|
endTimestamp?: number;
|
|
3387
|
-
/**
|
|
3388
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3389
|
-
*/
|
|
3390
|
-
pageSize?: number;
|
|
3391
3892
|
/**
|
|
3392
3893
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3393
3894
|
*/
|
|
3394
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;
|
|
3395
3900
|
/**
|
|
3396
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.
|
|
3397
3902
|
*/
|
|
@@ -3403,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3403
3908
|
* @returns ListXChainTransactionsResponse
|
|
3404
3909
|
* @throws ApiError
|
|
3405
3910
|
*/
|
|
3406
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3911
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3407
3912
|
/**
|
|
3408
3913
|
* A primary network blockchain id or alias.
|
|
3409
3914
|
*/
|
|
@@ -3428,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3428
3933
|
* Query param for retrieving items before a specific timestamp.
|
|
3429
3934
|
*/
|
|
3430
3935
|
endTimestamp?: number;
|
|
3431
|
-
/**
|
|
3432
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3433
|
-
*/
|
|
3434
|
-
pageSize?: number;
|
|
3435
3936
|
/**
|
|
3436
3937
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3437
3938
|
*/
|
|
3438
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;
|
|
3439
3944
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3440
3945
|
}
|
|
3441
3946
|
|
|
@@ -3466,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3466
3971
|
* @returns any
|
|
3467
3972
|
* @throws ApiError
|
|
3468
3973
|
*/
|
|
3469
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3974
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3470
3975
|
/**
|
|
3471
3976
|
* A primary network blockchain id or alias.
|
|
3472
3977
|
*/
|
|
@@ -3479,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3479
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".
|
|
3480
3985
|
*/
|
|
3481
3986
|
addresses?: string;
|
|
3482
|
-
/**
|
|
3483
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3484
|
-
*/
|
|
3485
|
-
pageSize?: number;
|
|
3486
3987
|
/**
|
|
3487
3988
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3488
3989
|
*/
|
|
3489
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;
|
|
3490
3995
|
/**
|
|
3491
3996
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3492
3997
|
*/
|
|
@@ -3531,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3531
4036
|
* @returns ListXChainVerticesResponse
|
|
3532
4037
|
* @throws ApiError
|
|
3533
4038
|
*/
|
|
3534
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4039
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3535
4040
|
/**
|
|
3536
4041
|
* A primary network blockchain id or alias.
|
|
3537
4042
|
*/
|
|
@@ -3540,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3540
4045
|
* Either mainnet or a testnet.
|
|
3541
4046
|
*/
|
|
3542
4047
|
network: Network;
|
|
3543
|
-
/**
|
|
3544
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3545
|
-
*/
|
|
3546
|
-
pageSize?: number;
|
|
3547
4048
|
/**
|
|
3548
4049
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3549
4050
|
*/
|
|
3550
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;
|
|
3551
4056
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3552
4057
|
/**
|
|
3553
4058
|
* Get vertex
|
|
@@ -3575,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3575
4080
|
* @returns ListXChainVerticesResponse
|
|
3576
4081
|
* @throws ApiError
|
|
3577
4082
|
*/
|
|
3578
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4083
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3579
4084
|
/**
|
|
3580
4085
|
* The height of a vertex.
|
|
3581
4086
|
*/
|
|
@@ -3588,28 +4093,373 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3588
4093
|
* Either mainnet or a testnet.
|
|
3589
4094
|
*/
|
|
3590
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;
|
|
3591
4264
|
/**
|
|
3592
4265
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3593
4266
|
*/
|
|
3594
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, }: {
|
|
3595
4387
|
/**
|
|
3596
4388
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3597
4389
|
*/
|
|
3598
4390
|
pageToken?: string;
|
|
3599
4391
|
/**
|
|
3600
|
-
* The
|
|
4392
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3601
4393
|
*/
|
|
3602
|
-
|
|
3603
|
-
|
|
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>;
|
|
3604
4451
|
}
|
|
3605
4452
|
|
|
3606
4453
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3607
4454
|
declare class Glacier {
|
|
4455
|
+
readonly default: DefaultService;
|
|
3608
4456
|
readonly evmBalances: EvmBalancesService;
|
|
3609
4457
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
4458
|
readonly evmChains: EvmChainsService;
|
|
4459
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
4460
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
4461
|
readonly healthCheck: HealthCheckService;
|
|
4462
|
+
readonly nfTs: NfTsService;
|
|
3613
4463
|
readonly operations: OperationsService;
|
|
3614
4464
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
4465
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3618,6 +4468,8 @@ declare class Glacier {
|
|
|
3618
4468
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3619
4469
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3620
4470
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4471
|
+
readonly teleporter: TeleporterService;
|
|
4472
|
+
readonly webhooks: WebhooksService;
|
|
3621
4473
|
readonly request: BaseHttpRequest;
|
|
3622
4474
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3623
4475
|
}
|
|
@@ -3639,4 +4491,4 @@ declare class ApiError extends Error {
|
|
|
3639
4491
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
4492
|
}
|
|
3641
4493
|
|
|
3642
|
-
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 };
|