@avalabs/glacier-sdk 2.8.0-canary.3610e84.0 → 2.8.0-canary.3665604.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 +1636 -712
- package/dist/index.js +679 -196
- package/esm/generated/Glacier.d.ts +12 -0
- package/esm/generated/Glacier.js +41 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -31
- package/esm/generated/core/request.js +17 -33
- 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/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +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 +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -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/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/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/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +122 -0
- package/esm/generated/services/WebhooksService.js +108 -0
- package/esm/index.d.ts +48 -3
- package/esm/index.js +30 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -23,15 +23,9 @@ interface OnCancel {
|
|
|
23
23
|
(cancelHandler: () => void): void;
|
|
24
24
|
}
|
|
25
25
|
declare class CancelablePromise<T> implements Promise<T> {
|
|
26
|
-
|
|
27
|
-
private _isResolved;
|
|
28
|
-
private _isRejected;
|
|
29
|
-
private _isCancelled;
|
|
30
|
-
private readonly _cancelHandlers;
|
|
31
|
-
private readonly _promise;
|
|
32
|
-
private _resolve?;
|
|
33
|
-
private _reject?;
|
|
26
|
+
#private;
|
|
34
27
|
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
|
|
28
|
+
get [Symbol.toStringTag](): string;
|
|
35
29
|
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
36
30
|
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
37
31
|
finally(onFinally?: (() => void) | null): Promise<T>;
|
|
@@ -60,6 +54,19 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
57
|
+
declare class DefaultService {
|
|
58
|
+
readonly httpRequest: BaseHttpRequest;
|
|
59
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
60
|
+
/**
|
|
61
|
+
* @returns any
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
63
70
|
declare enum CurrencyCode {
|
|
64
71
|
USD = "usd",
|
|
65
72
|
EUR = "eur",
|
|
@@ -78,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
type Money = {
|
|
81
|
-
/**
|
|
82
|
-
* ISO 4217 currency code.
|
|
83
|
-
*/
|
|
84
88
|
currencyCode: CurrencyCode;
|
|
85
89
|
/**
|
|
86
90
|
* Monetary value in base 10 decimals.
|
|
@@ -130,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
130
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
131
135
|
};
|
|
132
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
133
140
|
declare enum NftTokenMetadataStatus {
|
|
134
141
|
UNKNOWN = "UNKNOWN",
|
|
135
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -145,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
145
152
|
}
|
|
146
153
|
|
|
147
154
|
type Erc1155TokenMetadata = {
|
|
148
|
-
/**
|
|
149
|
-
* The metadata indexing status of the nft.
|
|
150
|
-
*/
|
|
151
155
|
indexStatus: NftTokenMetadataStatus;
|
|
152
156
|
metadataLastUpdatedTimestamp?: number;
|
|
153
157
|
name?: string;
|
|
@@ -186,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
186
190
|
}
|
|
187
191
|
|
|
188
192
|
type Erc721TokenMetadata = {
|
|
189
|
-
/**
|
|
190
|
-
* The metadata indexing status of the nft.
|
|
191
|
-
*/
|
|
192
193
|
indexStatus: NftTokenMetadataStatus;
|
|
193
194
|
metadataLastUpdatedTimestamp?: number;
|
|
194
195
|
name?: string;
|
|
@@ -335,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
335
336
|
*/
|
|
336
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
338
|
/**
|
|
338
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
340
|
*/
|
|
340
341
|
chainId: string;
|
|
341
342
|
/**
|
|
@@ -361,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
361
362
|
* @returns ListErc20BalancesResponse
|
|
362
363
|
* @throws ApiError
|
|
363
364
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
366
|
/**
|
|
366
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
368
|
*/
|
|
368
369
|
chainId: string;
|
|
369
370
|
/**
|
|
@@ -374,14 +375,14 @@ declare class EvmBalancesService {
|
|
|
374
375
|
* The block number, if not defined the block number will be the latest block.
|
|
375
376
|
*/
|
|
376
377
|
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
378
|
/**
|
|
382
379
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
380
|
*/
|
|
384
381
|
pageToken?: string;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
|
+
*/
|
|
385
|
+
pageSize?: number;
|
|
385
386
|
/**
|
|
386
387
|
* A comma separated list of contract addresses to filter by.
|
|
387
388
|
*/
|
|
@@ -399,23 +400,23 @@ declare class EvmBalancesService {
|
|
|
399
400
|
* @returns ListErc721BalancesResponse
|
|
400
401
|
* @throws ApiError
|
|
401
402
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
403
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
404
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
406
|
*/
|
|
406
407
|
chainId: string;
|
|
407
408
|
/**
|
|
408
409
|
* A wallet address.
|
|
409
410
|
*/
|
|
410
411
|
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
412
|
/**
|
|
416
413
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
414
|
*/
|
|
418
415
|
pageToken?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
418
|
+
*/
|
|
419
|
+
pageSize?: number;
|
|
419
420
|
/**
|
|
420
421
|
* A contract addresses to filter by.
|
|
421
422
|
*/
|
|
@@ -431,9 +432,9 @@ declare class EvmBalancesService {
|
|
|
431
432
|
* @returns ListErc1155BalancesResponse
|
|
432
433
|
* @throws ApiError
|
|
433
434
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
435
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
436
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
438
|
*/
|
|
438
439
|
chainId: string;
|
|
439
440
|
/**
|
|
@@ -444,14 +445,14 @@ declare class EvmBalancesService {
|
|
|
444
445
|
* The block number, if not defined the block number will be the latest block.
|
|
445
446
|
*/
|
|
446
447
|
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
448
|
/**
|
|
452
449
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
450
|
*/
|
|
454
451
|
pageToken?: string;
|
|
452
|
+
/**
|
|
453
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
454
|
+
*/
|
|
455
|
+
pageSize?: number;
|
|
455
456
|
/**
|
|
456
457
|
* A contract addresses to filter by.
|
|
457
458
|
*/
|
|
@@ -465,23 +466,23 @@ declare class EvmBalancesService {
|
|
|
465
466
|
* @returns ListCollectibleBalancesResponse
|
|
466
467
|
* @throws ApiError
|
|
467
468
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
469
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
470
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
472
|
*/
|
|
472
473
|
chainId: string;
|
|
473
474
|
/**
|
|
474
475
|
* A wallet address.
|
|
475
476
|
*/
|
|
476
477
|
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
478
|
/**
|
|
482
479
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
480
|
*/
|
|
484
481
|
pageToken?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
484
|
+
*/
|
|
485
|
+
pageSize?: number;
|
|
485
486
|
/**
|
|
486
487
|
* A contract addresses to filter by.
|
|
487
488
|
*/
|
|
@@ -594,19 +595,19 @@ declare class EvmBlocksService {
|
|
|
594
595
|
* @returns ListEvmBlocksResponse
|
|
595
596
|
* @throws ApiError
|
|
596
597
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
598
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
599
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
601
|
*/
|
|
601
602
|
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
603
|
/**
|
|
607
604
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
605
|
*/
|
|
609
606
|
pageToken?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
609
|
+
*/
|
|
610
|
+
pageSize?: number;
|
|
610
611
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
612
|
/**
|
|
612
613
|
* Get block
|
|
@@ -616,7 +617,7 @@ declare class EvmBlocksService {
|
|
|
616
617
|
*/
|
|
617
618
|
getBlock({ chainId, blockId, }: {
|
|
618
619
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
621
|
*/
|
|
621
622
|
chainId: string;
|
|
622
623
|
/**
|
|
@@ -626,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
626
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
627
628
|
}
|
|
628
629
|
|
|
630
|
+
/**
|
|
631
|
+
* 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.
|
|
632
|
+
*/
|
|
629
633
|
declare enum ChainStatus {
|
|
630
634
|
OK = "OK",
|
|
631
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -663,9 +667,6 @@ declare enum VmName {
|
|
|
663
667
|
|
|
664
668
|
type GetChainResponse = {
|
|
665
669
|
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
670
|
status: ChainStatus;
|
|
670
671
|
chainName: string;
|
|
671
672
|
description: string;
|
|
@@ -680,13 +681,17 @@ type GetChainResponse = {
|
|
|
680
681
|
utilityAddresses?: UtilityAddresses;
|
|
681
682
|
networkToken: NetworkToken;
|
|
682
683
|
chainLogoUri?: string;
|
|
684
|
+
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
683
686
|
};
|
|
684
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing",
|
|
690
|
+
WEBHOOKS = "webhooks"
|
|
691
|
+
}
|
|
692
|
+
|
|
685
693
|
type ChainInfo = {
|
|
686
694
|
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
695
|
status: ChainStatus;
|
|
691
696
|
chainName: string;
|
|
692
697
|
description: string;
|
|
@@ -701,6 +706,8 @@ type ChainInfo = {
|
|
|
701
706
|
utilityAddresses?: UtilityAddresses;
|
|
702
707
|
networkToken: NetworkToken;
|
|
703
708
|
chainLogoUri?: string;
|
|
709
|
+
private?: boolean;
|
|
710
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
704
711
|
};
|
|
705
712
|
|
|
706
713
|
type ListChainsResponse = {
|
|
@@ -721,11 +728,15 @@ declare class EvmChainsService {
|
|
|
721
728
|
* @returns ListChainsResponse
|
|
722
729
|
* @throws ApiError
|
|
723
730
|
*/
|
|
724
|
-
supportedChains({ network, }: {
|
|
731
|
+
supportedChains({ network, feature, }: {
|
|
725
732
|
/**
|
|
726
733
|
* mainnet or testnet.
|
|
727
734
|
*/
|
|
728
735
|
network?: NetworkType;
|
|
736
|
+
/**
|
|
737
|
+
* Filter by feature.
|
|
738
|
+
*/
|
|
739
|
+
feature?: GlacierApiFeature;
|
|
729
740
|
}): CancelablePromise<ListChainsResponse>;
|
|
730
741
|
/**
|
|
731
742
|
* Get chain information
|
|
@@ -735,449 +746,592 @@ declare class EvmChainsService {
|
|
|
735
746
|
*/
|
|
736
747
|
getChainInfo({ chainId, }: {
|
|
737
748
|
/**
|
|
738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
749
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
739
750
|
*/
|
|
740
751
|
chainId: string;
|
|
741
752
|
}): CancelablePromise<GetChainResponse>;
|
|
742
753
|
}
|
|
743
754
|
|
|
744
|
-
type
|
|
755
|
+
type ImageAsset = {
|
|
756
|
+
assetId?: string;
|
|
745
757
|
/**
|
|
746
|
-
*
|
|
758
|
+
* OUTPUT ONLY
|
|
747
759
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
760
|
+
imageUri?: string;
|
|
753
761
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
762
|
+
|
|
763
|
+
type PricingProviders = {
|
|
764
|
+
coingeckoCoinId?: string;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
declare enum ResourceLinkType {
|
|
768
|
+
BLOG = "Blog",
|
|
769
|
+
COIN_GECKO = "CoinGecko",
|
|
770
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
771
|
+
DISCORD = "Discord",
|
|
772
|
+
DOCUMENTATION = "Documentation",
|
|
773
|
+
FACEBOOK = "Facebook",
|
|
774
|
+
GITHUB = "Github",
|
|
775
|
+
INSTAGRAM = "Instagram",
|
|
776
|
+
LINKED_IN = "LinkedIn",
|
|
777
|
+
MEDIUM = "Medium",
|
|
778
|
+
REDDIT = "Reddit",
|
|
779
|
+
SUPPORT = "Support",
|
|
780
|
+
TELEGRAM = "Telegram",
|
|
781
|
+
TIK_TOK = "TikTok",
|
|
782
|
+
TWITTER = "Twitter",
|
|
783
|
+
WEBSITE = "Website",
|
|
784
|
+
WHITEPAPER = "Whitepaper",
|
|
785
|
+
YOUTUBE = "Youtube"
|
|
758
786
|
}
|
|
759
787
|
|
|
760
|
-
type
|
|
788
|
+
type ResourceLink = {
|
|
789
|
+
type: ResourceLinkType;
|
|
790
|
+
url: string;
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
type ContractSubmissionErc1155 = {
|
|
794
|
+
description?: string;
|
|
795
|
+
officialSite?: string;
|
|
796
|
+
email?: string;
|
|
797
|
+
logoAsset?: ImageAsset;
|
|
798
|
+
bannerAsset?: ImageAsset;
|
|
799
|
+
color?: string;
|
|
800
|
+
resourceLinks?: Array<ResourceLink>;
|
|
801
|
+
tags?: Array<string>;
|
|
761
802
|
/**
|
|
762
803
|
* The contract name.
|
|
763
804
|
*/
|
|
764
|
-
name
|
|
805
|
+
name: string;
|
|
806
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
807
|
/**
|
|
766
808
|
* The contract symbol.
|
|
767
809
|
*/
|
|
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;
|
|
810
|
+
symbol: string;
|
|
811
|
+
pricingProviders?: PricingProviders;
|
|
789
812
|
};
|
|
813
|
+
declare namespace ContractSubmissionErc1155 {
|
|
814
|
+
enum ercType {
|
|
815
|
+
ERC_1155 = "ERC-1155"
|
|
816
|
+
}
|
|
817
|
+
}
|
|
790
818
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
819
|
+
type ContractSubmissionErc20 = {
|
|
820
|
+
description?: string;
|
|
821
|
+
officialSite?: string;
|
|
822
|
+
email?: string;
|
|
823
|
+
logoAsset?: ImageAsset;
|
|
824
|
+
bannerAsset?: ImageAsset;
|
|
825
|
+
color?: string;
|
|
826
|
+
resourceLinks?: Array<ResourceLink>;
|
|
827
|
+
tags?: Array<string>;
|
|
796
828
|
/**
|
|
797
829
|
* The contract name.
|
|
798
830
|
*/
|
|
799
831
|
name: string;
|
|
832
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
833
|
/**
|
|
801
834
|
* The contract symbol.
|
|
802
835
|
*/
|
|
803
836
|
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;
|
|
837
|
+
pricingProviders?: PricingProviders;
|
|
817
838
|
};
|
|
818
|
-
declare namespace
|
|
839
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
840
|
enum ercType {
|
|
820
841
|
ERC_20 = "ERC-20"
|
|
821
842
|
}
|
|
822
843
|
}
|
|
823
844
|
|
|
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;
|
|
845
|
+
type ContractSubmissionErc721 = {
|
|
846
|
+
description?: string;
|
|
847
|
+
officialSite?: string;
|
|
848
|
+
email?: string;
|
|
849
|
+
logoAsset?: ImageAsset;
|
|
850
|
+
bannerAsset?: ImageAsset;
|
|
851
|
+
color?: string;
|
|
852
|
+
resourceLinks?: Array<ResourceLink>;
|
|
853
|
+
tags?: Array<string>;
|
|
837
854
|
/**
|
|
838
855
|
* The contract name.
|
|
839
856
|
*/
|
|
840
857
|
name: string;
|
|
858
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
859
|
/**
|
|
842
860
|
* The contract symbol.
|
|
843
861
|
*/
|
|
844
862
|
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
863
|
};
|
|
854
|
-
declare namespace
|
|
864
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
865
|
enum ercType {
|
|
856
866
|
ERC_721 = "ERC-721"
|
|
857
867
|
}
|
|
858
868
|
}
|
|
859
869
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
870
|
+
type ContractSubmissionUnknown = {
|
|
871
|
+
description?: string;
|
|
872
|
+
officialSite?: string;
|
|
873
|
+
email?: string;
|
|
874
|
+
logoAsset?: ImageAsset;
|
|
875
|
+
bannerAsset?: ImageAsset;
|
|
876
|
+
color?: string;
|
|
877
|
+
resourceLinks?: Array<ResourceLink>;
|
|
878
|
+
tags?: Array<string>;
|
|
879
|
+
/**
|
|
880
|
+
* The contract name.
|
|
881
|
+
*/
|
|
882
|
+
name: string;
|
|
883
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
865
884
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
885
|
+
declare namespace ContractSubmissionUnknown {
|
|
886
|
+
enum ercType {
|
|
887
|
+
UNKNOWN = "UNKNOWN"
|
|
888
|
+
}
|
|
871
889
|
}
|
|
872
890
|
|
|
873
|
-
type
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
891
|
+
type ContractSubmissionBody = {
|
|
892
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
type ContractDeploymentDetails = {
|
|
896
|
+
txHash: string;
|
|
878
897
|
/**
|
|
879
|
-
* The
|
|
898
|
+
* The address that initiated the transaction which deployed this contract.
|
|
880
899
|
*/
|
|
881
|
-
|
|
900
|
+
deployerAddress: string;
|
|
882
901
|
/**
|
|
883
|
-
* The contract
|
|
902
|
+
* 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
903
|
*/
|
|
885
|
-
|
|
904
|
+
deployerContractAddress?: string;
|
|
886
905
|
};
|
|
887
906
|
|
|
888
|
-
type
|
|
907
|
+
type Erc1155Contract = {
|
|
889
908
|
/**
|
|
890
|
-
* The
|
|
909
|
+
* The contract name.
|
|
891
910
|
*/
|
|
892
|
-
|
|
911
|
+
name?: string;
|
|
912
|
+
description?: string;
|
|
913
|
+
officialSite?: string;
|
|
914
|
+
email?: string;
|
|
915
|
+
logoAsset?: ImageAsset;
|
|
916
|
+
bannerAsset?: ImageAsset;
|
|
917
|
+
color?: string;
|
|
918
|
+
resourceLinks?: Array<ResourceLink>;
|
|
919
|
+
tags?: Array<string>;
|
|
893
920
|
/**
|
|
894
|
-
*
|
|
921
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
895
922
|
*/
|
|
896
|
-
|
|
923
|
+
address: string;
|
|
924
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
925
|
+
ercType: Erc1155Contract.ercType;
|
|
897
926
|
/**
|
|
898
|
-
* The
|
|
927
|
+
* The contract symbol.
|
|
899
928
|
*/
|
|
900
|
-
|
|
929
|
+
symbol?: string;
|
|
930
|
+
pricingProviders?: PricingProviders;
|
|
931
|
+
};
|
|
932
|
+
declare namespace Erc1155Contract {
|
|
933
|
+
enum ercType {
|
|
934
|
+
ERC_1155 = "ERC-1155"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
type Erc20Contract = {
|
|
901
939
|
/**
|
|
902
|
-
* The
|
|
940
|
+
* The contract name.
|
|
903
941
|
*/
|
|
904
|
-
|
|
942
|
+
name?: string;
|
|
943
|
+
description?: string;
|
|
944
|
+
officialSite?: string;
|
|
945
|
+
email?: string;
|
|
946
|
+
logoAsset?: ImageAsset;
|
|
947
|
+
bannerAsset?: ImageAsset;
|
|
948
|
+
color?: string;
|
|
949
|
+
resourceLinks?: Array<ResourceLink>;
|
|
950
|
+
tags?: Array<string>;
|
|
905
951
|
/**
|
|
906
|
-
*
|
|
952
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
907
953
|
*/
|
|
908
|
-
|
|
954
|
+
address: string;
|
|
955
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
956
|
+
ercType: Erc20Contract.ercType;
|
|
909
957
|
/**
|
|
910
|
-
* The
|
|
958
|
+
* The contract symbol.
|
|
911
959
|
*/
|
|
912
|
-
|
|
960
|
+
symbol?: string;
|
|
913
961
|
/**
|
|
914
|
-
* The
|
|
962
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
915
963
|
*/
|
|
916
|
-
|
|
964
|
+
decimals: number;
|
|
965
|
+
pricingProviders?: PricingProviders;
|
|
966
|
+
};
|
|
967
|
+
declare namespace Erc20Contract {
|
|
968
|
+
enum ercType {
|
|
969
|
+
ERC_20 = "ERC-20"
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
type Erc721Contract = {
|
|
917
974
|
/**
|
|
918
|
-
* The
|
|
975
|
+
* The contract name.
|
|
919
976
|
*/
|
|
920
|
-
|
|
977
|
+
name?: string;
|
|
978
|
+
description?: string;
|
|
979
|
+
officialSite?: string;
|
|
980
|
+
email?: string;
|
|
981
|
+
logoAsset?: ImageAsset;
|
|
982
|
+
bannerAsset?: ImageAsset;
|
|
983
|
+
color?: string;
|
|
984
|
+
resourceLinks?: Array<ResourceLink>;
|
|
985
|
+
tags?: Array<string>;
|
|
921
986
|
/**
|
|
922
|
-
*
|
|
987
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
923
988
|
*/
|
|
924
|
-
|
|
989
|
+
address: string;
|
|
990
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
991
|
+
ercType: Erc721Contract.ercType;
|
|
925
992
|
/**
|
|
926
|
-
* The
|
|
993
|
+
* The contract symbol.
|
|
927
994
|
*/
|
|
928
|
-
|
|
995
|
+
symbol?: string;
|
|
996
|
+
};
|
|
997
|
+
declare namespace Erc721Contract {
|
|
998
|
+
enum ercType {
|
|
999
|
+
ERC_721 = "ERC-721"
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
type UnknownContract = {
|
|
929
1004
|
/**
|
|
930
|
-
* The
|
|
1005
|
+
* The contract name.
|
|
931
1006
|
*/
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
1007
|
+
name?: string;
|
|
1008
|
+
description?: string;
|
|
1009
|
+
officialSite?: string;
|
|
1010
|
+
email?: string;
|
|
1011
|
+
logoAsset?: ImageAsset;
|
|
1012
|
+
bannerAsset?: ImageAsset;
|
|
1013
|
+
color?: string;
|
|
1014
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1015
|
+
tags?: Array<string>;
|
|
937
1016
|
/**
|
|
938
|
-
*
|
|
1017
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
939
1018
|
*/
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
maxPriorityFeePerGas?: string;
|
|
1019
|
+
address: string;
|
|
1020
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1021
|
+
ercType: UnknownContract.ercType;
|
|
944
1022
|
};
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
CREATE = "CREATE",
|
|
950
|
-
CREATE2 = "CREATE2",
|
|
951
|
-
CALLCODE = "CALLCODE",
|
|
952
|
-
DELEGATECALL = "DELEGATECALL",
|
|
953
|
-
STATICCALL = "STATICCALL"
|
|
1023
|
+
declare namespace UnknownContract {
|
|
1024
|
+
enum ercType {
|
|
1025
|
+
UNKNOWN = "UNKNOWN"
|
|
1026
|
+
}
|
|
954
1027
|
}
|
|
955
1028
|
|
|
956
|
-
type
|
|
957
|
-
|
|
958
|
-
to: RichAddress;
|
|
959
|
-
internalTxType: InternalTransactionOpCall;
|
|
960
|
-
value: string;
|
|
961
|
-
/**
|
|
962
|
-
* True if the internal transaction was reverted.
|
|
963
|
-
*/
|
|
964
|
-
isReverted: boolean;
|
|
965
|
-
gasUsed: string;
|
|
966
|
-
gasLimit: string;
|
|
1029
|
+
type UpdateContractResponse = {
|
|
1030
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
967
1031
|
};
|
|
968
1032
|
|
|
969
|
-
|
|
970
|
-
|
|
1033
|
+
declare class EvmContractsService {
|
|
1034
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1035
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
971
1036
|
/**
|
|
972
|
-
*
|
|
1037
|
+
* Get contract metadata
|
|
1038
|
+
* Gets metadata about the contract at the given address.
|
|
1039
|
+
* @returns any
|
|
1040
|
+
* @throws ApiError
|
|
973
1041
|
*/
|
|
974
|
-
|
|
1042
|
+
getContractMetadata({ chainId, address, }: {
|
|
1043
|
+
/**
|
|
1044
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1045
|
+
*/
|
|
1046
|
+
chainId: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* Contract address on the relevant chain.
|
|
1049
|
+
*/
|
|
1050
|
+
address: string;
|
|
1051
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
975
1052
|
/**
|
|
976
|
-
*
|
|
1053
|
+
* Update contract information
|
|
1054
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1055
|
+
* @returns UpdateContractResponse
|
|
1056
|
+
* @throws ApiError
|
|
977
1057
|
*/
|
|
978
|
-
|
|
1058
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1059
|
+
/**
|
|
1060
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1061
|
+
*/
|
|
1062
|
+
chainId: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* Contract address on the relevant chain.
|
|
1065
|
+
*/
|
|
1066
|
+
address: string;
|
|
1067
|
+
requestBody: ContractSubmissionBody;
|
|
1068
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
type Erc1155Token = {
|
|
1072
|
+
/**
|
|
1073
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1074
|
+
*/
|
|
1075
|
+
address: string;
|
|
1076
|
+
ercType: Erc1155Token.ercType;
|
|
1077
|
+
tokenId: string;
|
|
1078
|
+
tokenUri: string;
|
|
1079
|
+
metadata: Erc1155TokenMetadata;
|
|
979
1080
|
};
|
|
1081
|
+
declare namespace Erc1155Token {
|
|
1082
|
+
enum ercType {
|
|
1083
|
+
ERC_1155 = "ERC-1155"
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
980
1086
|
|
|
981
|
-
type
|
|
1087
|
+
type RichAddress = {
|
|
982
1088
|
/**
|
|
983
|
-
* The
|
|
1089
|
+
* The contract name.
|
|
984
1090
|
*/
|
|
985
|
-
|
|
1091
|
+
name?: string;
|
|
986
1092
|
/**
|
|
987
|
-
* The
|
|
1093
|
+
* The contract symbol.
|
|
988
1094
|
*/
|
|
989
|
-
|
|
1095
|
+
symbol?: string;
|
|
990
1096
|
/**
|
|
991
|
-
* The
|
|
1097
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
992
1098
|
*/
|
|
993
|
-
|
|
1099
|
+
decimals?: number;
|
|
994
1100
|
/**
|
|
995
|
-
* The
|
|
1101
|
+
* The logo uri for the address.
|
|
996
1102
|
*/
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1103
|
+
logoUri?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1106
|
+
*/
|
|
1107
|
+
address: string;
|
|
1000
1108
|
};
|
|
1001
1109
|
|
|
1002
|
-
type
|
|
1003
|
-
|
|
1110
|
+
type Erc1155TransferDetails = {
|
|
1111
|
+
from: RichAddress;
|
|
1112
|
+
to: RichAddress;
|
|
1113
|
+
logIndex: number;
|
|
1114
|
+
value: string;
|
|
1115
|
+
erc1155Token: Erc1155Token;
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
type Erc20Token = {
|
|
1004
1119
|
/**
|
|
1005
|
-
*
|
|
1120
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1006
1121
|
*/
|
|
1007
|
-
|
|
1122
|
+
address: string;
|
|
1008
1123
|
/**
|
|
1009
|
-
* The contract
|
|
1124
|
+
* The contract name.
|
|
1010
1125
|
*/
|
|
1011
|
-
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1126
|
+
name: string;
|
|
1015
1127
|
/**
|
|
1016
|
-
*
|
|
1128
|
+
* The contract symbol.
|
|
1017
1129
|
*/
|
|
1018
|
-
|
|
1130
|
+
symbol: string;
|
|
1019
1131
|
/**
|
|
1020
|
-
*
|
|
1132
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1021
1133
|
*/
|
|
1022
|
-
|
|
1134
|
+
decimals: number;
|
|
1135
|
+
/**
|
|
1136
|
+
* The logo uri for the address.
|
|
1137
|
+
*/
|
|
1138
|
+
logoUri?: string;
|
|
1139
|
+
ercType: Erc20Token.ercType;
|
|
1140
|
+
/**
|
|
1141
|
+
* The token price, if available.
|
|
1142
|
+
*/
|
|
1143
|
+
price?: Money;
|
|
1023
1144
|
};
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
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"
|
|
1145
|
+
declare namespace Erc20Token {
|
|
1146
|
+
enum ercType {
|
|
1147
|
+
ERC_20 = "ERC-20"
|
|
1148
|
+
}
|
|
1044
1149
|
}
|
|
1045
1150
|
|
|
1046
|
-
type
|
|
1047
|
-
|
|
1048
|
-
|
|
1151
|
+
type Erc20TransferDetails = {
|
|
1152
|
+
from: RichAddress;
|
|
1153
|
+
to: RichAddress;
|
|
1154
|
+
logIndex: number;
|
|
1155
|
+
value: string;
|
|
1156
|
+
erc20Token: Erc20Token;
|
|
1049
1157
|
};
|
|
1050
1158
|
|
|
1051
|
-
type
|
|
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>;
|
|
1159
|
+
type Erc721Token = {
|
|
1065
1160
|
/**
|
|
1066
1161
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
1162
|
*/
|
|
1068
1163
|
address: string;
|
|
1069
|
-
|
|
1070
|
-
|
|
1164
|
+
/**
|
|
1165
|
+
* The contract name.
|
|
1166
|
+
*/
|
|
1167
|
+
name: string;
|
|
1071
1168
|
/**
|
|
1072
1169
|
* The contract symbol.
|
|
1073
1170
|
*/
|
|
1074
|
-
symbol
|
|
1171
|
+
symbol: string;
|
|
1172
|
+
ercType: Erc721Token.ercType;
|
|
1173
|
+
tokenId: string;
|
|
1174
|
+
tokenUri: string;
|
|
1175
|
+
metadata: Erc721TokenMetadata;
|
|
1176
|
+
/**
|
|
1177
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1178
|
+
*/
|
|
1179
|
+
ownerAddress?: string;
|
|
1075
1180
|
};
|
|
1076
|
-
declare namespace
|
|
1181
|
+
declare namespace Erc721Token {
|
|
1077
1182
|
enum ercType {
|
|
1078
|
-
|
|
1183
|
+
ERC_721 = "ERC-721"
|
|
1079
1184
|
}
|
|
1080
1185
|
}
|
|
1081
1186
|
|
|
1082
|
-
type
|
|
1187
|
+
type Erc721TransferDetails = {
|
|
1188
|
+
from: RichAddress;
|
|
1189
|
+
to: RichAddress;
|
|
1190
|
+
logIndex: number;
|
|
1191
|
+
erc721Token: Erc721Token;
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* 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.
|
|
1196
|
+
*/
|
|
1197
|
+
declare enum TransactionMethodType {
|
|
1198
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1199
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1200
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
type Method = {
|
|
1204
|
+
callType: TransactionMethodType;
|
|
1205
|
+
/**
|
|
1206
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1207
|
+
*/
|
|
1208
|
+
methodHash: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* 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'.
|
|
1211
|
+
*/
|
|
1212
|
+
methodName?: string;
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
type FullNativeTransactionDetails = {
|
|
1216
|
+
/**
|
|
1217
|
+
* The block number on the chain.
|
|
1218
|
+
*/
|
|
1219
|
+
blockNumber: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* The block finality timestamp.
|
|
1222
|
+
*/
|
|
1223
|
+
blockTimestamp: number;
|
|
1224
|
+
/**
|
|
1225
|
+
* The block hash identifier.
|
|
1226
|
+
*/
|
|
1227
|
+
blockHash: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1230
|
+
*/
|
|
1231
|
+
blockIndex: number;
|
|
1232
|
+
/**
|
|
1233
|
+
* The transaction hash identifier.
|
|
1234
|
+
*/
|
|
1235
|
+
txHash: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1238
|
+
*/
|
|
1239
|
+
txStatus: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* The transaction type.
|
|
1242
|
+
*/
|
|
1243
|
+
txType: number;
|
|
1244
|
+
/**
|
|
1245
|
+
* The gas limit set for the transaction.
|
|
1246
|
+
*/
|
|
1247
|
+
gasLimit: string;
|
|
1083
1248
|
/**
|
|
1084
|
-
* The
|
|
1249
|
+
* The amount of gas used.
|
|
1085
1250
|
*/
|
|
1086
|
-
|
|
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>;
|
|
1251
|
+
gasUsed: string;
|
|
1096
1252
|
/**
|
|
1097
|
-
*
|
|
1253
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1098
1254
|
*/
|
|
1099
|
-
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1255
|
+
gasPrice: string;
|
|
1102
1256
|
/**
|
|
1103
|
-
* The
|
|
1257
|
+
* The nonce used by the sender of the transaction.
|
|
1104
1258
|
*/
|
|
1105
|
-
|
|
1259
|
+
nonce: string;
|
|
1260
|
+
from: RichAddress;
|
|
1261
|
+
to: RichAddress;
|
|
1262
|
+
method?: Method;
|
|
1263
|
+
value: string;
|
|
1106
1264
|
/**
|
|
1107
|
-
* The
|
|
1265
|
+
* The data sent for the transaction.
|
|
1108
1266
|
*/
|
|
1109
|
-
|
|
1267
|
+
input: string;
|
|
1268
|
+
baseFeePerGas: string;
|
|
1269
|
+
maxFeePerGas?: string;
|
|
1270
|
+
maxPriorityFeePerGas?: string;
|
|
1110
1271
|
};
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1272
|
+
|
|
1273
|
+
declare enum InternalTransactionOpCall {
|
|
1274
|
+
UNKNOWN = "UNKNOWN",
|
|
1275
|
+
CALL = "CALL",
|
|
1276
|
+
CREATE = "CREATE",
|
|
1277
|
+
CREATE2 = "CREATE2",
|
|
1278
|
+
CALLCODE = "CALLCODE",
|
|
1279
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1280
|
+
STATICCALL = "STATICCALL"
|
|
1115
1281
|
}
|
|
1116
1282
|
|
|
1117
|
-
type
|
|
1283
|
+
type InternalTransactionDetails = {
|
|
1284
|
+
from: RichAddress;
|
|
1285
|
+
to: RichAddress;
|
|
1286
|
+
internalTxType: InternalTransactionOpCall;
|
|
1287
|
+
value: string;
|
|
1118
1288
|
/**
|
|
1119
|
-
*
|
|
1289
|
+
* True if the internal transaction was reverted.
|
|
1120
1290
|
*/
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
coingeckoCoinId?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1291
|
+
isReverted: boolean;
|
|
1292
|
+
gasUsed: string;
|
|
1293
|
+
gasLimit: string;
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
type NetworkTokenDetails = {
|
|
1297
|
+
networkToken: NetworkToken;
|
|
1131
1298
|
/**
|
|
1132
|
-
*
|
|
1299
|
+
* The current token price, if available.
|
|
1133
1300
|
*/
|
|
1134
|
-
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1301
|
+
currentPrice?: Money;
|
|
1137
1302
|
/**
|
|
1138
|
-
* The
|
|
1303
|
+
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
1139
1304
|
*/
|
|
1140
|
-
|
|
1305
|
+
historicalPrice?: Money;
|
|
1141
1306
|
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
1307
|
|
|
1148
|
-
type
|
|
1308
|
+
type GetTransactionResponse = {
|
|
1149
1309
|
/**
|
|
1150
|
-
* The
|
|
1310
|
+
* The list of ERC-20 transfers.
|
|
1151
1311
|
*/
|
|
1152
|
-
|
|
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>;
|
|
1312
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1162
1313
|
/**
|
|
1163
|
-
*
|
|
1314
|
+
* The list of ERC-721 transfers.
|
|
1164
1315
|
*/
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1316
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1317
|
+
/**
|
|
1318
|
+
* The list of ERC-1155 transfers.
|
|
1319
|
+
*/
|
|
1320
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1321
|
+
/**
|
|
1322
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1323
|
+
*/
|
|
1324
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1325
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1326
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1168
1327
|
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
1328
|
|
|
1175
1329
|
type ListContractsResponse = {
|
|
1176
1330
|
/**
|
|
1177
1331
|
* 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
1332
|
*/
|
|
1179
1333
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1334
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1335
|
};
|
|
1182
1336
|
|
|
1183
1337
|
type Erc1155Transfer = {
|
|
@@ -1407,7 +1561,7 @@ type ListTransfersResponse = {
|
|
|
1407
1561
|
* 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
1562
|
*/
|
|
1409
1563
|
nextPageToken?: string;
|
|
1410
|
-
transfers:
|
|
1564
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1411
1565
|
};
|
|
1412
1566
|
|
|
1413
1567
|
declare enum SortOrder {
|
|
@@ -1431,7 +1585,7 @@ declare class EvmTransactionsService {
|
|
|
1431
1585
|
*/
|
|
1432
1586
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1433
1587
|
/**
|
|
1434
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1588
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1435
1589
|
*/
|
|
1436
1590
|
chainId: string;
|
|
1437
1591
|
/**
|
|
@@ -1449,23 +1603,23 @@ declare class EvmTransactionsService {
|
|
|
1449
1603
|
* @returns ListContractsResponse
|
|
1450
1604
|
* @throws ApiError
|
|
1451
1605
|
*/
|
|
1452
|
-
listContractDeployments({ chainId, address,
|
|
1606
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1453
1607
|
/**
|
|
1454
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1608
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1455
1609
|
*/
|
|
1456
1610
|
chainId: string;
|
|
1457
1611
|
/**
|
|
1458
1612
|
* A wallet address.
|
|
1459
1613
|
*/
|
|
1460
1614
|
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
1615
|
/**
|
|
1466
1616
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1467
1617
|
*/
|
|
1468
1618
|
pageToken?: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1621
|
+
*/
|
|
1622
|
+
pageSize?: number;
|
|
1469
1623
|
}): CancelablePromise<ListContractsResponse>;
|
|
1470
1624
|
/**
|
|
1471
1625
|
* List ERC transfers
|
|
@@ -1473,25 +1627,31 @@ declare class EvmTransactionsService {
|
|
|
1473
1627
|
* @returns ListTransfersResponse
|
|
1474
1628
|
* @throws ApiError
|
|
1475
1629
|
*/
|
|
1476
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1630
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1477
1631
|
/**
|
|
1478
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1632
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1479
1633
|
*/
|
|
1480
1634
|
chainId: string;
|
|
1481
1635
|
/**
|
|
1482
1636
|
* A wallet address.
|
|
1483
1637
|
*/
|
|
1484
1638
|
address: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* 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.
|
|
1641
|
+
*/
|
|
1485
1642
|
startBlock?: number;
|
|
1486
|
-
endBlock?: number;
|
|
1487
1643
|
/**
|
|
1488
|
-
* The
|
|
1644
|
+
* 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
1645
|
*/
|
|
1490
|
-
|
|
1646
|
+
endBlock?: number;
|
|
1491
1647
|
/**
|
|
1492
1648
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1493
1649
|
*/
|
|
1494
1650
|
pageToken?: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1653
|
+
*/
|
|
1654
|
+
pageSize?: number;
|
|
1495
1655
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1496
1656
|
/**
|
|
1497
1657
|
* List transactions
|
|
@@ -1501,24 +1661,30 @@ declare class EvmTransactionsService {
|
|
|
1501
1661
|
* @returns ListTransactionDetailsResponse
|
|
1502
1662
|
* @throws ApiError
|
|
1503
1663
|
*/
|
|
1504
|
-
listTransactions({ chainId, address,
|
|
1664
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1505
1665
|
/**
|
|
1506
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1666
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1507
1667
|
*/
|
|
1508
1668
|
chainId: string;
|
|
1509
1669
|
/**
|
|
1510
1670
|
* A wallet address.
|
|
1511
1671
|
*/
|
|
1512
1672
|
address: string;
|
|
1673
|
+
/**
|
|
1674
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1675
|
+
*/
|
|
1676
|
+
pageToken?: string;
|
|
1513
1677
|
/**
|
|
1514
1678
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1515
1679
|
*/
|
|
1516
1680
|
pageSize?: number;
|
|
1517
1681
|
/**
|
|
1518
|
-
*
|
|
1682
|
+
* 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
1683
|
*/
|
|
1520
|
-
pageToken?: string;
|
|
1521
1684
|
startBlock?: number;
|
|
1685
|
+
/**
|
|
1686
|
+
* 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.
|
|
1687
|
+
*/
|
|
1522
1688
|
endBlock?: number;
|
|
1523
1689
|
/**
|
|
1524
1690
|
* 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 +1697,31 @@ declare class EvmTransactionsService {
|
|
|
1531
1697
|
* @returns ListNativeTransactionsResponse
|
|
1532
1698
|
* @throws ApiError
|
|
1533
1699
|
*/
|
|
1534
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1700
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1535
1701
|
/**
|
|
1536
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1702
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1537
1703
|
*/
|
|
1538
1704
|
chainId: string;
|
|
1539
1705
|
/**
|
|
1540
1706
|
* A wallet address.
|
|
1541
1707
|
*/
|
|
1542
1708
|
address: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* 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.
|
|
1711
|
+
*/
|
|
1543
1712
|
startBlock?: number;
|
|
1544
|
-
endBlock?: number;
|
|
1545
1713
|
/**
|
|
1546
|
-
* The
|
|
1714
|
+
* 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
1715
|
*/
|
|
1548
|
-
|
|
1716
|
+
endBlock?: number;
|
|
1549
1717
|
/**
|
|
1550
1718
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1551
1719
|
*/
|
|
1552
1720
|
pageToken?: string;
|
|
1721
|
+
/**
|
|
1722
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1723
|
+
*/
|
|
1724
|
+
pageSize?: number;
|
|
1553
1725
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1554
1726
|
/**
|
|
1555
1727
|
* List ERC-20 transfers
|
|
@@ -1557,25 +1729,31 @@ declare class EvmTransactionsService {
|
|
|
1557
1729
|
* @returns ListErc20TransactionsResponse
|
|
1558
1730
|
* @throws ApiError
|
|
1559
1731
|
*/
|
|
1560
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1732
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1561
1733
|
/**
|
|
1562
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1734
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1563
1735
|
*/
|
|
1564
1736
|
chainId: string;
|
|
1565
1737
|
/**
|
|
1566
1738
|
* A wallet address.
|
|
1567
1739
|
*/
|
|
1568
1740
|
address: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* 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.
|
|
1743
|
+
*/
|
|
1569
1744
|
startBlock?: number;
|
|
1570
|
-
endBlock?: number;
|
|
1571
1745
|
/**
|
|
1572
|
-
* The
|
|
1746
|
+
* 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
1747
|
*/
|
|
1574
|
-
|
|
1748
|
+
endBlock?: number;
|
|
1575
1749
|
/**
|
|
1576
1750
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1577
1751
|
*/
|
|
1578
1752
|
pageToken?: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
+
*/
|
|
1756
|
+
pageSize?: number;
|
|
1579
1757
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1580
1758
|
/**
|
|
1581
1759
|
* List ERC-721 transfers
|
|
@@ -1583,25 +1761,31 @@ declare class EvmTransactionsService {
|
|
|
1583
1761
|
* @returns ListErc721TransactionsResponse
|
|
1584
1762
|
* @throws ApiError
|
|
1585
1763
|
*/
|
|
1586
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1764
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1587
1765
|
/**
|
|
1588
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1766
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1589
1767
|
*/
|
|
1590
1768
|
chainId: string;
|
|
1591
1769
|
/**
|
|
1592
1770
|
* A wallet address.
|
|
1593
1771
|
*/
|
|
1594
1772
|
address: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* 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.
|
|
1775
|
+
*/
|
|
1595
1776
|
startBlock?: number;
|
|
1596
|
-
endBlock?: number;
|
|
1597
1777
|
/**
|
|
1598
|
-
* The
|
|
1778
|
+
* 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
1779
|
*/
|
|
1600
|
-
|
|
1780
|
+
endBlock?: number;
|
|
1601
1781
|
/**
|
|
1602
1782
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1603
1783
|
*/
|
|
1604
1784
|
pageToken?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1787
|
+
*/
|
|
1788
|
+
pageSize?: number;
|
|
1605
1789
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1606
1790
|
/**
|
|
1607
1791
|
* List ERC-1155 transfers
|
|
@@ -1609,25 +1793,31 @@ declare class EvmTransactionsService {
|
|
|
1609
1793
|
* @returns ListErc1155TransactionsResponse
|
|
1610
1794
|
* @throws ApiError
|
|
1611
1795
|
*/
|
|
1612
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1796
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1613
1797
|
/**
|
|
1614
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1615
1799
|
*/
|
|
1616
1800
|
chainId: string;
|
|
1617
1801
|
/**
|
|
1618
1802
|
* A wallet address.
|
|
1619
1803
|
*/
|
|
1620
1804
|
address: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* 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.
|
|
1807
|
+
*/
|
|
1621
1808
|
startBlock?: number;
|
|
1622
|
-
endBlock?: number;
|
|
1623
1809
|
/**
|
|
1624
|
-
* The
|
|
1810
|
+
* 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
1811
|
*/
|
|
1626
|
-
|
|
1812
|
+
endBlock?: number;
|
|
1627
1813
|
/**
|
|
1628
1814
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1629
1815
|
*/
|
|
1630
1816
|
pageToken?: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1819
|
+
*/
|
|
1820
|
+
pageSize?: number;
|
|
1631
1821
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1632
1822
|
/**
|
|
1633
1823
|
* List internal transactions
|
|
@@ -1637,25 +1827,31 @@ declare class EvmTransactionsService {
|
|
|
1637
1827
|
* @returns ListInternalTransactionsResponse
|
|
1638
1828
|
* @throws ApiError
|
|
1639
1829
|
*/
|
|
1640
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1830
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1641
1831
|
/**
|
|
1642
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1832
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1643
1833
|
*/
|
|
1644
1834
|
chainId: string;
|
|
1645
1835
|
/**
|
|
1646
1836
|
* A wallet address.
|
|
1647
1837
|
*/
|
|
1648
1838
|
address: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* 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.
|
|
1841
|
+
*/
|
|
1649
1842
|
startBlock?: number;
|
|
1650
|
-
endBlock?: number;
|
|
1651
1843
|
/**
|
|
1652
|
-
* The
|
|
1844
|
+
* 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
1845
|
*/
|
|
1654
|
-
|
|
1846
|
+
endBlock?: number;
|
|
1655
1847
|
/**
|
|
1656
1848
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1657
1849
|
*/
|
|
1658
1850
|
pageToken?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1853
|
+
*/
|
|
1854
|
+
pageSize?: number;
|
|
1659
1855
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1660
1856
|
/**
|
|
1661
1857
|
* Get transaction
|
|
@@ -1665,7 +1861,7 @@ declare class EvmTransactionsService {
|
|
|
1665
1861
|
*/
|
|
1666
1862
|
getTransaction({ chainId, txHash, }: {
|
|
1667
1863
|
/**
|
|
1668
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1864
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1669
1865
|
*/
|
|
1670
1866
|
chainId: string;
|
|
1671
1867
|
/**
|
|
@@ -1681,7 +1877,7 @@ declare class EvmTransactionsService {
|
|
|
1681
1877
|
*/
|
|
1682
1878
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1683
1879
|
/**
|
|
1684
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1880
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1685
1881
|
*/
|
|
1686
1882
|
chainId: string;
|
|
1687
1883
|
/**
|
|
@@ -1695,40 +1891,117 @@ declare class EvmTransactionsService {
|
|
|
1695
1891
|
* @returns ListNativeTransactionsResponse
|
|
1696
1892
|
* @throws ApiError
|
|
1697
1893
|
*/
|
|
1698
|
-
listLatestTransactions({ chainId,
|
|
1894
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1699
1895
|
/**
|
|
1700
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1896
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1701
1897
|
*/
|
|
1702
1898
|
chainId: string;
|
|
1899
|
+
/**
|
|
1900
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1901
|
+
*/
|
|
1902
|
+
pageToken?: string;
|
|
1703
1903
|
/**
|
|
1704
1904
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1705
1905
|
*/
|
|
1706
|
-
pageSize?: number;
|
|
1906
|
+
pageSize?: number;
|
|
1907
|
+
/**
|
|
1908
|
+
* A status filter for listed transactions.
|
|
1909
|
+
*/
|
|
1910
|
+
status?: TransactionStatus;
|
|
1911
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
declare class HealthCheckService {
|
|
1915
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1916
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1917
|
+
/**
|
|
1918
|
+
* Get the health of the service
|
|
1919
|
+
* @returns any The Health Check is successful
|
|
1920
|
+
* @throws ApiError
|
|
1921
|
+
*/
|
|
1922
|
+
healthCheck(): CancelablePromise<{
|
|
1923
|
+
status?: string;
|
|
1924
|
+
info?: Record<string, Record<string, string>> | null;
|
|
1925
|
+
error?: Record<string, Record<string, string>> | null;
|
|
1926
|
+
details?: Record<string, Record<string, string>>;
|
|
1927
|
+
}>;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
type ListNftTokens = {
|
|
1931
|
+
/**
|
|
1932
|
+
* 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.
|
|
1933
|
+
*/
|
|
1934
|
+
nextPageToken?: string;
|
|
1935
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1938
|
+
declare class NfTsService {
|
|
1939
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1940
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1941
|
+
/**
|
|
1942
|
+
* Reindex NFT metadata
|
|
1943
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1944
|
+
* @returns any
|
|
1945
|
+
* @throws ApiError
|
|
1946
|
+
*/
|
|
1947
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1948
|
+
/**
|
|
1949
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1950
|
+
*/
|
|
1951
|
+
chainId: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* Contract address on the relevant chain.
|
|
1954
|
+
*/
|
|
1955
|
+
address: string;
|
|
1956
|
+
/**
|
|
1957
|
+
* TokenId on the contract
|
|
1958
|
+
*/
|
|
1959
|
+
tokenId: string;
|
|
1960
|
+
}): CancelablePromise<any>;
|
|
1961
|
+
/**
|
|
1962
|
+
* List tokens
|
|
1963
|
+
* Lists tokens for an NFT contract.
|
|
1964
|
+
* @returns ListNftTokens
|
|
1965
|
+
* @throws ApiError
|
|
1966
|
+
*/
|
|
1967
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1968
|
+
/**
|
|
1969
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1970
|
+
*/
|
|
1971
|
+
chainId: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Contract address on the relevant chain.
|
|
1974
|
+
*/
|
|
1975
|
+
address: string;
|
|
1707
1976
|
/**
|
|
1708
1977
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1709
1978
|
*/
|
|
1710
1979
|
pageToken?: string;
|
|
1711
1980
|
/**
|
|
1712
|
-
*
|
|
1981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1713
1982
|
*/
|
|
1714
|
-
|
|
1715
|
-
}): CancelablePromise<
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
declare class HealthCheckService {
|
|
1719
|
-
readonly httpRequest: BaseHttpRequest;
|
|
1720
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1983
|
+
pageSize?: number;
|
|
1984
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1721
1985
|
/**
|
|
1722
|
-
* Get
|
|
1723
|
-
*
|
|
1986
|
+
* Get token details
|
|
1987
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1988
|
+
* @returns any
|
|
1724
1989
|
* @throws ApiError
|
|
1725
1990
|
*/
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1991
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1992
|
+
/**
|
|
1993
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1994
|
+
*/
|
|
1995
|
+
chainId: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* Contract address on the relevant chain.
|
|
1998
|
+
*/
|
|
1999
|
+
address: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* TokenId on the contract
|
|
2002
|
+
*/
|
|
2003
|
+
tokenId: string;
|
|
2004
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1732
2005
|
}
|
|
1733
2006
|
|
|
1734
2007
|
type EvmNetworkOptions = {
|
|
@@ -1736,8 +2009,12 @@ type EvmNetworkOptions = {
|
|
|
1736
2009
|
includeChains: Array<string>;
|
|
1737
2010
|
};
|
|
1738
2011
|
|
|
2012
|
+
declare enum EVMOperationType {
|
|
2013
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1739
2016
|
type CreateEvmTransactionExportRequest = {
|
|
1740
|
-
type:
|
|
2017
|
+
type: EVMOperationType;
|
|
1741
2018
|
firstDate: string;
|
|
1742
2019
|
lastDate: string;
|
|
1743
2020
|
/**
|
|
@@ -1750,20 +2027,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1750
2027
|
endDate: string;
|
|
1751
2028
|
options: EvmNetworkOptions;
|
|
1752
2029
|
};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
2030
|
+
|
|
2031
|
+
declare enum PrimaryNetworkOperationType {
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2034
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1757
2035
|
}
|
|
1758
2036
|
|
|
1759
2037
|
type PrimaryNetworkOptions = {
|
|
1760
|
-
addresses
|
|
2038
|
+
addresses?: Array<string>;
|
|
1761
2039
|
cChainEvmAddresses?: Array<string>;
|
|
1762
2040
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1763
2041
|
};
|
|
1764
2042
|
|
|
1765
2043
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1766
|
-
type:
|
|
2044
|
+
type: PrimaryNetworkOperationType;
|
|
1767
2045
|
firstDate: string;
|
|
1768
2046
|
lastDate: string;
|
|
1769
2047
|
/**
|
|
@@ -1776,11 +2054,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1776
2054
|
endDate: string;
|
|
1777
2055
|
options: PrimaryNetworkOptions;
|
|
1778
2056
|
};
|
|
1779
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1780
|
-
enum type {
|
|
1781
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
2057
|
|
|
1785
2058
|
declare enum OperationStatus {
|
|
1786
2059
|
RUNNING = "RUNNING",
|
|
@@ -1790,8 +2063,10 @@ declare enum OperationStatus {
|
|
|
1790
2063
|
}
|
|
1791
2064
|
|
|
1792
2065
|
declare enum OperationType {
|
|
1793
|
-
|
|
1794
|
-
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2068
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2069
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1795
2070
|
}
|
|
1796
2071
|
|
|
1797
2072
|
declare enum OperationStatusCode {
|
|
@@ -1825,17 +2100,6 @@ type OperationStatusResponse = {
|
|
|
1825
2100
|
declare class OperationsService {
|
|
1826
2101
|
readonly httpRequest: BaseHttpRequest;
|
|
1827
2102
|
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
2103
|
/**
|
|
1840
2104
|
* Get operation
|
|
1841
2105
|
* Gets operation details for the given operation id.
|
|
@@ -1848,6 +2112,17 @@ declare class OperationsService {
|
|
|
1848
2112
|
*/
|
|
1849
2113
|
operationId: string;
|
|
1850
2114
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2115
|
+
/**
|
|
2116
|
+
* Create transaction export operation
|
|
2117
|
+
* Trigger a transaction export operation with given parameters.
|
|
2118
|
+
*
|
|
2119
|
+
* 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.
|
|
2120
|
+
* @returns OperationStatusResponse
|
|
2121
|
+
* @throws ApiError
|
|
2122
|
+
*/
|
|
2123
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2124
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2125
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1851
2126
|
}
|
|
1852
2127
|
|
|
1853
2128
|
declare enum BlockchainIds {
|
|
@@ -1916,39 +2191,57 @@ type ListBlockchainsResponse = {
|
|
|
1916
2191
|
|
|
1917
2192
|
type ActiveDelegatorDetails = {
|
|
1918
2193
|
txHash: string;
|
|
2194
|
+
nodeId: string;
|
|
1919
2195
|
rewardAddresses: Array<string>;
|
|
1920
2196
|
amountDelegated: string;
|
|
1921
2197
|
delegationFee: string;
|
|
1922
2198
|
startTimestamp: number;
|
|
1923
2199
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
2200
|
estimatedGrossReward: string;
|
|
1926
2201
|
estimatedNetReward: string;
|
|
2202
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
2203
|
};
|
|
2204
|
+
declare namespace ActiveDelegatorDetails {
|
|
2205
|
+
enum delegationStatus {
|
|
2206
|
+
ACTIVE = "active"
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
1928
2209
|
|
|
1929
2210
|
type CompletedDelegatorDetails = {
|
|
1930
2211
|
txHash: string;
|
|
2212
|
+
nodeId: string;
|
|
1931
2213
|
rewardAddresses: Array<string>;
|
|
1932
2214
|
amountDelegated: string;
|
|
1933
2215
|
delegationFee: string;
|
|
1934
2216
|
startTimestamp: number;
|
|
1935
2217
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2218
|
grossReward: string;
|
|
1938
2219
|
netReward: string;
|
|
2220
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2221
|
};
|
|
2222
|
+
declare namespace CompletedDelegatorDetails {
|
|
2223
|
+
enum delegationStatus {
|
|
2224
|
+
COMPLETED = "completed"
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
1940
2227
|
|
|
1941
2228
|
type PendingDelegatorDetails = {
|
|
1942
2229
|
txHash: string;
|
|
2230
|
+
nodeId: string;
|
|
1943
2231
|
rewardAddresses: Array<string>;
|
|
1944
2232
|
amountDelegated: string;
|
|
1945
2233
|
delegationFee: string;
|
|
1946
2234
|
startTimestamp: number;
|
|
1947
2235
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2236
|
estimatedGrossReward: string;
|
|
1950
2237
|
estimatedNetReward: string;
|
|
2238
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2239
|
};
|
|
2240
|
+
declare namespace PendingDelegatorDetails {
|
|
2241
|
+
enum delegationStatus {
|
|
2242
|
+
PENDING = "pending"
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
1952
2245
|
|
|
1953
2246
|
type ListDelegatorDetailsResponse = {
|
|
1954
2247
|
/**
|
|
@@ -1965,13 +2258,44 @@ type BlockchainInfo = {
|
|
|
1965
2258
|
blockchainId: string;
|
|
1966
2259
|
};
|
|
1967
2260
|
|
|
2261
|
+
type SubnetOwnershipInfo = {
|
|
2262
|
+
/**
|
|
2263
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2264
|
+
*/
|
|
2265
|
+
locktime: number;
|
|
2266
|
+
/**
|
|
2267
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2268
|
+
*/
|
|
2269
|
+
threshold: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
addresses: Array<string>;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
1968
2276
|
type Subnet = {
|
|
1969
2277
|
createBlockTimestamp: number;
|
|
1970
2278
|
createBlockIndex: string;
|
|
1971
2279
|
subnetId: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2282
|
+
* @deprecated
|
|
2283
|
+
*/
|
|
1972
2284
|
ownerAddresses: Array<string>;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
1973
2289
|
threshold: number;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
1974
2294
|
locktime: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* Latest subnet owner details for this Subnet.
|
|
2297
|
+
*/
|
|
2298
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
1975
2299
|
blockchains: Array<BlockchainInfo>;
|
|
1976
2300
|
};
|
|
1977
2301
|
|
|
@@ -1986,49 +2310,104 @@ type ListSubnetsResponse = {
|
|
|
1986
2310
|
type Rewards = {
|
|
1987
2311
|
validationRewardAmount: string;
|
|
1988
2312
|
delegationRewardAmount: string;
|
|
2313
|
+
rewardAddresses?: Array<string>;
|
|
2314
|
+
rewardTxHash?: string;
|
|
1989
2315
|
};
|
|
1990
2316
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2317
|
+
type ValidatorHealthDetails = {
|
|
2318
|
+
/**
|
|
2319
|
+
* Percent of requests responded to in last polling.
|
|
2320
|
+
*/
|
|
2321
|
+
reachabilityPercent: number;
|
|
2322
|
+
/**
|
|
2323
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2324
|
+
*/
|
|
2325
|
+
benchedPChainRequestsPercent: number;
|
|
2326
|
+
/**
|
|
2327
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2328
|
+
*/
|
|
2329
|
+
benchedXChainRequestsPercent: number;
|
|
2330
|
+
/**
|
|
2331
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2332
|
+
*/
|
|
2333
|
+
benchedCChainRequestsPercent: number;
|
|
2334
|
+
};
|
|
1996
2335
|
|
|
1997
2336
|
type ActiveValidatorDetails = {
|
|
2337
|
+
txHash: string;
|
|
1998
2338
|
nodeId: string;
|
|
2339
|
+
subnetId: string;
|
|
1999
2340
|
amountStaked: string;
|
|
2000
|
-
delegationFee
|
|
2341
|
+
delegationFee?: string;
|
|
2001
2342
|
startTimestamp: number;
|
|
2002
2343
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2344
|
stakePercentage: number;
|
|
2005
2345
|
delegatorCount: number;
|
|
2006
|
-
amountDelegated
|
|
2346
|
+
amountDelegated?: string;
|
|
2007
2347
|
uptimePerformance: number;
|
|
2008
|
-
avalancheGoVersion
|
|
2009
|
-
delegationCapacity
|
|
2348
|
+
avalancheGoVersion?: string;
|
|
2349
|
+
delegationCapacity?: string;
|
|
2010
2350
|
potentialRewards: Rewards;
|
|
2351
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2352
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2011
2353
|
};
|
|
2354
|
+
declare namespace ActiveValidatorDetails {
|
|
2355
|
+
enum validationStatus {
|
|
2356
|
+
ACTIVE = "active"
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2012
2359
|
|
|
2013
2360
|
type CompletedValidatorDetails = {
|
|
2361
|
+
txHash: string;
|
|
2014
2362
|
nodeId: string;
|
|
2363
|
+
subnetId: string;
|
|
2015
2364
|
amountStaked: string;
|
|
2016
|
-
delegationFee
|
|
2365
|
+
delegationFee?: string;
|
|
2017
2366
|
startTimestamp: number;
|
|
2018
2367
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2368
|
delegatorCount: number;
|
|
2021
2369
|
rewards: Rewards;
|
|
2370
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2371
|
};
|
|
2372
|
+
declare namespace CompletedValidatorDetails {
|
|
2373
|
+
enum validationStatus {
|
|
2374
|
+
COMPLETED = "completed"
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2023
2377
|
|
|
2024
2378
|
type PendingValidatorDetails = {
|
|
2379
|
+
txHash: string;
|
|
2025
2380
|
nodeId: string;
|
|
2381
|
+
subnetId: string;
|
|
2026
2382
|
amountStaked: string;
|
|
2027
|
-
delegationFee
|
|
2383
|
+
delegationFee?: string;
|
|
2384
|
+
startTimestamp: number;
|
|
2385
|
+
endTimestamp: number;
|
|
2386
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2387
|
+
};
|
|
2388
|
+
declare namespace PendingValidatorDetails {
|
|
2389
|
+
enum validationStatus {
|
|
2390
|
+
PENDING = "pending"
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
type RemovedValidatorDetails = {
|
|
2395
|
+
txHash: string;
|
|
2396
|
+
nodeId: string;
|
|
2397
|
+
subnetId: string;
|
|
2398
|
+
amountStaked: string;
|
|
2399
|
+
delegationFee?: string;
|
|
2028
2400
|
startTimestamp: number;
|
|
2029
2401
|
endTimestamp: number;
|
|
2030
|
-
|
|
2402
|
+
removeTxHash: string;
|
|
2403
|
+
removeTimestamp: number;
|
|
2404
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2031
2405
|
};
|
|
2406
|
+
declare namespace RemovedValidatorDetails {
|
|
2407
|
+
enum validationStatus {
|
|
2408
|
+
REMOVED = "removed"
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2032
2411
|
|
|
2033
2412
|
type ListValidatorDetailsResponse = {
|
|
2034
2413
|
/**
|
|
@@ -2036,9 +2415,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2036
2415
|
*/
|
|
2037
2416
|
nextPageToken?: string;
|
|
2038
2417
|
/**
|
|
2039
|
-
* The list of
|
|
2418
|
+
* The list of validator Details.
|
|
2040
2419
|
*/
|
|
2041
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2420
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2042
2421
|
};
|
|
2043
2422
|
|
|
2044
2423
|
declare enum Network {
|
|
@@ -2046,6 +2425,29 @@ declare enum Network {
|
|
|
2046
2425
|
FUJI = "fuji"
|
|
2047
2426
|
}
|
|
2048
2427
|
|
|
2428
|
+
declare enum ValidationStatusType {
|
|
2429
|
+
COMPLETED = "completed",
|
|
2430
|
+
ACTIVE = "active",
|
|
2431
|
+
PENDING = "pending",
|
|
2432
|
+
REMOVED = "removed"
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2437
|
+
*/
|
|
2438
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2439
|
+
FIXED = "fixed",
|
|
2440
|
+
VARIABLE = "variable"
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2445
|
+
*/
|
|
2446
|
+
declare enum PrimaryNetworkAssetType {
|
|
2447
|
+
SECP256K1 = "secp256k1",
|
|
2448
|
+
NFT = "nft"
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2049
2451
|
type XChainAssetDetails = {
|
|
2050
2452
|
/**
|
|
2051
2453
|
* Unique ID for an asset.
|
|
@@ -2063,18 +2465,12 @@ type XChainAssetDetails = {
|
|
|
2063
2465
|
* Denomination of this asset to represent fungibility.
|
|
2064
2466
|
*/
|
|
2065
2467
|
denomination: number;
|
|
2066
|
-
|
|
2067
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2068
|
-
*/
|
|
2069
|
-
type: string;
|
|
2468
|
+
type: PrimaryNetworkAssetType;
|
|
2070
2469
|
/**
|
|
2071
2470
|
* Timestamp in seconds this asset was created on.
|
|
2072
2471
|
*/
|
|
2073
2472
|
createdAtTimestamp: number;
|
|
2074
|
-
|
|
2075
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2076
|
-
*/
|
|
2077
|
-
cap: string;
|
|
2473
|
+
cap: PrimaryNetworkAssetCap;
|
|
2078
2474
|
};
|
|
2079
2475
|
|
|
2080
2476
|
declare enum XChainId {
|
|
@@ -2140,19 +2536,19 @@ declare class PrimaryNetworkService {
|
|
|
2140
2536
|
* @returns ListBlockchainsResponse
|
|
2141
2537
|
* @throws ApiError
|
|
2142
2538
|
*/
|
|
2143
|
-
listBlockchains({ network,
|
|
2539
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2144
2540
|
/**
|
|
2145
2541
|
* Either mainnet or a testnet.
|
|
2146
2542
|
*/
|
|
2147
2543
|
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
2544
|
/**
|
|
2153
2545
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2154
2546
|
*/
|
|
2155
2547
|
pageToken?: string;
|
|
2548
|
+
/**
|
|
2549
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2550
|
+
*/
|
|
2551
|
+
pageSize?: number;
|
|
2156
2552
|
/**
|
|
2157
2553
|
* 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
2554
|
*/
|
|
@@ -2164,19 +2560,19 @@ declare class PrimaryNetworkService {
|
|
|
2164
2560
|
* @returns ListSubnetsResponse
|
|
2165
2561
|
* @throws ApiError
|
|
2166
2562
|
*/
|
|
2167
|
-
listSubnets({ network,
|
|
2563
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2168
2564
|
/**
|
|
2169
2565
|
* Either mainnet or a testnet.
|
|
2170
2566
|
*/
|
|
2171
2567
|
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
2568
|
/**
|
|
2177
2569
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2178
2570
|
*/
|
|
2179
2571
|
pageToken?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2574
|
+
*/
|
|
2575
|
+
pageSize?: number;
|
|
2180
2576
|
/**
|
|
2181
2577
|
* 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
2578
|
*/
|
|
@@ -2188,19 +2584,19 @@ declare class PrimaryNetworkService {
|
|
|
2188
2584
|
* @returns ListValidatorDetailsResponse
|
|
2189
2585
|
* @throws ApiError
|
|
2190
2586
|
*/
|
|
2191
|
-
listValidators({ network,
|
|
2587
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2192
2588
|
/**
|
|
2193
2589
|
* Either mainnet or a testnet.
|
|
2194
2590
|
*/
|
|
2195
2591
|
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
2592
|
/**
|
|
2201
2593
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2202
2594
|
*/
|
|
2203
2595
|
pageToken?: string;
|
|
2596
|
+
/**
|
|
2597
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2598
|
+
*/
|
|
2599
|
+
pageSize?: number;
|
|
2204
2600
|
/**
|
|
2205
2601
|
* A comma separated list of node ids to filter by.
|
|
2206
2602
|
*/
|
|
@@ -2214,9 +2610,33 @@ declare class PrimaryNetworkService {
|
|
|
2214
2610
|
*/
|
|
2215
2611
|
validationStatus?: ValidationStatusType;
|
|
2216
2612
|
/**
|
|
2217
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2613
|
+
* 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
|
|
2614
|
+
*/
|
|
2615
|
+
minDelegationCapacity?: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* 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.
|
|
2618
|
+
*/
|
|
2619
|
+
maxDelegationCapacity?: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2622
|
+
*/
|
|
2623
|
+
minTimeRemaining?: number;
|
|
2624
|
+
/**
|
|
2625
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2626
|
+
*/
|
|
2627
|
+
maxTimeRemaining?: number;
|
|
2628
|
+
/**
|
|
2629
|
+
* 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.
|
|
2630
|
+
*/
|
|
2631
|
+
minFeePercentage?: number;
|
|
2632
|
+
/**
|
|
2633
|
+
* 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.
|
|
2634
|
+
*/
|
|
2635
|
+
maxFeePercentage?: number;
|
|
2636
|
+
/**
|
|
2637
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2218
2638
|
*/
|
|
2219
|
-
|
|
2639
|
+
subnetId?: any;
|
|
2220
2640
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2221
2641
|
/**
|
|
2222
2642
|
* Get single validator details
|
|
@@ -2224,7 +2644,7 @@ declare class PrimaryNetworkService {
|
|
|
2224
2644
|
* @returns ListValidatorDetailsResponse
|
|
2225
2645
|
* @throws ApiError
|
|
2226
2646
|
*/
|
|
2227
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2647
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2228
2648
|
/**
|
|
2229
2649
|
* Either mainnet or a testnet.
|
|
2230
2650
|
*/
|
|
@@ -2233,14 +2653,14 @@ declare class PrimaryNetworkService {
|
|
|
2233
2653
|
* A primary network (P or X chain) nodeId.
|
|
2234
2654
|
*/
|
|
2235
2655
|
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
2656
|
/**
|
|
2241
2657
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2242
2658
|
*/
|
|
2243
2659
|
pageToken?: string;
|
|
2660
|
+
/**
|
|
2661
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2662
|
+
*/
|
|
2663
|
+
pageSize?: number;
|
|
2244
2664
|
/**
|
|
2245
2665
|
* 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
2666
|
*/
|
|
@@ -2256,23 +2676,23 @@ declare class PrimaryNetworkService {
|
|
|
2256
2676
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2677
|
* @throws ApiError
|
|
2258
2678
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2679
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2260
2680
|
/**
|
|
2261
2681
|
* Either mainnet or a testnet.
|
|
2262
2682
|
*/
|
|
2263
2683
|
network: Network;
|
|
2264
2684
|
/**
|
|
2265
|
-
* A
|
|
2685
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2266
2686
|
*/
|
|
2267
|
-
|
|
2687
|
+
pageToken?: string;
|
|
2268
2688
|
/**
|
|
2269
2689
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2690
|
*/
|
|
2271
2691
|
pageSize?: number;
|
|
2272
2692
|
/**
|
|
2273
|
-
* A
|
|
2693
|
+
* A comma separated list of reward addresses to filter by.
|
|
2274
2694
|
*/
|
|
2275
|
-
|
|
2695
|
+
rewardAddresses?: string;
|
|
2276
2696
|
/**
|
|
2277
2697
|
* 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
2698
|
*/
|
|
@@ -2281,10 +2701,6 @@ declare class PrimaryNetworkService {
|
|
|
2281
2701
|
* Delegation status of the node.
|
|
2282
2702
|
*/
|
|
2283
2703
|
delegationStatus?: DelegationStatusType;
|
|
2284
|
-
/**
|
|
2285
|
-
* A comma separated list of reward addresses to filter by.
|
|
2286
|
-
*/
|
|
2287
|
-
rewardAddresses?: string;
|
|
2288
2704
|
/**
|
|
2289
2705
|
* A comma separated list of node ids to filter by.
|
|
2290
2706
|
*/
|
|
@@ -2320,10 +2736,7 @@ type CChainSharedAssetBalance = {
|
|
|
2320
2736
|
* Denomination of this asset to represent fungibility.
|
|
2321
2737
|
*/
|
|
2322
2738
|
denomination: number;
|
|
2323
|
-
|
|
2324
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2325
|
-
*/
|
|
2326
|
-
type: string;
|
|
2739
|
+
type: PrimaryNetworkAssetType;
|
|
2327
2740
|
/**
|
|
2328
2741
|
* Amount of the asset.
|
|
2329
2742
|
*/
|
|
@@ -2358,84 +2771,96 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2358
2771
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2359
2772
|
};
|
|
2360
2773
|
|
|
2361
|
-
type
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
type PChainSharedAsset = {
|
|
2774
|
+
type AggregatedAssetAmount = {
|
|
2775
|
+
/**
|
|
2776
|
+
* Unique ID for an asset.
|
|
2777
|
+
*/
|
|
2367
2778
|
assetId: string;
|
|
2368
|
-
amount: string;
|
|
2369
|
-
sharedWithChainId: string;
|
|
2370
|
-
status: string;
|
|
2371
|
-
};
|
|
2372
|
-
|
|
2373
|
-
type PChainBalance = {
|
|
2374
2779
|
/**
|
|
2375
|
-
*
|
|
2780
|
+
* Name of this asset.
|
|
2781
|
+
*/
|
|
2782
|
+
name: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* Symbol for this asset (max 4 characters).
|
|
2376
2785
|
*/
|
|
2377
|
-
|
|
2786
|
+
symbol: string;
|
|
2378
2787
|
/**
|
|
2379
|
-
*
|
|
2788
|
+
* Denomination of this asset to represent fungibility.
|
|
2380
2789
|
*/
|
|
2381
|
-
|
|
2790
|
+
denomination: number;
|
|
2791
|
+
type: PrimaryNetworkAssetType;
|
|
2382
2792
|
/**
|
|
2383
|
-
*
|
|
2793
|
+
* Amount of the asset.
|
|
2384
2794
|
*/
|
|
2385
|
-
|
|
2795
|
+
amount: string;
|
|
2796
|
+
utxoCount: number;
|
|
2797
|
+
};
|
|
2798
|
+
|
|
2799
|
+
type PChainSharedAsset = {
|
|
2386
2800
|
/**
|
|
2387
|
-
*
|
|
2801
|
+
* Unique ID for an asset.
|
|
2388
2802
|
*/
|
|
2389
|
-
|
|
2803
|
+
assetId: string;
|
|
2390
2804
|
/**
|
|
2391
|
-
*
|
|
2805
|
+
* Name of this asset.
|
|
2392
2806
|
*/
|
|
2393
|
-
|
|
2807
|
+
name: string;
|
|
2394
2808
|
/**
|
|
2395
|
-
*
|
|
2809
|
+
* Symbol for this asset (max 4 characters).
|
|
2396
2810
|
*/
|
|
2397
|
-
|
|
2811
|
+
symbol: string;
|
|
2398
2812
|
/**
|
|
2399
|
-
*
|
|
2813
|
+
* Denomination of this asset to represent fungibility.
|
|
2400
2814
|
*/
|
|
2401
|
-
|
|
2815
|
+
denomination: number;
|
|
2816
|
+
type: PrimaryNetworkAssetType;
|
|
2402
2817
|
/**
|
|
2403
|
-
*
|
|
2818
|
+
* Amount of the asset.
|
|
2404
2819
|
*/
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
balances: PChainBalance;
|
|
2410
|
-
chainInfo: PrimaryNetworkChainInfo;
|
|
2820
|
+
amount: string;
|
|
2821
|
+
utxoCount: number;
|
|
2822
|
+
sharedWithChainId: string;
|
|
2823
|
+
status: string;
|
|
2411
2824
|
};
|
|
2412
2825
|
|
|
2413
|
-
type
|
|
2826
|
+
type PChainBalance = {
|
|
2827
|
+
/**
|
|
2828
|
+
* 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.
|
|
2829
|
+
*/
|
|
2830
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2831
|
+
/**
|
|
2832
|
+
* 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.
|
|
2833
|
+
*/
|
|
2834
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2414
2835
|
/**
|
|
2415
|
-
*
|
|
2836
|
+
* 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.
|
|
2416
2837
|
*/
|
|
2417
|
-
|
|
2838
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2418
2839
|
/**
|
|
2419
|
-
*
|
|
2840
|
+
* 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.
|
|
2420
2841
|
*/
|
|
2421
|
-
|
|
2842
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2422
2843
|
/**
|
|
2423
|
-
*
|
|
2844
|
+
* 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.
|
|
2424
2845
|
*/
|
|
2425
|
-
|
|
2846
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2426
2847
|
/**
|
|
2427
|
-
*
|
|
2848
|
+
* 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.
|
|
2428
2849
|
*/
|
|
2429
|
-
|
|
2850
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2430
2851
|
/**
|
|
2431
|
-
*
|
|
2852
|
+
* 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.
|
|
2432
2853
|
*/
|
|
2433
|
-
|
|
2854
|
+
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2434
2855
|
/**
|
|
2435
|
-
*
|
|
2856
|
+
* 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.
|
|
2436
2857
|
*/
|
|
2437
|
-
|
|
2438
|
-
|
|
2858
|
+
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
type ListPChainBalancesResponse = {
|
|
2862
|
+
balances: PChainBalance;
|
|
2863
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2439
2864
|
};
|
|
2440
2865
|
|
|
2441
2866
|
type XChainSharedAssetBalance = {
|
|
@@ -2455,10 +2880,7 @@ type XChainSharedAssetBalance = {
|
|
|
2455
2880
|
* Denomination of this asset to represent fungibility.
|
|
2456
2881
|
*/
|
|
2457
2882
|
denomination: number;
|
|
2458
|
-
|
|
2459
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2460
|
-
*/
|
|
2461
|
-
type: string;
|
|
2883
|
+
type: PrimaryNetworkAssetType;
|
|
2462
2884
|
/**
|
|
2463
2885
|
* Amount of the asset.
|
|
2464
2886
|
*/
|
|
@@ -2471,11 +2893,11 @@ type XChainBalances = {
|
|
|
2471
2893
|
/**
|
|
2472
2894
|
* A list of objects containing X-chain Asset balance information.
|
|
2473
2895
|
*/
|
|
2474
|
-
locked: Array<
|
|
2896
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2475
2897
|
/**
|
|
2476
2898
|
* A list of objects containing X-chain Asset balance information.
|
|
2477
2899
|
*/
|
|
2478
|
-
unlocked: Array<
|
|
2900
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2479
2901
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2480
2902
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2481
2903
|
};
|
|
@@ -2533,6 +2955,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2533
2955
|
txCount: number;
|
|
2534
2956
|
transactions: Array<string>;
|
|
2535
2957
|
blockSizeBytes: number;
|
|
2958
|
+
currentSupply?: string;
|
|
2536
2959
|
proposerDetails?: ProposerDetails;
|
|
2537
2960
|
};
|
|
2538
2961
|
|
|
@@ -2545,6 +2968,7 @@ type PrimaryNetworkBlock = {
|
|
|
2545
2968
|
txCount: number;
|
|
2546
2969
|
transactions: Array<string>;
|
|
2547
2970
|
blockSizeBytes: number;
|
|
2971
|
+
currentSupply?: string;
|
|
2548
2972
|
proposerDetails?: ProposerDetails;
|
|
2549
2973
|
};
|
|
2550
2974
|
|
|
@@ -2586,7 +3010,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2586
3010
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2587
3011
|
* @throws ApiError
|
|
2588
3012
|
*/
|
|
2589
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3013
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2590
3014
|
/**
|
|
2591
3015
|
* A primary network blockchain id or alias.
|
|
2592
3016
|
*/
|
|
@@ -2599,14 +3023,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2599
3023
|
* A primary network (P or X chain) nodeId.
|
|
2600
3024
|
*/
|
|
2601
3025
|
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
3026
|
/**
|
|
2607
3027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2608
3028
|
*/
|
|
2609
3029
|
pageToken?: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3032
|
+
*/
|
|
3033
|
+
pageSize?: number;
|
|
2610
3034
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2611
3035
|
/**
|
|
2612
3036
|
* List latest blocks
|
|
@@ -2614,7 +3038,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2614
3038
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2615
3039
|
* @throws ApiError
|
|
2616
3040
|
*/
|
|
2617
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3041
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2618
3042
|
/**
|
|
2619
3043
|
* A primary network blockchain id or alias.
|
|
2620
3044
|
*/
|
|
@@ -2623,20 +3047,49 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2623
3047
|
* Either mainnet or a testnet.
|
|
2624
3048
|
*/
|
|
2625
3049
|
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
3050
|
/**
|
|
2631
3051
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2632
3052
|
*/
|
|
2633
3053
|
pageToken?: string;
|
|
3054
|
+
/**
|
|
3055
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3056
|
+
*/
|
|
3057
|
+
pageSize?: number;
|
|
2634
3058
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2635
3059
|
}
|
|
2636
3060
|
|
|
3061
|
+
type AssetWithPriceInfo = {
|
|
3062
|
+
/**
|
|
3063
|
+
* Unique ID for an asset.
|
|
3064
|
+
*/
|
|
3065
|
+
assetId: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Name of this asset.
|
|
3068
|
+
*/
|
|
3069
|
+
name: string;
|
|
3070
|
+
/**
|
|
3071
|
+
* Symbol for this asset (max 4 characters).
|
|
3072
|
+
*/
|
|
3073
|
+
symbol: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* Denomination of this asset to represent fungibility.
|
|
3076
|
+
*/
|
|
3077
|
+
denomination: number;
|
|
3078
|
+
type: PrimaryNetworkAssetType;
|
|
3079
|
+
/**
|
|
3080
|
+
* Amount of the asset.
|
|
3081
|
+
*/
|
|
3082
|
+
amount: string;
|
|
3083
|
+
/**
|
|
3084
|
+
* 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.
|
|
3085
|
+
*/
|
|
3086
|
+
historicalPrice?: Money;
|
|
3087
|
+
};
|
|
3088
|
+
|
|
2637
3089
|
declare enum RewardType {
|
|
2638
3090
|
VALIDATOR = "VALIDATOR",
|
|
2639
|
-
DELEGATOR = "DELEGATOR"
|
|
3091
|
+
DELEGATOR = "DELEGATOR",
|
|
3092
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2640
3093
|
}
|
|
2641
3094
|
|
|
2642
3095
|
type HistoricalReward = {
|
|
@@ -2652,10 +3105,7 @@ type HistoricalReward = {
|
|
|
2652
3105
|
rewardType: RewardType;
|
|
2653
3106
|
utxoId: string;
|
|
2654
3107
|
outputIndex: number;
|
|
2655
|
-
|
|
2656
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2657
|
-
*/
|
|
2658
|
-
reward: PChainAsset;
|
|
3108
|
+
reward: AssetWithPriceInfo;
|
|
2659
3109
|
rewardTxHash: string;
|
|
2660
3110
|
};
|
|
2661
3111
|
|
|
@@ -2667,6 +3117,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2667
3117
|
historicalRewards: Array<HistoricalReward>;
|
|
2668
3118
|
};
|
|
2669
3119
|
|
|
3120
|
+
type AssetAmount = {
|
|
3121
|
+
/**
|
|
3122
|
+
* Unique ID for an asset.
|
|
3123
|
+
*/
|
|
3124
|
+
assetId: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Name of this asset.
|
|
3127
|
+
*/
|
|
3128
|
+
name: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Symbol for this asset (max 4 characters).
|
|
3131
|
+
*/
|
|
3132
|
+
symbol: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* Denomination of this asset to represent fungibility.
|
|
3135
|
+
*/
|
|
3136
|
+
denomination: number;
|
|
3137
|
+
type: PrimaryNetworkAssetType;
|
|
3138
|
+
/**
|
|
3139
|
+
* Amount of the asset.
|
|
3140
|
+
*/
|
|
3141
|
+
amount: string;
|
|
3142
|
+
};
|
|
3143
|
+
|
|
2670
3144
|
type PendingReward = {
|
|
2671
3145
|
/**
|
|
2672
3146
|
* An array of P-Chain wallet addresses.
|
|
@@ -2680,9 +3154,9 @@ type PendingReward = {
|
|
|
2680
3154
|
rewardType: RewardType;
|
|
2681
3155
|
progress: number;
|
|
2682
3156
|
/**
|
|
2683
|
-
* An object containing P-chain Asset
|
|
3157
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2684
3158
|
*/
|
|
2685
|
-
estimatedReward:
|
|
3159
|
+
estimatedReward: AssetAmount;
|
|
2686
3160
|
};
|
|
2687
3161
|
|
|
2688
3162
|
type ListPendingRewardsResponse = {
|
|
@@ -2702,23 +3176,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2702
3176
|
* @returns ListPendingRewardsResponse
|
|
2703
3177
|
* @throws ApiError
|
|
2704
3178
|
*/
|
|
2705
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3179
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2706
3180
|
/**
|
|
2707
3181
|
* Either mainnet or a testnet.
|
|
2708
3182
|
*/
|
|
2709
3183
|
network: Network;
|
|
2710
3184
|
/**
|
|
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".
|
|
3185
|
+
* 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
3186
|
*/
|
|
2713
3187
|
addresses?: string;
|
|
3188
|
+
/**
|
|
3189
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3190
|
+
*/
|
|
3191
|
+
pageToken?: string;
|
|
2714
3192
|
/**
|
|
2715
3193
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2716
3194
|
*/
|
|
2717
3195
|
pageSize?: number;
|
|
2718
3196
|
/**
|
|
2719
|
-
* A
|
|
3197
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2720
3198
|
*/
|
|
2721
|
-
|
|
3199
|
+
nodeIds?: string;
|
|
2722
3200
|
/**
|
|
2723
3201
|
* 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
3202
|
*/
|
|
@@ -2730,64 +3208,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2730
3208
|
* @returns ListHistoricalRewardsResponse
|
|
2731
3209
|
* @throws ApiError
|
|
2732
3210
|
*/
|
|
2733
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3211
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2734
3212
|
/**
|
|
2735
3213
|
* Either mainnet or a testnet.
|
|
2736
3214
|
*/
|
|
2737
3215
|
network: Network;
|
|
2738
3216
|
/**
|
|
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".
|
|
3217
|
+
* 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
3218
|
*/
|
|
2741
3219
|
addresses?: string;
|
|
3220
|
+
/**
|
|
3221
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3222
|
+
*/
|
|
3223
|
+
pageToken?: string;
|
|
2742
3224
|
/**
|
|
2743
3225
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2744
3226
|
*/
|
|
2745
3227
|
pageSize?: number;
|
|
2746
3228
|
/**
|
|
2747
|
-
* A
|
|
3229
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2748
3230
|
*/
|
|
2749
|
-
|
|
3231
|
+
nodeIds?: string;
|
|
2750
3232
|
/**
|
|
2751
3233
|
* 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
3234
|
*/
|
|
2753
3235
|
sortOrder?: SortOrder;
|
|
3236
|
+
/**
|
|
3237
|
+
* The currency that return values should use. Defaults to USD.
|
|
3238
|
+
*/
|
|
3239
|
+
currency?: CurrencyCode;
|
|
2754
3240
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2755
3241
|
}
|
|
2756
3242
|
|
|
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
3243
|
type UtxoCredential = {
|
|
2785
3244
|
/**
|
|
2786
|
-
* Signature provided to consume the output
|
|
3245
|
+
* Signature provided to consume the output.
|
|
2787
3246
|
*/
|
|
2788
3247
|
signature?: string;
|
|
2789
3248
|
/**
|
|
2790
|
-
* Public key associated with the signature
|
|
3249
|
+
* Public key associated with the signature.
|
|
2791
3250
|
*/
|
|
2792
3251
|
publicKey?: string;
|
|
2793
3252
|
};
|
|
@@ -2798,9 +3257,9 @@ type EVMInput = {
|
|
|
2798
3257
|
*/
|
|
2799
3258
|
fromAddress: string;
|
|
2800
3259
|
/**
|
|
2801
|
-
*
|
|
3260
|
+
* AssetAmount details for the asset being transferred.
|
|
2802
3261
|
*/
|
|
2803
|
-
asset:
|
|
3262
|
+
asset: AssetAmount;
|
|
2804
3263
|
/**
|
|
2805
3264
|
* Credentials that signed this transaction.
|
|
2806
3265
|
*/
|
|
@@ -2809,66 +3268,66 @@ type EVMInput = {
|
|
|
2809
3268
|
|
|
2810
3269
|
type Utxo = {
|
|
2811
3270
|
/**
|
|
2812
|
-
*
|
|
3271
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2813
3272
|
*/
|
|
2814
|
-
|
|
2815
|
-
asset:
|
|
3273
|
+
addresses: Array<string>;
|
|
3274
|
+
asset: AssetAmount;
|
|
2816
3275
|
/**
|
|
2817
|
-
*
|
|
3276
|
+
* Blockchain ID on which this output is consumed on.
|
|
2818
3277
|
*/
|
|
2819
|
-
|
|
3278
|
+
consumedOnChainId: string;
|
|
2820
3279
|
/**
|
|
2821
|
-
*
|
|
3280
|
+
* Transaction ID that consumed this output.
|
|
2822
3281
|
*/
|
|
2823
|
-
|
|
3282
|
+
consumingTxHash?: string;
|
|
2824
3283
|
/**
|
|
2825
|
-
* Blockchain ID on which this output is
|
|
3284
|
+
* Blockchain ID on which this output is created on.
|
|
2826
3285
|
*/
|
|
2827
|
-
|
|
3286
|
+
createdOnChainId: string;
|
|
2828
3287
|
/**
|
|
2829
|
-
*
|
|
3288
|
+
* UTXO ID for this output.
|
|
2830
3289
|
*/
|
|
2831
|
-
|
|
3290
|
+
utxoId: string;
|
|
2832
3291
|
/**
|
|
2833
|
-
*
|
|
3292
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2834
3293
|
*/
|
|
2835
|
-
|
|
3294
|
+
consumingTxTimestamp?: number;
|
|
2836
3295
|
/**
|
|
2837
|
-
*
|
|
3296
|
+
* Transaction ID that created this output.
|
|
2838
3297
|
*/
|
|
2839
|
-
|
|
3298
|
+
creationTxHash: string;
|
|
2840
3299
|
/**
|
|
2841
|
-
*
|
|
3300
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2842
3301
|
*/
|
|
2843
|
-
|
|
3302
|
+
credentials?: Array<UtxoCredential>;
|
|
2844
3303
|
/**
|
|
2845
|
-
*
|
|
3304
|
+
* Index representing the minting set for the NFT mint output.
|
|
2846
3305
|
*/
|
|
2847
|
-
|
|
3306
|
+
groupId?: number;
|
|
2848
3307
|
/**
|
|
2849
3308
|
* Locktime in seconds after which this output can be consumed.
|
|
2850
3309
|
*/
|
|
2851
3310
|
locktime: number;
|
|
2852
3311
|
/**
|
|
2853
|
-
*
|
|
3312
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2854
3313
|
*/
|
|
2855
|
-
|
|
3314
|
+
outputIndex: string;
|
|
2856
3315
|
/**
|
|
2857
|
-
*
|
|
3316
|
+
* Hex encoded data for NFT assets.
|
|
2858
3317
|
*/
|
|
2859
|
-
|
|
3318
|
+
payload?: string;
|
|
2860
3319
|
/**
|
|
2861
|
-
*
|
|
3320
|
+
* Minimum number of signatures required to consume this output.
|
|
2862
3321
|
*/
|
|
2863
|
-
|
|
3322
|
+
threshold: number;
|
|
2864
3323
|
/**
|
|
2865
|
-
*
|
|
3324
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2866
3325
|
*/
|
|
2867
|
-
|
|
3326
|
+
timestamp: number;
|
|
2868
3327
|
/**
|
|
2869
|
-
*
|
|
3328
|
+
* Type of output.
|
|
2870
3329
|
*/
|
|
2871
|
-
|
|
3330
|
+
utxoType: string;
|
|
2872
3331
|
};
|
|
2873
3332
|
|
|
2874
3333
|
type CChainExportTransaction = {
|
|
@@ -2895,11 +3354,11 @@ type CChainExportTransaction = {
|
|
|
2895
3354
|
/**
|
|
2896
3355
|
* Assets unlocked by inputs of this transaction.
|
|
2897
3356
|
*/
|
|
2898
|
-
amountUnlocked: Array<
|
|
3357
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2899
3358
|
/**
|
|
2900
3359
|
* Assets created by outputs of this transaction.
|
|
2901
3360
|
*/
|
|
2902
|
-
amountCreated: Array<
|
|
3361
|
+
amountCreated: Array<AssetAmount>;
|
|
2903
3362
|
/**
|
|
2904
3363
|
* Source chain for an atomic transaction.
|
|
2905
3364
|
*/
|
|
@@ -2930,9 +3389,9 @@ type EVMOutput = {
|
|
|
2930
3389
|
*/
|
|
2931
3390
|
toAddress: string;
|
|
2932
3391
|
/**
|
|
2933
|
-
*
|
|
3392
|
+
* AssetAmount details for the asset being transferred.
|
|
2934
3393
|
*/
|
|
2935
|
-
asset:
|
|
3394
|
+
asset: AssetAmount;
|
|
2936
3395
|
};
|
|
2937
3396
|
|
|
2938
3397
|
type CChainImportTransaction = {
|
|
@@ -2959,11 +3418,11 @@ type CChainImportTransaction = {
|
|
|
2959
3418
|
/**
|
|
2960
3419
|
* Assets unlocked by inputs of this transaction.
|
|
2961
3420
|
*/
|
|
2962
|
-
amountUnlocked: Array<
|
|
3421
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2963
3422
|
/**
|
|
2964
3423
|
* Assets created by outputs of this transaction.
|
|
2965
3424
|
*/
|
|
2966
|
-
amountCreated: Array<
|
|
3425
|
+
amountCreated: Array<AssetAmount>;
|
|
2967
3426
|
/**
|
|
2968
3427
|
* Source chain for an atomic transaction.
|
|
2969
3428
|
*/
|
|
@@ -2999,16 +3458,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2999
3458
|
|
|
3000
3459
|
declare enum PChainTransactionType {
|
|
3001
3460
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3002
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3003
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3004
3461
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3005
|
-
|
|
3006
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3462
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3007
3463
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3008
3464
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3009
3465
|
IMPORT_TX = "ImportTx",
|
|
3010
3466
|
EXPORT_TX = "ExportTx",
|
|
3011
3467
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3468
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3469
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3470
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3471
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3472
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3473
|
+
BASE_TX = "BaseTx",
|
|
3474
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3012
3475
|
UNKNOWN = "UNKNOWN"
|
|
3013
3476
|
}
|
|
3014
3477
|
|
|
@@ -3019,29 +3482,48 @@ declare enum UtxoType {
|
|
|
3019
3482
|
|
|
3020
3483
|
type PChainUtxo = {
|
|
3021
3484
|
/**
|
|
3022
|
-
*
|
|
3485
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3023
3486
|
*/
|
|
3024
3487
|
addresses: Array<string>;
|
|
3488
|
+
asset: AssetAmount;
|
|
3489
|
+
/**
|
|
3490
|
+
* Blockchain ID on which this output is consumed on.
|
|
3491
|
+
*/
|
|
3492
|
+
consumedOnChainId: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* Transaction ID that consumed this output.
|
|
3495
|
+
*/
|
|
3496
|
+
consumingTxHash?: string;
|
|
3497
|
+
/**
|
|
3498
|
+
* Blockchain ID on which this output is created on.
|
|
3499
|
+
*/
|
|
3500
|
+
createdOnChainId: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* UTXO ID for this output.
|
|
3503
|
+
*/
|
|
3025
3504
|
utxoId: string;
|
|
3026
|
-
|
|
3027
|
-
|
|
3505
|
+
/**
|
|
3506
|
+
* @deprecated
|
|
3507
|
+
*/
|
|
3508
|
+
amount: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* @deprecated
|
|
3511
|
+
*/
|
|
3512
|
+
assetId: string;
|
|
3028
3513
|
blockNumber: string;
|
|
3029
3514
|
blockTimestamp: number;
|
|
3030
|
-
consumingTxHash?: string;
|
|
3031
|
-
consumingBlockTimestamp?: number;
|
|
3032
3515
|
consumingBlockNumber?: string;
|
|
3033
|
-
|
|
3034
|
-
utxoType: UtxoType;
|
|
3035
|
-
amount: string;
|
|
3036
|
-
stakeableLocktime?: number;
|
|
3516
|
+
consumingBlockTimestamp?: number;
|
|
3037
3517
|
platformLocktime?: number;
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3518
|
+
outputIndex: number;
|
|
3519
|
+
rewardType?: RewardType;
|
|
3520
|
+
stakeableLocktime?: number;
|
|
3041
3521
|
staked?: boolean;
|
|
3042
|
-
|
|
3522
|
+
threshold?: number;
|
|
3523
|
+
txHash: string;
|
|
3043
3524
|
utxoEndTimestamp?: number;
|
|
3044
|
-
|
|
3525
|
+
utxoStartTimestamp?: number;
|
|
3526
|
+
utxoType: UtxoType;
|
|
3045
3527
|
};
|
|
3046
3528
|
|
|
3047
3529
|
type PChainTransaction = {
|
|
@@ -3067,17 +3549,17 @@ type PChainTransaction = {
|
|
|
3067
3549
|
*/
|
|
3068
3550
|
destinationChain?: string;
|
|
3069
3551
|
/**
|
|
3070
|
-
* A list of objects containing P-chain Asset
|
|
3552
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3071
3553
|
*/
|
|
3072
|
-
value: Array<
|
|
3554
|
+
value: Array<AssetAmount>;
|
|
3073
3555
|
/**
|
|
3074
|
-
* A list of objects containing P-chain Asset
|
|
3556
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3075
3557
|
*/
|
|
3076
|
-
amountBurned: Array<
|
|
3558
|
+
amountBurned: Array<AssetAmount>;
|
|
3077
3559
|
/**
|
|
3078
|
-
* A list of objects containing P-chain Asset
|
|
3560
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3079
3561
|
*/
|
|
3080
|
-
amountStaked: Array<
|
|
3562
|
+
amountStaked: Array<AssetAmount>;
|
|
3081
3563
|
/**
|
|
3082
3564
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3083
3565
|
*/
|
|
@@ -3103,11 +3585,16 @@ type PChainTransaction = {
|
|
|
3103
3585
|
*/
|
|
3104
3586
|
estimatedReward?: string;
|
|
3105
3587
|
rewardTxHash?: string;
|
|
3588
|
+
rewardAddresses?: Array<string>;
|
|
3106
3589
|
memo?: string;
|
|
3107
3590
|
/**
|
|
3108
3591
|
* Present for RewardValidatorTx
|
|
3109
3592
|
*/
|
|
3110
3593
|
stakingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3596
|
+
*/
|
|
3597
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3111
3598
|
};
|
|
3112
3599
|
|
|
3113
3600
|
type ListPChainTransactionsResponse = {
|
|
@@ -3119,6 +3606,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3119
3606
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3120
3607
|
};
|
|
3121
3608
|
|
|
3609
|
+
/**
|
|
3610
|
+
* Type of transaction.
|
|
3611
|
+
*/
|
|
3612
|
+
declare enum XChainTransactionType {
|
|
3613
|
+
BASE_TX = "BaseTx",
|
|
3614
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3615
|
+
OPERATION_TX = "OperationTx",
|
|
3616
|
+
IMPORT_TX = "ImportTx",
|
|
3617
|
+
EXPORT_TX = "ExportTx",
|
|
3618
|
+
UNKNOWN = "UNKNOWN"
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3122
3621
|
type XChainLinearTransaction = {
|
|
3123
3622
|
/**
|
|
3124
3623
|
* Unique ID for this transaction.
|
|
@@ -3132,10 +3631,7 @@ type XChainLinearTransaction = {
|
|
|
3132
3631
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3133
3632
|
*/
|
|
3134
3633
|
timestamp: number;
|
|
3135
|
-
|
|
3136
|
-
* Type of transaction.
|
|
3137
|
-
*/
|
|
3138
|
-
txType: string;
|
|
3634
|
+
txType: XChainTransactionType;
|
|
3139
3635
|
/**
|
|
3140
3636
|
* Hex encoded memo bytes for this transaction.
|
|
3141
3637
|
*/
|
|
@@ -3145,11 +3641,11 @@ type XChainLinearTransaction = {
|
|
|
3145
3641
|
/**
|
|
3146
3642
|
* Assets unlocked by inputs of this transaction.
|
|
3147
3643
|
*/
|
|
3148
|
-
amountUnlocked: Array<
|
|
3644
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3149
3645
|
/**
|
|
3150
3646
|
* Assets created by outputs of this transaction.
|
|
3151
3647
|
*/
|
|
3152
|
-
amountCreated: Array<
|
|
3648
|
+
amountCreated: Array<AssetAmount>;
|
|
3153
3649
|
/**
|
|
3154
3650
|
* Source chain for an atomic transaction.
|
|
3155
3651
|
*/
|
|
@@ -3159,7 +3655,7 @@ type XChainLinearTransaction = {
|
|
|
3159
3655
|
*/
|
|
3160
3656
|
destinationChain?: string;
|
|
3161
3657
|
/**
|
|
3162
|
-
*
|
|
3658
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3163
3659
|
*/
|
|
3164
3660
|
assetCreated?: XChainAssetDetails;
|
|
3165
3661
|
/**
|
|
@@ -3209,10 +3705,7 @@ type XChainNonLinearTransaction = {
|
|
|
3209
3705
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3210
3706
|
*/
|
|
3211
3707
|
timestamp: number;
|
|
3212
|
-
|
|
3213
|
-
* Type of transaction.
|
|
3214
|
-
*/
|
|
3215
|
-
txType: string;
|
|
3708
|
+
txType: XChainTransactionType;
|
|
3216
3709
|
/**
|
|
3217
3710
|
* Hex encoded memo bytes for this transaction.
|
|
3218
3711
|
*/
|
|
@@ -3222,11 +3715,11 @@ type XChainNonLinearTransaction = {
|
|
|
3222
3715
|
/**
|
|
3223
3716
|
* Assets unlocked by inputs of this transaction.
|
|
3224
3717
|
*/
|
|
3225
|
-
amountUnlocked: Array<
|
|
3718
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3226
3719
|
/**
|
|
3227
3720
|
* Assets created by outputs of this transaction.
|
|
3228
3721
|
*/
|
|
3229
|
-
amountCreated: Array<
|
|
3722
|
+
amountCreated: Array<AssetAmount>;
|
|
3230
3723
|
/**
|
|
3231
3724
|
* Source chain for an atomic transaction.
|
|
3232
3725
|
*/
|
|
@@ -3236,7 +3729,7 @@ type XChainNonLinearTransaction = {
|
|
|
3236
3729
|
*/
|
|
3237
3730
|
destinationChain?: string;
|
|
3238
3731
|
/**
|
|
3239
|
-
*
|
|
3732
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3240
3733
|
*/
|
|
3241
3734
|
assetCreated?: XChainAssetDetails;
|
|
3242
3735
|
/**
|
|
@@ -3270,18 +3763,21 @@ declare enum PChainId {
|
|
|
3270
3763
|
|
|
3271
3764
|
declare enum PrimaryNetworkTxType {
|
|
3272
3765
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3273
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3274
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3275
3766
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3276
|
-
|
|
3277
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3767
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3278
3768
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3279
3769
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3280
3770
|
IMPORT_TX = "ImportTx",
|
|
3281
3771
|
EXPORT_TX = "ExportTx",
|
|
3282
3772
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3283
|
-
|
|
3773
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3774
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3775
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3776
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3777
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3284
3778
|
BASE_TX = "BaseTx",
|
|
3779
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3780
|
+
UNKNOWN = "UNKNOWN",
|
|
3285
3781
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3286
3782
|
OPERATION_TX = "OperationTx"
|
|
3287
3783
|
}
|
|
@@ -3311,11 +3807,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3807
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3808
|
/**
|
|
3313
3809
|
* List latest transactions
|
|
3314
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3810
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3811
|
+
*
|
|
3812
|
+
* 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.
|
|
3813
|
+
*
|
|
3814
|
+
* 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
3815
|
* @returns any
|
|
3316
3816
|
* @throws ApiError
|
|
3317
3817
|
*/
|
|
3318
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3818
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3319
3819
|
/**
|
|
3320
3820
|
* A primary network blockchain id or alias.
|
|
3321
3821
|
*/
|
|
@@ -3340,14 +3840,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3340
3840
|
* Query param for retrieving items before a specific timestamp.
|
|
3341
3841
|
*/
|
|
3342
3842
|
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
3843
|
/**
|
|
3348
3844
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3349
3845
|
*/
|
|
3350
3846
|
pageToken?: string;
|
|
3847
|
+
/**
|
|
3848
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3849
|
+
*/
|
|
3850
|
+
pageSize?: number;
|
|
3351
3851
|
/**
|
|
3352
3852
|
* 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
3853
|
*/
|
|
@@ -3359,7 +3859,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3359
3859
|
* @returns ListPChainTransactionsResponse
|
|
3360
3860
|
* @throws ApiError
|
|
3361
3861
|
*/
|
|
3362
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3862
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3363
3863
|
/**
|
|
3364
3864
|
* A primary network blockchain id or alias.
|
|
3365
3865
|
*/
|
|
@@ -3384,14 +3884,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3384
3884
|
* Query param for retrieving items before a specific timestamp.
|
|
3385
3885
|
*/
|
|
3386
3886
|
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
3887
|
/**
|
|
3392
3888
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3393
3889
|
*/
|
|
3394
3890
|
pageToken?: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3893
|
+
*/
|
|
3894
|
+
pageSize?: number;
|
|
3395
3895
|
/**
|
|
3396
3896
|
* 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
3897
|
*/
|
|
@@ -3403,7 +3903,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3403
3903
|
* @returns ListXChainTransactionsResponse
|
|
3404
3904
|
* @throws ApiError
|
|
3405
3905
|
*/
|
|
3406
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3407
3907
|
/**
|
|
3408
3908
|
* A primary network blockchain id or alias.
|
|
3409
3909
|
*/
|
|
@@ -3428,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3428
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3429
3929
|
*/
|
|
3430
3930
|
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
3931
|
/**
|
|
3436
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3437
3933
|
*/
|
|
3438
3934
|
pageToken?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3937
|
+
*/
|
|
3938
|
+
pageSize?: number;
|
|
3439
3939
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3440
3940
|
}
|
|
3441
3941
|
|
|
@@ -3466,7 +3966,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3466
3966
|
* @returns any
|
|
3467
3967
|
* @throws ApiError
|
|
3468
3968
|
*/
|
|
3469
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3969
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3470
3970
|
/**
|
|
3471
3971
|
* A primary network blockchain id or alias.
|
|
3472
3972
|
*/
|
|
@@ -3479,14 +3979,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3479
3979
|
* 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
3980
|
*/
|
|
3481
3981
|
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
3982
|
/**
|
|
3487
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3488
3984
|
*/
|
|
3489
3985
|
pageToken?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3988
|
+
*/
|
|
3989
|
+
pageSize?: number;
|
|
3490
3990
|
/**
|
|
3491
3991
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3492
3992
|
*/
|
|
@@ -3531,7 +4031,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3531
4031
|
* @returns ListXChainVerticesResponse
|
|
3532
4032
|
* @throws ApiError
|
|
3533
4033
|
*/
|
|
3534
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4034
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3535
4035
|
/**
|
|
3536
4036
|
* A primary network blockchain id or alias.
|
|
3537
4037
|
*/
|
|
@@ -3540,14 +4040,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3540
4040
|
* Either mainnet or a testnet.
|
|
3541
4041
|
*/
|
|
3542
4042
|
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
4043
|
/**
|
|
3548
4044
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3549
4045
|
*/
|
|
3550
4046
|
pageToken?: string;
|
|
4047
|
+
/**
|
|
4048
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4049
|
+
*/
|
|
4050
|
+
pageSize?: number;
|
|
3551
4051
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3552
4052
|
/**
|
|
3553
4053
|
* Get vertex
|
|
@@ -3575,7 +4075,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3575
4075
|
* @returns ListXChainVerticesResponse
|
|
3576
4076
|
* @throws ApiError
|
|
3577
4077
|
*/
|
|
3578
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4078
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3579
4079
|
/**
|
|
3580
4080
|
* The height of a vertex.
|
|
3581
4081
|
*/
|
|
@@ -3588,28 +4088,449 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3588
4088
|
* Either mainnet or a testnet.
|
|
3589
4089
|
*/
|
|
3590
4090
|
network: Network;
|
|
4091
|
+
/**
|
|
4092
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4093
|
+
*/
|
|
4094
|
+
pageToken?: string;
|
|
4095
|
+
/**
|
|
4096
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4097
|
+
*/
|
|
4098
|
+
pageSize?: number;
|
|
4099
|
+
/**
|
|
4100
|
+
* 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.
|
|
4101
|
+
*/
|
|
4102
|
+
sortOrder?: SortOrder;
|
|
4103
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
type RpcErrorDto = {
|
|
4107
|
+
code: number;
|
|
4108
|
+
message: string;
|
|
4109
|
+
data?: Record<string, any>;
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
type RpcErrorResponseDto = {
|
|
4113
|
+
jsonrpc: string;
|
|
4114
|
+
id?: (string | number);
|
|
4115
|
+
error: RpcErrorDto;
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4118
|
+
type RpcRequestBodyDto = {
|
|
4119
|
+
method: string;
|
|
4120
|
+
params?: Record<string, any>;
|
|
4121
|
+
id?: (string | number);
|
|
4122
|
+
jsonrpc?: string;
|
|
4123
|
+
};
|
|
4124
|
+
|
|
4125
|
+
type RpcSuccessResponseDto = {
|
|
4126
|
+
jsonrpc: string;
|
|
4127
|
+
id?: (string | number);
|
|
4128
|
+
result: Record<string, any>;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
declare class RpcService {
|
|
4132
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4133
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4134
|
+
/**
|
|
4135
|
+
* Calls JSON-RPC method
|
|
4136
|
+
* Calls JSON-RPC method.
|
|
4137
|
+
* @returns any
|
|
4138
|
+
* @throws ApiError
|
|
4139
|
+
*/
|
|
4140
|
+
rpc({ chainId, requestBody, }: {
|
|
4141
|
+
/**
|
|
4142
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4143
|
+
*/
|
|
4144
|
+
chainId: string;
|
|
4145
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4146
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
type TeleporterDestinationTransaction = {
|
|
4150
|
+
txHash: string;
|
|
4151
|
+
timestamp: number;
|
|
4152
|
+
gasSpent: string;
|
|
4153
|
+
rewardRedeemer: string;
|
|
4154
|
+
delivererAddress: string;
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
type TeleporterReceipt = {
|
|
4158
|
+
receivedMessageNonce: string;
|
|
4159
|
+
relayerRewardAddress: string;
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
type TeleporterRewardDetails = {
|
|
4163
|
+
/**
|
|
4164
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4165
|
+
*/
|
|
4166
|
+
address: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* The contract name.
|
|
4169
|
+
*/
|
|
4170
|
+
name: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The contract symbol.
|
|
4173
|
+
*/
|
|
4174
|
+
symbol: string;
|
|
4175
|
+
/**
|
|
4176
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4177
|
+
*/
|
|
4178
|
+
decimals: number;
|
|
4179
|
+
/**
|
|
4180
|
+
* The logo uri for the address.
|
|
4181
|
+
*/
|
|
4182
|
+
logoUri?: string;
|
|
4183
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4184
|
+
/**
|
|
4185
|
+
* The token price, if available.
|
|
4186
|
+
*/
|
|
4187
|
+
price?: Money;
|
|
4188
|
+
value: string;
|
|
4189
|
+
};
|
|
4190
|
+
declare namespace TeleporterRewardDetails {
|
|
4191
|
+
enum ercType {
|
|
4192
|
+
ERC_20 = "ERC-20"
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4197
|
+
messageId: string;
|
|
4198
|
+
teleporterContractAddress: string;
|
|
4199
|
+
sourceBlockchainId: string;
|
|
4200
|
+
destinationBlockchainId: string;
|
|
4201
|
+
messageNonce: string;
|
|
4202
|
+
from: string;
|
|
4203
|
+
to: string;
|
|
4204
|
+
data?: string;
|
|
4205
|
+
messageExecuted: boolean;
|
|
4206
|
+
receipts: Array<TeleporterReceipt>;
|
|
4207
|
+
receiptDelivered: boolean;
|
|
4208
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4209
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4210
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4211
|
+
};
|
|
4212
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4213
|
+
enum status {
|
|
4214
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
type TeleporterSourceTransaction = {
|
|
4219
|
+
txHash: string;
|
|
4220
|
+
timestamp: number;
|
|
4221
|
+
gasSpent: string;
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
type DeliveredTeleporterMessage = {
|
|
4225
|
+
messageId: string;
|
|
4226
|
+
teleporterContractAddress: string;
|
|
4227
|
+
sourceBlockchainId: string;
|
|
4228
|
+
destinationBlockchainId: string;
|
|
4229
|
+
messageNonce: string;
|
|
4230
|
+
from: string;
|
|
4231
|
+
to: string;
|
|
4232
|
+
data?: string;
|
|
4233
|
+
messageExecuted: boolean;
|
|
4234
|
+
receipts: Array<TeleporterReceipt>;
|
|
4235
|
+
receiptDelivered: boolean;
|
|
4236
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4237
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4238
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4239
|
+
status: DeliveredTeleporterMessage.status;
|
|
4240
|
+
};
|
|
4241
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4242
|
+
enum status {
|
|
4243
|
+
DELIVERED = "delivered"
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
type NextPageToken = {
|
|
4248
|
+
/**
|
|
4249
|
+
* 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.
|
|
4250
|
+
*/
|
|
4251
|
+
nextPageToken?: string;
|
|
4252
|
+
};
|
|
4253
|
+
|
|
4254
|
+
type PendingTeleporterMessage = {
|
|
4255
|
+
messageId: string;
|
|
4256
|
+
teleporterContractAddress: string;
|
|
4257
|
+
sourceBlockchainId: string;
|
|
4258
|
+
destinationBlockchainId: string;
|
|
4259
|
+
messageNonce: string;
|
|
4260
|
+
from: string;
|
|
4261
|
+
to: string;
|
|
4262
|
+
data?: string;
|
|
4263
|
+
messageExecuted: boolean;
|
|
4264
|
+
receipts: Array<TeleporterReceipt>;
|
|
4265
|
+
receiptDelivered: boolean;
|
|
4266
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4267
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4268
|
+
status: PendingTeleporterMessage.status;
|
|
4269
|
+
};
|
|
4270
|
+
declare namespace PendingTeleporterMessage {
|
|
4271
|
+
enum status {
|
|
4272
|
+
PENDING = "pending"
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
declare class TeleporterService {
|
|
4277
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4278
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4279
|
+
/**
|
|
4280
|
+
* Get a teleporter message
|
|
4281
|
+
* Gets a teleporter message by message ID.
|
|
4282
|
+
* @returns any
|
|
4283
|
+
* @throws ApiError
|
|
4284
|
+
*/
|
|
4285
|
+
getTeleporterMessage({ messageId, }: {
|
|
4286
|
+
/**
|
|
4287
|
+
* The message ID of the teleporter message.
|
|
4288
|
+
*/
|
|
4289
|
+
messageId: string;
|
|
4290
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4291
|
+
/**
|
|
4292
|
+
* List teleporter messages
|
|
4293
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4294
|
+
* @returns any
|
|
4295
|
+
* @throws ApiError
|
|
4296
|
+
*/
|
|
4297
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4298
|
+
/**
|
|
4299
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4300
|
+
*/
|
|
4301
|
+
pageToken?: string;
|
|
3591
4302
|
/**
|
|
3592
4303
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3593
4304
|
*/
|
|
3594
4305
|
pageSize?: number;
|
|
4306
|
+
/**
|
|
4307
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4308
|
+
*/
|
|
4309
|
+
sourceBlockchainId?: string;
|
|
4310
|
+
/**
|
|
4311
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4312
|
+
*/
|
|
4313
|
+
destinationBlockchainId?: string;
|
|
4314
|
+
/**
|
|
4315
|
+
* The address of the recipient of the teleporter message.
|
|
4316
|
+
*/
|
|
4317
|
+
to?: string;
|
|
4318
|
+
/**
|
|
4319
|
+
* The address of the sender of the teleporter message.
|
|
4320
|
+
*/
|
|
4321
|
+
from?: string;
|
|
4322
|
+
}): CancelablePromise<NextPageToken>;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
type AddressesChangeRequest = {
|
|
4326
|
+
/**
|
|
4327
|
+
* Ethereum address(es) for the address_activity event type
|
|
4328
|
+
*/
|
|
4329
|
+
addresses: Array<any[]>;
|
|
4330
|
+
};
|
|
4331
|
+
|
|
4332
|
+
type AddressActivityMetadata = {
|
|
4333
|
+
/**
|
|
4334
|
+
* Ethereum address(es) for the address_activity event type
|
|
4335
|
+
*/
|
|
4336
|
+
addresses: Array<any[]>;
|
|
4337
|
+
/**
|
|
4338
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4339
|
+
*/
|
|
4340
|
+
eventSignatures?: Array<string>;
|
|
4341
|
+
};
|
|
4342
|
+
|
|
4343
|
+
declare enum EventType {
|
|
4344
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
declare enum WebhookStatusType {
|
|
4348
|
+
ACTIVE = "active",
|
|
4349
|
+
INACTIVE = "inactive"
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
type WebhookResponse = {
|
|
4353
|
+
id: string;
|
|
4354
|
+
eventType: EventType;
|
|
4355
|
+
metadata: AddressActivityMetadata;
|
|
4356
|
+
/**
|
|
4357
|
+
* Whether to include traces in the webhook payload.
|
|
4358
|
+
*/
|
|
4359
|
+
includeInternalTxs?: boolean;
|
|
4360
|
+
/**
|
|
4361
|
+
* Whether to include logs in the webhook payload.
|
|
4362
|
+
*/
|
|
4363
|
+
includeLogs?: boolean;
|
|
4364
|
+
url: string;
|
|
4365
|
+
chainId: string;
|
|
4366
|
+
status: WebhookStatusType;
|
|
4367
|
+
createdAt: number;
|
|
4368
|
+
name: string;
|
|
4369
|
+
description: string;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type ListWebhooksResponse = {
|
|
4373
|
+
/**
|
|
4374
|
+
* 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.
|
|
4375
|
+
*/
|
|
4376
|
+
nextPageToken?: string;
|
|
4377
|
+
webhooks: Array<WebhookResponse>;
|
|
4378
|
+
};
|
|
4379
|
+
|
|
4380
|
+
type RegisterWebhookRequest = {
|
|
4381
|
+
url: string;
|
|
4382
|
+
chainId: string;
|
|
4383
|
+
eventType: EventType;
|
|
4384
|
+
metadata: AddressActivityMetadata;
|
|
4385
|
+
/**
|
|
4386
|
+
* Whether to include traces in the webhook payload.
|
|
4387
|
+
*/
|
|
4388
|
+
includeInternalTxs?: boolean;
|
|
4389
|
+
/**
|
|
4390
|
+
* Whether to include logs in the webhook payload.
|
|
4391
|
+
*/
|
|
4392
|
+
includeLogs?: boolean;
|
|
4393
|
+
};
|
|
4394
|
+
|
|
4395
|
+
type SharedSecretsResponse = {
|
|
4396
|
+
secret: string;
|
|
4397
|
+
};
|
|
4398
|
+
|
|
4399
|
+
type UpdateWebhookRequest = {
|
|
4400
|
+
name?: string;
|
|
4401
|
+
description?: string;
|
|
4402
|
+
url?: string;
|
|
4403
|
+
status?: WebhookStatusType;
|
|
4404
|
+
includeInternalTxs?: boolean;
|
|
4405
|
+
includeLogs?: boolean;
|
|
4406
|
+
};
|
|
4407
|
+
|
|
4408
|
+
declare enum WebhookStatus {
|
|
4409
|
+
ACTIVE = "active",
|
|
4410
|
+
INACTIVE = "inactive"
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
declare class WebhooksService {
|
|
4414
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4415
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4416
|
+
/**
|
|
4417
|
+
* Register a webhook
|
|
4418
|
+
* Registers a new webhook.
|
|
4419
|
+
* @returns WebhookResponse
|
|
4420
|
+
* @throws ApiError
|
|
4421
|
+
*/
|
|
4422
|
+
registerWebhook({ requestBody, }: {
|
|
4423
|
+
requestBody: RegisterWebhookRequest;
|
|
4424
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4425
|
+
/**
|
|
4426
|
+
* List webhooks
|
|
4427
|
+
* Lists webhooks for the user.
|
|
4428
|
+
* @returns ListWebhooksResponse
|
|
4429
|
+
* @throws ApiError
|
|
4430
|
+
*/
|
|
4431
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3595
4432
|
/**
|
|
3596
4433
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3597
4434
|
*/
|
|
3598
4435
|
pageToken?: string;
|
|
3599
4436
|
/**
|
|
3600
|
-
* The
|
|
4437
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3601
4438
|
*/
|
|
3602
|
-
|
|
3603
|
-
|
|
4439
|
+
pageSize?: number;
|
|
4440
|
+
/**
|
|
4441
|
+
* 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.
|
|
4442
|
+
*/
|
|
4443
|
+
status?: WebhookStatus;
|
|
4444
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4445
|
+
/**
|
|
4446
|
+
* Get a webhook by ID
|
|
4447
|
+
* Retrieves a webhook by ID.
|
|
4448
|
+
* @returns WebhookResponse
|
|
4449
|
+
* @throws ApiError
|
|
4450
|
+
*/
|
|
4451
|
+
getWebhook({ id, }: {
|
|
4452
|
+
/**
|
|
4453
|
+
* The webhook identifier.
|
|
4454
|
+
*/
|
|
4455
|
+
id: string;
|
|
4456
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4457
|
+
/**
|
|
4458
|
+
* Deactivate a webhook
|
|
4459
|
+
* Deactivates a webhook by ID.
|
|
4460
|
+
* @returns WebhookResponse
|
|
4461
|
+
* @throws ApiError
|
|
4462
|
+
*/
|
|
4463
|
+
deactivateWebhook({ id, }: {
|
|
4464
|
+
/**
|
|
4465
|
+
* The webhook identifier.
|
|
4466
|
+
*/
|
|
4467
|
+
id: string;
|
|
4468
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4469
|
+
/**
|
|
4470
|
+
* Update a webhook
|
|
4471
|
+
* Updates an existing webhook.
|
|
4472
|
+
* @returns WebhookResponse
|
|
4473
|
+
* @throws ApiError
|
|
4474
|
+
*/
|
|
4475
|
+
updateWebhook({ id, requestBody, }: {
|
|
4476
|
+
/**
|
|
4477
|
+
* The webhook identifier.
|
|
4478
|
+
*/
|
|
4479
|
+
id: string;
|
|
4480
|
+
requestBody: UpdateWebhookRequest;
|
|
4481
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4482
|
+
/**
|
|
4483
|
+
* Generate a shared secret
|
|
4484
|
+
* Generates a new shared secret.
|
|
4485
|
+
* @returns SharedSecretsResponse
|
|
4486
|
+
* @throws ApiError
|
|
4487
|
+
*/
|
|
4488
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4489
|
+
/**
|
|
4490
|
+
* Get a shared secret
|
|
4491
|
+
* Get a previously generated shared secret.
|
|
4492
|
+
* @returns SharedSecretsResponse
|
|
4493
|
+
* @throws ApiError
|
|
4494
|
+
*/
|
|
4495
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4496
|
+
/**
|
|
4497
|
+
* Add address(es) to a webhook
|
|
4498
|
+
* Adding address(es) to a given webhook.
|
|
4499
|
+
* @returns WebhookResponse
|
|
4500
|
+
* @throws ApiError
|
|
4501
|
+
*/
|
|
4502
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4503
|
+
/**
|
|
4504
|
+
* The webhook identifier.
|
|
4505
|
+
*/
|
|
4506
|
+
id: string;
|
|
4507
|
+
requestBody: AddressesChangeRequest;
|
|
4508
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4509
|
+
/**
|
|
4510
|
+
* Remove address(es) from a webhook
|
|
4511
|
+
* Removing address(es) from a given webhook.
|
|
4512
|
+
* @returns WebhookResponse
|
|
4513
|
+
* @throws ApiError
|
|
4514
|
+
*/
|
|
4515
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4516
|
+
/**
|
|
4517
|
+
* The webhook identifier.
|
|
4518
|
+
*/
|
|
4519
|
+
id: string;
|
|
4520
|
+
requestBody: AddressesChangeRequest;
|
|
4521
|
+
}): CancelablePromise<WebhookResponse>;
|
|
3604
4522
|
}
|
|
3605
4523
|
|
|
3606
4524
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3607
4525
|
declare class Glacier {
|
|
4526
|
+
readonly default: DefaultService;
|
|
3608
4527
|
readonly evmBalances: EvmBalancesService;
|
|
3609
4528
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
4529
|
readonly evmChains: EvmChainsService;
|
|
4530
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
4531
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
4532
|
readonly healthCheck: HealthCheckService;
|
|
4533
|
+
readonly nfTs: NfTsService;
|
|
3613
4534
|
readonly operations: OperationsService;
|
|
3614
4535
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
4536
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3618,6 +4539,9 @@ declare class Glacier {
|
|
|
3618
4539
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3619
4540
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3620
4541
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4542
|
+
readonly rpc: RpcService;
|
|
4543
|
+
readonly teleporter: TeleporterService;
|
|
4544
|
+
readonly webhooks: WebhooksService;
|
|
3621
4545
|
readonly request: BaseHttpRequest;
|
|
3622
4546
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3623
4547
|
}
|
|
@@ -3639,4 +4563,4 @@ declare class ApiError extends Error {
|
|
|
3639
4563
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
4564
|
}
|
|
3641
4565
|
|
|
3642
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4566
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, 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, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, 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 };
|