@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.e6e93fd.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 +1659 -714
- package/dist/index.js +636 -157
- package/esm/generated/Glacier.d.ts +12 -0
- package/esm/generated/Glacier.js +18 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -36
- package/esm/generated/core/request.js +3 -2
- package/esm/generated/models/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 +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/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/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +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 +29 -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 +53 -29
- package/esm/generated/services/PrimaryNetworkService.js +26 -14
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/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 +49 -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,446 +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 = {
|
|
1015
|
-
assetId?: string;
|
|
1126
|
+
name: string;
|
|
1016
1127
|
/**
|
|
1017
|
-
*
|
|
1128
|
+
* The contract symbol.
|
|
1018
1129
|
*/
|
|
1019
|
-
|
|
1130
|
+
symbol: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1133
|
+
*/
|
|
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;
|
|
1020
1144
|
};
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1026
|
-
DISCORD = "Discord",
|
|
1027
|
-
DOCUMENTATION = "Documentation",
|
|
1028
|
-
FACEBOOK = "Facebook",
|
|
1029
|
-
GITHUB = "Github",
|
|
1030
|
-
INSTAGRAM = "Instagram",
|
|
1031
|
-
LINKED_IN = "LinkedIn",
|
|
1032
|
-
MEDIUM = "Medium",
|
|
1033
|
-
REDDIT = "Reddit",
|
|
1034
|
-
SUPPORT = "Support",
|
|
1035
|
-
TELEGRAM = "Telegram",
|
|
1036
|
-
TIK_TOK = "TikTok",
|
|
1037
|
-
TWITTER = "Twitter",
|
|
1038
|
-
WEBSITE = "Website",
|
|
1039
|
-
WHITEPAPER = "Whitepaper",
|
|
1040
|
-
YOUTUBE = "Youtube"
|
|
1145
|
+
declare namespace Erc20Token {
|
|
1146
|
+
enum ercType {
|
|
1147
|
+
ERC_20 = "ERC-20"
|
|
1148
|
+
}
|
|
1041
1149
|
}
|
|
1042
1150
|
|
|
1043
|
-
type
|
|
1044
|
-
|
|
1045
|
-
|
|
1151
|
+
type Erc20TransferDetails = {
|
|
1152
|
+
from: RichAddress;
|
|
1153
|
+
to: RichAddress;
|
|
1154
|
+
logIndex: number;
|
|
1155
|
+
value: string;
|
|
1156
|
+
erc20Token: Erc20Token;
|
|
1046
1157
|
};
|
|
1047
1158
|
|
|
1048
|
-
type
|
|
1049
|
-
/**
|
|
1050
|
-
* The contract name.
|
|
1051
|
-
*/
|
|
1052
|
-
name?: string;
|
|
1053
|
-
description?: string;
|
|
1054
|
-
officialSite?: string;
|
|
1055
|
-
email?: string;
|
|
1056
|
-
logoAsset?: ImageAsset;
|
|
1057
|
-
bannerAsset?: ImageAsset;
|
|
1058
|
-
color?: string;
|
|
1059
|
-
coingeckoCoinId?: string;
|
|
1060
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1061
|
-
tags?: Array<string>;
|
|
1159
|
+
type Erc721Token = {
|
|
1062
1160
|
/**
|
|
1063
1161
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1064
1162
|
*/
|
|
1065
1163
|
address: string;
|
|
1066
|
-
|
|
1067
|
-
|
|
1164
|
+
/**
|
|
1165
|
+
* The contract name.
|
|
1166
|
+
*/
|
|
1167
|
+
name: string;
|
|
1068
1168
|
/**
|
|
1069
1169
|
* The contract symbol.
|
|
1070
1170
|
*/
|
|
1071
|
-
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;
|
|
1072
1180
|
};
|
|
1073
|
-
declare namespace
|
|
1181
|
+
declare namespace Erc721Token {
|
|
1074
1182
|
enum ercType {
|
|
1075
|
-
|
|
1183
|
+
ERC_721 = "ERC-721"
|
|
1076
1184
|
}
|
|
1077
1185
|
}
|
|
1078
1186
|
|
|
1079
|
-
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;
|
|
1080
1205
|
/**
|
|
1081
|
-
* The contract
|
|
1206
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1082
1207
|
*/
|
|
1083
|
-
|
|
1084
|
-
description?: string;
|
|
1085
|
-
officialSite?: string;
|
|
1086
|
-
email?: string;
|
|
1087
|
-
logoAsset?: ImageAsset;
|
|
1088
|
-
bannerAsset?: ImageAsset;
|
|
1089
|
-
color?: string;
|
|
1090
|
-
coingeckoCoinId?: string;
|
|
1091
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1092
|
-
tags?: Array<string>;
|
|
1208
|
+
methodHash: string;
|
|
1093
1209
|
/**
|
|
1094
|
-
*
|
|
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;
|
|
1248
|
+
/**
|
|
1249
|
+
* The amount of gas used.
|
|
1250
|
+
*/
|
|
1251
|
+
gasUsed: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1095
1254
|
*/
|
|
1096
|
-
|
|
1097
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1098
|
-
ercType: Erc20Contract.ercType;
|
|
1255
|
+
gasPrice: string;
|
|
1099
1256
|
/**
|
|
1100
|
-
* The
|
|
1257
|
+
* The nonce used by the sender of the transaction.
|
|
1101
1258
|
*/
|
|
1102
|
-
|
|
1259
|
+
nonce: string;
|
|
1260
|
+
from: RichAddress;
|
|
1261
|
+
to: RichAddress;
|
|
1262
|
+
method?: Method;
|
|
1263
|
+
value: string;
|
|
1103
1264
|
/**
|
|
1104
|
-
* The
|
|
1265
|
+
* The data sent for the transaction.
|
|
1105
1266
|
*/
|
|
1106
|
-
|
|
1267
|
+
input: string;
|
|
1268
|
+
baseFeePerGas: string;
|
|
1269
|
+
maxFeePerGas?: string;
|
|
1270
|
+
maxPriorityFeePerGas?: string;
|
|
1107
1271
|
};
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
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"
|
|
1112
1281
|
}
|
|
1113
1282
|
|
|
1114
|
-
type
|
|
1283
|
+
type InternalTransactionDetails = {
|
|
1284
|
+
from: RichAddress;
|
|
1285
|
+
to: RichAddress;
|
|
1286
|
+
internalTxType: InternalTransactionOpCall;
|
|
1287
|
+
value: string;
|
|
1115
1288
|
/**
|
|
1116
|
-
*
|
|
1289
|
+
* True if the internal transaction was reverted.
|
|
1117
1290
|
*/
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
coingeckoCoinId?: string;
|
|
1126
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1127
|
-
tags?: Array<string>;
|
|
1291
|
+
isReverted: boolean;
|
|
1292
|
+
gasUsed: string;
|
|
1293
|
+
gasLimit: string;
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
type NetworkTokenDetails = {
|
|
1297
|
+
networkToken: NetworkToken;
|
|
1128
1298
|
/**
|
|
1129
|
-
*
|
|
1299
|
+
* The current token price, if available.
|
|
1130
1300
|
*/
|
|
1131
|
-
|
|
1132
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1133
|
-
ercType: Erc721Contract.ercType;
|
|
1301
|
+
currentPrice?: Money;
|
|
1134
1302
|
/**
|
|
1135
|
-
* 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.
|
|
1136
1304
|
*/
|
|
1137
|
-
|
|
1305
|
+
historicalPrice?: Money;
|
|
1138
1306
|
};
|
|
1139
|
-
declare namespace Erc721Contract {
|
|
1140
|
-
enum ercType {
|
|
1141
|
-
ERC_721 = "ERC-721"
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
1307
|
|
|
1145
|
-
type
|
|
1308
|
+
type GetTransactionResponse = {
|
|
1146
1309
|
/**
|
|
1147
|
-
* The
|
|
1310
|
+
* The list of ERC-20 transfers.
|
|
1148
1311
|
*/
|
|
1149
|
-
|
|
1150
|
-
description?: string;
|
|
1151
|
-
officialSite?: string;
|
|
1152
|
-
email?: string;
|
|
1153
|
-
logoAsset?: ImageAsset;
|
|
1154
|
-
bannerAsset?: ImageAsset;
|
|
1155
|
-
color?: string;
|
|
1156
|
-
coingeckoCoinId?: string;
|
|
1157
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1158
|
-
tags?: Array<string>;
|
|
1312
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1159
1313
|
/**
|
|
1160
|
-
*
|
|
1314
|
+
* The list of ERC-721 transfers.
|
|
1161
1315
|
*/
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
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;
|
|
1165
1327
|
};
|
|
1166
|
-
declare namespace UnknownContract {
|
|
1167
|
-
enum ercType {
|
|
1168
|
-
UNKNOWN = "UNKNOWN"
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
1328
|
|
|
1172
1329
|
type ListContractsResponse = {
|
|
1173
1330
|
/**
|
|
1174
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.
|
|
1175
1332
|
*/
|
|
1176
1333
|
nextPageToken?: string;
|
|
1177
|
-
contracts: Array<(
|
|
1334
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1178
1335
|
};
|
|
1179
1336
|
|
|
1180
1337
|
type Erc1155Transfer = {
|
|
@@ -1404,7 +1561,7 @@ type ListTransfersResponse = {
|
|
|
1404
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.
|
|
1405
1562
|
*/
|
|
1406
1563
|
nextPageToken?: string;
|
|
1407
|
-
transfers:
|
|
1564
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1408
1565
|
};
|
|
1409
1566
|
|
|
1410
1567
|
declare enum SortOrder {
|
|
@@ -1428,7 +1585,7 @@ declare class EvmTransactionsService {
|
|
|
1428
1585
|
*/
|
|
1429
1586
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1430
1587
|
/**
|
|
1431
|
-
* 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.
|
|
1432
1589
|
*/
|
|
1433
1590
|
chainId: string;
|
|
1434
1591
|
/**
|
|
@@ -1446,23 +1603,23 @@ declare class EvmTransactionsService {
|
|
|
1446
1603
|
* @returns ListContractsResponse
|
|
1447
1604
|
* @throws ApiError
|
|
1448
1605
|
*/
|
|
1449
|
-
listContractDeployments({ chainId, address,
|
|
1606
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1450
1607
|
/**
|
|
1451
|
-
* 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.
|
|
1452
1609
|
*/
|
|
1453
1610
|
chainId: string;
|
|
1454
1611
|
/**
|
|
1455
1612
|
* A wallet address.
|
|
1456
1613
|
*/
|
|
1457
1614
|
address: string;
|
|
1458
|
-
/**
|
|
1459
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1460
|
-
*/
|
|
1461
|
-
pageSize?: number;
|
|
1462
1615
|
/**
|
|
1463
1616
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1464
1617
|
*/
|
|
1465
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;
|
|
1466
1623
|
}): CancelablePromise<ListContractsResponse>;
|
|
1467
1624
|
/**
|
|
1468
1625
|
* List ERC transfers
|
|
@@ -1470,25 +1627,31 @@ declare class EvmTransactionsService {
|
|
|
1470
1627
|
* @returns ListTransfersResponse
|
|
1471
1628
|
* @throws ApiError
|
|
1472
1629
|
*/
|
|
1473
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1630
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1474
1631
|
/**
|
|
1475
|
-
* 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.
|
|
1476
1633
|
*/
|
|
1477
1634
|
chainId: string;
|
|
1478
1635
|
/**
|
|
1479
1636
|
* A wallet address.
|
|
1480
1637
|
*/
|
|
1481
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
|
+
*/
|
|
1482
1642
|
startBlock?: number;
|
|
1483
|
-
endBlock?: number;
|
|
1484
1643
|
/**
|
|
1485
|
-
* 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.
|
|
1486
1645
|
*/
|
|
1487
|
-
|
|
1646
|
+
endBlock?: number;
|
|
1488
1647
|
/**
|
|
1489
1648
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1490
1649
|
*/
|
|
1491
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;
|
|
1492
1655
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1493
1656
|
/**
|
|
1494
1657
|
* List transactions
|
|
@@ -1498,24 +1661,30 @@ declare class EvmTransactionsService {
|
|
|
1498
1661
|
* @returns ListTransactionDetailsResponse
|
|
1499
1662
|
* @throws ApiError
|
|
1500
1663
|
*/
|
|
1501
|
-
listTransactions({ chainId, address,
|
|
1664
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1502
1665
|
/**
|
|
1503
|
-
* 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.
|
|
1504
1667
|
*/
|
|
1505
1668
|
chainId: string;
|
|
1506
1669
|
/**
|
|
1507
1670
|
* A wallet address.
|
|
1508
1671
|
*/
|
|
1509
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;
|
|
1510
1677
|
/**
|
|
1511
1678
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1512
1679
|
*/
|
|
1513
1680
|
pageSize?: number;
|
|
1514
1681
|
/**
|
|
1515
|
-
*
|
|
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.
|
|
1516
1683
|
*/
|
|
1517
|
-
pageToken?: string;
|
|
1518
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
|
+
*/
|
|
1519
1688
|
endBlock?: number;
|
|
1520
1689
|
/**
|
|
1521
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.
|
|
@@ -1528,25 +1697,31 @@ declare class EvmTransactionsService {
|
|
|
1528
1697
|
* @returns ListNativeTransactionsResponse
|
|
1529
1698
|
* @throws ApiError
|
|
1530
1699
|
*/
|
|
1531
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1700
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1532
1701
|
/**
|
|
1533
|
-
* 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.
|
|
1534
1703
|
*/
|
|
1535
1704
|
chainId: string;
|
|
1536
1705
|
/**
|
|
1537
1706
|
* A wallet address.
|
|
1538
1707
|
*/
|
|
1539
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
|
+
*/
|
|
1540
1712
|
startBlock?: number;
|
|
1541
|
-
endBlock?: number;
|
|
1542
1713
|
/**
|
|
1543
|
-
* 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.
|
|
1544
1715
|
*/
|
|
1545
|
-
|
|
1716
|
+
endBlock?: number;
|
|
1546
1717
|
/**
|
|
1547
1718
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1548
1719
|
*/
|
|
1549
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;
|
|
1550
1725
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1551
1726
|
/**
|
|
1552
1727
|
* List ERC-20 transfers
|
|
@@ -1554,25 +1729,31 @@ declare class EvmTransactionsService {
|
|
|
1554
1729
|
* @returns ListErc20TransactionsResponse
|
|
1555
1730
|
* @throws ApiError
|
|
1556
1731
|
*/
|
|
1557
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1732
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1558
1733
|
/**
|
|
1559
|
-
* 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.
|
|
1560
1735
|
*/
|
|
1561
1736
|
chainId: string;
|
|
1562
1737
|
/**
|
|
1563
1738
|
* A wallet address.
|
|
1564
1739
|
*/
|
|
1565
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
|
+
*/
|
|
1566
1744
|
startBlock?: number;
|
|
1567
|
-
endBlock?: number;
|
|
1568
1745
|
/**
|
|
1569
|
-
* 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.
|
|
1570
1747
|
*/
|
|
1571
|
-
|
|
1748
|
+
endBlock?: number;
|
|
1572
1749
|
/**
|
|
1573
1750
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1574
1751
|
*/
|
|
1575
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;
|
|
1576
1757
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1577
1758
|
/**
|
|
1578
1759
|
* List ERC-721 transfers
|
|
@@ -1580,25 +1761,31 @@ declare class EvmTransactionsService {
|
|
|
1580
1761
|
* @returns ListErc721TransactionsResponse
|
|
1581
1762
|
* @throws ApiError
|
|
1582
1763
|
*/
|
|
1583
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1764
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1584
1765
|
/**
|
|
1585
|
-
* 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.
|
|
1586
1767
|
*/
|
|
1587
1768
|
chainId: string;
|
|
1588
1769
|
/**
|
|
1589
1770
|
* A wallet address.
|
|
1590
1771
|
*/
|
|
1591
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
|
+
*/
|
|
1592
1776
|
startBlock?: number;
|
|
1593
|
-
endBlock?: number;
|
|
1594
1777
|
/**
|
|
1595
|
-
* 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.
|
|
1596
1779
|
*/
|
|
1597
|
-
|
|
1780
|
+
endBlock?: number;
|
|
1598
1781
|
/**
|
|
1599
1782
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1600
1783
|
*/
|
|
1601
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;
|
|
1602
1789
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1603
1790
|
/**
|
|
1604
1791
|
* List ERC-1155 transfers
|
|
@@ -1606,25 +1793,31 @@ declare class EvmTransactionsService {
|
|
|
1606
1793
|
* @returns ListErc1155TransactionsResponse
|
|
1607
1794
|
* @throws ApiError
|
|
1608
1795
|
*/
|
|
1609
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1796
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1610
1797
|
/**
|
|
1611
|
-
* 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.
|
|
1612
1799
|
*/
|
|
1613
1800
|
chainId: string;
|
|
1614
1801
|
/**
|
|
1615
1802
|
* A wallet address.
|
|
1616
1803
|
*/
|
|
1617
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
|
+
*/
|
|
1618
1808
|
startBlock?: number;
|
|
1619
|
-
endBlock?: number;
|
|
1620
1809
|
/**
|
|
1621
|
-
* 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.
|
|
1622
1811
|
*/
|
|
1623
|
-
|
|
1812
|
+
endBlock?: number;
|
|
1624
1813
|
/**
|
|
1625
1814
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1626
1815
|
*/
|
|
1627
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;
|
|
1628
1821
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1629
1822
|
/**
|
|
1630
1823
|
* List internal transactions
|
|
@@ -1634,25 +1827,31 @@ declare class EvmTransactionsService {
|
|
|
1634
1827
|
* @returns ListInternalTransactionsResponse
|
|
1635
1828
|
* @throws ApiError
|
|
1636
1829
|
*/
|
|
1637
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1830
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1638
1831
|
/**
|
|
1639
|
-
* 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.
|
|
1640
1833
|
*/
|
|
1641
1834
|
chainId: string;
|
|
1642
1835
|
/**
|
|
1643
1836
|
* A wallet address.
|
|
1644
1837
|
*/
|
|
1645
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
|
+
*/
|
|
1646
1842
|
startBlock?: number;
|
|
1647
|
-
endBlock?: number;
|
|
1648
1843
|
/**
|
|
1649
|
-
* 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.
|
|
1650
1845
|
*/
|
|
1651
|
-
|
|
1846
|
+
endBlock?: number;
|
|
1652
1847
|
/**
|
|
1653
1848
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1654
1849
|
*/
|
|
1655
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;
|
|
1656
1855
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1657
1856
|
/**
|
|
1658
1857
|
* Get transaction
|
|
@@ -1662,7 +1861,7 @@ declare class EvmTransactionsService {
|
|
|
1662
1861
|
*/
|
|
1663
1862
|
getTransaction({ chainId, txHash, }: {
|
|
1664
1863
|
/**
|
|
1665
|
-
* 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.
|
|
1666
1865
|
*/
|
|
1667
1866
|
chainId: string;
|
|
1668
1867
|
/**
|
|
@@ -1678,7 +1877,7 @@ declare class EvmTransactionsService {
|
|
|
1678
1877
|
*/
|
|
1679
1878
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1680
1879
|
/**
|
|
1681
|
-
* 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.
|
|
1682
1881
|
*/
|
|
1683
1882
|
chainId: string;
|
|
1684
1883
|
/**
|
|
@@ -1692,40 +1891,117 @@ declare class EvmTransactionsService {
|
|
|
1692
1891
|
* @returns ListNativeTransactionsResponse
|
|
1693
1892
|
* @throws ApiError
|
|
1694
1893
|
*/
|
|
1695
|
-
listLatestTransactions({ chainId,
|
|
1894
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1895
|
+
/**
|
|
1896
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1897
|
+
*/
|
|
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;
|
|
1903
|
+
/**
|
|
1904
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1905
|
+
*/
|
|
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, }: {
|
|
1696
1968
|
/**
|
|
1697
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1969
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1698
1970
|
*/
|
|
1699
1971
|
chainId: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Contract address on the relevant chain.
|
|
1974
|
+
*/
|
|
1975
|
+
address: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1978
|
+
*/
|
|
1979
|
+
pageToken?: string;
|
|
1700
1980
|
/**
|
|
1701
1981
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1702
1982
|
*/
|
|
1703
1983
|
pageSize?: number;
|
|
1984
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1985
|
+
/**
|
|
1986
|
+
* Get token details
|
|
1987
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1988
|
+
* @returns any
|
|
1989
|
+
* @throws ApiError
|
|
1990
|
+
*/
|
|
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;
|
|
1704
1996
|
/**
|
|
1705
|
-
*
|
|
1997
|
+
* Contract address on the relevant chain.
|
|
1706
1998
|
*/
|
|
1707
|
-
|
|
1999
|
+
address: string;
|
|
1708
2000
|
/**
|
|
1709
|
-
*
|
|
2001
|
+
* TokenId on the contract
|
|
1710
2002
|
*/
|
|
1711
|
-
|
|
1712
|
-
}): CancelablePromise<
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
declare class HealthCheckService {
|
|
1716
|
-
readonly httpRequest: BaseHttpRequest;
|
|
1717
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1718
|
-
/**
|
|
1719
|
-
* Get the health of the service
|
|
1720
|
-
* @returns any The Health Check is successful
|
|
1721
|
-
* @throws ApiError
|
|
1722
|
-
*/
|
|
1723
|
-
healthCheck(): CancelablePromise<{
|
|
1724
|
-
status?: string;
|
|
1725
|
-
info?: Record<string, Record<string, string>> | null;
|
|
1726
|
-
error?: Record<string, Record<string, string>> | null;
|
|
1727
|
-
details?: Record<string, Record<string, string>>;
|
|
1728
|
-
}>;
|
|
2003
|
+
tokenId: string;
|
|
2004
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1729
2005
|
}
|
|
1730
2006
|
|
|
1731
2007
|
type EvmNetworkOptions = {
|
|
@@ -1733,8 +2009,12 @@ type EvmNetworkOptions = {
|
|
|
1733
2009
|
includeChains: Array<string>;
|
|
1734
2010
|
};
|
|
1735
2011
|
|
|
2012
|
+
declare enum EVMOperationType {
|
|
2013
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1736
2016
|
type CreateEvmTransactionExportRequest = {
|
|
1737
|
-
type:
|
|
2017
|
+
type: EVMOperationType;
|
|
1738
2018
|
firstDate: string;
|
|
1739
2019
|
lastDate: string;
|
|
1740
2020
|
/**
|
|
@@ -1747,20 +2027,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1747
2027
|
endDate: string;
|
|
1748
2028
|
options: EvmNetworkOptions;
|
|
1749
2029
|
};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
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"
|
|
1754
2035
|
}
|
|
1755
2036
|
|
|
1756
2037
|
type PrimaryNetworkOptions = {
|
|
1757
|
-
addresses
|
|
2038
|
+
addresses?: Array<string>;
|
|
1758
2039
|
cChainEvmAddresses?: Array<string>;
|
|
1759
2040
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1760
2041
|
};
|
|
1761
2042
|
|
|
1762
2043
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1763
|
-
type:
|
|
2044
|
+
type: PrimaryNetworkOperationType;
|
|
1764
2045
|
firstDate: string;
|
|
1765
2046
|
lastDate: string;
|
|
1766
2047
|
/**
|
|
@@ -1773,11 +2054,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1773
2054
|
endDate: string;
|
|
1774
2055
|
options: PrimaryNetworkOptions;
|
|
1775
2056
|
};
|
|
1776
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1777
|
-
enum type {
|
|
1778
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
2057
|
|
|
1782
2058
|
declare enum OperationStatus {
|
|
1783
2059
|
RUNNING = "RUNNING",
|
|
@@ -1787,8 +2063,10 @@ declare enum OperationStatus {
|
|
|
1787
2063
|
}
|
|
1788
2064
|
|
|
1789
2065
|
declare enum OperationType {
|
|
1790
|
-
|
|
1791
|
-
|
|
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"
|
|
1792
2070
|
}
|
|
1793
2071
|
|
|
1794
2072
|
declare enum OperationStatusCode {
|
|
@@ -1822,17 +2100,6 @@ type OperationStatusResponse = {
|
|
|
1822
2100
|
declare class OperationsService {
|
|
1823
2101
|
readonly httpRequest: BaseHttpRequest;
|
|
1824
2102
|
constructor(httpRequest: BaseHttpRequest);
|
|
1825
|
-
/**
|
|
1826
|
-
* Create transaction export operation
|
|
1827
|
-
* Trigger a transaction export operation with given parameters.
|
|
1828
|
-
*
|
|
1829
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
1830
|
-
* @returns OperationStatusResponse
|
|
1831
|
-
* @throws ApiError
|
|
1832
|
-
*/
|
|
1833
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1834
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1835
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1836
2103
|
/**
|
|
1837
2104
|
* Get operation
|
|
1838
2105
|
* Gets operation details for the given operation id.
|
|
@@ -1845,6 +2112,17 @@ declare class OperationsService {
|
|
|
1845
2112
|
*/
|
|
1846
2113
|
operationId: string;
|
|
1847
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>;
|
|
1848
2126
|
}
|
|
1849
2127
|
|
|
1850
2128
|
declare enum BlockchainIds {
|
|
@@ -1913,39 +2191,57 @@ type ListBlockchainsResponse = {
|
|
|
1913
2191
|
|
|
1914
2192
|
type ActiveDelegatorDetails = {
|
|
1915
2193
|
txHash: string;
|
|
2194
|
+
nodeId: string;
|
|
1916
2195
|
rewardAddresses: Array<string>;
|
|
1917
2196
|
amountDelegated: string;
|
|
1918
2197
|
delegationFee: string;
|
|
1919
2198
|
startTimestamp: number;
|
|
1920
2199
|
endTimestamp: number;
|
|
1921
|
-
delegationStatus: DelegationStatusType;
|
|
1922
2200
|
estimatedGrossReward: string;
|
|
1923
2201
|
estimatedNetReward: string;
|
|
2202
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1924
2203
|
};
|
|
2204
|
+
declare namespace ActiveDelegatorDetails {
|
|
2205
|
+
enum delegationStatus {
|
|
2206
|
+
ACTIVE = "active"
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
1925
2209
|
|
|
1926
2210
|
type CompletedDelegatorDetails = {
|
|
1927
2211
|
txHash: string;
|
|
2212
|
+
nodeId: string;
|
|
1928
2213
|
rewardAddresses: Array<string>;
|
|
1929
2214
|
amountDelegated: string;
|
|
1930
2215
|
delegationFee: string;
|
|
1931
2216
|
startTimestamp: number;
|
|
1932
2217
|
endTimestamp: number;
|
|
1933
|
-
delegationStatus: DelegationStatusType;
|
|
1934
2218
|
grossReward: string;
|
|
1935
2219
|
netReward: string;
|
|
2220
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1936
2221
|
};
|
|
2222
|
+
declare namespace CompletedDelegatorDetails {
|
|
2223
|
+
enum delegationStatus {
|
|
2224
|
+
COMPLETED = "completed"
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
1937
2227
|
|
|
1938
2228
|
type PendingDelegatorDetails = {
|
|
1939
2229
|
txHash: string;
|
|
2230
|
+
nodeId: string;
|
|
1940
2231
|
rewardAddresses: Array<string>;
|
|
1941
2232
|
amountDelegated: string;
|
|
1942
2233
|
delegationFee: string;
|
|
1943
2234
|
startTimestamp: number;
|
|
1944
2235
|
endTimestamp: number;
|
|
1945
|
-
delegationStatus: DelegationStatusType;
|
|
1946
2236
|
estimatedGrossReward: string;
|
|
1947
2237
|
estimatedNetReward: string;
|
|
2238
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1948
2239
|
};
|
|
2240
|
+
declare namespace PendingDelegatorDetails {
|
|
2241
|
+
enum delegationStatus {
|
|
2242
|
+
PENDING = "pending"
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
1949
2245
|
|
|
1950
2246
|
type ListDelegatorDetailsResponse = {
|
|
1951
2247
|
/**
|
|
@@ -1962,13 +2258,44 @@ type BlockchainInfo = {
|
|
|
1962
2258
|
blockchainId: string;
|
|
1963
2259
|
};
|
|
1964
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
|
+
|
|
1965
2276
|
type Subnet = {
|
|
1966
2277
|
createBlockTimestamp: number;
|
|
1967
2278
|
createBlockIndex: string;
|
|
1968
2279
|
subnetId: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2282
|
+
* @deprecated
|
|
2283
|
+
*/
|
|
1969
2284
|
ownerAddresses: Array<string>;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
1970
2289
|
threshold: number;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
1971
2294
|
locktime: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* Latest subnet owner details for this Subnet.
|
|
2297
|
+
*/
|
|
2298
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
1972
2299
|
blockchains: Array<BlockchainInfo>;
|
|
1973
2300
|
};
|
|
1974
2301
|
|
|
@@ -1983,49 +2310,104 @@ type ListSubnetsResponse = {
|
|
|
1983
2310
|
type Rewards = {
|
|
1984
2311
|
validationRewardAmount: string;
|
|
1985
2312
|
delegationRewardAmount: string;
|
|
2313
|
+
rewardAddresses?: Array<string>;
|
|
2314
|
+
rewardTxHash?: string;
|
|
1986
2315
|
};
|
|
1987
2316
|
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
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
|
+
};
|
|
1993
2335
|
|
|
1994
2336
|
type ActiveValidatorDetails = {
|
|
2337
|
+
txHash: string;
|
|
1995
2338
|
nodeId: string;
|
|
2339
|
+
subnetId: string;
|
|
1996
2340
|
amountStaked: string;
|
|
1997
|
-
delegationFee
|
|
2341
|
+
delegationFee?: string;
|
|
1998
2342
|
startTimestamp: number;
|
|
1999
2343
|
endTimestamp: number;
|
|
2000
|
-
validationStatus: ValidationStatusType;
|
|
2001
2344
|
stakePercentage: number;
|
|
2002
2345
|
delegatorCount: number;
|
|
2003
|
-
amountDelegated
|
|
2346
|
+
amountDelegated?: string;
|
|
2004
2347
|
uptimePerformance: number;
|
|
2005
|
-
avalancheGoVersion
|
|
2006
|
-
delegationCapacity
|
|
2348
|
+
avalancheGoVersion?: string;
|
|
2349
|
+
delegationCapacity?: string;
|
|
2007
2350
|
potentialRewards: Rewards;
|
|
2351
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2352
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2008
2353
|
};
|
|
2354
|
+
declare namespace ActiveValidatorDetails {
|
|
2355
|
+
enum validationStatus {
|
|
2356
|
+
ACTIVE = "active"
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2009
2359
|
|
|
2010
2360
|
type CompletedValidatorDetails = {
|
|
2361
|
+
txHash: string;
|
|
2011
2362
|
nodeId: string;
|
|
2363
|
+
subnetId: string;
|
|
2012
2364
|
amountStaked: string;
|
|
2013
|
-
delegationFee
|
|
2365
|
+
delegationFee?: string;
|
|
2014
2366
|
startTimestamp: number;
|
|
2015
2367
|
endTimestamp: number;
|
|
2016
|
-
validationStatus: ValidationStatusType;
|
|
2017
2368
|
delegatorCount: number;
|
|
2018
2369
|
rewards: Rewards;
|
|
2370
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2019
2371
|
};
|
|
2372
|
+
declare namespace CompletedValidatorDetails {
|
|
2373
|
+
enum validationStatus {
|
|
2374
|
+
COMPLETED = "completed"
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2020
2377
|
|
|
2021
2378
|
type PendingValidatorDetails = {
|
|
2379
|
+
txHash: string;
|
|
2380
|
+
nodeId: string;
|
|
2381
|
+
subnetId: string;
|
|
2382
|
+
amountStaked: string;
|
|
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;
|
|
2022
2396
|
nodeId: string;
|
|
2397
|
+
subnetId: string;
|
|
2023
2398
|
amountStaked: string;
|
|
2024
|
-
delegationFee
|
|
2399
|
+
delegationFee?: string;
|
|
2025
2400
|
startTimestamp: number;
|
|
2026
2401
|
endTimestamp: number;
|
|
2027
|
-
|
|
2402
|
+
removeTxHash: string;
|
|
2403
|
+
removeTimestamp: number;
|
|
2404
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2028
2405
|
};
|
|
2406
|
+
declare namespace RemovedValidatorDetails {
|
|
2407
|
+
enum validationStatus {
|
|
2408
|
+
REMOVED = "removed"
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2029
2411
|
|
|
2030
2412
|
type ListValidatorDetailsResponse = {
|
|
2031
2413
|
/**
|
|
@@ -2033,9 +2415,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2033
2415
|
*/
|
|
2034
2416
|
nextPageToken?: string;
|
|
2035
2417
|
/**
|
|
2036
|
-
* The list of
|
|
2418
|
+
* The list of validator Details.
|
|
2037
2419
|
*/
|
|
2038
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2420
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2039
2421
|
};
|
|
2040
2422
|
|
|
2041
2423
|
declare enum Network {
|
|
@@ -2043,6 +2425,29 @@ declare enum Network {
|
|
|
2043
2425
|
FUJI = "fuji"
|
|
2044
2426
|
}
|
|
2045
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
|
+
|
|
2046
2451
|
type XChainAssetDetails = {
|
|
2047
2452
|
/**
|
|
2048
2453
|
* Unique ID for an asset.
|
|
@@ -2060,18 +2465,12 @@ type XChainAssetDetails = {
|
|
|
2060
2465
|
* Denomination of this asset to represent fungibility.
|
|
2061
2466
|
*/
|
|
2062
2467
|
denomination: number;
|
|
2063
|
-
|
|
2064
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2065
|
-
*/
|
|
2066
|
-
type: string;
|
|
2468
|
+
type: PrimaryNetworkAssetType;
|
|
2067
2469
|
/**
|
|
2068
2470
|
* Timestamp in seconds this asset was created on.
|
|
2069
2471
|
*/
|
|
2070
2472
|
createdAtTimestamp: number;
|
|
2071
|
-
|
|
2072
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2073
|
-
*/
|
|
2074
|
-
cap: string;
|
|
2473
|
+
cap: PrimaryNetworkAssetCap;
|
|
2075
2474
|
};
|
|
2076
2475
|
|
|
2077
2476
|
declare enum XChainId {
|
|
@@ -2137,19 +2536,19 @@ declare class PrimaryNetworkService {
|
|
|
2137
2536
|
* @returns ListBlockchainsResponse
|
|
2138
2537
|
* @throws ApiError
|
|
2139
2538
|
*/
|
|
2140
|
-
listBlockchains({ network,
|
|
2539
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2141
2540
|
/**
|
|
2142
2541
|
* Either mainnet or a testnet.
|
|
2143
2542
|
*/
|
|
2144
2543
|
network: Network;
|
|
2145
|
-
/**
|
|
2146
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2147
|
-
*/
|
|
2148
|
-
pageSize?: number;
|
|
2149
2544
|
/**
|
|
2150
2545
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2151
2546
|
*/
|
|
2152
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;
|
|
2153
2552
|
/**
|
|
2154
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.
|
|
2155
2554
|
*/
|
|
@@ -2161,19 +2560,19 @@ declare class PrimaryNetworkService {
|
|
|
2161
2560
|
* @returns ListSubnetsResponse
|
|
2162
2561
|
* @throws ApiError
|
|
2163
2562
|
*/
|
|
2164
|
-
listSubnets({ network,
|
|
2563
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2165
2564
|
/**
|
|
2166
2565
|
* Either mainnet or a testnet.
|
|
2167
2566
|
*/
|
|
2168
2567
|
network: Network;
|
|
2169
|
-
/**
|
|
2170
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2171
|
-
*/
|
|
2172
|
-
pageSize?: number;
|
|
2173
2568
|
/**
|
|
2174
2569
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2175
2570
|
*/
|
|
2176
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;
|
|
2177
2576
|
/**
|
|
2178
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.
|
|
2179
2578
|
*/
|
|
@@ -2185,19 +2584,19 @@ declare class PrimaryNetworkService {
|
|
|
2185
2584
|
* @returns ListValidatorDetailsResponse
|
|
2186
2585
|
* @throws ApiError
|
|
2187
2586
|
*/
|
|
2188
|
-
listValidators({ network,
|
|
2587
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2189
2588
|
/**
|
|
2190
2589
|
* Either mainnet or a testnet.
|
|
2191
2590
|
*/
|
|
2192
2591
|
network: Network;
|
|
2193
|
-
/**
|
|
2194
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2195
|
-
*/
|
|
2196
|
-
pageSize?: number;
|
|
2197
2592
|
/**
|
|
2198
2593
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2199
2594
|
*/
|
|
2200
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;
|
|
2201
2600
|
/**
|
|
2202
2601
|
* A comma separated list of node ids to filter by.
|
|
2203
2602
|
*/
|
|
@@ -2211,9 +2610,33 @@ declare class PrimaryNetworkService {
|
|
|
2211
2610
|
*/
|
|
2212
2611
|
validationStatus?: ValidationStatusType;
|
|
2213
2612
|
/**
|
|
2214
|
-
* 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.
|
|
2215
2626
|
*/
|
|
2216
|
-
|
|
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.
|
|
2638
|
+
*/
|
|
2639
|
+
subnetId?: any;
|
|
2217
2640
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2218
2641
|
/**
|
|
2219
2642
|
* Get single validator details
|
|
@@ -2221,7 +2644,7 @@ declare class PrimaryNetworkService {
|
|
|
2221
2644
|
* @returns ListValidatorDetailsResponse
|
|
2222
2645
|
* @throws ApiError
|
|
2223
2646
|
*/
|
|
2224
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2647
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2225
2648
|
/**
|
|
2226
2649
|
* Either mainnet or a testnet.
|
|
2227
2650
|
*/
|
|
@@ -2230,14 +2653,14 @@ declare class PrimaryNetworkService {
|
|
|
2230
2653
|
* A primary network (P or X chain) nodeId.
|
|
2231
2654
|
*/
|
|
2232
2655
|
nodeId: string;
|
|
2233
|
-
/**
|
|
2234
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2235
|
-
*/
|
|
2236
|
-
pageSize?: number;
|
|
2237
2656
|
/**
|
|
2238
2657
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2239
2658
|
*/
|
|
2240
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;
|
|
2241
2664
|
/**
|
|
2242
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.
|
|
2243
2666
|
*/
|
|
@@ -2253,19 +2676,23 @@ declare class PrimaryNetworkService {
|
|
|
2253
2676
|
* @returns ListDelegatorDetailsResponse
|
|
2254
2677
|
* @throws ApiError
|
|
2255
2678
|
*/
|
|
2256
|
-
listDelegators({ network, pageSize,
|
|
2679
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2257
2680
|
/**
|
|
2258
2681
|
* Either mainnet or a testnet.
|
|
2259
2682
|
*/
|
|
2260
2683
|
network: Network;
|
|
2684
|
+
/**
|
|
2685
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2686
|
+
*/
|
|
2687
|
+
pageToken?: string;
|
|
2261
2688
|
/**
|
|
2262
2689
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2263
2690
|
*/
|
|
2264
2691
|
pageSize?: number;
|
|
2265
2692
|
/**
|
|
2266
|
-
* A
|
|
2693
|
+
* A comma separated list of reward addresses to filter by.
|
|
2267
2694
|
*/
|
|
2268
|
-
|
|
2695
|
+
rewardAddresses?: string;
|
|
2269
2696
|
/**
|
|
2270
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.
|
|
2271
2698
|
*/
|
|
@@ -2274,10 +2701,6 @@ declare class PrimaryNetworkService {
|
|
|
2274
2701
|
* Delegation status of the node.
|
|
2275
2702
|
*/
|
|
2276
2703
|
delegationStatus?: DelegationStatusType;
|
|
2277
|
-
/**
|
|
2278
|
-
* A comma separated list of reward addresses to filter by.
|
|
2279
|
-
*/
|
|
2280
|
-
rewardAddresses?: string;
|
|
2281
2704
|
/**
|
|
2282
2705
|
* A comma separated list of node ids to filter by.
|
|
2283
2706
|
*/
|
|
@@ -2313,10 +2736,7 @@ type CChainSharedAssetBalance = {
|
|
|
2313
2736
|
* Denomination of this asset to represent fungibility.
|
|
2314
2737
|
*/
|
|
2315
2738
|
denomination: number;
|
|
2316
|
-
|
|
2317
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2318
|
-
*/
|
|
2319
|
-
type: string;
|
|
2739
|
+
type: PrimaryNetworkAssetType;
|
|
2320
2740
|
/**
|
|
2321
2741
|
* Amount of the asset.
|
|
2322
2742
|
*/
|
|
@@ -2351,59 +2771,32 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2351
2771
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2352
2772
|
};
|
|
2353
2773
|
|
|
2354
|
-
type
|
|
2355
|
-
assetId: string;
|
|
2356
|
-
amount: string;
|
|
2357
|
-
};
|
|
2358
|
-
|
|
2359
|
-
type PChainSharedAsset = {
|
|
2360
|
-
assetId: string;
|
|
2361
|
-
amount: string;
|
|
2362
|
-
sharedWithChainId: string;
|
|
2363
|
-
status: string;
|
|
2364
|
-
};
|
|
2365
|
-
|
|
2366
|
-
type PChainBalance = {
|
|
2774
|
+
type AggregatedAssetAmount = {
|
|
2367
2775
|
/**
|
|
2368
|
-
*
|
|
2369
|
-
*/
|
|
2370
|
-
unlockedUnstaked: Array<PChainAsset>;
|
|
2371
|
-
/**
|
|
2372
|
-
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2373
|
-
*/
|
|
2374
|
-
unlockedStaked: Array<PChainAsset>;
|
|
2375
|
-
/**
|
|
2376
|
-
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2377
|
-
*/
|
|
2378
|
-
lockedPlatform: Array<PChainAsset>;
|
|
2379
|
-
/**
|
|
2380
|
-
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2776
|
+
* Unique ID for an asset.
|
|
2381
2777
|
*/
|
|
2382
|
-
|
|
2778
|
+
assetId: string;
|
|
2383
2779
|
/**
|
|
2384
|
-
*
|
|
2780
|
+
* Name of this asset.
|
|
2385
2781
|
*/
|
|
2386
|
-
|
|
2782
|
+
name: string;
|
|
2387
2783
|
/**
|
|
2388
|
-
*
|
|
2784
|
+
* Symbol for this asset (max 4 characters).
|
|
2389
2785
|
*/
|
|
2390
|
-
|
|
2786
|
+
symbol: string;
|
|
2391
2787
|
/**
|
|
2392
|
-
*
|
|
2788
|
+
* Denomination of this asset to represent fungibility.
|
|
2393
2789
|
*/
|
|
2394
|
-
|
|
2790
|
+
denomination: number;
|
|
2791
|
+
type: PrimaryNetworkAssetType;
|
|
2395
2792
|
/**
|
|
2396
|
-
*
|
|
2793
|
+
* Amount of the asset.
|
|
2397
2794
|
*/
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
type ListPChainBalancesResponse = {
|
|
2402
|
-
balances: PChainBalance;
|
|
2403
|
-
chainInfo: PrimaryNetworkChainInfo;
|
|
2795
|
+
amount: string;
|
|
2796
|
+
utxoCount: number;
|
|
2404
2797
|
};
|
|
2405
2798
|
|
|
2406
|
-
type
|
|
2799
|
+
type PChainSharedAsset = {
|
|
2407
2800
|
/**
|
|
2408
2801
|
* Unique ID for an asset.
|
|
2409
2802
|
*/
|
|
@@ -2419,16 +2812,55 @@ type XChainAssetBalance = {
|
|
|
2419
2812
|
/**
|
|
2420
2813
|
* Denomination of this asset to represent fungibility.
|
|
2421
2814
|
*/
|
|
2422
|
-
denomination: number;
|
|
2815
|
+
denomination: number;
|
|
2816
|
+
type: PrimaryNetworkAssetType;
|
|
2817
|
+
/**
|
|
2818
|
+
* Amount of the asset.
|
|
2819
|
+
*/
|
|
2820
|
+
amount: string;
|
|
2821
|
+
utxoCount: number;
|
|
2822
|
+
sharedWithChainId: string;
|
|
2823
|
+
status: string;
|
|
2824
|
+
};
|
|
2825
|
+
|
|
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>;
|
|
2835
|
+
/**
|
|
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.
|
|
2837
|
+
*/
|
|
2838
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2839
|
+
/**
|
|
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.
|
|
2841
|
+
*/
|
|
2842
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2843
|
+
/**
|
|
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.
|
|
2845
|
+
*/
|
|
2846
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2847
|
+
/**
|
|
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.
|
|
2849
|
+
*/
|
|
2850
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2423
2851
|
/**
|
|
2424
|
-
*
|
|
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.
|
|
2425
2853
|
*/
|
|
2426
|
-
|
|
2854
|
+
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2427
2855
|
/**
|
|
2428
|
-
*
|
|
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.
|
|
2429
2857
|
*/
|
|
2430
|
-
|
|
2431
|
-
|
|
2858
|
+
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
type ListPChainBalancesResponse = {
|
|
2862
|
+
balances: PChainBalance;
|
|
2863
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2432
2864
|
};
|
|
2433
2865
|
|
|
2434
2866
|
type XChainSharedAssetBalance = {
|
|
@@ -2448,10 +2880,7 @@ type XChainSharedAssetBalance = {
|
|
|
2448
2880
|
* Denomination of this asset to represent fungibility.
|
|
2449
2881
|
*/
|
|
2450
2882
|
denomination: number;
|
|
2451
|
-
|
|
2452
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2453
|
-
*/
|
|
2454
|
-
type: string;
|
|
2883
|
+
type: PrimaryNetworkAssetType;
|
|
2455
2884
|
/**
|
|
2456
2885
|
* Amount of the asset.
|
|
2457
2886
|
*/
|
|
@@ -2464,11 +2893,11 @@ type XChainBalances = {
|
|
|
2464
2893
|
/**
|
|
2465
2894
|
* A list of objects containing X-chain Asset balance information.
|
|
2466
2895
|
*/
|
|
2467
|
-
locked: Array<
|
|
2896
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2468
2897
|
/**
|
|
2469
2898
|
* A list of objects containing X-chain Asset balance information.
|
|
2470
2899
|
*/
|
|
2471
|
-
unlocked: Array<
|
|
2900
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2472
2901
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2473
2902
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2474
2903
|
};
|
|
@@ -2526,6 +2955,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2526
2955
|
txCount: number;
|
|
2527
2956
|
transactions: Array<string>;
|
|
2528
2957
|
blockSizeBytes: number;
|
|
2958
|
+
currentSupply?: string;
|
|
2529
2959
|
proposerDetails?: ProposerDetails;
|
|
2530
2960
|
};
|
|
2531
2961
|
|
|
@@ -2538,6 +2968,7 @@ type PrimaryNetworkBlock = {
|
|
|
2538
2968
|
txCount: number;
|
|
2539
2969
|
transactions: Array<string>;
|
|
2540
2970
|
blockSizeBytes: number;
|
|
2971
|
+
currentSupply?: string;
|
|
2541
2972
|
proposerDetails?: ProposerDetails;
|
|
2542
2973
|
};
|
|
2543
2974
|
|
|
@@ -2579,7 +3010,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2579
3010
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2580
3011
|
* @throws ApiError
|
|
2581
3012
|
*/
|
|
2582
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3013
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2583
3014
|
/**
|
|
2584
3015
|
* A primary network blockchain id or alias.
|
|
2585
3016
|
*/
|
|
@@ -2592,14 +3023,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2592
3023
|
* A primary network (P or X chain) nodeId.
|
|
2593
3024
|
*/
|
|
2594
3025
|
nodeId: string;
|
|
2595
|
-
/**
|
|
2596
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2597
|
-
*/
|
|
2598
|
-
pageSize?: number;
|
|
2599
3026
|
/**
|
|
2600
3027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2601
3028
|
*/
|
|
2602
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;
|
|
2603
3034
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2604
3035
|
/**
|
|
2605
3036
|
* List latest blocks
|
|
@@ -2607,7 +3038,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2607
3038
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2608
3039
|
* @throws ApiError
|
|
2609
3040
|
*/
|
|
2610
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3041
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2611
3042
|
/**
|
|
2612
3043
|
* A primary network blockchain id or alias.
|
|
2613
3044
|
*/
|
|
@@ -2616,20 +3047,49 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2616
3047
|
* Either mainnet or a testnet.
|
|
2617
3048
|
*/
|
|
2618
3049
|
network: Network;
|
|
2619
|
-
/**
|
|
2620
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2621
|
-
*/
|
|
2622
|
-
pageSize?: number;
|
|
2623
3050
|
/**
|
|
2624
3051
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2625
3052
|
*/
|
|
2626
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;
|
|
2627
3058
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2628
3059
|
}
|
|
2629
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
|
+
|
|
2630
3089
|
declare enum RewardType {
|
|
2631
3090
|
VALIDATOR = "VALIDATOR",
|
|
2632
|
-
DELEGATOR = "DELEGATOR"
|
|
3091
|
+
DELEGATOR = "DELEGATOR",
|
|
3092
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2633
3093
|
}
|
|
2634
3094
|
|
|
2635
3095
|
type HistoricalReward = {
|
|
@@ -2645,10 +3105,7 @@ type HistoricalReward = {
|
|
|
2645
3105
|
rewardType: RewardType;
|
|
2646
3106
|
utxoId: string;
|
|
2647
3107
|
outputIndex: number;
|
|
2648
|
-
|
|
2649
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2650
|
-
*/
|
|
2651
|
-
reward: PChainAsset;
|
|
3108
|
+
reward: AssetWithPriceInfo;
|
|
2652
3109
|
rewardTxHash: string;
|
|
2653
3110
|
};
|
|
2654
3111
|
|
|
@@ -2660,6 +3117,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2660
3117
|
historicalRewards: Array<HistoricalReward>;
|
|
2661
3118
|
};
|
|
2662
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
|
+
|
|
2663
3144
|
type PendingReward = {
|
|
2664
3145
|
/**
|
|
2665
3146
|
* An array of P-Chain wallet addresses.
|
|
@@ -2673,9 +3154,9 @@ type PendingReward = {
|
|
|
2673
3154
|
rewardType: RewardType;
|
|
2674
3155
|
progress: number;
|
|
2675
3156
|
/**
|
|
2676
|
-
* An object containing P-chain Asset
|
|
3157
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2677
3158
|
*/
|
|
2678
|
-
estimatedReward:
|
|
3159
|
+
estimatedReward: AssetAmount;
|
|
2679
3160
|
};
|
|
2680
3161
|
|
|
2681
3162
|
type ListPendingRewardsResponse = {
|
|
@@ -2695,23 +3176,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2695
3176
|
* @returns ListPendingRewardsResponse
|
|
2696
3177
|
* @throws ApiError
|
|
2697
3178
|
*/
|
|
2698
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3179
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2699
3180
|
/**
|
|
2700
3181
|
* Either mainnet or a testnet.
|
|
2701
3182
|
*/
|
|
2702
3183
|
network: Network;
|
|
2703
3184
|
/**
|
|
2704
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
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.
|
|
2705
3186
|
*/
|
|
2706
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;
|
|
2707
3192
|
/**
|
|
2708
3193
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2709
3194
|
*/
|
|
2710
3195
|
pageSize?: number;
|
|
2711
3196
|
/**
|
|
2712
|
-
* A
|
|
3197
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2713
3198
|
*/
|
|
2714
|
-
|
|
3199
|
+
nodeIds?: string;
|
|
2715
3200
|
/**
|
|
2716
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.
|
|
2717
3202
|
*/
|
|
@@ -2723,64 +3208,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2723
3208
|
* @returns ListHistoricalRewardsResponse
|
|
2724
3209
|
* @throws ApiError
|
|
2725
3210
|
*/
|
|
2726
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3211
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2727
3212
|
/**
|
|
2728
3213
|
* Either mainnet or a testnet.
|
|
2729
3214
|
*/
|
|
2730
3215
|
network: Network;
|
|
2731
3216
|
/**
|
|
2732
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
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.
|
|
2733
3218
|
*/
|
|
2734
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;
|
|
2735
3224
|
/**
|
|
2736
3225
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
3226
|
*/
|
|
2738
3227
|
pageSize?: number;
|
|
2739
3228
|
/**
|
|
2740
|
-
* A
|
|
3229
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2741
3230
|
*/
|
|
2742
|
-
|
|
3231
|
+
nodeIds?: string;
|
|
2743
3232
|
/**
|
|
2744
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.
|
|
2745
3234
|
*/
|
|
2746
3235
|
sortOrder?: SortOrder;
|
|
3236
|
+
/**
|
|
3237
|
+
* The currency that return values should use. Defaults to USD.
|
|
3238
|
+
*/
|
|
3239
|
+
currency?: CurrencyCode;
|
|
2747
3240
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2748
3241
|
}
|
|
2749
3242
|
|
|
2750
|
-
type Asset = {
|
|
2751
|
-
/**
|
|
2752
|
-
* Unique ID for an asset.
|
|
2753
|
-
*/
|
|
2754
|
-
assetId: string;
|
|
2755
|
-
/**
|
|
2756
|
-
* Name of this asset.
|
|
2757
|
-
*/
|
|
2758
|
-
name: string;
|
|
2759
|
-
/**
|
|
2760
|
-
* Symbol for this asset (max 4 characters).
|
|
2761
|
-
*/
|
|
2762
|
-
symbol: string;
|
|
2763
|
-
/**
|
|
2764
|
-
* Denomination of this asset to represent fungibility.
|
|
2765
|
-
*/
|
|
2766
|
-
denomination: number;
|
|
2767
|
-
/**
|
|
2768
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2769
|
-
*/
|
|
2770
|
-
type: string;
|
|
2771
|
-
/**
|
|
2772
|
-
* Amount of the asset.
|
|
2773
|
-
*/
|
|
2774
|
-
amount: string;
|
|
2775
|
-
};
|
|
2776
|
-
|
|
2777
3243
|
type UtxoCredential = {
|
|
2778
3244
|
/**
|
|
2779
|
-
* Signature provided to consume the output
|
|
3245
|
+
* Signature provided to consume the output.
|
|
2780
3246
|
*/
|
|
2781
3247
|
signature?: string;
|
|
2782
3248
|
/**
|
|
2783
|
-
* Public key associated with the signature
|
|
3249
|
+
* Public key associated with the signature.
|
|
2784
3250
|
*/
|
|
2785
3251
|
publicKey?: string;
|
|
2786
3252
|
};
|
|
@@ -2791,9 +3257,9 @@ type EVMInput = {
|
|
|
2791
3257
|
*/
|
|
2792
3258
|
fromAddress: string;
|
|
2793
3259
|
/**
|
|
2794
|
-
*
|
|
3260
|
+
* AssetAmount details for the asset being transferred.
|
|
2795
3261
|
*/
|
|
2796
|
-
asset:
|
|
3262
|
+
asset: AssetAmount;
|
|
2797
3263
|
/**
|
|
2798
3264
|
* Credentials that signed this transaction.
|
|
2799
3265
|
*/
|
|
@@ -2802,66 +3268,66 @@ type EVMInput = {
|
|
|
2802
3268
|
|
|
2803
3269
|
type Utxo = {
|
|
2804
3270
|
/**
|
|
2805
|
-
*
|
|
3271
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2806
3272
|
*/
|
|
2807
|
-
|
|
2808
|
-
asset:
|
|
3273
|
+
addresses: Array<string>;
|
|
3274
|
+
asset: AssetAmount;
|
|
2809
3275
|
/**
|
|
2810
|
-
*
|
|
3276
|
+
* Blockchain ID on which this output is consumed on.
|
|
2811
3277
|
*/
|
|
2812
|
-
|
|
3278
|
+
consumedOnChainId: string;
|
|
2813
3279
|
/**
|
|
2814
|
-
*
|
|
3280
|
+
* Transaction ID that consumed this output.
|
|
2815
3281
|
*/
|
|
2816
|
-
|
|
3282
|
+
consumingTxHash?: string;
|
|
2817
3283
|
/**
|
|
2818
|
-
* Blockchain ID on which this output is
|
|
3284
|
+
* Blockchain ID on which this output is created on.
|
|
2819
3285
|
*/
|
|
2820
|
-
|
|
3286
|
+
createdOnChainId: string;
|
|
2821
3287
|
/**
|
|
2822
|
-
*
|
|
3288
|
+
* UTXO ID for this output.
|
|
2823
3289
|
*/
|
|
2824
|
-
|
|
3290
|
+
utxoId: string;
|
|
2825
3291
|
/**
|
|
2826
|
-
*
|
|
3292
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2827
3293
|
*/
|
|
2828
|
-
|
|
3294
|
+
consumingTxTimestamp?: number;
|
|
2829
3295
|
/**
|
|
2830
|
-
*
|
|
3296
|
+
* Transaction ID that created this output.
|
|
2831
3297
|
*/
|
|
2832
|
-
|
|
3298
|
+
creationTxHash: string;
|
|
2833
3299
|
/**
|
|
2834
|
-
*
|
|
3300
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2835
3301
|
*/
|
|
2836
|
-
|
|
3302
|
+
credentials?: Array<UtxoCredential>;
|
|
2837
3303
|
/**
|
|
2838
|
-
*
|
|
3304
|
+
* Index representing the minting set for the NFT mint output.
|
|
2839
3305
|
*/
|
|
2840
|
-
|
|
3306
|
+
groupId?: number;
|
|
2841
3307
|
/**
|
|
2842
3308
|
* Locktime in seconds after which this output can be consumed.
|
|
2843
3309
|
*/
|
|
2844
3310
|
locktime: number;
|
|
2845
3311
|
/**
|
|
2846
|
-
*
|
|
3312
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2847
3313
|
*/
|
|
2848
|
-
|
|
3314
|
+
outputIndex: string;
|
|
2849
3315
|
/**
|
|
2850
|
-
*
|
|
3316
|
+
* Hex encoded data for NFT assets.
|
|
2851
3317
|
*/
|
|
2852
|
-
|
|
3318
|
+
payload?: string;
|
|
2853
3319
|
/**
|
|
2854
|
-
*
|
|
3320
|
+
* Minimum number of signatures required to consume this output.
|
|
2855
3321
|
*/
|
|
2856
|
-
|
|
3322
|
+
threshold: number;
|
|
2857
3323
|
/**
|
|
2858
|
-
*
|
|
3324
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2859
3325
|
*/
|
|
2860
|
-
|
|
3326
|
+
timestamp: number;
|
|
2861
3327
|
/**
|
|
2862
|
-
*
|
|
3328
|
+
* Type of output.
|
|
2863
3329
|
*/
|
|
2864
|
-
|
|
3330
|
+
utxoType: string;
|
|
2865
3331
|
};
|
|
2866
3332
|
|
|
2867
3333
|
type CChainExportTransaction = {
|
|
@@ -2888,11 +3354,11 @@ type CChainExportTransaction = {
|
|
|
2888
3354
|
/**
|
|
2889
3355
|
* Assets unlocked by inputs of this transaction.
|
|
2890
3356
|
*/
|
|
2891
|
-
amountUnlocked: Array<
|
|
3357
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2892
3358
|
/**
|
|
2893
3359
|
* Assets created by outputs of this transaction.
|
|
2894
3360
|
*/
|
|
2895
|
-
amountCreated: Array<
|
|
3361
|
+
amountCreated: Array<AssetAmount>;
|
|
2896
3362
|
/**
|
|
2897
3363
|
* Source chain for an atomic transaction.
|
|
2898
3364
|
*/
|
|
@@ -2923,9 +3389,9 @@ type EVMOutput = {
|
|
|
2923
3389
|
*/
|
|
2924
3390
|
toAddress: string;
|
|
2925
3391
|
/**
|
|
2926
|
-
*
|
|
3392
|
+
* AssetAmount details for the asset being transferred.
|
|
2927
3393
|
*/
|
|
2928
|
-
asset:
|
|
3394
|
+
asset: AssetAmount;
|
|
2929
3395
|
};
|
|
2930
3396
|
|
|
2931
3397
|
type CChainImportTransaction = {
|
|
@@ -2952,11 +3418,11 @@ type CChainImportTransaction = {
|
|
|
2952
3418
|
/**
|
|
2953
3419
|
* Assets unlocked by inputs of this transaction.
|
|
2954
3420
|
*/
|
|
2955
|
-
amountUnlocked: Array<
|
|
3421
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2956
3422
|
/**
|
|
2957
3423
|
* Assets created by outputs of this transaction.
|
|
2958
3424
|
*/
|
|
2959
|
-
amountCreated: Array<
|
|
3425
|
+
amountCreated: Array<AssetAmount>;
|
|
2960
3426
|
/**
|
|
2961
3427
|
* Source chain for an atomic transaction.
|
|
2962
3428
|
*/
|
|
@@ -2992,16 +3458,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2992
3458
|
|
|
2993
3459
|
declare enum PChainTransactionType {
|
|
2994
3460
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
2995
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
2996
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
2997
3461
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
2998
|
-
|
|
2999
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3462
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3000
3463
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3001
3464
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3002
3465
|
IMPORT_TX = "ImportTx",
|
|
3003
3466
|
EXPORT_TX = "ExportTx",
|
|
3004
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",
|
|
3005
3475
|
UNKNOWN = "UNKNOWN"
|
|
3006
3476
|
}
|
|
3007
3477
|
|
|
@@ -3012,29 +3482,48 @@ declare enum UtxoType {
|
|
|
3012
3482
|
|
|
3013
3483
|
type PChainUtxo = {
|
|
3014
3484
|
/**
|
|
3015
|
-
*
|
|
3485
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3016
3486
|
*/
|
|
3017
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
|
+
*/
|
|
3018
3504
|
utxoId: string;
|
|
3019
|
-
|
|
3020
|
-
|
|
3505
|
+
/**
|
|
3506
|
+
* @deprecated
|
|
3507
|
+
*/
|
|
3508
|
+
amount: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* @deprecated
|
|
3511
|
+
*/
|
|
3512
|
+
assetId: string;
|
|
3021
3513
|
blockNumber: string;
|
|
3022
3514
|
blockTimestamp: number;
|
|
3023
|
-
consumingTxHash?: string;
|
|
3024
|
-
consumingBlockTimestamp?: number;
|
|
3025
3515
|
consumingBlockNumber?: string;
|
|
3026
|
-
|
|
3027
|
-
utxoType: UtxoType;
|
|
3028
|
-
amount: string;
|
|
3029
|
-
stakeableLocktime?: number;
|
|
3516
|
+
consumingBlockTimestamp?: number;
|
|
3030
3517
|
platformLocktime?: number;
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3518
|
+
outputIndex: number;
|
|
3519
|
+
rewardType?: RewardType;
|
|
3520
|
+
stakeableLocktime?: number;
|
|
3034
3521
|
staked?: boolean;
|
|
3035
|
-
|
|
3522
|
+
threshold?: number;
|
|
3523
|
+
txHash: string;
|
|
3036
3524
|
utxoEndTimestamp?: number;
|
|
3037
|
-
|
|
3525
|
+
utxoStartTimestamp?: number;
|
|
3526
|
+
utxoType: UtxoType;
|
|
3038
3527
|
};
|
|
3039
3528
|
|
|
3040
3529
|
type PChainTransaction = {
|
|
@@ -3060,17 +3549,17 @@ type PChainTransaction = {
|
|
|
3060
3549
|
*/
|
|
3061
3550
|
destinationChain?: string;
|
|
3062
3551
|
/**
|
|
3063
|
-
* 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.
|
|
3064
3553
|
*/
|
|
3065
|
-
value: Array<
|
|
3554
|
+
value: Array<AssetAmount>;
|
|
3066
3555
|
/**
|
|
3067
|
-
* 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.
|
|
3068
3557
|
*/
|
|
3069
|
-
amountBurned: Array<
|
|
3558
|
+
amountBurned: Array<AssetAmount>;
|
|
3070
3559
|
/**
|
|
3071
|
-
* 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
|
|
3072
3561
|
*/
|
|
3073
|
-
amountStaked: Array<
|
|
3562
|
+
amountStaked: Array<AssetAmount>;
|
|
3074
3563
|
/**
|
|
3075
3564
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3076
3565
|
*/
|
|
@@ -3096,11 +3585,16 @@ type PChainTransaction = {
|
|
|
3096
3585
|
*/
|
|
3097
3586
|
estimatedReward?: string;
|
|
3098
3587
|
rewardTxHash?: string;
|
|
3588
|
+
rewardAddresses?: Array<string>;
|
|
3099
3589
|
memo?: string;
|
|
3100
3590
|
/**
|
|
3101
3591
|
* Present for RewardValidatorTx
|
|
3102
3592
|
*/
|
|
3103
3593
|
stakingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3596
|
+
*/
|
|
3597
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3104
3598
|
};
|
|
3105
3599
|
|
|
3106
3600
|
type ListPChainTransactionsResponse = {
|
|
@@ -3112,6 +3606,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3112
3606
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3113
3607
|
};
|
|
3114
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
|
+
|
|
3115
3621
|
type XChainLinearTransaction = {
|
|
3116
3622
|
/**
|
|
3117
3623
|
* Unique ID for this transaction.
|
|
@@ -3125,10 +3631,7 @@ type XChainLinearTransaction = {
|
|
|
3125
3631
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3126
3632
|
*/
|
|
3127
3633
|
timestamp: number;
|
|
3128
|
-
|
|
3129
|
-
* Type of transaction.
|
|
3130
|
-
*/
|
|
3131
|
-
txType: string;
|
|
3634
|
+
txType: XChainTransactionType;
|
|
3132
3635
|
/**
|
|
3133
3636
|
* Hex encoded memo bytes for this transaction.
|
|
3134
3637
|
*/
|
|
@@ -3138,11 +3641,11 @@ type XChainLinearTransaction = {
|
|
|
3138
3641
|
/**
|
|
3139
3642
|
* Assets unlocked by inputs of this transaction.
|
|
3140
3643
|
*/
|
|
3141
|
-
amountUnlocked: Array<
|
|
3644
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3142
3645
|
/**
|
|
3143
3646
|
* Assets created by outputs of this transaction.
|
|
3144
3647
|
*/
|
|
3145
|
-
amountCreated: Array<
|
|
3648
|
+
amountCreated: Array<AssetAmount>;
|
|
3146
3649
|
/**
|
|
3147
3650
|
* Source chain for an atomic transaction.
|
|
3148
3651
|
*/
|
|
@@ -3152,7 +3655,7 @@ type XChainLinearTransaction = {
|
|
|
3152
3655
|
*/
|
|
3153
3656
|
destinationChain?: string;
|
|
3154
3657
|
/**
|
|
3155
|
-
*
|
|
3658
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3156
3659
|
*/
|
|
3157
3660
|
assetCreated?: XChainAssetDetails;
|
|
3158
3661
|
/**
|
|
@@ -3202,10 +3705,7 @@ type XChainNonLinearTransaction = {
|
|
|
3202
3705
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3203
3706
|
*/
|
|
3204
3707
|
timestamp: number;
|
|
3205
|
-
|
|
3206
|
-
* Type of transaction.
|
|
3207
|
-
*/
|
|
3208
|
-
txType: string;
|
|
3708
|
+
txType: XChainTransactionType;
|
|
3209
3709
|
/**
|
|
3210
3710
|
* Hex encoded memo bytes for this transaction.
|
|
3211
3711
|
*/
|
|
@@ -3215,11 +3715,11 @@ type XChainNonLinearTransaction = {
|
|
|
3215
3715
|
/**
|
|
3216
3716
|
* Assets unlocked by inputs of this transaction.
|
|
3217
3717
|
*/
|
|
3218
|
-
amountUnlocked: Array<
|
|
3718
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3219
3719
|
/**
|
|
3220
3720
|
* Assets created by outputs of this transaction.
|
|
3221
3721
|
*/
|
|
3222
|
-
amountCreated: Array<
|
|
3722
|
+
amountCreated: Array<AssetAmount>;
|
|
3223
3723
|
/**
|
|
3224
3724
|
* Source chain for an atomic transaction.
|
|
3225
3725
|
*/
|
|
@@ -3229,7 +3729,7 @@ type XChainNonLinearTransaction = {
|
|
|
3229
3729
|
*/
|
|
3230
3730
|
destinationChain?: string;
|
|
3231
3731
|
/**
|
|
3232
|
-
*
|
|
3732
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3233
3733
|
*/
|
|
3234
3734
|
assetCreated?: XChainAssetDetails;
|
|
3235
3735
|
/**
|
|
@@ -3263,18 +3763,21 @@ declare enum PChainId {
|
|
|
3263
3763
|
|
|
3264
3764
|
declare enum PrimaryNetworkTxType {
|
|
3265
3765
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3266
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3267
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3268
3766
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3269
|
-
|
|
3270
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3767
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3271
3768
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3272
3769
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3273
3770
|
IMPORT_TX = "ImportTx",
|
|
3274
3771
|
EXPORT_TX = "ExportTx",
|
|
3275
3772
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3276
|
-
|
|
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",
|
|
3277
3778
|
BASE_TX = "BaseTx",
|
|
3779
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3780
|
+
UNKNOWN = "UNKNOWN",
|
|
3278
3781
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3279
3782
|
OPERATION_TX = "OperationTx"
|
|
3280
3783
|
}
|
|
@@ -3304,11 +3807,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3304
3807
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3305
3808
|
/**
|
|
3306
3809
|
* List latest transactions
|
|
3307
|
-
* 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.
|
|
3308
3815
|
* @returns any
|
|
3309
3816
|
* @throws ApiError
|
|
3310
3817
|
*/
|
|
3311
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3818
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3312
3819
|
/**
|
|
3313
3820
|
* A primary network blockchain id or alias.
|
|
3314
3821
|
*/
|
|
@@ -3332,15 +3839,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3332
3839
|
/**
|
|
3333
3840
|
* Query param for retrieving items before a specific timestamp.
|
|
3334
3841
|
*/
|
|
3335
|
-
endTimestamp?: number;
|
|
3336
|
-
/**
|
|
3337
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3338
|
-
*/
|
|
3339
|
-
pageSize?: number;
|
|
3842
|
+
endTimestamp?: number;
|
|
3340
3843
|
/**
|
|
3341
3844
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3342
3845
|
*/
|
|
3343
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;
|
|
3344
3851
|
/**
|
|
3345
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.
|
|
3346
3853
|
*/
|
|
@@ -3352,7 +3859,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3352
3859
|
* @returns ListPChainTransactionsResponse
|
|
3353
3860
|
* @throws ApiError
|
|
3354
3861
|
*/
|
|
3355
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3862
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3356
3863
|
/**
|
|
3357
3864
|
* A primary network blockchain id or alias.
|
|
3358
3865
|
*/
|
|
@@ -3377,14 +3884,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3377
3884
|
* Query param for retrieving items before a specific timestamp.
|
|
3378
3885
|
*/
|
|
3379
3886
|
endTimestamp?: number;
|
|
3380
|
-
/**
|
|
3381
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3382
|
-
*/
|
|
3383
|
-
pageSize?: number;
|
|
3384
3887
|
/**
|
|
3385
3888
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3386
3889
|
*/
|
|
3387
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;
|
|
3388
3895
|
/**
|
|
3389
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.
|
|
3390
3897
|
*/
|
|
@@ -3396,7 +3903,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3396
3903
|
* @returns ListXChainTransactionsResponse
|
|
3397
3904
|
* @throws ApiError
|
|
3398
3905
|
*/
|
|
3399
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3400
3907
|
/**
|
|
3401
3908
|
* A primary network blockchain id or alias.
|
|
3402
3909
|
*/
|
|
@@ -3421,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3421
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3422
3929
|
*/
|
|
3423
3930
|
endTimestamp?: number;
|
|
3424
|
-
/**
|
|
3425
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3426
|
-
*/
|
|
3427
|
-
pageSize?: number;
|
|
3428
3931
|
/**
|
|
3429
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3430
3933
|
*/
|
|
3431
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;
|
|
3432
3939
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3433
3940
|
}
|
|
3434
3941
|
|
|
@@ -3459,7 +3966,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3459
3966
|
* @returns any
|
|
3460
3967
|
* @throws ApiError
|
|
3461
3968
|
*/
|
|
3462
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3969
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3463
3970
|
/**
|
|
3464
3971
|
* A primary network blockchain id or alias.
|
|
3465
3972
|
*/
|
|
@@ -3472,14 +3979,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3472
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".
|
|
3473
3980
|
*/
|
|
3474
3981
|
addresses?: string;
|
|
3475
|
-
/**
|
|
3476
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3477
|
-
*/
|
|
3478
|
-
pageSize?: number;
|
|
3479
3982
|
/**
|
|
3480
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3481
3984
|
*/
|
|
3482
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;
|
|
3483
3990
|
/**
|
|
3484
3991
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3485
3992
|
*/
|
|
@@ -3524,7 +4031,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3524
4031
|
* @returns ListXChainVerticesResponse
|
|
3525
4032
|
* @throws ApiError
|
|
3526
4033
|
*/
|
|
3527
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4034
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3528
4035
|
/**
|
|
3529
4036
|
* A primary network blockchain id or alias.
|
|
3530
4037
|
*/
|
|
@@ -3533,14 +4040,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3533
4040
|
* Either mainnet or a testnet.
|
|
3534
4041
|
*/
|
|
3535
4042
|
network: Network;
|
|
3536
|
-
/**
|
|
3537
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3538
|
-
*/
|
|
3539
|
-
pageSize?: number;
|
|
3540
4043
|
/**
|
|
3541
4044
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3542
4045
|
*/
|
|
3543
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;
|
|
3544
4051
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3545
4052
|
/**
|
|
3546
4053
|
* Get vertex
|
|
@@ -3568,7 +4075,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3568
4075
|
* @returns ListXChainVerticesResponse
|
|
3569
4076
|
* @throws ApiError
|
|
3570
4077
|
*/
|
|
3571
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4078
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3572
4079
|
/**
|
|
3573
4080
|
* The height of a vertex.
|
|
3574
4081
|
*/
|
|
@@ -3581,28 +4088,456 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3581
4088
|
* Either mainnet or a testnet.
|
|
3582
4089
|
*/
|
|
3583
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
|
+
sourceEvmChainId: string;
|
|
4202
|
+
destinationEvmChainId: string;
|
|
4203
|
+
messageNonce: string;
|
|
4204
|
+
from: string;
|
|
4205
|
+
to: string;
|
|
4206
|
+
data?: string;
|
|
4207
|
+
messageExecuted: boolean;
|
|
4208
|
+
receipts: Array<TeleporterReceipt>;
|
|
4209
|
+
receiptDelivered: boolean;
|
|
4210
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4211
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4212
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4213
|
+
};
|
|
4214
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4215
|
+
enum status {
|
|
4216
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4217
|
+
}
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
type TeleporterSourceTransaction = {
|
|
4221
|
+
txHash: string;
|
|
4222
|
+
timestamp: number;
|
|
4223
|
+
gasSpent: string;
|
|
4224
|
+
};
|
|
4225
|
+
|
|
4226
|
+
type DeliveredTeleporterMessage = {
|
|
4227
|
+
messageId: string;
|
|
4228
|
+
teleporterContractAddress: string;
|
|
4229
|
+
sourceBlockchainId: string;
|
|
4230
|
+
destinationBlockchainId: string;
|
|
4231
|
+
sourceEvmChainId: string;
|
|
4232
|
+
destinationEvmChainId: string;
|
|
4233
|
+
messageNonce: string;
|
|
4234
|
+
from: string;
|
|
4235
|
+
to: string;
|
|
4236
|
+
data?: string;
|
|
4237
|
+
messageExecuted: boolean;
|
|
4238
|
+
receipts: Array<TeleporterReceipt>;
|
|
4239
|
+
receiptDelivered: boolean;
|
|
4240
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4241
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4242
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4243
|
+
status: DeliveredTeleporterMessage.status;
|
|
4244
|
+
};
|
|
4245
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4246
|
+
enum status {
|
|
4247
|
+
DELIVERED = "delivered"
|
|
4248
|
+
}
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4251
|
+
type PendingTeleporterMessage = {
|
|
4252
|
+
messageId: string;
|
|
4253
|
+
teleporterContractAddress: string;
|
|
4254
|
+
sourceBlockchainId: string;
|
|
4255
|
+
destinationBlockchainId: string;
|
|
4256
|
+
sourceEvmChainId: string;
|
|
4257
|
+
destinationEvmChainId: string;
|
|
4258
|
+
messageNonce: string;
|
|
4259
|
+
from: string;
|
|
4260
|
+
to: string;
|
|
4261
|
+
data?: string;
|
|
4262
|
+
messageExecuted: boolean;
|
|
4263
|
+
receipts: Array<TeleporterReceipt>;
|
|
4264
|
+
receiptDelivered: boolean;
|
|
4265
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4266
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4267
|
+
status: PendingTeleporterMessage.status;
|
|
4268
|
+
};
|
|
4269
|
+
declare namespace PendingTeleporterMessage {
|
|
4270
|
+
enum status {
|
|
4271
|
+
PENDING = "pending"
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
type ListTeleporterMessagesResponse = {
|
|
4276
|
+
/**
|
|
4277
|
+
* 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.
|
|
4278
|
+
*/
|
|
4279
|
+
nextPageToken?: string;
|
|
4280
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4281
|
+
};
|
|
4282
|
+
|
|
4283
|
+
declare class TeleporterService {
|
|
4284
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4285
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4286
|
+
/**
|
|
4287
|
+
* Get a teleporter message
|
|
4288
|
+
* Gets a teleporter message by message ID.
|
|
4289
|
+
* @returns any
|
|
4290
|
+
* @throws ApiError
|
|
4291
|
+
*/
|
|
4292
|
+
getTeleporterMessage({ messageId, }: {
|
|
4293
|
+
/**
|
|
4294
|
+
* The message ID of the teleporter message.
|
|
4295
|
+
*/
|
|
4296
|
+
messageId: string;
|
|
4297
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4298
|
+
/**
|
|
4299
|
+
* List teleporter messages
|
|
4300
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4301
|
+
* @returns ListTeleporterMessagesResponse
|
|
4302
|
+
* @throws ApiError
|
|
4303
|
+
*/
|
|
4304
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4305
|
+
/**
|
|
4306
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4307
|
+
*/
|
|
4308
|
+
pageToken?: string;
|
|
3584
4309
|
/**
|
|
3585
4310
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3586
4311
|
*/
|
|
3587
4312
|
pageSize?: number;
|
|
4313
|
+
/**
|
|
4314
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4315
|
+
*/
|
|
4316
|
+
sourceBlockchainId?: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4319
|
+
*/
|
|
4320
|
+
destinationBlockchainId?: string;
|
|
4321
|
+
/**
|
|
4322
|
+
* The address of the recipient of the teleporter message.
|
|
4323
|
+
*/
|
|
4324
|
+
to?: string;
|
|
4325
|
+
/**
|
|
4326
|
+
* The address of the sender of the teleporter message.
|
|
4327
|
+
*/
|
|
4328
|
+
from?: string;
|
|
4329
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4330
|
+
}
|
|
4331
|
+
|
|
4332
|
+
type AddressesChangeRequest = {
|
|
4333
|
+
/**
|
|
4334
|
+
* Ethereum address(es) for the address_activity event type
|
|
4335
|
+
*/
|
|
4336
|
+
addresses: Array<any[]>;
|
|
4337
|
+
};
|
|
4338
|
+
|
|
4339
|
+
type AddressActivityMetadata = {
|
|
4340
|
+
/**
|
|
4341
|
+
* Ethereum address(es) for the address_activity event type
|
|
4342
|
+
*/
|
|
4343
|
+
addresses: Array<any[]>;
|
|
4344
|
+
/**
|
|
4345
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4346
|
+
*/
|
|
4347
|
+
eventSignatures?: Array<string>;
|
|
4348
|
+
};
|
|
4349
|
+
|
|
4350
|
+
declare enum EventType {
|
|
4351
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
declare enum WebhookStatusType {
|
|
4355
|
+
ACTIVE = "active",
|
|
4356
|
+
INACTIVE = "inactive"
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
type WebhookResponse = {
|
|
4360
|
+
id: string;
|
|
4361
|
+
eventType: EventType;
|
|
4362
|
+
metadata: AddressActivityMetadata;
|
|
4363
|
+
/**
|
|
4364
|
+
* Whether to include traces in the webhook payload.
|
|
4365
|
+
*/
|
|
4366
|
+
includeInternalTxs?: boolean;
|
|
4367
|
+
/**
|
|
4368
|
+
* Whether to include logs in the webhook payload.
|
|
4369
|
+
*/
|
|
4370
|
+
includeLogs?: boolean;
|
|
4371
|
+
url: string;
|
|
4372
|
+
chainId: string;
|
|
4373
|
+
status: WebhookStatusType;
|
|
4374
|
+
createdAt: number;
|
|
4375
|
+
name: string;
|
|
4376
|
+
description: string;
|
|
4377
|
+
};
|
|
4378
|
+
|
|
4379
|
+
type ListWebhooksResponse = {
|
|
4380
|
+
/**
|
|
4381
|
+
* 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.
|
|
4382
|
+
*/
|
|
4383
|
+
nextPageToken?: string;
|
|
4384
|
+
webhooks: Array<WebhookResponse>;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
type RegisterWebhookRequest = {
|
|
4388
|
+
url: string;
|
|
4389
|
+
chainId: string;
|
|
4390
|
+
eventType: EventType;
|
|
4391
|
+
metadata: AddressActivityMetadata;
|
|
4392
|
+
/**
|
|
4393
|
+
* Whether to include traces in the webhook payload.
|
|
4394
|
+
*/
|
|
4395
|
+
includeInternalTxs?: boolean;
|
|
4396
|
+
/**
|
|
4397
|
+
* Whether to include logs in the webhook payload.
|
|
4398
|
+
*/
|
|
4399
|
+
includeLogs?: boolean;
|
|
4400
|
+
};
|
|
4401
|
+
|
|
4402
|
+
type SharedSecretsResponse = {
|
|
4403
|
+
secret: string;
|
|
4404
|
+
};
|
|
4405
|
+
|
|
4406
|
+
type UpdateWebhookRequest = {
|
|
4407
|
+
name?: string;
|
|
4408
|
+
description?: string;
|
|
4409
|
+
url?: string;
|
|
4410
|
+
status?: WebhookStatusType;
|
|
4411
|
+
includeInternalTxs?: boolean;
|
|
4412
|
+
includeLogs?: boolean;
|
|
4413
|
+
};
|
|
4414
|
+
|
|
4415
|
+
declare enum WebhookStatus {
|
|
4416
|
+
ACTIVE = "active",
|
|
4417
|
+
INACTIVE = "inactive"
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4420
|
+
declare class WebhooksService {
|
|
4421
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4422
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4423
|
+
/**
|
|
4424
|
+
* Create a webhook
|
|
4425
|
+
* Create a new webhook.
|
|
4426
|
+
* @returns WebhookResponse
|
|
4427
|
+
* @throws ApiError
|
|
4428
|
+
*/
|
|
4429
|
+
registerWebhook({ requestBody, }: {
|
|
4430
|
+
requestBody: RegisterWebhookRequest;
|
|
4431
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4432
|
+
/**
|
|
4433
|
+
* List webhooks
|
|
4434
|
+
* Lists webhooks for the user.
|
|
4435
|
+
* @returns ListWebhooksResponse
|
|
4436
|
+
* @throws ApiError
|
|
4437
|
+
*/
|
|
4438
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3588
4439
|
/**
|
|
3589
4440
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3590
4441
|
*/
|
|
3591
4442
|
pageToken?: string;
|
|
3592
4443
|
/**
|
|
3593
|
-
* The
|
|
4444
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3594
4445
|
*/
|
|
3595
|
-
|
|
3596
|
-
|
|
4446
|
+
pageSize?: number;
|
|
4447
|
+
/**
|
|
4448
|
+
* 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.
|
|
4449
|
+
*/
|
|
4450
|
+
status?: WebhookStatus;
|
|
4451
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4452
|
+
/**
|
|
4453
|
+
* Get a webhook by ID
|
|
4454
|
+
* Retrieves a webhook by ID.
|
|
4455
|
+
* @returns WebhookResponse
|
|
4456
|
+
* @throws ApiError
|
|
4457
|
+
*/
|
|
4458
|
+
getWebhook({ id, }: {
|
|
4459
|
+
/**
|
|
4460
|
+
* The webhook identifier.
|
|
4461
|
+
*/
|
|
4462
|
+
id: string;
|
|
4463
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4464
|
+
/**
|
|
4465
|
+
* Deactivate a webhook
|
|
4466
|
+
* Deactivates a webhook by ID.
|
|
4467
|
+
* @returns WebhookResponse
|
|
4468
|
+
* @throws ApiError
|
|
4469
|
+
*/
|
|
4470
|
+
deactivateWebhook({ id, }: {
|
|
4471
|
+
/**
|
|
4472
|
+
* The webhook identifier.
|
|
4473
|
+
*/
|
|
4474
|
+
id: string;
|
|
4475
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4476
|
+
/**
|
|
4477
|
+
* Update a webhook
|
|
4478
|
+
* Updates an existing webhook.
|
|
4479
|
+
* @returns WebhookResponse
|
|
4480
|
+
* @throws ApiError
|
|
4481
|
+
*/
|
|
4482
|
+
updateWebhook({ id, requestBody, }: {
|
|
4483
|
+
/**
|
|
4484
|
+
* The webhook identifier.
|
|
4485
|
+
*/
|
|
4486
|
+
id: string;
|
|
4487
|
+
requestBody: UpdateWebhookRequest;
|
|
4488
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4489
|
+
/**
|
|
4490
|
+
* Generate a shared secret
|
|
4491
|
+
* Generates a new shared secret.
|
|
4492
|
+
* @returns SharedSecretsResponse
|
|
4493
|
+
* @throws ApiError
|
|
4494
|
+
*/
|
|
4495
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4496
|
+
/**
|
|
4497
|
+
* Get a shared secret
|
|
4498
|
+
* Get a previously generated shared secret.
|
|
4499
|
+
* @returns SharedSecretsResponse
|
|
4500
|
+
* @throws ApiError
|
|
4501
|
+
*/
|
|
4502
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4503
|
+
/**
|
|
4504
|
+
* Add address(es) to a webhook
|
|
4505
|
+
* Adding address(es) to a given webhook.
|
|
4506
|
+
* @returns WebhookResponse
|
|
4507
|
+
* @throws ApiError
|
|
4508
|
+
*/
|
|
4509
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4510
|
+
/**
|
|
4511
|
+
* The webhook identifier.
|
|
4512
|
+
*/
|
|
4513
|
+
id: string;
|
|
4514
|
+
requestBody: AddressesChangeRequest;
|
|
4515
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4516
|
+
/**
|
|
4517
|
+
* Remove address(es) from a webhook
|
|
4518
|
+
* Removing address(es) from a given webhook.
|
|
4519
|
+
* @returns WebhookResponse
|
|
4520
|
+
* @throws ApiError
|
|
4521
|
+
*/
|
|
4522
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4523
|
+
/**
|
|
4524
|
+
* The webhook identifier.
|
|
4525
|
+
*/
|
|
4526
|
+
id: string;
|
|
4527
|
+
requestBody: AddressesChangeRequest;
|
|
4528
|
+
}): CancelablePromise<WebhookResponse>;
|
|
3597
4529
|
}
|
|
3598
4530
|
|
|
3599
4531
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3600
4532
|
declare class Glacier {
|
|
4533
|
+
readonly default: DefaultService;
|
|
3601
4534
|
readonly evmBalances: EvmBalancesService;
|
|
3602
4535
|
readonly evmBlocks: EvmBlocksService;
|
|
3603
4536
|
readonly evmChains: EvmChainsService;
|
|
4537
|
+
readonly evmContracts: EvmContractsService;
|
|
3604
4538
|
readonly evmTransactions: EvmTransactionsService;
|
|
3605
4539
|
readonly healthCheck: HealthCheckService;
|
|
4540
|
+
readonly nfTs: NfTsService;
|
|
3606
4541
|
readonly operations: OperationsService;
|
|
3607
4542
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3608
4543
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3611,6 +4546,9 @@ declare class Glacier {
|
|
|
3611
4546
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3612
4547
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3613
4548
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4549
|
+
readonly rpc: RpcService;
|
|
4550
|
+
readonly teleporter: TeleporterService;
|
|
4551
|
+
readonly webhooks: WebhooksService;
|
|
3614
4552
|
readonly request: BaseHttpRequest;
|
|
3615
4553
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3616
4554
|
}
|
|
@@ -3632,4 +4570,11 @@ declare class ApiError extends Error {
|
|
|
3632
4570
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3633
4571
|
}
|
|
3634
4572
|
|
|
3635
|
-
|
|
4573
|
+
type NextPageToken = {
|
|
4574
|
+
/**
|
|
4575
|
+
* 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.
|
|
4576
|
+
*/
|
|
4577
|
+
nextPageToken?: string;
|
|
4578
|
+
};
|
|
4579
|
+
|
|
4580
|
+
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, ListTeleporterMessagesResponse, 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 };
|