@avalabs/glacier-sdk 2.8.0-canary.f35ad12.0 → 2.8.0-canary.f3e3bdc.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 +1567 -683
- package/dist/index.js +665 -202
- package/esm/generated/Glacier.d.ts +10 -0
- package/esm/generated/Glacier.js +38 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +41 -31
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +39 -40
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +2 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +2 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ImageAsset.d.ts +0 -3
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +13 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -4
- package/esm/generated/models/PChainTransactionType.js +8 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/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 +30 -0
- package/esm/generated/services/DefaultService.js +30 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -31
- package/esm/generated/services/PrimaryNetworkService.js +27 -17
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +46 -3
- package/esm/index.js +29 -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>;
|
|
@@ -46,11 +40,11 @@ type OpenAPIConfig = {
|
|
|
46
40
|
VERSION: string;
|
|
47
41
|
WITH_CREDENTIALS: boolean;
|
|
48
42
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
49
|
-
TOKEN?: string | Resolver<string
|
|
50
|
-
USERNAME?: string | Resolver<string
|
|
51
|
-
PASSWORD?: string | Resolver<string
|
|
52
|
-
HEADERS?: Headers | Resolver<Headers
|
|
53
|
-
ENCODE_PATH?: (path: string) => string;
|
|
43
|
+
TOKEN?: string | Resolver<string> | undefined;
|
|
44
|
+
USERNAME?: string | Resolver<string> | undefined;
|
|
45
|
+
PASSWORD?: string | Resolver<string> | undefined;
|
|
46
|
+
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
47
|
+
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
54
48
|
};
|
|
55
49
|
declare const OpenAPI: OpenAPIConfig;
|
|
56
50
|
|
|
@@ -60,6 +54,57 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
57
|
+
type RpcErrorDto = {
|
|
58
|
+
code: number;
|
|
59
|
+
message: string;
|
|
60
|
+
data?: Record<string, any>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
type RpcErrorResponseDto = {
|
|
64
|
+
jsonrpc: string;
|
|
65
|
+
id?: (string | number);
|
|
66
|
+
error: RpcErrorDto;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
type RpcRequestBodyDto = {
|
|
70
|
+
method: string;
|
|
71
|
+
params?: Record<string, any>;
|
|
72
|
+
id?: (string | number);
|
|
73
|
+
jsonrpc?: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
type RpcSuccessResponseDto = {
|
|
77
|
+
jsonrpc: string;
|
|
78
|
+
id?: (string | number);
|
|
79
|
+
result: Record<string, any>;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
declare class DefaultService {
|
|
83
|
+
readonly httpRequest: BaseHttpRequest;
|
|
84
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
85
|
+
/**
|
|
86
|
+
* @returns any
|
|
87
|
+
* @throws ApiError
|
|
88
|
+
*/
|
|
89
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
90
|
+
/**
|
|
91
|
+
* Calls JSON-RPC method
|
|
92
|
+
* Calls JSON-RPC method.
|
|
93
|
+
* @returns any
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
rpc({ chainId, requestBody, }: {
|
|
97
|
+
/**
|
|
98
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
99
|
+
*/
|
|
100
|
+
chainId: string;
|
|
101
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
102
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* ISO 4217 currency code.
|
|
107
|
+
*/
|
|
63
108
|
declare enum CurrencyCode {
|
|
64
109
|
USD = "usd",
|
|
65
110
|
EUR = "eur",
|
|
@@ -78,9 +123,6 @@ declare enum CurrencyCode {
|
|
|
78
123
|
}
|
|
79
124
|
|
|
80
125
|
type Money = {
|
|
81
|
-
/**
|
|
82
|
-
* ISO 4217 currency code.
|
|
83
|
-
*/
|
|
84
126
|
currencyCode: CurrencyCode;
|
|
85
127
|
/**
|
|
86
128
|
* Monetary value in base 10 decimals.
|
|
@@ -130,6 +172,9 @@ type GetNativeBalanceResponse = {
|
|
|
130
172
|
nativeTokenBalance: NativeTokenBalance;
|
|
131
173
|
};
|
|
132
174
|
|
|
175
|
+
/**
|
|
176
|
+
* The metadata indexing status of the nft.
|
|
177
|
+
*/
|
|
133
178
|
declare enum NftTokenMetadataStatus {
|
|
134
179
|
UNKNOWN = "UNKNOWN",
|
|
135
180
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -145,9 +190,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
145
190
|
}
|
|
146
191
|
|
|
147
192
|
type Erc1155TokenMetadata = {
|
|
148
|
-
/**
|
|
149
|
-
* The metadata indexing status of the nft.
|
|
150
|
-
*/
|
|
151
193
|
indexStatus: NftTokenMetadataStatus;
|
|
152
194
|
metadataLastUpdatedTimestamp?: number;
|
|
153
195
|
name?: string;
|
|
@@ -186,9 +228,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
186
228
|
}
|
|
187
229
|
|
|
188
230
|
type Erc721TokenMetadata = {
|
|
189
|
-
/**
|
|
190
|
-
* The metadata indexing status of the nft.
|
|
191
|
-
*/
|
|
192
231
|
indexStatus: NftTokenMetadataStatus;
|
|
193
232
|
metadataLastUpdatedTimestamp?: number;
|
|
194
233
|
name?: string;
|
|
@@ -335,7 +374,7 @@ declare class EvmBalancesService {
|
|
|
335
374
|
*/
|
|
336
375
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
376
|
/**
|
|
338
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
377
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
378
|
*/
|
|
340
379
|
chainId: string;
|
|
341
380
|
/**
|
|
@@ -361,9 +400,9 @@ declare class EvmBalancesService {
|
|
|
361
400
|
* @returns ListErc20BalancesResponse
|
|
362
401
|
* @throws ApiError
|
|
363
402
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
403
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
404
|
/**
|
|
366
|
-
* 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.
|
|
367
406
|
*/
|
|
368
407
|
chainId: string;
|
|
369
408
|
/**
|
|
@@ -374,14 +413,14 @@ declare class EvmBalancesService {
|
|
|
374
413
|
* The block number, if not defined the block number will be the latest block.
|
|
375
414
|
*/
|
|
376
415
|
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
416
|
/**
|
|
382
417
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
418
|
*/
|
|
384
419
|
pageToken?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
422
|
+
*/
|
|
423
|
+
pageSize?: number;
|
|
385
424
|
/**
|
|
386
425
|
* A comma separated list of contract addresses to filter by.
|
|
387
426
|
*/
|
|
@@ -399,23 +438,23 @@ declare class EvmBalancesService {
|
|
|
399
438
|
* @returns ListErc721BalancesResponse
|
|
400
439
|
* @throws ApiError
|
|
401
440
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
441
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
442
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
443
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
444
|
*/
|
|
406
445
|
chainId: string;
|
|
407
446
|
/**
|
|
408
447
|
* A wallet address.
|
|
409
448
|
*/
|
|
410
449
|
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
450
|
/**
|
|
416
451
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
452
|
*/
|
|
418
453
|
pageToken?: string;
|
|
454
|
+
/**
|
|
455
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
456
|
+
*/
|
|
457
|
+
pageSize?: number;
|
|
419
458
|
/**
|
|
420
459
|
* A contract addresses to filter by.
|
|
421
460
|
*/
|
|
@@ -431,9 +470,9 @@ declare class EvmBalancesService {
|
|
|
431
470
|
* @returns ListErc1155BalancesResponse
|
|
432
471
|
* @throws ApiError
|
|
433
472
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
473
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
474
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
475
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
476
|
*/
|
|
438
477
|
chainId: string;
|
|
439
478
|
/**
|
|
@@ -444,14 +483,14 @@ declare class EvmBalancesService {
|
|
|
444
483
|
* The block number, if not defined the block number will be the latest block.
|
|
445
484
|
*/
|
|
446
485
|
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
486
|
/**
|
|
452
487
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
488
|
*/
|
|
454
489
|
pageToken?: string;
|
|
490
|
+
/**
|
|
491
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
492
|
+
*/
|
|
493
|
+
pageSize?: number;
|
|
455
494
|
/**
|
|
456
495
|
* A contract addresses to filter by.
|
|
457
496
|
*/
|
|
@@ -465,23 +504,23 @@ declare class EvmBalancesService {
|
|
|
465
504
|
* @returns ListCollectibleBalancesResponse
|
|
466
505
|
* @throws ApiError
|
|
467
506
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
507
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
508
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
509
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
510
|
*/
|
|
472
511
|
chainId: string;
|
|
473
512
|
/**
|
|
474
513
|
* A wallet address.
|
|
475
514
|
*/
|
|
476
515
|
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
516
|
/**
|
|
482
517
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
518
|
*/
|
|
484
519
|
pageToken?: string;
|
|
520
|
+
/**
|
|
521
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
522
|
+
*/
|
|
523
|
+
pageSize?: number;
|
|
485
524
|
/**
|
|
486
525
|
* A contract addresses to filter by.
|
|
487
526
|
*/
|
|
@@ -594,19 +633,19 @@ declare class EvmBlocksService {
|
|
|
594
633
|
* @returns ListEvmBlocksResponse
|
|
595
634
|
* @throws ApiError
|
|
596
635
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
636
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
637
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
638
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
639
|
*/
|
|
601
640
|
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
641
|
/**
|
|
607
642
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
643
|
*/
|
|
609
644
|
pageToken?: string;
|
|
645
|
+
/**
|
|
646
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
647
|
+
*/
|
|
648
|
+
pageSize?: number;
|
|
610
649
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
650
|
/**
|
|
612
651
|
* Get block
|
|
@@ -616,7 +655,7 @@ declare class EvmBlocksService {
|
|
|
616
655
|
*/
|
|
617
656
|
getBlock({ chainId, blockId, }: {
|
|
618
657
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
658
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
659
|
*/
|
|
621
660
|
chainId: string;
|
|
622
661
|
/**
|
|
@@ -626,6 +665,9 @@ declare class EvmBlocksService {
|
|
|
626
665
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
627
666
|
}
|
|
628
667
|
|
|
668
|
+
/**
|
|
669
|
+
* 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.
|
|
670
|
+
*/
|
|
629
671
|
declare enum ChainStatus {
|
|
630
672
|
OK = "OK",
|
|
631
673
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -663,9 +705,6 @@ declare enum VmName {
|
|
|
663
705
|
|
|
664
706
|
type GetChainResponse = {
|
|
665
707
|
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
708
|
status: ChainStatus;
|
|
670
709
|
chainName: string;
|
|
671
710
|
description: string;
|
|
@@ -680,13 +719,16 @@ type GetChainResponse = {
|
|
|
680
719
|
utilityAddresses?: UtilityAddresses;
|
|
681
720
|
networkToken: NetworkToken;
|
|
682
721
|
chainLogoUri?: string;
|
|
722
|
+
private?: boolean;
|
|
723
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
683
724
|
};
|
|
684
725
|
|
|
726
|
+
declare enum GlacierApiFeature {
|
|
727
|
+
NFT_INDEXING = "nftIndexing"
|
|
728
|
+
}
|
|
729
|
+
|
|
685
730
|
type ChainInfo = {
|
|
686
731
|
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
732
|
status: ChainStatus;
|
|
691
733
|
chainName: string;
|
|
692
734
|
description: string;
|
|
@@ -701,6 +743,8 @@ type ChainInfo = {
|
|
|
701
743
|
utilityAddresses?: UtilityAddresses;
|
|
702
744
|
networkToken: NetworkToken;
|
|
703
745
|
chainLogoUri?: string;
|
|
746
|
+
private?: boolean;
|
|
747
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
704
748
|
};
|
|
705
749
|
|
|
706
750
|
type ListChainsResponse = {
|
|
@@ -721,11 +765,15 @@ declare class EvmChainsService {
|
|
|
721
765
|
* @returns ListChainsResponse
|
|
722
766
|
* @throws ApiError
|
|
723
767
|
*/
|
|
724
|
-
supportedChains({ network, }: {
|
|
768
|
+
supportedChains({ network, feature, }: {
|
|
725
769
|
/**
|
|
726
770
|
* mainnet or testnet.
|
|
727
771
|
*/
|
|
728
772
|
network?: NetworkType;
|
|
773
|
+
/**
|
|
774
|
+
* Filter by feature.
|
|
775
|
+
*/
|
|
776
|
+
feature?: GlacierApiFeature;
|
|
729
777
|
}): CancelablePromise<ListChainsResponse>;
|
|
730
778
|
/**
|
|
731
779
|
* Get chain information
|
|
@@ -735,157 +783,473 @@ declare class EvmChainsService {
|
|
|
735
783
|
*/
|
|
736
784
|
getChainInfo({ chainId, }: {
|
|
737
785
|
/**
|
|
738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
786
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
739
787
|
*/
|
|
740
788
|
chainId: string;
|
|
741
789
|
}): CancelablePromise<GetChainResponse>;
|
|
742
790
|
}
|
|
743
791
|
|
|
744
|
-
type
|
|
792
|
+
type ImageAsset = {
|
|
793
|
+
assetId?: string;
|
|
745
794
|
/**
|
|
746
|
-
*
|
|
795
|
+
* OUTPUT ONLY
|
|
747
796
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
797
|
+
imageUri?: string;
|
|
753
798
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
799
|
+
|
|
800
|
+
type PricingProviders = {
|
|
801
|
+
coingeckoCoinId?: string;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
declare enum ResourceLinkType {
|
|
805
|
+
BLOG = "Blog",
|
|
806
|
+
COIN_GECKO = "CoinGecko",
|
|
807
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
808
|
+
DISCORD = "Discord",
|
|
809
|
+
DOCUMENTATION = "Documentation",
|
|
810
|
+
FACEBOOK = "Facebook",
|
|
811
|
+
GITHUB = "Github",
|
|
812
|
+
INSTAGRAM = "Instagram",
|
|
813
|
+
LINKED_IN = "LinkedIn",
|
|
814
|
+
MEDIUM = "Medium",
|
|
815
|
+
REDDIT = "Reddit",
|
|
816
|
+
SUPPORT = "Support",
|
|
817
|
+
TELEGRAM = "Telegram",
|
|
818
|
+
TIK_TOK = "TikTok",
|
|
819
|
+
TWITTER = "Twitter",
|
|
820
|
+
WEBSITE = "Website",
|
|
821
|
+
WHITEPAPER = "Whitepaper",
|
|
822
|
+
YOUTUBE = "Youtube"
|
|
758
823
|
}
|
|
759
824
|
|
|
760
|
-
type
|
|
825
|
+
type ResourceLink = {
|
|
826
|
+
type: ResourceLinkType;
|
|
827
|
+
url: string;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
type ContractSubmissionErc1155 = {
|
|
831
|
+
description?: string;
|
|
832
|
+
officialSite?: string;
|
|
833
|
+
email?: string;
|
|
834
|
+
logoAsset?: ImageAsset;
|
|
835
|
+
bannerAsset?: ImageAsset;
|
|
836
|
+
color?: string;
|
|
837
|
+
resourceLinks?: Array<ResourceLink>;
|
|
838
|
+
tags?: Array<string>;
|
|
761
839
|
/**
|
|
762
840
|
* The contract name.
|
|
763
841
|
*/
|
|
764
|
-
name
|
|
842
|
+
name: string;
|
|
843
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
844
|
/**
|
|
766
845
|
* The contract symbol.
|
|
767
846
|
*/
|
|
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;
|
|
847
|
+
symbol: string;
|
|
848
|
+
pricingProviders?: PricingProviders;
|
|
789
849
|
};
|
|
850
|
+
declare namespace ContractSubmissionErc1155 {
|
|
851
|
+
enum ercType {
|
|
852
|
+
ERC_1155 = "ERC-1155"
|
|
853
|
+
}
|
|
854
|
+
}
|
|
790
855
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
856
|
+
type ContractSubmissionErc20 = {
|
|
857
|
+
description?: string;
|
|
858
|
+
officialSite?: string;
|
|
859
|
+
email?: string;
|
|
860
|
+
logoAsset?: ImageAsset;
|
|
861
|
+
bannerAsset?: ImageAsset;
|
|
862
|
+
color?: string;
|
|
863
|
+
resourceLinks?: Array<ResourceLink>;
|
|
864
|
+
tags?: Array<string>;
|
|
796
865
|
/**
|
|
797
866
|
* The contract name.
|
|
798
867
|
*/
|
|
799
868
|
name: string;
|
|
869
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
870
|
/**
|
|
801
871
|
* The contract symbol.
|
|
802
872
|
*/
|
|
803
873
|
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;
|
|
874
|
+
pricingProviders?: PricingProviders;
|
|
817
875
|
};
|
|
818
|
-
declare namespace
|
|
876
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
877
|
enum ercType {
|
|
820
878
|
ERC_20 = "ERC-20"
|
|
821
879
|
}
|
|
822
880
|
}
|
|
823
881
|
|
|
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;
|
|
882
|
+
type ContractSubmissionErc721 = {
|
|
883
|
+
description?: string;
|
|
884
|
+
officialSite?: string;
|
|
885
|
+
email?: string;
|
|
886
|
+
logoAsset?: ImageAsset;
|
|
887
|
+
bannerAsset?: ImageAsset;
|
|
888
|
+
color?: string;
|
|
889
|
+
resourceLinks?: Array<ResourceLink>;
|
|
890
|
+
tags?: Array<string>;
|
|
837
891
|
/**
|
|
838
892
|
* The contract name.
|
|
839
893
|
*/
|
|
840
894
|
name: string;
|
|
895
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
896
|
/**
|
|
842
897
|
* The contract symbol.
|
|
843
898
|
*/
|
|
844
899
|
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
900
|
};
|
|
854
|
-
declare namespace
|
|
901
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
902
|
enum ercType {
|
|
856
903
|
ERC_721 = "ERC-721"
|
|
857
904
|
}
|
|
858
905
|
}
|
|
859
906
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
907
|
+
type ContractSubmissionUnknown = {
|
|
908
|
+
description?: string;
|
|
909
|
+
officialSite?: string;
|
|
910
|
+
email?: string;
|
|
911
|
+
logoAsset?: ImageAsset;
|
|
912
|
+
bannerAsset?: ImageAsset;
|
|
913
|
+
color?: string;
|
|
914
|
+
resourceLinks?: Array<ResourceLink>;
|
|
915
|
+
tags?: Array<string>;
|
|
916
|
+
/**
|
|
917
|
+
* The contract name.
|
|
918
|
+
*/
|
|
919
|
+
name: string;
|
|
920
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
865
921
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
922
|
+
declare namespace ContractSubmissionUnknown {
|
|
923
|
+
enum ercType {
|
|
924
|
+
UNKNOWN = "UNKNOWN"
|
|
925
|
+
}
|
|
871
926
|
}
|
|
872
927
|
|
|
873
|
-
type
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
928
|
+
type ContractSubmissionBody = {
|
|
929
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
type ContractDeploymentDetails = {
|
|
933
|
+
txHash: string;
|
|
878
934
|
/**
|
|
879
|
-
* The
|
|
935
|
+
* The address that initiated the transaction which deployed this contract.
|
|
880
936
|
*/
|
|
881
|
-
|
|
937
|
+
deployerAddress: string;
|
|
882
938
|
/**
|
|
883
|
-
* The contract
|
|
939
|
+
* 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
940
|
*/
|
|
885
|
-
|
|
941
|
+
deployerContractAddress?: string;
|
|
886
942
|
};
|
|
887
943
|
|
|
888
|
-
type
|
|
944
|
+
type Erc1155Contract = {
|
|
945
|
+
/**
|
|
946
|
+
* The contract name.
|
|
947
|
+
*/
|
|
948
|
+
name?: string;
|
|
949
|
+
description?: string;
|
|
950
|
+
officialSite?: string;
|
|
951
|
+
email?: string;
|
|
952
|
+
logoAsset?: ImageAsset;
|
|
953
|
+
bannerAsset?: ImageAsset;
|
|
954
|
+
color?: string;
|
|
955
|
+
resourceLinks?: Array<ResourceLink>;
|
|
956
|
+
tags?: Array<string>;
|
|
957
|
+
/**
|
|
958
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
959
|
+
*/
|
|
960
|
+
address: string;
|
|
961
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
962
|
+
ercType: Erc1155Contract.ercType;
|
|
963
|
+
/**
|
|
964
|
+
* The contract symbol.
|
|
965
|
+
*/
|
|
966
|
+
symbol?: string;
|
|
967
|
+
pricingProviders?: PricingProviders;
|
|
968
|
+
};
|
|
969
|
+
declare namespace Erc1155Contract {
|
|
970
|
+
enum ercType {
|
|
971
|
+
ERC_1155 = "ERC-1155"
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
type Erc20Contract = {
|
|
976
|
+
/**
|
|
977
|
+
* The contract name.
|
|
978
|
+
*/
|
|
979
|
+
name?: string;
|
|
980
|
+
description?: string;
|
|
981
|
+
officialSite?: string;
|
|
982
|
+
email?: string;
|
|
983
|
+
logoAsset?: ImageAsset;
|
|
984
|
+
bannerAsset?: ImageAsset;
|
|
985
|
+
color?: string;
|
|
986
|
+
resourceLinks?: Array<ResourceLink>;
|
|
987
|
+
tags?: Array<string>;
|
|
988
|
+
/**
|
|
989
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
990
|
+
*/
|
|
991
|
+
address: string;
|
|
992
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
993
|
+
ercType: Erc20Contract.ercType;
|
|
994
|
+
/**
|
|
995
|
+
* The contract symbol.
|
|
996
|
+
*/
|
|
997
|
+
symbol?: string;
|
|
998
|
+
/**
|
|
999
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1000
|
+
*/
|
|
1001
|
+
decimals: number;
|
|
1002
|
+
pricingProviders?: PricingProviders;
|
|
1003
|
+
};
|
|
1004
|
+
declare namespace Erc20Contract {
|
|
1005
|
+
enum ercType {
|
|
1006
|
+
ERC_20 = "ERC-20"
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
type Erc721Contract = {
|
|
1011
|
+
/**
|
|
1012
|
+
* The contract name.
|
|
1013
|
+
*/
|
|
1014
|
+
name?: string;
|
|
1015
|
+
description?: string;
|
|
1016
|
+
officialSite?: string;
|
|
1017
|
+
email?: string;
|
|
1018
|
+
logoAsset?: ImageAsset;
|
|
1019
|
+
bannerAsset?: ImageAsset;
|
|
1020
|
+
color?: string;
|
|
1021
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1022
|
+
tags?: Array<string>;
|
|
1023
|
+
/**
|
|
1024
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1025
|
+
*/
|
|
1026
|
+
address: string;
|
|
1027
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1028
|
+
ercType: Erc721Contract.ercType;
|
|
1029
|
+
/**
|
|
1030
|
+
* The contract symbol.
|
|
1031
|
+
*/
|
|
1032
|
+
symbol?: string;
|
|
1033
|
+
};
|
|
1034
|
+
declare namespace Erc721Contract {
|
|
1035
|
+
enum ercType {
|
|
1036
|
+
ERC_721 = "ERC-721"
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
type UnknownContract = {
|
|
1041
|
+
/**
|
|
1042
|
+
* The contract name.
|
|
1043
|
+
*/
|
|
1044
|
+
name?: string;
|
|
1045
|
+
description?: string;
|
|
1046
|
+
officialSite?: string;
|
|
1047
|
+
email?: string;
|
|
1048
|
+
logoAsset?: ImageAsset;
|
|
1049
|
+
bannerAsset?: ImageAsset;
|
|
1050
|
+
color?: string;
|
|
1051
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1052
|
+
tags?: Array<string>;
|
|
1053
|
+
/**
|
|
1054
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1055
|
+
*/
|
|
1056
|
+
address: string;
|
|
1057
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1058
|
+
ercType: UnknownContract.ercType;
|
|
1059
|
+
};
|
|
1060
|
+
declare namespace UnknownContract {
|
|
1061
|
+
enum ercType {
|
|
1062
|
+
UNKNOWN = "UNKNOWN"
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
type UpdateContractResponse = {
|
|
1067
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
declare class EvmContractsService {
|
|
1071
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1072
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1073
|
+
/**
|
|
1074
|
+
* Get contract metadata
|
|
1075
|
+
* Gets metadata about the contract at the given address.
|
|
1076
|
+
* @returns any
|
|
1077
|
+
* @throws ApiError
|
|
1078
|
+
*/
|
|
1079
|
+
getContractMetadata({ chainId, address, }: {
|
|
1080
|
+
/**
|
|
1081
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1082
|
+
*/
|
|
1083
|
+
chainId: string;
|
|
1084
|
+
/**
|
|
1085
|
+
* Contract address on the relevant chain.
|
|
1086
|
+
*/
|
|
1087
|
+
address: string;
|
|
1088
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1089
|
+
/**
|
|
1090
|
+
* Update contract information
|
|
1091
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1092
|
+
* @returns UpdateContractResponse
|
|
1093
|
+
* @throws ApiError
|
|
1094
|
+
*/
|
|
1095
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1096
|
+
/**
|
|
1097
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1098
|
+
*/
|
|
1099
|
+
chainId: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* Contract address on the relevant chain.
|
|
1102
|
+
*/
|
|
1103
|
+
address: string;
|
|
1104
|
+
requestBody: ContractSubmissionBody;
|
|
1105
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
type Erc1155Token = {
|
|
1109
|
+
/**
|
|
1110
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1111
|
+
*/
|
|
1112
|
+
address: string;
|
|
1113
|
+
ercType: Erc1155Token.ercType;
|
|
1114
|
+
tokenId: string;
|
|
1115
|
+
tokenUri: string;
|
|
1116
|
+
metadata: Erc1155TokenMetadata;
|
|
1117
|
+
};
|
|
1118
|
+
declare namespace Erc1155Token {
|
|
1119
|
+
enum ercType {
|
|
1120
|
+
ERC_1155 = "ERC-1155"
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
type RichAddress = {
|
|
1125
|
+
/**
|
|
1126
|
+
* The contract name.
|
|
1127
|
+
*/
|
|
1128
|
+
name?: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* The contract symbol.
|
|
1131
|
+
*/
|
|
1132
|
+
symbol?: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1135
|
+
*/
|
|
1136
|
+
decimals?: number;
|
|
1137
|
+
/**
|
|
1138
|
+
* The logo uri for the address.
|
|
1139
|
+
*/
|
|
1140
|
+
logoUri?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1143
|
+
*/
|
|
1144
|
+
address: string;
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
type Erc1155TransferDetails = {
|
|
1148
|
+
from: RichAddress;
|
|
1149
|
+
to: RichAddress;
|
|
1150
|
+
logIndex: number;
|
|
1151
|
+
value: string;
|
|
1152
|
+
erc1155Token: Erc1155Token;
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
type Erc20Token = {
|
|
1156
|
+
/**
|
|
1157
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1158
|
+
*/
|
|
1159
|
+
address: string;
|
|
1160
|
+
/**
|
|
1161
|
+
* The contract name.
|
|
1162
|
+
*/
|
|
1163
|
+
name: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* The contract symbol.
|
|
1166
|
+
*/
|
|
1167
|
+
symbol: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1170
|
+
*/
|
|
1171
|
+
decimals: number;
|
|
1172
|
+
/**
|
|
1173
|
+
* The logo uri for the address.
|
|
1174
|
+
*/
|
|
1175
|
+
logoUri?: string;
|
|
1176
|
+
ercType: Erc20Token.ercType;
|
|
1177
|
+
/**
|
|
1178
|
+
* The token price, if available.
|
|
1179
|
+
*/
|
|
1180
|
+
price?: Money;
|
|
1181
|
+
};
|
|
1182
|
+
declare namespace Erc20Token {
|
|
1183
|
+
enum ercType {
|
|
1184
|
+
ERC_20 = "ERC-20"
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
type Erc20TransferDetails = {
|
|
1189
|
+
from: RichAddress;
|
|
1190
|
+
to: RichAddress;
|
|
1191
|
+
logIndex: number;
|
|
1192
|
+
value: string;
|
|
1193
|
+
erc20Token: Erc20Token;
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
type Erc721Token = {
|
|
1197
|
+
/**
|
|
1198
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1199
|
+
*/
|
|
1200
|
+
address: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* The contract name.
|
|
1203
|
+
*/
|
|
1204
|
+
name: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* The contract symbol.
|
|
1207
|
+
*/
|
|
1208
|
+
symbol: string;
|
|
1209
|
+
ercType: Erc721Token.ercType;
|
|
1210
|
+
tokenId: string;
|
|
1211
|
+
tokenUri: string;
|
|
1212
|
+
metadata: Erc721TokenMetadata;
|
|
1213
|
+
/**
|
|
1214
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1215
|
+
*/
|
|
1216
|
+
ownerAddress?: string;
|
|
1217
|
+
};
|
|
1218
|
+
declare namespace Erc721Token {
|
|
1219
|
+
enum ercType {
|
|
1220
|
+
ERC_721 = "ERC-721"
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
type Erc721TransferDetails = {
|
|
1225
|
+
from: RichAddress;
|
|
1226
|
+
to: RichAddress;
|
|
1227
|
+
logIndex: number;
|
|
1228
|
+
erc721Token: Erc721Token;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* 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.
|
|
1233
|
+
*/
|
|
1234
|
+
declare enum TransactionMethodType {
|
|
1235
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1236
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1237
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
type Method = {
|
|
1241
|
+
callType: TransactionMethodType;
|
|
1242
|
+
/**
|
|
1243
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1244
|
+
*/
|
|
1245
|
+
methodHash: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* 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'.
|
|
1248
|
+
*/
|
|
1249
|
+
methodName?: string;
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
type FullNativeTransactionDetails = {
|
|
889
1253
|
/**
|
|
890
1254
|
* The block number on the chain.
|
|
891
1255
|
*/
|
|
@@ -999,185 +1363,12 @@ type GetTransactionResponse = {
|
|
|
999
1363
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
1364
|
};
|
|
1001
1365
|
|
|
1002
|
-
type ContractDeploymentDetails = {
|
|
1003
|
-
txHash: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* The address that initiated the transaction which deployed this contract.
|
|
1006
|
-
*/
|
|
1007
|
-
deployerAddress: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1010
|
-
*/
|
|
1011
|
-
deployerContractAddress?: string;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
/**
|
|
1016
|
-
* INPUT ONLY
|
|
1017
|
-
*/
|
|
1018
|
-
assetId?: string;
|
|
1019
|
-
/**
|
|
1020
|
-
* OUTPUT ONLY
|
|
1021
|
-
*/
|
|
1022
|
-
imageUri?: string;
|
|
1023
|
-
};
|
|
1024
|
-
|
|
1025
|
-
declare enum ResourceLinkType {
|
|
1026
|
-
BLOG = "Blog",
|
|
1027
|
-
COIN_GECKO = "CoinGecko",
|
|
1028
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1029
|
-
DISCORD = "Discord",
|
|
1030
|
-
DOCUMENTATION = "Documentation",
|
|
1031
|
-
FACEBOOK = "Facebook",
|
|
1032
|
-
GITHUB = "Github",
|
|
1033
|
-
INSTAGRAM = "Instagram",
|
|
1034
|
-
LINKED_IN = "LinkedIn",
|
|
1035
|
-
MEDIUM = "Medium",
|
|
1036
|
-
REDDIT = "Reddit",
|
|
1037
|
-
SUPPORT = "Support",
|
|
1038
|
-
TELEGRAM = "Telegram",
|
|
1039
|
-
TIK_TOK = "TikTok",
|
|
1040
|
-
TWITTER = "Twitter",
|
|
1041
|
-
WEBSITE = "Website",
|
|
1042
|
-
WHITEPAPER = "Whitepaper",
|
|
1043
|
-
YOUTUBE = "Youtube"
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
type ResourceLink = {
|
|
1047
|
-
type: ResourceLinkType;
|
|
1048
|
-
url: string;
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
type Erc1155Contract = {
|
|
1052
|
-
/**
|
|
1053
|
-
* The contract name.
|
|
1054
|
-
*/
|
|
1055
|
-
name?: string;
|
|
1056
|
-
description?: string;
|
|
1057
|
-
officialSite?: string;
|
|
1058
|
-
email?: string;
|
|
1059
|
-
logoAsset?: ImageAsset;
|
|
1060
|
-
bannerAsset?: ImageAsset;
|
|
1061
|
-
color?: string;
|
|
1062
|
-
coingeckoCoinId?: string;
|
|
1063
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1064
|
-
tags?: Array<string>;
|
|
1065
|
-
/**
|
|
1066
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
|
-
*/
|
|
1068
|
-
address: string;
|
|
1069
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1070
|
-
ercType: Erc1155Contract.ercType;
|
|
1071
|
-
/**
|
|
1072
|
-
* The contract symbol.
|
|
1073
|
-
*/
|
|
1074
|
-
symbol?: string;
|
|
1075
|
-
};
|
|
1076
|
-
declare namespace Erc1155Contract {
|
|
1077
|
-
enum ercType {
|
|
1078
|
-
ERC_1155 = "ERC-1155"
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
type Erc20Contract = {
|
|
1083
|
-
/**
|
|
1084
|
-
* The contract name.
|
|
1085
|
-
*/
|
|
1086
|
-
name?: string;
|
|
1087
|
-
description?: string;
|
|
1088
|
-
officialSite?: string;
|
|
1089
|
-
email?: string;
|
|
1090
|
-
logoAsset?: ImageAsset;
|
|
1091
|
-
bannerAsset?: ImageAsset;
|
|
1092
|
-
color?: string;
|
|
1093
|
-
coingeckoCoinId?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1096
|
-
/**
|
|
1097
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1098
|
-
*/
|
|
1099
|
-
address: string;
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1102
|
-
/**
|
|
1103
|
-
* The contract symbol.
|
|
1104
|
-
*/
|
|
1105
|
-
symbol?: string;
|
|
1106
|
-
/**
|
|
1107
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
|
-
*/
|
|
1109
|
-
decimals: number;
|
|
1110
|
-
};
|
|
1111
|
-
declare namespace Erc20Contract {
|
|
1112
|
-
enum ercType {
|
|
1113
|
-
ERC_20 = "ERC-20"
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
type Erc721Contract = {
|
|
1118
|
-
/**
|
|
1119
|
-
* The contract name.
|
|
1120
|
-
*/
|
|
1121
|
-
name?: string;
|
|
1122
|
-
description?: string;
|
|
1123
|
-
officialSite?: string;
|
|
1124
|
-
email?: string;
|
|
1125
|
-
logoAsset?: ImageAsset;
|
|
1126
|
-
bannerAsset?: ImageAsset;
|
|
1127
|
-
color?: string;
|
|
1128
|
-
coingeckoCoinId?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1131
|
-
/**
|
|
1132
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1133
|
-
*/
|
|
1134
|
-
address: string;
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1137
|
-
/**
|
|
1138
|
-
* The contract symbol.
|
|
1139
|
-
*/
|
|
1140
|
-
symbol?: string;
|
|
1141
|
-
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
type UnknownContract = {
|
|
1149
|
-
/**
|
|
1150
|
-
* The contract name.
|
|
1151
|
-
*/
|
|
1152
|
-
name?: string;
|
|
1153
|
-
description?: string;
|
|
1154
|
-
officialSite?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
logoAsset?: ImageAsset;
|
|
1157
|
-
bannerAsset?: ImageAsset;
|
|
1158
|
-
color?: string;
|
|
1159
|
-
coingeckoCoinId?: string;
|
|
1160
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1161
|
-
tags?: Array<string>;
|
|
1162
|
-
/**
|
|
1163
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1164
|
-
*/
|
|
1165
|
-
address: string;
|
|
1166
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1167
|
-
ercType: UnknownContract.ercType;
|
|
1168
|
-
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
1366
|
type ListContractsResponse = {
|
|
1176
1367
|
/**
|
|
1177
1368
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1178
1369
|
*/
|
|
1179
1370
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1371
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1372
|
};
|
|
1182
1373
|
|
|
1183
1374
|
type Erc1155Transfer = {
|
|
@@ -1407,7 +1598,7 @@ type ListTransfersResponse = {
|
|
|
1407
1598
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1408
1599
|
*/
|
|
1409
1600
|
nextPageToken?: string;
|
|
1410
|
-
transfers:
|
|
1601
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1411
1602
|
};
|
|
1412
1603
|
|
|
1413
1604
|
declare enum SortOrder {
|
|
@@ -1431,7 +1622,7 @@ declare class EvmTransactionsService {
|
|
|
1431
1622
|
*/
|
|
1432
1623
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1433
1624
|
/**
|
|
1434
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1625
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1435
1626
|
*/
|
|
1436
1627
|
chainId: string;
|
|
1437
1628
|
/**
|
|
@@ -1449,23 +1640,23 @@ declare class EvmTransactionsService {
|
|
|
1449
1640
|
* @returns ListContractsResponse
|
|
1450
1641
|
* @throws ApiError
|
|
1451
1642
|
*/
|
|
1452
|
-
listContractDeployments({ chainId, address,
|
|
1643
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1453
1644
|
/**
|
|
1454
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1645
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1455
1646
|
*/
|
|
1456
1647
|
chainId: string;
|
|
1457
1648
|
/**
|
|
1458
1649
|
* A wallet address.
|
|
1459
1650
|
*/
|
|
1460
1651
|
address: string;
|
|
1461
|
-
/**
|
|
1462
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1463
|
-
*/
|
|
1464
|
-
pageSize?: number;
|
|
1465
1652
|
/**
|
|
1466
1653
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1467
1654
|
*/
|
|
1468
1655
|
pageToken?: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1658
|
+
*/
|
|
1659
|
+
pageSize?: number;
|
|
1469
1660
|
}): CancelablePromise<ListContractsResponse>;
|
|
1470
1661
|
/**
|
|
1471
1662
|
* List ERC transfers
|
|
@@ -1473,25 +1664,31 @@ declare class EvmTransactionsService {
|
|
|
1473
1664
|
* @returns ListTransfersResponse
|
|
1474
1665
|
* @throws ApiError
|
|
1475
1666
|
*/
|
|
1476
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1667
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1477
1668
|
/**
|
|
1478
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1669
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1479
1670
|
*/
|
|
1480
1671
|
chainId: string;
|
|
1481
1672
|
/**
|
|
1482
1673
|
* A wallet address.
|
|
1483
1674
|
*/
|
|
1484
1675
|
address: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* 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.
|
|
1678
|
+
*/
|
|
1485
1679
|
startBlock?: number;
|
|
1486
|
-
endBlock?: number;
|
|
1487
1680
|
/**
|
|
1488
|
-
* The
|
|
1681
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1489
1682
|
*/
|
|
1490
|
-
|
|
1683
|
+
endBlock?: number;
|
|
1491
1684
|
/**
|
|
1492
1685
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1493
1686
|
*/
|
|
1494
1687
|
pageToken?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1690
|
+
*/
|
|
1691
|
+
pageSize?: number;
|
|
1495
1692
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1496
1693
|
/**
|
|
1497
1694
|
* List transactions
|
|
@@ -1501,24 +1698,30 @@ declare class EvmTransactionsService {
|
|
|
1501
1698
|
* @returns ListTransactionDetailsResponse
|
|
1502
1699
|
* @throws ApiError
|
|
1503
1700
|
*/
|
|
1504
|
-
listTransactions({ chainId, address,
|
|
1701
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1505
1702
|
/**
|
|
1506
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1703
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1507
1704
|
*/
|
|
1508
1705
|
chainId: string;
|
|
1509
1706
|
/**
|
|
1510
1707
|
* A wallet address.
|
|
1511
1708
|
*/
|
|
1512
1709
|
address: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1712
|
+
*/
|
|
1713
|
+
pageToken?: string;
|
|
1513
1714
|
/**
|
|
1514
1715
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1515
1716
|
*/
|
|
1516
1717
|
pageSize?: number;
|
|
1517
1718
|
/**
|
|
1518
|
-
*
|
|
1719
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1519
1720
|
*/
|
|
1520
|
-
pageToken?: string;
|
|
1521
1721
|
startBlock?: number;
|
|
1722
|
+
/**
|
|
1723
|
+
* 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.
|
|
1724
|
+
*/
|
|
1522
1725
|
endBlock?: number;
|
|
1523
1726
|
/**
|
|
1524
1727
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -1531,25 +1734,31 @@ declare class EvmTransactionsService {
|
|
|
1531
1734
|
* @returns ListNativeTransactionsResponse
|
|
1532
1735
|
* @throws ApiError
|
|
1533
1736
|
*/
|
|
1534
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1737
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1535
1738
|
/**
|
|
1536
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1537
1740
|
*/
|
|
1538
1741
|
chainId: string;
|
|
1539
1742
|
/**
|
|
1540
1743
|
* A wallet address.
|
|
1541
1744
|
*/
|
|
1542
1745
|
address: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1748
|
+
*/
|
|
1543
1749
|
startBlock?: number;
|
|
1544
|
-
endBlock?: number;
|
|
1545
1750
|
/**
|
|
1546
|
-
* The
|
|
1751
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1547
1752
|
*/
|
|
1548
|
-
|
|
1753
|
+
endBlock?: number;
|
|
1549
1754
|
/**
|
|
1550
1755
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1551
1756
|
*/
|
|
1552
1757
|
pageToken?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1760
|
+
*/
|
|
1761
|
+
pageSize?: number;
|
|
1553
1762
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1554
1763
|
/**
|
|
1555
1764
|
* List ERC-20 transfers
|
|
@@ -1557,25 +1766,31 @@ declare class EvmTransactionsService {
|
|
|
1557
1766
|
* @returns ListErc20TransactionsResponse
|
|
1558
1767
|
* @throws ApiError
|
|
1559
1768
|
*/
|
|
1560
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1769
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1561
1770
|
/**
|
|
1562
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1563
1772
|
*/
|
|
1564
1773
|
chainId: string;
|
|
1565
1774
|
/**
|
|
1566
1775
|
* A wallet address.
|
|
1567
1776
|
*/
|
|
1568
1777
|
address: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1780
|
+
*/
|
|
1569
1781
|
startBlock?: number;
|
|
1570
|
-
endBlock?: number;
|
|
1571
1782
|
/**
|
|
1572
|
-
* The
|
|
1783
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1573
1784
|
*/
|
|
1574
|
-
|
|
1785
|
+
endBlock?: number;
|
|
1575
1786
|
/**
|
|
1576
1787
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1577
1788
|
*/
|
|
1578
1789
|
pageToken?: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1792
|
+
*/
|
|
1793
|
+
pageSize?: number;
|
|
1579
1794
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1580
1795
|
/**
|
|
1581
1796
|
* List ERC-721 transfers
|
|
@@ -1583,25 +1798,31 @@ declare class EvmTransactionsService {
|
|
|
1583
1798
|
* @returns ListErc721TransactionsResponse
|
|
1584
1799
|
* @throws ApiError
|
|
1585
1800
|
*/
|
|
1586
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1801
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1587
1802
|
/**
|
|
1588
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1589
1804
|
*/
|
|
1590
1805
|
chainId: string;
|
|
1591
1806
|
/**
|
|
1592
1807
|
* A wallet address.
|
|
1593
1808
|
*/
|
|
1594
1809
|
address: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1812
|
+
*/
|
|
1595
1813
|
startBlock?: number;
|
|
1596
|
-
endBlock?: number;
|
|
1597
1814
|
/**
|
|
1598
|
-
* The
|
|
1815
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1599
1816
|
*/
|
|
1600
|
-
|
|
1817
|
+
endBlock?: number;
|
|
1601
1818
|
/**
|
|
1602
1819
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1603
1820
|
*/
|
|
1604
1821
|
pageToken?: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1824
|
+
*/
|
|
1825
|
+
pageSize?: number;
|
|
1605
1826
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1606
1827
|
/**
|
|
1607
1828
|
* List ERC-1155 transfers
|
|
@@ -1609,25 +1830,31 @@ declare class EvmTransactionsService {
|
|
|
1609
1830
|
* @returns ListErc1155TransactionsResponse
|
|
1610
1831
|
* @throws ApiError
|
|
1611
1832
|
*/
|
|
1612
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1833
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1613
1834
|
/**
|
|
1614
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1835
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1615
1836
|
*/
|
|
1616
1837
|
chainId: string;
|
|
1617
1838
|
/**
|
|
1618
1839
|
* A wallet address.
|
|
1619
1840
|
*/
|
|
1620
1841
|
address: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* 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.
|
|
1844
|
+
*/
|
|
1621
1845
|
startBlock?: number;
|
|
1622
|
-
endBlock?: number;
|
|
1623
1846
|
/**
|
|
1624
|
-
* The
|
|
1847
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1625
1848
|
*/
|
|
1626
|
-
|
|
1849
|
+
endBlock?: number;
|
|
1627
1850
|
/**
|
|
1628
1851
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1629
1852
|
*/
|
|
1630
1853
|
pageToken?: string;
|
|
1854
|
+
/**
|
|
1855
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1856
|
+
*/
|
|
1857
|
+
pageSize?: number;
|
|
1631
1858
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1632
1859
|
/**
|
|
1633
1860
|
* List internal transactions
|
|
@@ -1637,25 +1864,31 @@ declare class EvmTransactionsService {
|
|
|
1637
1864
|
* @returns ListInternalTransactionsResponse
|
|
1638
1865
|
* @throws ApiError
|
|
1639
1866
|
*/
|
|
1640
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1867
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1641
1868
|
/**
|
|
1642
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1643
1870
|
*/
|
|
1644
1871
|
chainId: string;
|
|
1645
1872
|
/**
|
|
1646
1873
|
* A wallet address.
|
|
1647
1874
|
*/
|
|
1648
|
-
address: string;
|
|
1875
|
+
address: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* 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.
|
|
1878
|
+
*/
|
|
1649
1879
|
startBlock?: number;
|
|
1650
|
-
endBlock?: number;
|
|
1651
1880
|
/**
|
|
1652
|
-
* The
|
|
1881
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1653
1882
|
*/
|
|
1654
|
-
|
|
1883
|
+
endBlock?: number;
|
|
1655
1884
|
/**
|
|
1656
1885
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1657
1886
|
*/
|
|
1658
1887
|
pageToken?: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1890
|
+
*/
|
|
1891
|
+
pageSize?: number;
|
|
1659
1892
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1660
1893
|
/**
|
|
1661
1894
|
* Get transaction
|
|
@@ -1665,7 +1898,7 @@ declare class EvmTransactionsService {
|
|
|
1665
1898
|
*/
|
|
1666
1899
|
getTransaction({ chainId, txHash, }: {
|
|
1667
1900
|
/**
|
|
1668
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1669
1902
|
*/
|
|
1670
1903
|
chainId: string;
|
|
1671
1904
|
/**
|
|
@@ -1681,7 +1914,7 @@ declare class EvmTransactionsService {
|
|
|
1681
1914
|
*/
|
|
1682
1915
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1683
1916
|
/**
|
|
1684
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1917
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1685
1918
|
*/
|
|
1686
1919
|
chainId: string;
|
|
1687
1920
|
/**
|
|
@@ -1695,19 +1928,19 @@ declare class EvmTransactionsService {
|
|
|
1695
1928
|
* @returns ListNativeTransactionsResponse
|
|
1696
1929
|
* @throws ApiError
|
|
1697
1930
|
*/
|
|
1698
|
-
listLatestTransactions({ chainId,
|
|
1931
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1699
1932
|
/**
|
|
1700
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1933
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1701
1934
|
*/
|
|
1702
1935
|
chainId: string;
|
|
1703
|
-
/**
|
|
1704
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1705
|
-
*/
|
|
1706
|
-
pageSize?: number;
|
|
1707
1936
|
/**
|
|
1708
1937
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1709
1938
|
*/
|
|
1710
1939
|
pageToken?: string;
|
|
1940
|
+
/**
|
|
1941
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1942
|
+
*/
|
|
1943
|
+
pageSize?: number;
|
|
1711
1944
|
/**
|
|
1712
1945
|
* A status filter for listed transactions.
|
|
1713
1946
|
*/
|
|
@@ -1731,13 +1964,94 @@ declare class HealthCheckService {
|
|
|
1731
1964
|
}>;
|
|
1732
1965
|
}
|
|
1733
1966
|
|
|
1967
|
+
type ListNftTokens = {
|
|
1968
|
+
/**
|
|
1969
|
+
* 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.
|
|
1970
|
+
*/
|
|
1971
|
+
nextPageToken?: string;
|
|
1972
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1973
|
+
};
|
|
1974
|
+
|
|
1975
|
+
declare class NfTsService {
|
|
1976
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1977
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1978
|
+
/**
|
|
1979
|
+
* Reindex NFT metadata
|
|
1980
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1981
|
+
* @returns any
|
|
1982
|
+
* @throws ApiError
|
|
1983
|
+
*/
|
|
1984
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1985
|
+
/**
|
|
1986
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1987
|
+
*/
|
|
1988
|
+
chainId: string;
|
|
1989
|
+
/**
|
|
1990
|
+
* Contract address on the relevant chain.
|
|
1991
|
+
*/
|
|
1992
|
+
address: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* TokenId on the contract
|
|
1995
|
+
*/
|
|
1996
|
+
tokenId: string;
|
|
1997
|
+
}): CancelablePromise<any>;
|
|
1998
|
+
/**
|
|
1999
|
+
* List tokens
|
|
2000
|
+
* Lists tokens for an NFT contract.
|
|
2001
|
+
* @returns ListNftTokens
|
|
2002
|
+
* @throws ApiError
|
|
2003
|
+
*/
|
|
2004
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2005
|
+
/**
|
|
2006
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2007
|
+
*/
|
|
2008
|
+
chainId: string;
|
|
2009
|
+
/**
|
|
2010
|
+
* Contract address on the relevant chain.
|
|
2011
|
+
*/
|
|
2012
|
+
address: string;
|
|
2013
|
+
/**
|
|
2014
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2015
|
+
*/
|
|
2016
|
+
pageToken?: string;
|
|
2017
|
+
/**
|
|
2018
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2019
|
+
*/
|
|
2020
|
+
pageSize?: number;
|
|
2021
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2022
|
+
/**
|
|
2023
|
+
* Get token details
|
|
2024
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2025
|
+
* @returns any
|
|
2026
|
+
* @throws ApiError
|
|
2027
|
+
*/
|
|
2028
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2029
|
+
/**
|
|
2030
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2031
|
+
*/
|
|
2032
|
+
chainId: string;
|
|
2033
|
+
/**
|
|
2034
|
+
* Contract address on the relevant chain.
|
|
2035
|
+
*/
|
|
2036
|
+
address: string;
|
|
2037
|
+
/**
|
|
2038
|
+
* TokenId on the contract
|
|
2039
|
+
*/
|
|
2040
|
+
tokenId: string;
|
|
2041
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
1734
2044
|
type EvmNetworkOptions = {
|
|
1735
2045
|
addresses: Array<string>;
|
|
1736
2046
|
includeChains: Array<string>;
|
|
1737
2047
|
};
|
|
1738
2048
|
|
|
2049
|
+
declare enum EVMOperationType {
|
|
2050
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2051
|
+
}
|
|
2052
|
+
|
|
1739
2053
|
type CreateEvmTransactionExportRequest = {
|
|
1740
|
-
type:
|
|
2054
|
+
type: EVMOperationType;
|
|
1741
2055
|
firstDate: string;
|
|
1742
2056
|
lastDate: string;
|
|
1743
2057
|
/**
|
|
@@ -1750,20 +2064,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1750
2064
|
endDate: string;
|
|
1751
2065
|
options: EvmNetworkOptions;
|
|
1752
2066
|
};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
2067
|
+
|
|
2068
|
+
declare enum PrimaryNetworkOperationType {
|
|
2069
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2070
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1757
2072
|
}
|
|
1758
2073
|
|
|
1759
2074
|
type PrimaryNetworkOptions = {
|
|
1760
|
-
addresses
|
|
2075
|
+
addresses?: Array<string>;
|
|
1761
2076
|
cChainEvmAddresses?: Array<string>;
|
|
1762
2077
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1763
2078
|
};
|
|
1764
2079
|
|
|
1765
2080
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1766
|
-
type:
|
|
2081
|
+
type: PrimaryNetworkOperationType;
|
|
1767
2082
|
firstDate: string;
|
|
1768
2083
|
lastDate: string;
|
|
1769
2084
|
/**
|
|
@@ -1776,11 +2091,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1776
2091
|
endDate: string;
|
|
1777
2092
|
options: PrimaryNetworkOptions;
|
|
1778
2093
|
};
|
|
1779
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1780
|
-
enum type {
|
|
1781
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
2094
|
|
|
1785
2095
|
declare enum OperationStatus {
|
|
1786
2096
|
RUNNING = "RUNNING",
|
|
@@ -1790,8 +2100,10 @@ declare enum OperationStatus {
|
|
|
1790
2100
|
}
|
|
1791
2101
|
|
|
1792
2102
|
declare enum OperationType {
|
|
1793
|
-
|
|
1794
|
-
|
|
2103
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2104
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2105
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2106
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1795
2107
|
}
|
|
1796
2108
|
|
|
1797
2109
|
declare enum OperationStatusCode {
|
|
@@ -1825,17 +2137,6 @@ type OperationStatusResponse = {
|
|
|
1825
2137
|
declare class OperationsService {
|
|
1826
2138
|
readonly httpRequest: BaseHttpRequest;
|
|
1827
2139
|
constructor(httpRequest: BaseHttpRequest);
|
|
1828
|
-
/**
|
|
1829
|
-
* Create transaction export operation
|
|
1830
|
-
* Trigger a transaction export operation with given parameters.
|
|
1831
|
-
*
|
|
1832
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
1833
|
-
* @returns OperationStatusResponse
|
|
1834
|
-
* @throws ApiError
|
|
1835
|
-
*/
|
|
1836
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1837
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1838
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1839
2140
|
/**
|
|
1840
2141
|
* Get operation
|
|
1841
2142
|
* Gets operation details for the given operation id.
|
|
@@ -1848,6 +2149,17 @@ declare class OperationsService {
|
|
|
1848
2149
|
*/
|
|
1849
2150
|
operationId: string;
|
|
1850
2151
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2152
|
+
/**
|
|
2153
|
+
* Create transaction export operation
|
|
2154
|
+
* Trigger a transaction export operation with given parameters.
|
|
2155
|
+
*
|
|
2156
|
+
* 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.
|
|
2157
|
+
* @returns OperationStatusResponse
|
|
2158
|
+
* @throws ApiError
|
|
2159
|
+
*/
|
|
2160
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2161
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2162
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1851
2163
|
}
|
|
1852
2164
|
|
|
1853
2165
|
declare enum BlockchainIds {
|
|
@@ -1916,39 +2228,57 @@ type ListBlockchainsResponse = {
|
|
|
1916
2228
|
|
|
1917
2229
|
type ActiveDelegatorDetails = {
|
|
1918
2230
|
txHash: string;
|
|
2231
|
+
nodeId: string;
|
|
1919
2232
|
rewardAddresses: Array<string>;
|
|
1920
2233
|
amountDelegated: string;
|
|
1921
2234
|
delegationFee: string;
|
|
1922
2235
|
startTimestamp: number;
|
|
1923
2236
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
2237
|
estimatedGrossReward: string;
|
|
1926
2238
|
estimatedNetReward: string;
|
|
2239
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
2240
|
};
|
|
2241
|
+
declare namespace ActiveDelegatorDetails {
|
|
2242
|
+
enum delegationStatus {
|
|
2243
|
+
ACTIVE = "active"
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
1928
2246
|
|
|
1929
2247
|
type CompletedDelegatorDetails = {
|
|
1930
2248
|
txHash: string;
|
|
2249
|
+
nodeId: string;
|
|
1931
2250
|
rewardAddresses: Array<string>;
|
|
1932
2251
|
amountDelegated: string;
|
|
1933
2252
|
delegationFee: string;
|
|
1934
2253
|
startTimestamp: number;
|
|
1935
2254
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2255
|
grossReward: string;
|
|
1938
2256
|
netReward: string;
|
|
2257
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2258
|
};
|
|
2259
|
+
declare namespace CompletedDelegatorDetails {
|
|
2260
|
+
enum delegationStatus {
|
|
2261
|
+
COMPLETED = "completed"
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
1940
2264
|
|
|
1941
2265
|
type PendingDelegatorDetails = {
|
|
1942
2266
|
txHash: string;
|
|
2267
|
+
nodeId: string;
|
|
1943
2268
|
rewardAddresses: Array<string>;
|
|
1944
2269
|
amountDelegated: string;
|
|
1945
2270
|
delegationFee: string;
|
|
1946
2271
|
startTimestamp: number;
|
|
1947
2272
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2273
|
estimatedGrossReward: string;
|
|
1950
2274
|
estimatedNetReward: string;
|
|
2275
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2276
|
};
|
|
2277
|
+
declare namespace PendingDelegatorDetails {
|
|
2278
|
+
enum delegationStatus {
|
|
2279
|
+
PENDING = "pending"
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
1952
2282
|
|
|
1953
2283
|
type ListDelegatorDetailsResponse = {
|
|
1954
2284
|
/**
|
|
@@ -1965,13 +2295,44 @@ type BlockchainInfo = {
|
|
|
1965
2295
|
blockchainId: string;
|
|
1966
2296
|
};
|
|
1967
2297
|
|
|
2298
|
+
type SubnetOwnershipInfo = {
|
|
2299
|
+
/**
|
|
2300
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2301
|
+
*/
|
|
2302
|
+
locktime: number;
|
|
2303
|
+
/**
|
|
2304
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2305
|
+
*/
|
|
2306
|
+
threshold: number;
|
|
2307
|
+
/**
|
|
2308
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2309
|
+
*/
|
|
2310
|
+
addresses: Array<string>;
|
|
2311
|
+
};
|
|
2312
|
+
|
|
1968
2313
|
type Subnet = {
|
|
1969
2314
|
createBlockTimestamp: number;
|
|
1970
2315
|
createBlockIndex: string;
|
|
1971
2316
|
subnetId: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2319
|
+
* @deprecated
|
|
2320
|
+
*/
|
|
1972
2321
|
ownerAddresses: Array<string>;
|
|
2322
|
+
/**
|
|
2323
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2324
|
+
* @deprecated
|
|
2325
|
+
*/
|
|
1973
2326
|
threshold: number;
|
|
2327
|
+
/**
|
|
2328
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2329
|
+
* @deprecated
|
|
2330
|
+
*/
|
|
1974
2331
|
locktime: number;
|
|
2332
|
+
/**
|
|
2333
|
+
* Latest subnet owner details for this Subnet.
|
|
2334
|
+
*/
|
|
2335
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
1975
2336
|
blockchains: Array<BlockchainInfo>;
|
|
1976
2337
|
};
|
|
1977
2338
|
|
|
@@ -1986,49 +2347,104 @@ type ListSubnetsResponse = {
|
|
|
1986
2347
|
type Rewards = {
|
|
1987
2348
|
validationRewardAmount: string;
|
|
1988
2349
|
delegationRewardAmount: string;
|
|
2350
|
+
rewardAddresses?: Array<string>;
|
|
2351
|
+
rewardTxHash?: string;
|
|
1989
2352
|
};
|
|
1990
2353
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2354
|
+
type ValidatorHealthDetails = {
|
|
2355
|
+
/**
|
|
2356
|
+
* Percent of requests responded to in last polling.
|
|
2357
|
+
*/
|
|
2358
|
+
reachabilityPercent: number;
|
|
2359
|
+
/**
|
|
2360
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2361
|
+
*/
|
|
2362
|
+
benchedPChainRequestsPercent: number;
|
|
2363
|
+
/**
|
|
2364
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2365
|
+
*/
|
|
2366
|
+
benchedXChainRequestsPercent: number;
|
|
2367
|
+
/**
|
|
2368
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2369
|
+
*/
|
|
2370
|
+
benchedCChainRequestsPercent: number;
|
|
2371
|
+
};
|
|
1996
2372
|
|
|
1997
2373
|
type ActiveValidatorDetails = {
|
|
2374
|
+
txHash: string;
|
|
1998
2375
|
nodeId: string;
|
|
2376
|
+
subnetId: string;
|
|
1999
2377
|
amountStaked: string;
|
|
2000
|
-
delegationFee
|
|
2378
|
+
delegationFee?: string;
|
|
2001
2379
|
startTimestamp: number;
|
|
2002
2380
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2381
|
stakePercentage: number;
|
|
2005
2382
|
delegatorCount: number;
|
|
2006
|
-
amountDelegated
|
|
2383
|
+
amountDelegated?: string;
|
|
2007
2384
|
uptimePerformance: number;
|
|
2008
|
-
avalancheGoVersion
|
|
2009
|
-
delegationCapacity
|
|
2385
|
+
avalancheGoVersion?: string;
|
|
2386
|
+
delegationCapacity?: string;
|
|
2010
2387
|
potentialRewards: Rewards;
|
|
2388
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2389
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2011
2390
|
};
|
|
2391
|
+
declare namespace ActiveValidatorDetails {
|
|
2392
|
+
enum validationStatus {
|
|
2393
|
+
ACTIVE = "active"
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2012
2396
|
|
|
2013
2397
|
type CompletedValidatorDetails = {
|
|
2398
|
+
txHash: string;
|
|
2014
2399
|
nodeId: string;
|
|
2400
|
+
subnetId: string;
|
|
2015
2401
|
amountStaked: string;
|
|
2016
|
-
delegationFee
|
|
2402
|
+
delegationFee?: string;
|
|
2017
2403
|
startTimestamp: number;
|
|
2018
2404
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2405
|
delegatorCount: number;
|
|
2021
2406
|
rewards: Rewards;
|
|
2407
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2408
|
};
|
|
2409
|
+
declare namespace CompletedValidatorDetails {
|
|
2410
|
+
enum validationStatus {
|
|
2411
|
+
COMPLETED = "completed"
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2023
2414
|
|
|
2024
2415
|
type PendingValidatorDetails = {
|
|
2416
|
+
txHash: string;
|
|
2025
2417
|
nodeId: string;
|
|
2418
|
+
subnetId: string;
|
|
2026
2419
|
amountStaked: string;
|
|
2027
|
-
delegationFee
|
|
2420
|
+
delegationFee?: string;
|
|
2028
2421
|
startTimestamp: number;
|
|
2029
2422
|
endTimestamp: number;
|
|
2030
|
-
validationStatus:
|
|
2423
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2031
2424
|
};
|
|
2425
|
+
declare namespace PendingValidatorDetails {
|
|
2426
|
+
enum validationStatus {
|
|
2427
|
+
PENDING = "pending"
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
type RemovedValidatorDetails = {
|
|
2432
|
+
txHash: string;
|
|
2433
|
+
nodeId: string;
|
|
2434
|
+
subnetId: string;
|
|
2435
|
+
amountStaked: string;
|
|
2436
|
+
delegationFee?: string;
|
|
2437
|
+
startTimestamp: number;
|
|
2438
|
+
endTimestamp: number;
|
|
2439
|
+
removeTxHash: string;
|
|
2440
|
+
removeTimestamp: number;
|
|
2441
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2442
|
+
};
|
|
2443
|
+
declare namespace RemovedValidatorDetails {
|
|
2444
|
+
enum validationStatus {
|
|
2445
|
+
REMOVED = "removed"
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2032
2448
|
|
|
2033
2449
|
type ListValidatorDetailsResponse = {
|
|
2034
2450
|
/**
|
|
@@ -2036,9 +2452,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2036
2452
|
*/
|
|
2037
2453
|
nextPageToken?: string;
|
|
2038
2454
|
/**
|
|
2039
|
-
* The list of
|
|
2455
|
+
* The list of validator Details.
|
|
2040
2456
|
*/
|
|
2041
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2457
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2042
2458
|
};
|
|
2043
2459
|
|
|
2044
2460
|
declare enum Network {
|
|
@@ -2046,6 +2462,29 @@ declare enum Network {
|
|
|
2046
2462
|
FUJI = "fuji"
|
|
2047
2463
|
}
|
|
2048
2464
|
|
|
2465
|
+
declare enum ValidationStatusType {
|
|
2466
|
+
COMPLETED = "completed",
|
|
2467
|
+
ACTIVE = "active",
|
|
2468
|
+
PENDING = "pending",
|
|
2469
|
+
REMOVED = "removed"
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2474
|
+
*/
|
|
2475
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2476
|
+
FIXED = "fixed",
|
|
2477
|
+
VARIABLE = "variable"
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2482
|
+
*/
|
|
2483
|
+
declare enum PrimaryNetworkAssetType {
|
|
2484
|
+
SECP256K1 = "secp256k1",
|
|
2485
|
+
NFT = "nft"
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2049
2488
|
type XChainAssetDetails = {
|
|
2050
2489
|
/**
|
|
2051
2490
|
* Unique ID for an asset.
|
|
@@ -2063,18 +2502,12 @@ type XChainAssetDetails = {
|
|
|
2063
2502
|
* Denomination of this asset to represent fungibility.
|
|
2064
2503
|
*/
|
|
2065
2504
|
denomination: number;
|
|
2066
|
-
|
|
2067
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2068
|
-
*/
|
|
2069
|
-
type: string;
|
|
2505
|
+
type: PrimaryNetworkAssetType;
|
|
2070
2506
|
/**
|
|
2071
2507
|
* Timestamp in seconds this asset was created on.
|
|
2072
2508
|
*/
|
|
2073
2509
|
createdAtTimestamp: number;
|
|
2074
|
-
|
|
2075
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2076
|
-
*/
|
|
2077
|
-
cap: string;
|
|
2510
|
+
cap: PrimaryNetworkAssetCap;
|
|
2078
2511
|
};
|
|
2079
2512
|
|
|
2080
2513
|
declare enum XChainId {
|
|
@@ -2140,19 +2573,19 @@ declare class PrimaryNetworkService {
|
|
|
2140
2573
|
* @returns ListBlockchainsResponse
|
|
2141
2574
|
* @throws ApiError
|
|
2142
2575
|
*/
|
|
2143
|
-
listBlockchains({ network,
|
|
2576
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2144
2577
|
/**
|
|
2145
2578
|
* Either mainnet or a testnet.
|
|
2146
2579
|
*/
|
|
2147
2580
|
network: Network;
|
|
2148
|
-
/**
|
|
2149
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2150
|
-
*/
|
|
2151
|
-
pageSize?: number;
|
|
2152
2581
|
/**
|
|
2153
2582
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2154
2583
|
*/
|
|
2155
2584
|
pageToken?: string;
|
|
2585
|
+
/**
|
|
2586
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2587
|
+
*/
|
|
2588
|
+
pageSize?: number;
|
|
2156
2589
|
/**
|
|
2157
2590
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2158
2591
|
*/
|
|
@@ -2164,19 +2597,19 @@ declare class PrimaryNetworkService {
|
|
|
2164
2597
|
* @returns ListSubnetsResponse
|
|
2165
2598
|
* @throws ApiError
|
|
2166
2599
|
*/
|
|
2167
|
-
listSubnets({ network,
|
|
2600
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2168
2601
|
/**
|
|
2169
2602
|
* Either mainnet or a testnet.
|
|
2170
2603
|
*/
|
|
2171
2604
|
network: Network;
|
|
2172
|
-
/**
|
|
2173
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2174
|
-
*/
|
|
2175
|
-
pageSize?: number;
|
|
2176
2605
|
/**
|
|
2177
2606
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2178
2607
|
*/
|
|
2179
2608
|
pageToken?: string;
|
|
2609
|
+
/**
|
|
2610
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2611
|
+
*/
|
|
2612
|
+
pageSize?: number;
|
|
2180
2613
|
/**
|
|
2181
2614
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2182
2615
|
*/
|
|
@@ -2188,19 +2621,19 @@ declare class PrimaryNetworkService {
|
|
|
2188
2621
|
* @returns ListValidatorDetailsResponse
|
|
2189
2622
|
* @throws ApiError
|
|
2190
2623
|
*/
|
|
2191
|
-
listValidators({ network,
|
|
2624
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2192
2625
|
/**
|
|
2193
2626
|
* Either mainnet or a testnet.
|
|
2194
2627
|
*/
|
|
2195
2628
|
network: Network;
|
|
2196
|
-
/**
|
|
2197
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2198
|
-
*/
|
|
2199
|
-
pageSize?: number;
|
|
2200
2629
|
/**
|
|
2201
2630
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2202
2631
|
*/
|
|
2203
2632
|
pageToken?: string;
|
|
2633
|
+
/**
|
|
2634
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2635
|
+
*/
|
|
2636
|
+
pageSize?: number;
|
|
2204
2637
|
/**
|
|
2205
2638
|
* A comma separated list of node ids to filter by.
|
|
2206
2639
|
*/
|
|
@@ -2214,9 +2647,33 @@ declare class PrimaryNetworkService {
|
|
|
2214
2647
|
*/
|
|
2215
2648
|
validationStatus?: ValidationStatusType;
|
|
2216
2649
|
/**
|
|
2217
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2650
|
+
* 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
|
|
2651
|
+
*/
|
|
2652
|
+
minDelegationCapacity?: string;
|
|
2653
|
+
/**
|
|
2654
|
+
* 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.
|
|
2655
|
+
*/
|
|
2656
|
+
maxDelegationCapacity?: string;
|
|
2657
|
+
/**
|
|
2658
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2659
|
+
*/
|
|
2660
|
+
minTimeRemaining?: number;
|
|
2661
|
+
/**
|
|
2662
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2663
|
+
*/
|
|
2664
|
+
maxTimeRemaining?: number;
|
|
2665
|
+
/**
|
|
2666
|
+
* 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.
|
|
2667
|
+
*/
|
|
2668
|
+
minFeePercentage?: number;
|
|
2669
|
+
/**
|
|
2670
|
+
* 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.
|
|
2671
|
+
*/
|
|
2672
|
+
maxFeePercentage?: number;
|
|
2673
|
+
/**
|
|
2674
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2218
2675
|
*/
|
|
2219
|
-
|
|
2676
|
+
subnetId?: any;
|
|
2220
2677
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2221
2678
|
/**
|
|
2222
2679
|
* Get single validator details
|
|
@@ -2224,7 +2681,7 @@ declare class PrimaryNetworkService {
|
|
|
2224
2681
|
* @returns ListValidatorDetailsResponse
|
|
2225
2682
|
* @throws ApiError
|
|
2226
2683
|
*/
|
|
2227
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2684
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2228
2685
|
/**
|
|
2229
2686
|
* Either mainnet or a testnet.
|
|
2230
2687
|
*/
|
|
@@ -2233,14 +2690,14 @@ declare class PrimaryNetworkService {
|
|
|
2233
2690
|
* A primary network (P or X chain) nodeId.
|
|
2234
2691
|
*/
|
|
2235
2692
|
nodeId: string;
|
|
2236
|
-
/**
|
|
2237
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2238
|
-
*/
|
|
2239
|
-
pageSize?: number;
|
|
2240
2693
|
/**
|
|
2241
2694
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2242
2695
|
*/
|
|
2243
2696
|
pageToken?: string;
|
|
2697
|
+
/**
|
|
2698
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2699
|
+
*/
|
|
2700
|
+
pageSize?: number;
|
|
2244
2701
|
/**
|
|
2245
2702
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2246
2703
|
*/
|
|
@@ -2256,23 +2713,23 @@ declare class PrimaryNetworkService {
|
|
|
2256
2713
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2714
|
* @throws ApiError
|
|
2258
2715
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2716
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2260
2717
|
/**
|
|
2261
2718
|
* Either mainnet or a testnet.
|
|
2262
2719
|
*/
|
|
2263
2720
|
network: Network;
|
|
2264
2721
|
/**
|
|
2265
|
-
* A
|
|
2722
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2266
2723
|
*/
|
|
2267
|
-
|
|
2724
|
+
pageToken?: string;
|
|
2268
2725
|
/**
|
|
2269
2726
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2727
|
*/
|
|
2271
2728
|
pageSize?: number;
|
|
2272
2729
|
/**
|
|
2273
|
-
* A
|
|
2730
|
+
* A comma separated list of reward addresses to filter by.
|
|
2274
2731
|
*/
|
|
2275
|
-
|
|
2732
|
+
rewardAddresses?: string;
|
|
2276
2733
|
/**
|
|
2277
2734
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2278
2735
|
*/
|
|
@@ -2281,10 +2738,6 @@ declare class PrimaryNetworkService {
|
|
|
2281
2738
|
* Delegation status of the node.
|
|
2282
2739
|
*/
|
|
2283
2740
|
delegationStatus?: DelegationStatusType;
|
|
2284
|
-
/**
|
|
2285
|
-
* A comma separated list of reward addresses to filter by.
|
|
2286
|
-
*/
|
|
2287
|
-
rewardAddresses?: string;
|
|
2288
2741
|
/**
|
|
2289
2742
|
* A comma separated list of node ids to filter by.
|
|
2290
2743
|
*/
|
|
@@ -2320,10 +2773,7 @@ type CChainSharedAssetBalance = {
|
|
|
2320
2773
|
* Denomination of this asset to represent fungibility.
|
|
2321
2774
|
*/
|
|
2322
2775
|
denomination: number;
|
|
2323
|
-
|
|
2324
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2325
|
-
*/
|
|
2326
|
-
type: string;
|
|
2776
|
+
type: PrimaryNetworkAssetType;
|
|
2327
2777
|
/**
|
|
2328
2778
|
* Amount of the asset.
|
|
2329
2779
|
*/
|
|
@@ -2358,49 +2808,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2358
2808
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2359
2809
|
};
|
|
2360
2810
|
|
|
2361
|
-
type
|
|
2811
|
+
type AggregatedAssetAmount = {
|
|
2812
|
+
/**
|
|
2813
|
+
* Unique ID for an asset.
|
|
2814
|
+
*/
|
|
2362
2815
|
assetId: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* Name of this asset.
|
|
2818
|
+
*/
|
|
2819
|
+
name: string;
|
|
2820
|
+
/**
|
|
2821
|
+
* Symbol for this asset (max 4 characters).
|
|
2822
|
+
*/
|
|
2823
|
+
symbol: string;
|
|
2824
|
+
/**
|
|
2825
|
+
* Denomination of this asset to represent fungibility.
|
|
2826
|
+
*/
|
|
2827
|
+
denomination: number;
|
|
2828
|
+
type: PrimaryNetworkAssetType;
|
|
2829
|
+
/**
|
|
2830
|
+
* Amount of the asset.
|
|
2831
|
+
*/
|
|
2363
2832
|
amount: string;
|
|
2833
|
+
utxoCount: number;
|
|
2364
2834
|
};
|
|
2365
2835
|
|
|
2366
2836
|
type PChainSharedAsset = {
|
|
2837
|
+
/**
|
|
2838
|
+
* Unique ID for an asset.
|
|
2839
|
+
*/
|
|
2367
2840
|
assetId: string;
|
|
2841
|
+
/**
|
|
2842
|
+
* Name of this asset.
|
|
2843
|
+
*/
|
|
2844
|
+
name: string;
|
|
2845
|
+
/**
|
|
2846
|
+
* Symbol for this asset (max 4 characters).
|
|
2847
|
+
*/
|
|
2848
|
+
symbol: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Denomination of this asset to represent fungibility.
|
|
2851
|
+
*/
|
|
2852
|
+
denomination: number;
|
|
2853
|
+
type: PrimaryNetworkAssetType;
|
|
2854
|
+
/**
|
|
2855
|
+
* Amount of the asset.
|
|
2856
|
+
*/
|
|
2368
2857
|
amount: string;
|
|
2858
|
+
utxoCount: number;
|
|
2369
2859
|
sharedWithChainId: string;
|
|
2370
2860
|
status: string;
|
|
2371
2861
|
};
|
|
2372
2862
|
|
|
2373
2863
|
type PChainBalance = {
|
|
2374
2864
|
/**
|
|
2375
|
-
* A list of objects containing P-chain Asset
|
|
2865
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2376
2866
|
*/
|
|
2377
|
-
unlockedUnstaked: Array<
|
|
2867
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2378
2868
|
/**
|
|
2379
|
-
* A list of objects containing P-chain Asset
|
|
2869
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2380
2870
|
*/
|
|
2381
|
-
unlockedStaked: Array<
|
|
2871
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2382
2872
|
/**
|
|
2383
|
-
* A list of objects containing P-chain Asset
|
|
2873
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2384
2874
|
*/
|
|
2385
|
-
lockedPlatform: Array<
|
|
2875
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2386
2876
|
/**
|
|
2387
|
-
* A list of objects containing P-chain Asset
|
|
2877
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2388
2878
|
*/
|
|
2389
|
-
lockedStakeable: Array<
|
|
2879
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2390
2880
|
/**
|
|
2391
|
-
* A list of objects containing P-chain Asset
|
|
2881
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2392
2882
|
*/
|
|
2393
|
-
lockedStaked: Array<
|
|
2883
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2394
2884
|
/**
|
|
2395
|
-
* A list of objects containing P-chain Asset
|
|
2885
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2396
2886
|
*/
|
|
2397
|
-
pendingStaked: Array<
|
|
2887
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2398
2888
|
/**
|
|
2399
|
-
* A list of objects containing P-chain Asset
|
|
2889
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2400
2890
|
*/
|
|
2401
2891
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2402
2892
|
/**
|
|
2403
|
-
* A list of objects containing P-chain Asset
|
|
2893
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2404
2894
|
*/
|
|
2405
2895
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2406
2896
|
};
|
|
@@ -2410,34 +2900,6 @@ type ListPChainBalancesResponse = {
|
|
|
2410
2900
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2411
2901
|
};
|
|
2412
2902
|
|
|
2413
|
-
type XChainAssetBalance = {
|
|
2414
|
-
/**
|
|
2415
|
-
* Unique ID for an asset.
|
|
2416
|
-
*/
|
|
2417
|
-
assetId: string;
|
|
2418
|
-
/**
|
|
2419
|
-
* Name of this asset.
|
|
2420
|
-
*/
|
|
2421
|
-
name: string;
|
|
2422
|
-
/**
|
|
2423
|
-
* Symbol for this asset (max 4 characters).
|
|
2424
|
-
*/
|
|
2425
|
-
symbol: string;
|
|
2426
|
-
/**
|
|
2427
|
-
* Denomination of this asset to represent fungibility.
|
|
2428
|
-
*/
|
|
2429
|
-
denomination: number;
|
|
2430
|
-
/**
|
|
2431
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2432
|
-
*/
|
|
2433
|
-
type: string;
|
|
2434
|
-
/**
|
|
2435
|
-
* Amount of the asset.
|
|
2436
|
-
*/
|
|
2437
|
-
amount: string;
|
|
2438
|
-
utxoCount: number;
|
|
2439
|
-
};
|
|
2440
|
-
|
|
2441
2903
|
type XChainSharedAssetBalance = {
|
|
2442
2904
|
/**
|
|
2443
2905
|
* Unique ID for an asset.
|
|
@@ -2455,10 +2917,7 @@ type XChainSharedAssetBalance = {
|
|
|
2455
2917
|
* Denomination of this asset to represent fungibility.
|
|
2456
2918
|
*/
|
|
2457
2919
|
denomination: number;
|
|
2458
|
-
|
|
2459
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2460
|
-
*/
|
|
2461
|
-
type: string;
|
|
2920
|
+
type: PrimaryNetworkAssetType;
|
|
2462
2921
|
/**
|
|
2463
2922
|
* Amount of the asset.
|
|
2464
2923
|
*/
|
|
@@ -2471,11 +2930,11 @@ type XChainBalances = {
|
|
|
2471
2930
|
/**
|
|
2472
2931
|
* A list of objects containing X-chain Asset balance information.
|
|
2473
2932
|
*/
|
|
2474
|
-
locked: Array<
|
|
2933
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2475
2934
|
/**
|
|
2476
2935
|
* A list of objects containing X-chain Asset balance information.
|
|
2477
2936
|
*/
|
|
2478
|
-
unlocked: Array<
|
|
2937
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2479
2938
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2480
2939
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2481
2940
|
};
|
|
@@ -2533,6 +2992,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2533
2992
|
txCount: number;
|
|
2534
2993
|
transactions: Array<string>;
|
|
2535
2994
|
blockSizeBytes: number;
|
|
2995
|
+
currentSupply?: string;
|
|
2536
2996
|
proposerDetails?: ProposerDetails;
|
|
2537
2997
|
};
|
|
2538
2998
|
|
|
@@ -2545,6 +3005,7 @@ type PrimaryNetworkBlock = {
|
|
|
2545
3005
|
txCount: number;
|
|
2546
3006
|
transactions: Array<string>;
|
|
2547
3007
|
blockSizeBytes: number;
|
|
3008
|
+
currentSupply?: string;
|
|
2548
3009
|
proposerDetails?: ProposerDetails;
|
|
2549
3010
|
};
|
|
2550
3011
|
|
|
@@ -2586,7 +3047,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2586
3047
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2587
3048
|
* @throws ApiError
|
|
2588
3049
|
*/
|
|
2589
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3050
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2590
3051
|
/**
|
|
2591
3052
|
* A primary network blockchain id or alias.
|
|
2592
3053
|
*/
|
|
@@ -2599,14 +3060,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2599
3060
|
* A primary network (P or X chain) nodeId.
|
|
2600
3061
|
*/
|
|
2601
3062
|
nodeId: string;
|
|
2602
|
-
/**
|
|
2603
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2604
|
-
*/
|
|
2605
|
-
pageSize?: number;
|
|
2606
3063
|
/**
|
|
2607
3064
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2608
3065
|
*/
|
|
2609
3066
|
pageToken?: string;
|
|
3067
|
+
/**
|
|
3068
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3069
|
+
*/
|
|
3070
|
+
pageSize?: number;
|
|
2610
3071
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2611
3072
|
/**
|
|
2612
3073
|
* List latest blocks
|
|
@@ -2614,7 +3075,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2614
3075
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2615
3076
|
* @throws ApiError
|
|
2616
3077
|
*/
|
|
2617
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3078
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2618
3079
|
/**
|
|
2619
3080
|
* A primary network blockchain id or alias.
|
|
2620
3081
|
*/
|
|
@@ -2623,20 +3084,49 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2623
3084
|
* Either mainnet or a testnet.
|
|
2624
3085
|
*/
|
|
2625
3086
|
network: Network;
|
|
2626
|
-
/**
|
|
2627
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2628
|
-
*/
|
|
2629
|
-
pageSize?: number;
|
|
2630
3087
|
/**
|
|
2631
3088
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2632
3089
|
*/
|
|
2633
3090
|
pageToken?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3093
|
+
*/
|
|
3094
|
+
pageSize?: number;
|
|
2634
3095
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2635
3096
|
}
|
|
2636
3097
|
|
|
3098
|
+
type AssetWithPriceInfo = {
|
|
3099
|
+
/**
|
|
3100
|
+
* Unique ID for an asset.
|
|
3101
|
+
*/
|
|
3102
|
+
assetId: string;
|
|
3103
|
+
/**
|
|
3104
|
+
* Name of this asset.
|
|
3105
|
+
*/
|
|
3106
|
+
name: string;
|
|
3107
|
+
/**
|
|
3108
|
+
* Symbol for this asset (max 4 characters).
|
|
3109
|
+
*/
|
|
3110
|
+
symbol: string;
|
|
3111
|
+
/**
|
|
3112
|
+
* Denomination of this asset to represent fungibility.
|
|
3113
|
+
*/
|
|
3114
|
+
denomination: number;
|
|
3115
|
+
type: PrimaryNetworkAssetType;
|
|
3116
|
+
/**
|
|
3117
|
+
* Amount of the asset.
|
|
3118
|
+
*/
|
|
3119
|
+
amount: string;
|
|
3120
|
+
/**
|
|
3121
|
+
* 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.
|
|
3122
|
+
*/
|
|
3123
|
+
historicalPrice?: Money;
|
|
3124
|
+
};
|
|
3125
|
+
|
|
2637
3126
|
declare enum RewardType {
|
|
2638
3127
|
VALIDATOR = "VALIDATOR",
|
|
2639
|
-
DELEGATOR = "DELEGATOR"
|
|
3128
|
+
DELEGATOR = "DELEGATOR",
|
|
3129
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2640
3130
|
}
|
|
2641
3131
|
|
|
2642
3132
|
type HistoricalReward = {
|
|
@@ -2652,10 +3142,7 @@ type HistoricalReward = {
|
|
|
2652
3142
|
rewardType: RewardType;
|
|
2653
3143
|
utxoId: string;
|
|
2654
3144
|
outputIndex: number;
|
|
2655
|
-
|
|
2656
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2657
|
-
*/
|
|
2658
|
-
reward: PChainAsset;
|
|
3145
|
+
reward: AssetWithPriceInfo;
|
|
2659
3146
|
rewardTxHash: string;
|
|
2660
3147
|
};
|
|
2661
3148
|
|
|
@@ -2667,6 +3154,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2667
3154
|
historicalRewards: Array<HistoricalReward>;
|
|
2668
3155
|
};
|
|
2669
3156
|
|
|
3157
|
+
type AssetAmount = {
|
|
3158
|
+
/**
|
|
3159
|
+
* Unique ID for an asset.
|
|
3160
|
+
*/
|
|
3161
|
+
assetId: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* Name of this asset.
|
|
3164
|
+
*/
|
|
3165
|
+
name: string;
|
|
3166
|
+
/**
|
|
3167
|
+
* Symbol for this asset (max 4 characters).
|
|
3168
|
+
*/
|
|
3169
|
+
symbol: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* Denomination of this asset to represent fungibility.
|
|
3172
|
+
*/
|
|
3173
|
+
denomination: number;
|
|
3174
|
+
type: PrimaryNetworkAssetType;
|
|
3175
|
+
/**
|
|
3176
|
+
* Amount of the asset.
|
|
3177
|
+
*/
|
|
3178
|
+
amount: string;
|
|
3179
|
+
};
|
|
3180
|
+
|
|
2670
3181
|
type PendingReward = {
|
|
2671
3182
|
/**
|
|
2672
3183
|
* An array of P-Chain wallet addresses.
|
|
@@ -2680,9 +3191,9 @@ type PendingReward = {
|
|
|
2680
3191
|
rewardType: RewardType;
|
|
2681
3192
|
progress: number;
|
|
2682
3193
|
/**
|
|
2683
|
-
* An object containing P-chain Asset
|
|
3194
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2684
3195
|
*/
|
|
2685
|
-
estimatedReward:
|
|
3196
|
+
estimatedReward: AssetAmount;
|
|
2686
3197
|
};
|
|
2687
3198
|
|
|
2688
3199
|
type ListPendingRewardsResponse = {
|
|
@@ -2702,23 +3213,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2702
3213
|
* @returns ListPendingRewardsResponse
|
|
2703
3214
|
* @throws ApiError
|
|
2704
3215
|
*/
|
|
2705
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3216
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2706
3217
|
/**
|
|
2707
3218
|
* Either mainnet or a testnet.
|
|
2708
3219
|
*/
|
|
2709
3220
|
network: Network;
|
|
2710
3221
|
/**
|
|
2711
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3222
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
2712
3223
|
*/
|
|
2713
3224
|
addresses?: string;
|
|
3225
|
+
/**
|
|
3226
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3227
|
+
*/
|
|
3228
|
+
pageToken?: string;
|
|
2714
3229
|
/**
|
|
2715
3230
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2716
3231
|
*/
|
|
2717
3232
|
pageSize?: number;
|
|
2718
3233
|
/**
|
|
2719
|
-
* A
|
|
3234
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2720
3235
|
*/
|
|
2721
|
-
|
|
3236
|
+
nodeIds?: string;
|
|
2722
3237
|
/**
|
|
2723
3238
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2724
3239
|
*/
|
|
@@ -2730,64 +3245,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2730
3245
|
* @returns ListHistoricalRewardsResponse
|
|
2731
3246
|
* @throws ApiError
|
|
2732
3247
|
*/
|
|
2733
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3248
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2734
3249
|
/**
|
|
2735
3250
|
* Either mainnet or a testnet.
|
|
2736
3251
|
*/
|
|
2737
3252
|
network: Network;
|
|
2738
3253
|
/**
|
|
2739
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3254
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
2740
3255
|
*/
|
|
2741
3256
|
addresses?: string;
|
|
3257
|
+
/**
|
|
3258
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3259
|
+
*/
|
|
3260
|
+
pageToken?: string;
|
|
2742
3261
|
/**
|
|
2743
3262
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2744
3263
|
*/
|
|
2745
3264
|
pageSize?: number;
|
|
2746
3265
|
/**
|
|
2747
|
-
* A
|
|
3266
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2748
3267
|
*/
|
|
2749
|
-
|
|
3268
|
+
nodeIds?: string;
|
|
2750
3269
|
/**
|
|
2751
3270
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2752
3271
|
*/
|
|
2753
3272
|
sortOrder?: SortOrder;
|
|
3273
|
+
/**
|
|
3274
|
+
* The currency that return values should use. Defaults to USD.
|
|
3275
|
+
*/
|
|
3276
|
+
currency?: CurrencyCode;
|
|
2754
3277
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2755
3278
|
}
|
|
2756
3279
|
|
|
2757
|
-
type Asset = {
|
|
2758
|
-
/**
|
|
2759
|
-
* Unique ID for an asset.
|
|
2760
|
-
*/
|
|
2761
|
-
assetId: string;
|
|
2762
|
-
/**
|
|
2763
|
-
* Name of this asset.
|
|
2764
|
-
*/
|
|
2765
|
-
name: string;
|
|
2766
|
-
/**
|
|
2767
|
-
* Symbol for this asset (max 4 characters).
|
|
2768
|
-
*/
|
|
2769
|
-
symbol: string;
|
|
2770
|
-
/**
|
|
2771
|
-
* Denomination of this asset to represent fungibility.
|
|
2772
|
-
*/
|
|
2773
|
-
denomination: number;
|
|
2774
|
-
/**
|
|
2775
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2776
|
-
*/
|
|
2777
|
-
type: string;
|
|
2778
|
-
/**
|
|
2779
|
-
* Amount of the asset.
|
|
2780
|
-
*/
|
|
2781
|
-
amount: string;
|
|
2782
|
-
};
|
|
2783
|
-
|
|
2784
3280
|
type UtxoCredential = {
|
|
2785
3281
|
/**
|
|
2786
|
-
* Signature provided to consume the output
|
|
3282
|
+
* Signature provided to consume the output.
|
|
2787
3283
|
*/
|
|
2788
3284
|
signature?: string;
|
|
2789
3285
|
/**
|
|
2790
|
-
* Public key associated with the signature
|
|
3286
|
+
* Public key associated with the signature.
|
|
2791
3287
|
*/
|
|
2792
3288
|
publicKey?: string;
|
|
2793
3289
|
};
|
|
@@ -2798,9 +3294,9 @@ type EVMInput = {
|
|
|
2798
3294
|
*/
|
|
2799
3295
|
fromAddress: string;
|
|
2800
3296
|
/**
|
|
2801
|
-
*
|
|
3297
|
+
* AssetAmount details for the asset being transferred.
|
|
2802
3298
|
*/
|
|
2803
|
-
asset:
|
|
3299
|
+
asset: AssetAmount;
|
|
2804
3300
|
/**
|
|
2805
3301
|
* Credentials that signed this transaction.
|
|
2806
3302
|
*/
|
|
@@ -2809,66 +3305,66 @@ type EVMInput = {
|
|
|
2809
3305
|
|
|
2810
3306
|
type Utxo = {
|
|
2811
3307
|
/**
|
|
2812
|
-
*
|
|
3308
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2813
3309
|
*/
|
|
2814
|
-
|
|
2815
|
-
asset:
|
|
3310
|
+
addresses: Array<string>;
|
|
3311
|
+
asset: AssetAmount;
|
|
2816
3312
|
/**
|
|
2817
|
-
*
|
|
3313
|
+
* Blockchain ID on which this output is consumed on.
|
|
2818
3314
|
*/
|
|
2819
|
-
|
|
3315
|
+
consumedOnChainId: string;
|
|
2820
3316
|
/**
|
|
2821
|
-
*
|
|
3317
|
+
* Transaction ID that consumed this output.
|
|
2822
3318
|
*/
|
|
2823
|
-
|
|
3319
|
+
consumingTxHash?: string;
|
|
2824
3320
|
/**
|
|
2825
|
-
* Blockchain ID on which this output is
|
|
3321
|
+
* Blockchain ID on which this output is created on.
|
|
2826
3322
|
*/
|
|
2827
|
-
|
|
3323
|
+
createdOnChainId: string;
|
|
2828
3324
|
/**
|
|
2829
|
-
*
|
|
3325
|
+
* UTXO ID for this output.
|
|
2830
3326
|
*/
|
|
2831
|
-
|
|
3327
|
+
utxoId: string;
|
|
2832
3328
|
/**
|
|
2833
|
-
*
|
|
3329
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2834
3330
|
*/
|
|
2835
|
-
|
|
3331
|
+
consumingTxTimestamp?: number;
|
|
2836
3332
|
/**
|
|
2837
|
-
*
|
|
3333
|
+
* Transaction ID that created this output.
|
|
2838
3334
|
*/
|
|
2839
|
-
|
|
3335
|
+
creationTxHash: string;
|
|
2840
3336
|
/**
|
|
2841
|
-
*
|
|
3337
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2842
3338
|
*/
|
|
2843
|
-
|
|
3339
|
+
credentials?: Array<UtxoCredential>;
|
|
2844
3340
|
/**
|
|
2845
|
-
*
|
|
3341
|
+
* Index representing the minting set for the NFT mint output.
|
|
2846
3342
|
*/
|
|
2847
|
-
|
|
3343
|
+
groupId?: number;
|
|
2848
3344
|
/**
|
|
2849
3345
|
* Locktime in seconds after which this output can be consumed.
|
|
2850
3346
|
*/
|
|
2851
3347
|
locktime: number;
|
|
2852
3348
|
/**
|
|
2853
|
-
*
|
|
3349
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2854
3350
|
*/
|
|
2855
|
-
|
|
3351
|
+
outputIndex: string;
|
|
2856
3352
|
/**
|
|
2857
|
-
*
|
|
3353
|
+
* Hex encoded data for NFT assets.
|
|
2858
3354
|
*/
|
|
2859
|
-
|
|
3355
|
+
payload?: string;
|
|
2860
3356
|
/**
|
|
2861
|
-
*
|
|
3357
|
+
* Minimum number of signatures required to consume this output.
|
|
2862
3358
|
*/
|
|
2863
|
-
|
|
3359
|
+
threshold: number;
|
|
2864
3360
|
/**
|
|
2865
|
-
*
|
|
3361
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2866
3362
|
*/
|
|
2867
|
-
|
|
3363
|
+
timestamp: number;
|
|
2868
3364
|
/**
|
|
2869
|
-
*
|
|
3365
|
+
* Type of output.
|
|
2870
3366
|
*/
|
|
2871
|
-
|
|
3367
|
+
utxoType: string;
|
|
2872
3368
|
};
|
|
2873
3369
|
|
|
2874
3370
|
type CChainExportTransaction = {
|
|
@@ -2895,11 +3391,11 @@ type CChainExportTransaction = {
|
|
|
2895
3391
|
/**
|
|
2896
3392
|
* Assets unlocked by inputs of this transaction.
|
|
2897
3393
|
*/
|
|
2898
|
-
amountUnlocked: Array<
|
|
3394
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2899
3395
|
/**
|
|
2900
3396
|
* Assets created by outputs of this transaction.
|
|
2901
3397
|
*/
|
|
2902
|
-
amountCreated: Array<
|
|
3398
|
+
amountCreated: Array<AssetAmount>;
|
|
2903
3399
|
/**
|
|
2904
3400
|
* Source chain for an atomic transaction.
|
|
2905
3401
|
*/
|
|
@@ -2930,9 +3426,9 @@ type EVMOutput = {
|
|
|
2930
3426
|
*/
|
|
2931
3427
|
toAddress: string;
|
|
2932
3428
|
/**
|
|
2933
|
-
*
|
|
3429
|
+
* AssetAmount details for the asset being transferred.
|
|
2934
3430
|
*/
|
|
2935
|
-
asset:
|
|
3431
|
+
asset: AssetAmount;
|
|
2936
3432
|
};
|
|
2937
3433
|
|
|
2938
3434
|
type CChainImportTransaction = {
|
|
@@ -2959,11 +3455,11 @@ type CChainImportTransaction = {
|
|
|
2959
3455
|
/**
|
|
2960
3456
|
* Assets unlocked by inputs of this transaction.
|
|
2961
3457
|
*/
|
|
2962
|
-
amountUnlocked: Array<
|
|
3458
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2963
3459
|
/**
|
|
2964
3460
|
* Assets created by outputs of this transaction.
|
|
2965
3461
|
*/
|
|
2966
|
-
amountCreated: Array<
|
|
3462
|
+
amountCreated: Array<AssetAmount>;
|
|
2967
3463
|
/**
|
|
2968
3464
|
* Source chain for an atomic transaction.
|
|
2969
3465
|
*/
|
|
@@ -2999,16 +3495,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2999
3495
|
|
|
3000
3496
|
declare enum PChainTransactionType {
|
|
3001
3497
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3002
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3003
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3004
3498
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3005
|
-
|
|
3006
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3499
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3007
3500
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3008
3501
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3009
3502
|
IMPORT_TX = "ImportTx",
|
|
3010
3503
|
EXPORT_TX = "ExportTx",
|
|
3011
3504
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3505
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3506
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3507
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3508
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3509
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3510
|
+
BASE_TX = "BaseTx",
|
|
3511
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3012
3512
|
UNKNOWN = "UNKNOWN"
|
|
3013
3513
|
}
|
|
3014
3514
|
|
|
@@ -3019,29 +3519,48 @@ declare enum UtxoType {
|
|
|
3019
3519
|
|
|
3020
3520
|
type PChainUtxo = {
|
|
3021
3521
|
/**
|
|
3022
|
-
*
|
|
3522
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3023
3523
|
*/
|
|
3024
3524
|
addresses: Array<string>;
|
|
3525
|
+
asset: AssetAmount;
|
|
3526
|
+
/**
|
|
3527
|
+
* Blockchain ID on which this output is consumed on.
|
|
3528
|
+
*/
|
|
3529
|
+
consumedOnChainId: string;
|
|
3530
|
+
/**
|
|
3531
|
+
* Transaction ID that consumed this output.
|
|
3532
|
+
*/
|
|
3533
|
+
consumingTxHash?: string;
|
|
3534
|
+
/**
|
|
3535
|
+
* Blockchain ID on which this output is created on.
|
|
3536
|
+
*/
|
|
3537
|
+
createdOnChainId: string;
|
|
3538
|
+
/**
|
|
3539
|
+
* UTXO ID for this output.
|
|
3540
|
+
*/
|
|
3025
3541
|
utxoId: string;
|
|
3026
|
-
|
|
3027
|
-
|
|
3542
|
+
/**
|
|
3543
|
+
* @deprecated
|
|
3544
|
+
*/
|
|
3545
|
+
amount: string;
|
|
3546
|
+
/**
|
|
3547
|
+
* @deprecated
|
|
3548
|
+
*/
|
|
3549
|
+
assetId: string;
|
|
3028
3550
|
blockNumber: string;
|
|
3029
3551
|
blockTimestamp: number;
|
|
3030
|
-
consumingTxHash?: string;
|
|
3031
|
-
consumingBlockTimestamp?: number;
|
|
3032
3552
|
consumingBlockNumber?: string;
|
|
3033
|
-
|
|
3034
|
-
utxoType: UtxoType;
|
|
3035
|
-
amount: string;
|
|
3036
|
-
stakeableLocktime?: number;
|
|
3553
|
+
consumingBlockTimestamp?: number;
|
|
3037
3554
|
platformLocktime?: number;
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3555
|
+
outputIndex: number;
|
|
3556
|
+
rewardType?: RewardType;
|
|
3557
|
+
stakeableLocktime?: number;
|
|
3041
3558
|
staked?: boolean;
|
|
3042
|
-
|
|
3559
|
+
threshold?: number;
|
|
3560
|
+
txHash: string;
|
|
3043
3561
|
utxoEndTimestamp?: number;
|
|
3044
|
-
|
|
3562
|
+
utxoStartTimestamp?: number;
|
|
3563
|
+
utxoType: UtxoType;
|
|
3045
3564
|
};
|
|
3046
3565
|
|
|
3047
3566
|
type PChainTransaction = {
|
|
@@ -3067,17 +3586,17 @@ type PChainTransaction = {
|
|
|
3067
3586
|
*/
|
|
3068
3587
|
destinationChain?: string;
|
|
3069
3588
|
/**
|
|
3070
|
-
* A list of objects containing P-chain Asset
|
|
3589
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3071
3590
|
*/
|
|
3072
|
-
value: Array<
|
|
3591
|
+
value: Array<AssetAmount>;
|
|
3073
3592
|
/**
|
|
3074
|
-
* A list of objects containing P-chain Asset
|
|
3593
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3075
3594
|
*/
|
|
3076
|
-
amountBurned: Array<
|
|
3595
|
+
amountBurned: Array<AssetAmount>;
|
|
3077
3596
|
/**
|
|
3078
|
-
* A list of objects containing P-chain Asset
|
|
3597
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3079
3598
|
*/
|
|
3080
|
-
amountStaked: Array<
|
|
3599
|
+
amountStaked: Array<AssetAmount>;
|
|
3081
3600
|
/**
|
|
3082
3601
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3083
3602
|
*/
|
|
@@ -3103,11 +3622,16 @@ type PChainTransaction = {
|
|
|
3103
3622
|
*/
|
|
3104
3623
|
estimatedReward?: string;
|
|
3105
3624
|
rewardTxHash?: string;
|
|
3625
|
+
rewardAddresses?: Array<string>;
|
|
3106
3626
|
memo?: string;
|
|
3107
3627
|
/**
|
|
3108
3628
|
* Present for RewardValidatorTx
|
|
3109
3629
|
*/
|
|
3110
3630
|
stakingTxHash?: string;
|
|
3631
|
+
/**
|
|
3632
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3633
|
+
*/
|
|
3634
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3111
3635
|
};
|
|
3112
3636
|
|
|
3113
3637
|
type ListPChainTransactionsResponse = {
|
|
@@ -3119,6 +3643,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3119
3643
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3120
3644
|
};
|
|
3121
3645
|
|
|
3646
|
+
/**
|
|
3647
|
+
* Type of transaction.
|
|
3648
|
+
*/
|
|
3649
|
+
declare enum XChainTransactionType {
|
|
3650
|
+
BASE_TX = "BaseTx",
|
|
3651
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3652
|
+
OPERATION_TX = "OperationTx",
|
|
3653
|
+
IMPORT_TX = "ImportTx",
|
|
3654
|
+
EXPORT_TX = "ExportTx",
|
|
3655
|
+
UNKNOWN = "UNKNOWN"
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3122
3658
|
type XChainLinearTransaction = {
|
|
3123
3659
|
/**
|
|
3124
3660
|
* Unique ID for this transaction.
|
|
@@ -3132,10 +3668,7 @@ type XChainLinearTransaction = {
|
|
|
3132
3668
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3133
3669
|
*/
|
|
3134
3670
|
timestamp: number;
|
|
3135
|
-
|
|
3136
|
-
* Type of transaction.
|
|
3137
|
-
*/
|
|
3138
|
-
txType: string;
|
|
3671
|
+
txType: XChainTransactionType;
|
|
3139
3672
|
/**
|
|
3140
3673
|
* Hex encoded memo bytes for this transaction.
|
|
3141
3674
|
*/
|
|
@@ -3145,11 +3678,11 @@ type XChainLinearTransaction = {
|
|
|
3145
3678
|
/**
|
|
3146
3679
|
* Assets unlocked by inputs of this transaction.
|
|
3147
3680
|
*/
|
|
3148
|
-
amountUnlocked: Array<
|
|
3681
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3149
3682
|
/**
|
|
3150
3683
|
* Assets created by outputs of this transaction.
|
|
3151
3684
|
*/
|
|
3152
|
-
amountCreated: Array<
|
|
3685
|
+
amountCreated: Array<AssetAmount>;
|
|
3153
3686
|
/**
|
|
3154
3687
|
* Source chain for an atomic transaction.
|
|
3155
3688
|
*/
|
|
@@ -3159,7 +3692,7 @@ type XChainLinearTransaction = {
|
|
|
3159
3692
|
*/
|
|
3160
3693
|
destinationChain?: string;
|
|
3161
3694
|
/**
|
|
3162
|
-
*
|
|
3695
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3163
3696
|
*/
|
|
3164
3697
|
assetCreated?: XChainAssetDetails;
|
|
3165
3698
|
/**
|
|
@@ -3209,10 +3742,7 @@ type XChainNonLinearTransaction = {
|
|
|
3209
3742
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3210
3743
|
*/
|
|
3211
3744
|
timestamp: number;
|
|
3212
|
-
|
|
3213
|
-
* Type of transaction.
|
|
3214
|
-
*/
|
|
3215
|
-
txType: string;
|
|
3745
|
+
txType: XChainTransactionType;
|
|
3216
3746
|
/**
|
|
3217
3747
|
* Hex encoded memo bytes for this transaction.
|
|
3218
3748
|
*/
|
|
@@ -3222,11 +3752,11 @@ type XChainNonLinearTransaction = {
|
|
|
3222
3752
|
/**
|
|
3223
3753
|
* Assets unlocked by inputs of this transaction.
|
|
3224
3754
|
*/
|
|
3225
|
-
amountUnlocked: Array<
|
|
3755
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3226
3756
|
/**
|
|
3227
3757
|
* Assets created by outputs of this transaction.
|
|
3228
3758
|
*/
|
|
3229
|
-
amountCreated: Array<
|
|
3759
|
+
amountCreated: Array<AssetAmount>;
|
|
3230
3760
|
/**
|
|
3231
3761
|
* Source chain for an atomic transaction.
|
|
3232
3762
|
*/
|
|
@@ -3236,7 +3766,7 @@ type XChainNonLinearTransaction = {
|
|
|
3236
3766
|
*/
|
|
3237
3767
|
destinationChain?: string;
|
|
3238
3768
|
/**
|
|
3239
|
-
*
|
|
3769
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3240
3770
|
*/
|
|
3241
3771
|
assetCreated?: XChainAssetDetails;
|
|
3242
3772
|
/**
|
|
@@ -3270,18 +3800,21 @@ declare enum PChainId {
|
|
|
3270
3800
|
|
|
3271
3801
|
declare enum PrimaryNetworkTxType {
|
|
3272
3802
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3273
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3274
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3275
3803
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3276
|
-
|
|
3277
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3804
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3278
3805
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3279
3806
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3280
3807
|
IMPORT_TX = "ImportTx",
|
|
3281
3808
|
EXPORT_TX = "ExportTx",
|
|
3282
3809
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3283
|
-
|
|
3810
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3811
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3812
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3813
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3814
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3284
3815
|
BASE_TX = "BaseTx",
|
|
3816
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3817
|
+
UNKNOWN = "UNKNOWN",
|
|
3285
3818
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3286
3819
|
OPERATION_TX = "OperationTx"
|
|
3287
3820
|
}
|
|
@@ -3311,11 +3844,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3844
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3845
|
/**
|
|
3313
3846
|
* List latest transactions
|
|
3314
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3847
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3848
|
+
*
|
|
3849
|
+
* 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.
|
|
3850
|
+
*
|
|
3851
|
+
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3315
3852
|
* @returns any
|
|
3316
3853
|
* @throws ApiError
|
|
3317
3854
|
*/
|
|
3318
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3855
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3319
3856
|
/**
|
|
3320
3857
|
* A primary network blockchain id or alias.
|
|
3321
3858
|
*/
|
|
@@ -3340,14 +3877,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3340
3877
|
* Query param for retrieving items before a specific timestamp.
|
|
3341
3878
|
*/
|
|
3342
3879
|
endTimestamp?: number;
|
|
3343
|
-
/**
|
|
3344
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3345
|
-
*/
|
|
3346
|
-
pageSize?: number;
|
|
3347
3880
|
/**
|
|
3348
3881
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3349
3882
|
*/
|
|
3350
3883
|
pageToken?: string;
|
|
3884
|
+
/**
|
|
3885
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3886
|
+
*/
|
|
3887
|
+
pageSize?: number;
|
|
3351
3888
|
/**
|
|
3352
3889
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3353
3890
|
*/
|
|
@@ -3359,7 +3896,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3359
3896
|
* @returns ListPChainTransactionsResponse
|
|
3360
3897
|
* @throws ApiError
|
|
3361
3898
|
*/
|
|
3362
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3899
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3363
3900
|
/**
|
|
3364
3901
|
* A primary network blockchain id or alias.
|
|
3365
3902
|
*/
|
|
@@ -3384,14 +3921,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3384
3921
|
* Query param for retrieving items before a specific timestamp.
|
|
3385
3922
|
*/
|
|
3386
3923
|
endTimestamp?: number;
|
|
3387
|
-
/**
|
|
3388
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3389
|
-
*/
|
|
3390
|
-
pageSize?: number;
|
|
3391
3924
|
/**
|
|
3392
3925
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3393
3926
|
*/
|
|
3394
3927
|
pageToken?: string;
|
|
3928
|
+
/**
|
|
3929
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3930
|
+
*/
|
|
3931
|
+
pageSize?: number;
|
|
3395
3932
|
/**
|
|
3396
3933
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3397
3934
|
*/
|
|
@@ -3403,7 +3940,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3403
3940
|
* @returns ListXChainTransactionsResponse
|
|
3404
3941
|
* @throws ApiError
|
|
3405
3942
|
*/
|
|
3406
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3943
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3407
3944
|
/**
|
|
3408
3945
|
* A primary network blockchain id or alias.
|
|
3409
3946
|
*/
|
|
@@ -3428,14 +3965,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3428
3965
|
* Query param for retrieving items before a specific timestamp.
|
|
3429
3966
|
*/
|
|
3430
3967
|
endTimestamp?: number;
|
|
3431
|
-
/**
|
|
3432
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3433
|
-
*/
|
|
3434
|
-
pageSize?: number;
|
|
3435
3968
|
/**
|
|
3436
3969
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3437
3970
|
*/
|
|
3438
3971
|
pageToken?: string;
|
|
3972
|
+
/**
|
|
3973
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3974
|
+
*/
|
|
3975
|
+
pageSize?: number;
|
|
3439
3976
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3440
3977
|
}
|
|
3441
3978
|
|
|
@@ -3466,7 +4003,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3466
4003
|
* @returns any
|
|
3467
4004
|
* @throws ApiError
|
|
3468
4005
|
*/
|
|
3469
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4006
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3470
4007
|
/**
|
|
3471
4008
|
* A primary network blockchain id or alias.
|
|
3472
4009
|
*/
|
|
@@ -3479,14 +4016,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3479
4016
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3480
4017
|
*/
|
|
3481
4018
|
addresses?: string;
|
|
3482
|
-
/**
|
|
3483
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3484
|
-
*/
|
|
3485
|
-
pageSize?: number;
|
|
3486
4019
|
/**
|
|
3487
4020
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3488
4021
|
*/
|
|
3489
4022
|
pageToken?: string;
|
|
4023
|
+
/**
|
|
4024
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4025
|
+
*/
|
|
4026
|
+
pageSize?: number;
|
|
3490
4027
|
/**
|
|
3491
4028
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3492
4029
|
*/
|
|
@@ -3531,7 +4068,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3531
4068
|
* @returns ListXChainVerticesResponse
|
|
3532
4069
|
* @throws ApiError
|
|
3533
4070
|
*/
|
|
3534
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4071
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3535
4072
|
/**
|
|
3536
4073
|
* A primary network blockchain id or alias.
|
|
3537
4074
|
*/
|
|
@@ -3540,14 +4077,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3540
4077
|
* Either mainnet or a testnet.
|
|
3541
4078
|
*/
|
|
3542
4079
|
network: Network;
|
|
3543
|
-
/**
|
|
3544
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3545
|
-
*/
|
|
3546
|
-
pageSize?: number;
|
|
3547
4080
|
/**
|
|
3548
4081
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3549
4082
|
*/
|
|
3550
4083
|
pageToken?: string;
|
|
4084
|
+
/**
|
|
4085
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4086
|
+
*/
|
|
4087
|
+
pageSize?: number;
|
|
3551
4088
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3552
4089
|
/**
|
|
3553
4090
|
* Get vertex
|
|
@@ -3575,7 +4112,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3575
4112
|
* @returns ListXChainVerticesResponse
|
|
3576
4113
|
* @throws ApiError
|
|
3577
4114
|
*/
|
|
3578
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4115
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3579
4116
|
/**
|
|
3580
4117
|
* The height of a vertex.
|
|
3581
4118
|
*/
|
|
@@ -3588,28 +4125,373 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3588
4125
|
* Either mainnet or a testnet.
|
|
3589
4126
|
*/
|
|
3590
4127
|
network: Network;
|
|
4128
|
+
/**
|
|
4129
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4130
|
+
*/
|
|
4131
|
+
pageToken?: string;
|
|
4132
|
+
/**
|
|
4133
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4134
|
+
*/
|
|
4135
|
+
pageSize?: number;
|
|
4136
|
+
/**
|
|
4137
|
+
* 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.
|
|
4138
|
+
*/
|
|
4139
|
+
sortOrder?: SortOrder;
|
|
4140
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
type TeleporterDestinationTransaction = {
|
|
4144
|
+
txHash: string;
|
|
4145
|
+
timestamp: number;
|
|
4146
|
+
gasSpent: string;
|
|
4147
|
+
rewardRedeemer: string;
|
|
4148
|
+
delivererAddress: string;
|
|
4149
|
+
};
|
|
4150
|
+
|
|
4151
|
+
type TeleporterReceipt = {
|
|
4152
|
+
receivedMessageNonce: string;
|
|
4153
|
+
relayerRewardAddress: string;
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
type TeleporterRewardDetails = {
|
|
4157
|
+
/**
|
|
4158
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4159
|
+
*/
|
|
4160
|
+
address: string;
|
|
4161
|
+
/**
|
|
4162
|
+
* The contract name.
|
|
4163
|
+
*/
|
|
4164
|
+
name: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* The contract symbol.
|
|
4167
|
+
*/
|
|
4168
|
+
symbol: string;
|
|
4169
|
+
/**
|
|
4170
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4171
|
+
*/
|
|
4172
|
+
decimals: number;
|
|
4173
|
+
/**
|
|
4174
|
+
* The logo uri for the address.
|
|
4175
|
+
*/
|
|
4176
|
+
logoUri?: string;
|
|
4177
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4178
|
+
/**
|
|
4179
|
+
* The token price, if available.
|
|
4180
|
+
*/
|
|
4181
|
+
price?: Money;
|
|
4182
|
+
value: string;
|
|
4183
|
+
};
|
|
4184
|
+
declare namespace TeleporterRewardDetails {
|
|
4185
|
+
enum ercType {
|
|
4186
|
+
ERC_20 = "ERC-20"
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
|
|
4190
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4191
|
+
messageId: string;
|
|
4192
|
+
teleporterContractAddress: string;
|
|
4193
|
+
sourceBlockchainId: string;
|
|
4194
|
+
destinationBlockchainId: string;
|
|
4195
|
+
messageNonce: string;
|
|
4196
|
+
from: string;
|
|
4197
|
+
to: string;
|
|
4198
|
+
data?: string;
|
|
4199
|
+
messageExecuted: boolean;
|
|
4200
|
+
receipts: Array<TeleporterReceipt>;
|
|
4201
|
+
receiptDelivered: boolean;
|
|
4202
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4203
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4204
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4205
|
+
};
|
|
4206
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4207
|
+
enum status {
|
|
4208
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
type TeleporterSourceTransaction = {
|
|
4213
|
+
txHash: string;
|
|
4214
|
+
timestamp: number;
|
|
4215
|
+
gasSpent: string;
|
|
4216
|
+
};
|
|
4217
|
+
|
|
4218
|
+
type DeliveredTeleporterMessage = {
|
|
4219
|
+
messageId: string;
|
|
4220
|
+
teleporterContractAddress: string;
|
|
4221
|
+
sourceBlockchainId: string;
|
|
4222
|
+
destinationBlockchainId: string;
|
|
4223
|
+
messageNonce: string;
|
|
4224
|
+
from: string;
|
|
4225
|
+
to: string;
|
|
4226
|
+
data?: string;
|
|
4227
|
+
messageExecuted: boolean;
|
|
4228
|
+
receipts: Array<TeleporterReceipt>;
|
|
4229
|
+
receiptDelivered: boolean;
|
|
4230
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4231
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4232
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4233
|
+
status: DeliveredTeleporterMessage.status;
|
|
4234
|
+
};
|
|
4235
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4236
|
+
enum status {
|
|
4237
|
+
DELIVERED = "delivered"
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
type NextPageToken = {
|
|
4242
|
+
/**
|
|
4243
|
+
* 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.
|
|
4244
|
+
*/
|
|
4245
|
+
nextPageToken?: string;
|
|
4246
|
+
};
|
|
4247
|
+
|
|
4248
|
+
type PendingTeleporterMessage = {
|
|
4249
|
+
messageId: string;
|
|
4250
|
+
teleporterContractAddress: string;
|
|
4251
|
+
sourceBlockchainId: string;
|
|
4252
|
+
destinationBlockchainId: string;
|
|
4253
|
+
messageNonce: string;
|
|
4254
|
+
from: string;
|
|
4255
|
+
to: string;
|
|
4256
|
+
data?: string;
|
|
4257
|
+
messageExecuted: boolean;
|
|
4258
|
+
receipts: Array<TeleporterReceipt>;
|
|
4259
|
+
receiptDelivered: boolean;
|
|
4260
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4261
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4262
|
+
status: PendingTeleporterMessage.status;
|
|
4263
|
+
};
|
|
4264
|
+
declare namespace PendingTeleporterMessage {
|
|
4265
|
+
enum status {
|
|
4266
|
+
PENDING = "pending"
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
declare class TeleporterService {
|
|
4271
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4272
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4273
|
+
/**
|
|
4274
|
+
* Get a teleporter message
|
|
4275
|
+
* Gets a teleporter message by message ID.
|
|
4276
|
+
* @returns any
|
|
4277
|
+
* @throws ApiError
|
|
4278
|
+
*/
|
|
4279
|
+
getTeleporterMessage({ messageId, }: {
|
|
4280
|
+
/**
|
|
4281
|
+
* The message ID of the teleporter message.
|
|
4282
|
+
*/
|
|
4283
|
+
messageId: string;
|
|
4284
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4285
|
+
/**
|
|
4286
|
+
* List teleporter messages
|
|
4287
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4288
|
+
* @returns any
|
|
4289
|
+
* @throws ApiError
|
|
4290
|
+
*/
|
|
4291
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4292
|
+
/**
|
|
4293
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4294
|
+
*/
|
|
4295
|
+
pageToken?: string;
|
|
3591
4296
|
/**
|
|
3592
4297
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3593
4298
|
*/
|
|
3594
4299
|
pageSize?: number;
|
|
4300
|
+
/**
|
|
4301
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4302
|
+
*/
|
|
4303
|
+
sourceBlockchainId?: string;
|
|
4304
|
+
/**
|
|
4305
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4306
|
+
*/
|
|
4307
|
+
destinationBlockchainId?: string;
|
|
4308
|
+
/**
|
|
4309
|
+
* The address of the recipient of the teleporter message.
|
|
4310
|
+
*/
|
|
4311
|
+
to?: string;
|
|
4312
|
+
/**
|
|
4313
|
+
* The address of the sender of the teleporter message.
|
|
4314
|
+
*/
|
|
4315
|
+
from?: string;
|
|
4316
|
+
}): CancelablePromise<NextPageToken>;
|
|
4317
|
+
}
|
|
4318
|
+
|
|
4319
|
+
type AddressActivityMetadata = {
|
|
4320
|
+
/**
|
|
4321
|
+
* Ethereum address for the address_activity event type
|
|
4322
|
+
*/
|
|
4323
|
+
address: string;
|
|
4324
|
+
/**
|
|
4325
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4326
|
+
*/
|
|
4327
|
+
eventSignatures?: Array<string>;
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
declare enum EventType {
|
|
4331
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4334
|
+
declare enum WebhookStatusType {
|
|
4335
|
+
ACTIVE = "active",
|
|
4336
|
+
INACTIVE = "inactive"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
type WebhookResponse = {
|
|
4340
|
+
id: string;
|
|
4341
|
+
eventType: EventType;
|
|
4342
|
+
metadata: AddressActivityMetadata;
|
|
4343
|
+
/**
|
|
4344
|
+
* Whether to include traces in the webhook payload.
|
|
4345
|
+
*/
|
|
4346
|
+
includeInternalTxs?: boolean;
|
|
4347
|
+
/**
|
|
4348
|
+
* Whether to include logs in the webhook payload.
|
|
4349
|
+
*/
|
|
4350
|
+
includeLogs?: boolean;
|
|
4351
|
+
url: string;
|
|
4352
|
+
chainId: string;
|
|
4353
|
+
status: WebhookStatusType;
|
|
4354
|
+
createdAt: number;
|
|
4355
|
+
name: string;
|
|
4356
|
+
description: string;
|
|
4357
|
+
};
|
|
4358
|
+
|
|
4359
|
+
type ListWebhooksResponse = {
|
|
4360
|
+
/**
|
|
4361
|
+
* 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.
|
|
4362
|
+
*/
|
|
4363
|
+
nextPageToken?: string;
|
|
4364
|
+
webhooks: Array<WebhookResponse>;
|
|
4365
|
+
};
|
|
4366
|
+
|
|
4367
|
+
type RegisterWebhookRequest = {
|
|
4368
|
+
url: string;
|
|
4369
|
+
chainId: string;
|
|
4370
|
+
eventType: EventType;
|
|
4371
|
+
metadata: AddressActivityMetadata;
|
|
4372
|
+
/**
|
|
4373
|
+
* Whether to include traces in the webhook payload.
|
|
4374
|
+
*/
|
|
4375
|
+
includeInternalTxs?: boolean;
|
|
4376
|
+
/**
|
|
4377
|
+
* Whether to include logs in the webhook payload.
|
|
4378
|
+
*/
|
|
4379
|
+
includeLogs?: boolean;
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4382
|
+
type SharedSecretsResponse = {
|
|
4383
|
+
secret: string;
|
|
4384
|
+
};
|
|
4385
|
+
|
|
4386
|
+
type UpdateWebhookRequest = {
|
|
4387
|
+
name?: string;
|
|
4388
|
+
description?: string;
|
|
4389
|
+
url?: string;
|
|
4390
|
+
status?: WebhookStatusType;
|
|
4391
|
+
includeInternalTxs?: boolean;
|
|
4392
|
+
includeLogs?: boolean;
|
|
4393
|
+
};
|
|
4394
|
+
|
|
4395
|
+
declare enum WebhookStatus {
|
|
4396
|
+
ACTIVE = "active",
|
|
4397
|
+
INACTIVE = "inactive"
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
declare class WebhooksService {
|
|
4401
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4402
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4403
|
+
/**
|
|
4404
|
+
* Register a webhook
|
|
4405
|
+
* Registers a new webhook.
|
|
4406
|
+
* @returns WebhookResponse
|
|
4407
|
+
* @throws ApiError
|
|
4408
|
+
*/
|
|
4409
|
+
registerWebhook({ requestBody, }: {
|
|
4410
|
+
requestBody: RegisterWebhookRequest;
|
|
4411
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4412
|
+
/**
|
|
4413
|
+
* List webhooks
|
|
4414
|
+
* Lists webhooks for the user.
|
|
4415
|
+
* @returns ListWebhooksResponse
|
|
4416
|
+
* @throws ApiError
|
|
4417
|
+
*/
|
|
4418
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3595
4419
|
/**
|
|
3596
4420
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3597
4421
|
*/
|
|
3598
4422
|
pageToken?: string;
|
|
3599
4423
|
/**
|
|
3600
|
-
* The
|
|
4424
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3601
4425
|
*/
|
|
3602
|
-
|
|
3603
|
-
|
|
4426
|
+
pageSize?: number;
|
|
4427
|
+
/**
|
|
4428
|
+
* 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.
|
|
4429
|
+
*/
|
|
4430
|
+
status?: WebhookStatus;
|
|
4431
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4432
|
+
/**
|
|
4433
|
+
* Get a webhook by ID
|
|
4434
|
+
* Retrieves a webhook by ID.
|
|
4435
|
+
* @returns WebhookResponse
|
|
4436
|
+
* @throws ApiError
|
|
4437
|
+
*/
|
|
4438
|
+
getWebhook({ id, }: {
|
|
4439
|
+
/**
|
|
4440
|
+
* The webhook identifier.
|
|
4441
|
+
*/
|
|
4442
|
+
id: string;
|
|
4443
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4444
|
+
/**
|
|
4445
|
+
* Deactivate a webhook
|
|
4446
|
+
* Deactivates a webhook by ID.
|
|
4447
|
+
* @returns WebhookResponse
|
|
4448
|
+
* @throws ApiError
|
|
4449
|
+
*/
|
|
4450
|
+
deactivateWebhook({ id, }: {
|
|
4451
|
+
/**
|
|
4452
|
+
* The webhook identifier.
|
|
4453
|
+
*/
|
|
4454
|
+
id: string;
|
|
4455
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4456
|
+
/**
|
|
4457
|
+
* Update a webhook
|
|
4458
|
+
* Updates an existing webhook.
|
|
4459
|
+
* @returns WebhookResponse
|
|
4460
|
+
* @throws ApiError
|
|
4461
|
+
*/
|
|
4462
|
+
updateWebhook({ id, requestBody, }: {
|
|
4463
|
+
/**
|
|
4464
|
+
* The webhook identifier.
|
|
4465
|
+
*/
|
|
4466
|
+
id: string;
|
|
4467
|
+
requestBody: UpdateWebhookRequest;
|
|
4468
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4469
|
+
/**
|
|
4470
|
+
* Generate a shared secret
|
|
4471
|
+
* Generates a new shared secret.
|
|
4472
|
+
* @returns SharedSecretsResponse
|
|
4473
|
+
* @throws ApiError
|
|
4474
|
+
*/
|
|
4475
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4476
|
+
/**
|
|
4477
|
+
* Get a shared secret
|
|
4478
|
+
* Get a previously generated shared secret.
|
|
4479
|
+
* @returns SharedSecretsResponse
|
|
4480
|
+
* @throws ApiError
|
|
4481
|
+
*/
|
|
4482
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
3604
4483
|
}
|
|
3605
4484
|
|
|
3606
4485
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3607
4486
|
declare class Glacier {
|
|
4487
|
+
readonly default: DefaultService;
|
|
3608
4488
|
readonly evmBalances: EvmBalancesService;
|
|
3609
4489
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
4490
|
readonly evmChains: EvmChainsService;
|
|
4491
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
4492
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
4493
|
readonly healthCheck: HealthCheckService;
|
|
4494
|
+
readonly nfTs: NfTsService;
|
|
3613
4495
|
readonly operations: OperationsService;
|
|
3614
4496
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
4497
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3618,6 +4500,8 @@ declare class Glacier {
|
|
|
3618
4500
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3619
4501
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3620
4502
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4503
|
+
readonly teleporter: TeleporterService;
|
|
4504
|
+
readonly webhooks: WebhooksService;
|
|
3621
4505
|
readonly request: BaseHttpRequest;
|
|
3622
4506
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3623
4507
|
}
|
|
@@ -3639,4 +4523,4 @@ declare class ApiError extends Error {
|
|
|
3639
4523
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
4524
|
}
|
|
3641
4525
|
|
|
3642
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4526
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, 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 };
|