@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.32aadf8.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 +1217 -440
- package/dist/index.js +532 -180
- package/esm/generated/Glacier.d.ts +8 -0
- package/esm/generated/Glacier.js +12 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +41 -36
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +25 -9
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
- 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 +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
- 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/Erc1155TokenMetadata.d.ts +0 -3
- 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/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 +1 -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 +3 -1
- 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/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +25 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +20 -1
- package/esm/generated/services/EvmContractsService.js +16 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +90 -68
- package/esm/generated/services/EvmTransactionsService.js +33 -46
- package/esm/generated/services/NfTsService.d.ts +27 -2
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
- package/esm/generated/services/PrimaryNetworkService.js +26 -14
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +44 -3
- package/esm/index.js +22 -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,19 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
57
|
+
declare class DefaultService {
|
|
58
|
+
readonly httpRequest: BaseHttpRequest;
|
|
59
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
60
|
+
/**
|
|
61
|
+
* @returns any
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
63
70
|
declare enum CurrencyCode {
|
|
64
71
|
USD = "usd",
|
|
65
72
|
EUR = "eur",
|
|
@@ -78,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
type Money = {
|
|
81
|
-
/**
|
|
82
|
-
* ISO 4217 currency code.
|
|
83
|
-
*/
|
|
84
88
|
currencyCode: CurrencyCode;
|
|
85
89
|
/**
|
|
86
90
|
* Monetary value in base 10 decimals.
|
|
@@ -130,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
130
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
131
135
|
};
|
|
132
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
133
140
|
declare enum NftTokenMetadataStatus {
|
|
134
141
|
UNKNOWN = "UNKNOWN",
|
|
135
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -145,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
145
152
|
}
|
|
146
153
|
|
|
147
154
|
type Erc1155TokenMetadata = {
|
|
148
|
-
/**
|
|
149
|
-
* The metadata indexing status of the nft.
|
|
150
|
-
*/
|
|
151
155
|
indexStatus: NftTokenMetadataStatus;
|
|
152
156
|
metadataLastUpdatedTimestamp?: number;
|
|
153
157
|
name?: string;
|
|
@@ -186,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
186
190
|
}
|
|
187
191
|
|
|
188
192
|
type Erc721TokenMetadata = {
|
|
189
|
-
/**
|
|
190
|
-
* The metadata indexing status of the nft.
|
|
191
|
-
*/
|
|
192
193
|
indexStatus: NftTokenMetadataStatus;
|
|
193
194
|
metadataLastUpdatedTimestamp?: number;
|
|
194
195
|
name?: string;
|
|
@@ -335,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
335
336
|
*/
|
|
336
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
338
|
/**
|
|
338
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
340
|
*/
|
|
340
341
|
chainId: string;
|
|
341
342
|
/**
|
|
@@ -361,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
361
362
|
* @returns ListErc20BalancesResponse
|
|
362
363
|
* @throws ApiError
|
|
363
364
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
366
|
/**
|
|
366
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
368
|
*/
|
|
368
369
|
chainId: string;
|
|
369
370
|
/**
|
|
@@ -374,14 +375,14 @@ declare class EvmBalancesService {
|
|
|
374
375
|
* The block number, if not defined the block number will be the latest block.
|
|
375
376
|
*/
|
|
376
377
|
blockNumber?: string;
|
|
377
|
-
/**
|
|
378
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
379
|
-
*/
|
|
380
|
-
pageSize?: number;
|
|
381
378
|
/**
|
|
382
379
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
380
|
*/
|
|
384
381
|
pageToken?: string;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
|
+
*/
|
|
385
|
+
pageSize?: number;
|
|
385
386
|
/**
|
|
386
387
|
* A comma separated list of contract addresses to filter by.
|
|
387
388
|
*/
|
|
@@ -399,23 +400,23 @@ declare class EvmBalancesService {
|
|
|
399
400
|
* @returns ListErc721BalancesResponse
|
|
400
401
|
* @throws ApiError
|
|
401
402
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
403
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
404
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
406
|
*/
|
|
406
407
|
chainId: string;
|
|
407
408
|
/**
|
|
408
409
|
* A wallet address.
|
|
409
410
|
*/
|
|
410
411
|
address: string;
|
|
411
|
-
/**
|
|
412
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
413
|
-
*/
|
|
414
|
-
pageSize?: number;
|
|
415
412
|
/**
|
|
416
413
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
414
|
*/
|
|
418
415
|
pageToken?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
418
|
+
*/
|
|
419
|
+
pageSize?: number;
|
|
419
420
|
/**
|
|
420
421
|
* A contract addresses to filter by.
|
|
421
422
|
*/
|
|
@@ -431,9 +432,9 @@ declare class EvmBalancesService {
|
|
|
431
432
|
* @returns ListErc1155BalancesResponse
|
|
432
433
|
* @throws ApiError
|
|
433
434
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
435
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
436
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
438
|
*/
|
|
438
439
|
chainId: string;
|
|
439
440
|
/**
|
|
@@ -444,14 +445,14 @@ declare class EvmBalancesService {
|
|
|
444
445
|
* The block number, if not defined the block number will be the latest block.
|
|
445
446
|
*/
|
|
446
447
|
blockNumber?: string;
|
|
447
|
-
/**
|
|
448
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
449
|
-
*/
|
|
450
|
-
pageSize?: number;
|
|
451
448
|
/**
|
|
452
449
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
450
|
*/
|
|
454
451
|
pageToken?: string;
|
|
452
|
+
/**
|
|
453
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
454
|
+
*/
|
|
455
|
+
pageSize?: number;
|
|
455
456
|
/**
|
|
456
457
|
* A contract addresses to filter by.
|
|
457
458
|
*/
|
|
@@ -465,23 +466,23 @@ declare class EvmBalancesService {
|
|
|
465
466
|
* @returns ListCollectibleBalancesResponse
|
|
466
467
|
* @throws ApiError
|
|
467
468
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
469
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
470
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
472
|
*/
|
|
472
473
|
chainId: string;
|
|
473
474
|
/**
|
|
474
475
|
* A wallet address.
|
|
475
476
|
*/
|
|
476
477
|
address: string;
|
|
477
|
-
/**
|
|
478
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
479
|
-
*/
|
|
480
|
-
pageSize?: number;
|
|
481
478
|
/**
|
|
482
479
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
480
|
*/
|
|
484
481
|
pageToken?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
484
|
+
*/
|
|
485
|
+
pageSize?: number;
|
|
485
486
|
/**
|
|
486
487
|
* A contract addresses to filter by.
|
|
487
488
|
*/
|
|
@@ -594,19 +595,19 @@ declare class EvmBlocksService {
|
|
|
594
595
|
* @returns ListEvmBlocksResponse
|
|
595
596
|
* @throws ApiError
|
|
596
597
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
598
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
599
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
601
|
*/
|
|
601
602
|
chainId: string;
|
|
602
|
-
/**
|
|
603
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
604
|
-
*/
|
|
605
|
-
pageSize?: number;
|
|
606
603
|
/**
|
|
607
604
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
605
|
*/
|
|
609
606
|
pageToken?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
609
|
+
*/
|
|
610
|
+
pageSize?: number;
|
|
610
611
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
612
|
/**
|
|
612
613
|
* Get block
|
|
@@ -616,7 +617,7 @@ declare class EvmBlocksService {
|
|
|
616
617
|
*/
|
|
617
618
|
getBlock({ chainId, blockId, }: {
|
|
618
619
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
621
|
*/
|
|
621
622
|
chainId: string;
|
|
622
623
|
/**
|
|
@@ -626,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
626
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
627
628
|
}
|
|
628
629
|
|
|
630
|
+
/**
|
|
631
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
632
|
+
*/
|
|
629
633
|
declare enum ChainStatus {
|
|
630
634
|
OK = "OK",
|
|
631
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -663,9 +667,6 @@ declare enum VmName {
|
|
|
663
667
|
|
|
664
668
|
type GetChainResponse = {
|
|
665
669
|
chainId: string;
|
|
666
|
-
/**
|
|
667
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
668
|
-
*/
|
|
669
670
|
status: ChainStatus;
|
|
670
671
|
chainName: string;
|
|
671
672
|
description: string;
|
|
@@ -680,13 +681,16 @@ type GetChainResponse = {
|
|
|
680
681
|
utilityAddresses?: UtilityAddresses;
|
|
681
682
|
networkToken: NetworkToken;
|
|
682
683
|
chainLogoUri?: string;
|
|
684
|
+
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
683
686
|
};
|
|
684
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing"
|
|
690
|
+
}
|
|
691
|
+
|
|
685
692
|
type ChainInfo = {
|
|
686
693
|
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
694
|
status: ChainStatus;
|
|
691
695
|
chainName: string;
|
|
692
696
|
description: string;
|
|
@@ -701,6 +705,8 @@ type ChainInfo = {
|
|
|
701
705
|
utilityAddresses?: UtilityAddresses;
|
|
702
706
|
networkToken: NetworkToken;
|
|
703
707
|
chainLogoUri?: string;
|
|
708
|
+
private?: boolean;
|
|
709
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
704
710
|
};
|
|
705
711
|
|
|
706
712
|
type ListChainsResponse = {
|
|
@@ -721,11 +727,15 @@ declare class EvmChainsService {
|
|
|
721
727
|
* @returns ListChainsResponse
|
|
722
728
|
* @throws ApiError
|
|
723
729
|
*/
|
|
724
|
-
supportedChains({ network, }: {
|
|
730
|
+
supportedChains({ network, feature, }: {
|
|
725
731
|
/**
|
|
726
732
|
* mainnet or testnet.
|
|
727
733
|
*/
|
|
728
734
|
network?: NetworkType;
|
|
735
|
+
/**
|
|
736
|
+
* Filter by feature.
|
|
737
|
+
*/
|
|
738
|
+
feature?: GlacierApiFeature;
|
|
729
739
|
}): CancelablePromise<ListChainsResponse>;
|
|
730
740
|
/**
|
|
731
741
|
* Get chain information
|
|
@@ -735,24 +745,12 @@ declare class EvmChainsService {
|
|
|
735
745
|
*/
|
|
736
746
|
getChainInfo({ chainId, }: {
|
|
737
747
|
/**
|
|
738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
748
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
739
749
|
*/
|
|
740
750
|
chainId: string;
|
|
741
751
|
}): CancelablePromise<GetChainResponse>;
|
|
742
752
|
}
|
|
743
753
|
|
|
744
|
-
type ContractDeploymentDetails = {
|
|
745
|
-
txHash: string;
|
|
746
|
-
/**
|
|
747
|
-
* The address that initiated the transaction which deployed this contract.
|
|
748
|
-
*/
|
|
749
|
-
deployerAddress: string;
|
|
750
|
-
/**
|
|
751
|
-
* 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.
|
|
752
|
-
*/
|
|
753
|
-
deployerContractAddress?: string;
|
|
754
|
-
};
|
|
755
|
-
|
|
756
754
|
type ImageAsset = {
|
|
757
755
|
assetId?: string;
|
|
758
756
|
/**
|
|
@@ -791,6 +789,120 @@ type ResourceLink = {
|
|
|
791
789
|
url: string;
|
|
792
790
|
};
|
|
793
791
|
|
|
792
|
+
type ContractSubmissionErc1155 = {
|
|
793
|
+
description?: string;
|
|
794
|
+
officialSite?: string;
|
|
795
|
+
email?: string;
|
|
796
|
+
logoAsset?: ImageAsset;
|
|
797
|
+
bannerAsset?: ImageAsset;
|
|
798
|
+
color?: string;
|
|
799
|
+
resourceLinks?: Array<ResourceLink>;
|
|
800
|
+
tags?: Array<string>;
|
|
801
|
+
/**
|
|
802
|
+
* The contract name.
|
|
803
|
+
*/
|
|
804
|
+
name: string;
|
|
805
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
806
|
+
/**
|
|
807
|
+
* The contract symbol.
|
|
808
|
+
*/
|
|
809
|
+
symbol: string;
|
|
810
|
+
pricingProviders?: PricingProviders;
|
|
811
|
+
};
|
|
812
|
+
declare namespace ContractSubmissionErc1155 {
|
|
813
|
+
enum ercType {
|
|
814
|
+
ERC_1155 = "ERC-1155"
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
type ContractSubmissionErc20 = {
|
|
819
|
+
description?: string;
|
|
820
|
+
officialSite?: string;
|
|
821
|
+
email?: string;
|
|
822
|
+
logoAsset?: ImageAsset;
|
|
823
|
+
bannerAsset?: ImageAsset;
|
|
824
|
+
color?: string;
|
|
825
|
+
resourceLinks?: Array<ResourceLink>;
|
|
826
|
+
tags?: Array<string>;
|
|
827
|
+
/**
|
|
828
|
+
* The contract name.
|
|
829
|
+
*/
|
|
830
|
+
name: string;
|
|
831
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
832
|
+
/**
|
|
833
|
+
* The contract symbol.
|
|
834
|
+
*/
|
|
835
|
+
symbol: string;
|
|
836
|
+
pricingProviders?: PricingProviders;
|
|
837
|
+
};
|
|
838
|
+
declare namespace ContractSubmissionErc20 {
|
|
839
|
+
enum ercType {
|
|
840
|
+
ERC_20 = "ERC-20"
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
type ContractSubmissionErc721 = {
|
|
845
|
+
description?: string;
|
|
846
|
+
officialSite?: string;
|
|
847
|
+
email?: string;
|
|
848
|
+
logoAsset?: ImageAsset;
|
|
849
|
+
bannerAsset?: ImageAsset;
|
|
850
|
+
color?: string;
|
|
851
|
+
resourceLinks?: Array<ResourceLink>;
|
|
852
|
+
tags?: Array<string>;
|
|
853
|
+
/**
|
|
854
|
+
* The contract name.
|
|
855
|
+
*/
|
|
856
|
+
name: string;
|
|
857
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
858
|
+
/**
|
|
859
|
+
* The contract symbol.
|
|
860
|
+
*/
|
|
861
|
+
symbol: string;
|
|
862
|
+
};
|
|
863
|
+
declare namespace ContractSubmissionErc721 {
|
|
864
|
+
enum ercType {
|
|
865
|
+
ERC_721 = "ERC-721"
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
type ContractSubmissionUnknown = {
|
|
870
|
+
description?: string;
|
|
871
|
+
officialSite?: string;
|
|
872
|
+
email?: string;
|
|
873
|
+
logoAsset?: ImageAsset;
|
|
874
|
+
bannerAsset?: ImageAsset;
|
|
875
|
+
color?: string;
|
|
876
|
+
resourceLinks?: Array<ResourceLink>;
|
|
877
|
+
tags?: Array<string>;
|
|
878
|
+
/**
|
|
879
|
+
* The contract name.
|
|
880
|
+
*/
|
|
881
|
+
name: string;
|
|
882
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
883
|
+
};
|
|
884
|
+
declare namespace ContractSubmissionUnknown {
|
|
885
|
+
enum ercType {
|
|
886
|
+
UNKNOWN = "UNKNOWN"
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
type ContractSubmissionBody = {
|
|
891
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
type ContractDeploymentDetails = {
|
|
895
|
+
txHash: string;
|
|
896
|
+
/**
|
|
897
|
+
* The address that initiated the transaction which deployed this contract.
|
|
898
|
+
*/
|
|
899
|
+
deployerAddress: string;
|
|
900
|
+
/**
|
|
901
|
+
* 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.
|
|
902
|
+
*/
|
|
903
|
+
deployerContractAddress?: string;
|
|
904
|
+
};
|
|
905
|
+
|
|
794
906
|
type Erc1155Contract = {
|
|
795
907
|
/**
|
|
796
908
|
* The contract name.
|
|
@@ -913,6 +1025,10 @@ declare namespace UnknownContract {
|
|
|
913
1025
|
}
|
|
914
1026
|
}
|
|
915
1027
|
|
|
1028
|
+
type UpdateContractResponse = {
|
|
1029
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1030
|
+
};
|
|
1031
|
+
|
|
916
1032
|
declare class EvmContractsService {
|
|
917
1033
|
readonly httpRequest: BaseHttpRequest;
|
|
918
1034
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -924,7 +1040,7 @@ declare class EvmContractsService {
|
|
|
924
1040
|
*/
|
|
925
1041
|
getContractMetadata({ chainId, address, }: {
|
|
926
1042
|
/**
|
|
927
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1043
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
928
1044
|
*/
|
|
929
1045
|
chainId: string;
|
|
930
1046
|
/**
|
|
@@ -932,6 +1048,23 @@ declare class EvmContractsService {
|
|
|
932
1048
|
*/
|
|
933
1049
|
address: string;
|
|
934
1050
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Update contract information
|
|
1053
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1054
|
+
* @returns UpdateContractResponse
|
|
1055
|
+
* @throws ApiError
|
|
1056
|
+
*/
|
|
1057
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1058
|
+
/**
|
|
1059
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1060
|
+
*/
|
|
1061
|
+
chainId: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* Contract address on the relevant chain.
|
|
1064
|
+
*/
|
|
1065
|
+
address: string;
|
|
1066
|
+
requestBody: ContractSubmissionBody;
|
|
1067
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
935
1068
|
}
|
|
936
1069
|
|
|
937
1070
|
type Erc1155Token = {
|
|
@@ -1057,6 +1190,9 @@ type Erc721TransferDetails = {
|
|
|
1057
1190
|
erc721Token: Erc721Token;
|
|
1058
1191
|
};
|
|
1059
1192
|
|
|
1193
|
+
/**
|
|
1194
|
+
* 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.
|
|
1195
|
+
*/
|
|
1060
1196
|
declare enum TransactionMethodType {
|
|
1061
1197
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1062
1198
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1064,9 +1200,6 @@ declare enum TransactionMethodType {
|
|
|
1064
1200
|
}
|
|
1065
1201
|
|
|
1066
1202
|
type Method = {
|
|
1067
|
-
/**
|
|
1068
|
-
* 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.
|
|
1069
|
-
*/
|
|
1070
1203
|
callType: TransactionMethodType;
|
|
1071
1204
|
/**
|
|
1072
1205
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1427,7 +1560,7 @@ type ListTransfersResponse = {
|
|
|
1427
1560
|
* 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.
|
|
1428
1561
|
*/
|
|
1429
1562
|
nextPageToken?: string;
|
|
1430
|
-
transfers:
|
|
1563
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1431
1564
|
};
|
|
1432
1565
|
|
|
1433
1566
|
declare enum SortOrder {
|
|
@@ -1451,7 +1584,7 @@ declare class EvmTransactionsService {
|
|
|
1451
1584
|
*/
|
|
1452
1585
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1453
1586
|
/**
|
|
1454
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1587
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1455
1588
|
*/
|
|
1456
1589
|
chainId: string;
|
|
1457
1590
|
/**
|
|
@@ -1469,65 +1602,55 @@ declare class EvmTransactionsService {
|
|
|
1469
1602
|
* @returns ListContractsResponse
|
|
1470
1603
|
* @throws ApiError
|
|
1471
1604
|
*/
|
|
1472
|
-
listContractDeployments({ chainId, address,
|
|
1605
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1473
1606
|
/**
|
|
1474
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1607
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1475
1608
|
*/
|
|
1476
1609
|
chainId: string;
|
|
1477
1610
|
/**
|
|
1478
1611
|
* A wallet address.
|
|
1479
1612
|
*/
|
|
1480
1613
|
address: string;
|
|
1481
|
-
/**
|
|
1482
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1483
|
-
*/
|
|
1484
|
-
pageSize?: number;
|
|
1485
1614
|
/**
|
|
1486
1615
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1487
1616
|
*/
|
|
1488
1617
|
pageToken?: string;
|
|
1489
|
-
}): CancelablePromise<ListContractsResponse>;
|
|
1490
|
-
/**
|
|
1491
|
-
* Get contract metadata
|
|
1492
|
-
* Gets metadata about the contract at the given address.
|
|
1493
|
-
* @returns any
|
|
1494
|
-
* @throws ApiError
|
|
1495
|
-
*/
|
|
1496
|
-
getContractMetadata({ chainId, address, }: {
|
|
1497
1618
|
/**
|
|
1498
|
-
*
|
|
1499
|
-
*/
|
|
1500
|
-
chainId: string;
|
|
1501
|
-
/**
|
|
1502
|
-
* Contract address on the relevant chain.
|
|
1619
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1503
1620
|
*/
|
|
1504
|
-
|
|
1505
|
-
}): CancelablePromise<
|
|
1621
|
+
pageSize?: number;
|
|
1622
|
+
}): CancelablePromise<ListContractsResponse>;
|
|
1506
1623
|
/**
|
|
1507
1624
|
* List ERC transfers
|
|
1508
1625
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1509
1626
|
* @returns ListTransfersResponse
|
|
1510
1627
|
* @throws ApiError
|
|
1511
1628
|
*/
|
|
1512
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1629
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1513
1630
|
/**
|
|
1514
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1631
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1515
1632
|
*/
|
|
1516
1633
|
chainId: string;
|
|
1517
1634
|
/**
|
|
1518
1635
|
* A wallet address.
|
|
1519
1636
|
*/
|
|
1520
1637
|
address: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* 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.
|
|
1640
|
+
*/
|
|
1521
1641
|
startBlock?: number;
|
|
1522
|
-
endBlock?: number;
|
|
1523
1642
|
/**
|
|
1524
|
-
* The
|
|
1643
|
+
* 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.
|
|
1525
1644
|
*/
|
|
1526
|
-
|
|
1645
|
+
endBlock?: number;
|
|
1527
1646
|
/**
|
|
1528
1647
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1529
1648
|
*/
|
|
1530
1649
|
pageToken?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1652
|
+
*/
|
|
1653
|
+
pageSize?: number;
|
|
1531
1654
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1532
1655
|
/**
|
|
1533
1656
|
* List transactions
|
|
@@ -1537,24 +1660,30 @@ declare class EvmTransactionsService {
|
|
|
1537
1660
|
* @returns ListTransactionDetailsResponse
|
|
1538
1661
|
* @throws ApiError
|
|
1539
1662
|
*/
|
|
1540
|
-
listTransactions({ chainId, address,
|
|
1663
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1541
1664
|
/**
|
|
1542
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1665
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1543
1666
|
*/
|
|
1544
1667
|
chainId: string;
|
|
1545
1668
|
/**
|
|
1546
1669
|
* A wallet address.
|
|
1547
1670
|
*/
|
|
1548
1671
|
address: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1674
|
+
*/
|
|
1675
|
+
pageToken?: string;
|
|
1549
1676
|
/**
|
|
1550
1677
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1551
1678
|
*/
|
|
1552
1679
|
pageSize?: number;
|
|
1553
1680
|
/**
|
|
1554
|
-
*
|
|
1681
|
+
* 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.
|
|
1555
1682
|
*/
|
|
1556
|
-
pageToken?: string;
|
|
1557
1683
|
startBlock?: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* 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.
|
|
1686
|
+
*/
|
|
1558
1687
|
endBlock?: number;
|
|
1559
1688
|
/**
|
|
1560
1689
|
* 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.
|
|
@@ -1567,25 +1696,31 @@ declare class EvmTransactionsService {
|
|
|
1567
1696
|
* @returns ListNativeTransactionsResponse
|
|
1568
1697
|
* @throws ApiError
|
|
1569
1698
|
*/
|
|
1570
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1699
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1571
1700
|
/**
|
|
1572
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1701
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1573
1702
|
*/
|
|
1574
1703
|
chainId: string;
|
|
1575
1704
|
/**
|
|
1576
1705
|
* A wallet address.
|
|
1577
1706
|
*/
|
|
1578
1707
|
address: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* 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.
|
|
1710
|
+
*/
|
|
1579
1711
|
startBlock?: number;
|
|
1580
|
-
endBlock?: number;
|
|
1581
1712
|
/**
|
|
1582
|
-
* The
|
|
1713
|
+
* 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.
|
|
1583
1714
|
*/
|
|
1584
|
-
|
|
1715
|
+
endBlock?: number;
|
|
1585
1716
|
/**
|
|
1586
1717
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1587
1718
|
*/
|
|
1588
1719
|
pageToken?: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1722
|
+
*/
|
|
1723
|
+
pageSize?: number;
|
|
1589
1724
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1590
1725
|
/**
|
|
1591
1726
|
* List ERC-20 transfers
|
|
@@ -1593,25 +1728,31 @@ declare class EvmTransactionsService {
|
|
|
1593
1728
|
* @returns ListErc20TransactionsResponse
|
|
1594
1729
|
* @throws ApiError
|
|
1595
1730
|
*/
|
|
1596
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1731
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1597
1732
|
/**
|
|
1598
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1733
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1599
1734
|
*/
|
|
1600
1735
|
chainId: string;
|
|
1601
1736
|
/**
|
|
1602
1737
|
* A wallet address.
|
|
1603
1738
|
*/
|
|
1604
1739
|
address: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* 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.
|
|
1742
|
+
*/
|
|
1605
1743
|
startBlock?: number;
|
|
1606
|
-
endBlock?: number;
|
|
1607
1744
|
/**
|
|
1608
|
-
* The
|
|
1745
|
+
* 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.
|
|
1609
1746
|
*/
|
|
1610
|
-
|
|
1747
|
+
endBlock?: number;
|
|
1611
1748
|
/**
|
|
1612
1749
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1613
1750
|
*/
|
|
1614
1751
|
pageToken?: string;
|
|
1752
|
+
/**
|
|
1753
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1754
|
+
*/
|
|
1755
|
+
pageSize?: number;
|
|
1615
1756
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1616
1757
|
/**
|
|
1617
1758
|
* List ERC-721 transfers
|
|
@@ -1619,51 +1760,63 @@ declare class EvmTransactionsService {
|
|
|
1619
1760
|
* @returns ListErc721TransactionsResponse
|
|
1620
1761
|
* @throws ApiError
|
|
1621
1762
|
*/
|
|
1622
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1763
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1623
1764
|
/**
|
|
1624
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1625
1766
|
*/
|
|
1626
1767
|
chainId: string;
|
|
1627
1768
|
/**
|
|
1628
1769
|
* A wallet address.
|
|
1629
1770
|
*/
|
|
1630
1771
|
address: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* 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.
|
|
1774
|
+
*/
|
|
1631
1775
|
startBlock?: number;
|
|
1632
|
-
endBlock?: number;
|
|
1633
1776
|
/**
|
|
1634
|
-
* The
|
|
1777
|
+
* 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.
|
|
1635
1778
|
*/
|
|
1636
|
-
|
|
1779
|
+
endBlock?: number;
|
|
1637
1780
|
/**
|
|
1638
1781
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1639
1782
|
*/
|
|
1640
1783
|
pageToken?: string;
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1784
|
+
/**
|
|
1785
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1786
|
+
*/
|
|
1787
|
+
pageSize?: number;
|
|
1788
|
+
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1789
|
+
/**
|
|
1790
|
+
* List ERC-1155 transfers
|
|
1644
1791
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1645
1792
|
* @returns ListErc1155TransactionsResponse
|
|
1646
1793
|
* @throws ApiError
|
|
1647
1794
|
*/
|
|
1648
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1795
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1649
1796
|
/**
|
|
1650
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1797
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1651
1798
|
*/
|
|
1652
1799
|
chainId: string;
|
|
1653
1800
|
/**
|
|
1654
1801
|
* A wallet address.
|
|
1655
1802
|
*/
|
|
1656
1803
|
address: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* 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.
|
|
1806
|
+
*/
|
|
1657
1807
|
startBlock?: number;
|
|
1658
|
-
endBlock?: number;
|
|
1659
1808
|
/**
|
|
1660
|
-
* The
|
|
1809
|
+
* 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.
|
|
1661
1810
|
*/
|
|
1662
|
-
|
|
1811
|
+
endBlock?: number;
|
|
1663
1812
|
/**
|
|
1664
1813
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1665
1814
|
*/
|
|
1666
1815
|
pageToken?: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1818
|
+
*/
|
|
1819
|
+
pageSize?: number;
|
|
1667
1820
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1668
1821
|
/**
|
|
1669
1822
|
* List internal transactions
|
|
@@ -1673,25 +1826,31 @@ declare class EvmTransactionsService {
|
|
|
1673
1826
|
* @returns ListInternalTransactionsResponse
|
|
1674
1827
|
* @throws ApiError
|
|
1675
1828
|
*/
|
|
1676
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1829
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1677
1830
|
/**
|
|
1678
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1831
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1679
1832
|
*/
|
|
1680
1833
|
chainId: string;
|
|
1681
1834
|
/**
|
|
1682
1835
|
* A wallet address.
|
|
1683
1836
|
*/
|
|
1684
1837
|
address: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* 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.
|
|
1840
|
+
*/
|
|
1685
1841
|
startBlock?: number;
|
|
1686
|
-
endBlock?: number;
|
|
1687
1842
|
/**
|
|
1688
|
-
* The
|
|
1843
|
+
* 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.
|
|
1689
1844
|
*/
|
|
1690
|
-
|
|
1845
|
+
endBlock?: number;
|
|
1691
1846
|
/**
|
|
1692
1847
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1693
1848
|
*/
|
|
1694
1849
|
pageToken?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1852
|
+
*/
|
|
1853
|
+
pageSize?: number;
|
|
1695
1854
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1696
1855
|
/**
|
|
1697
1856
|
* Get transaction
|
|
@@ -1701,7 +1860,7 @@ declare class EvmTransactionsService {
|
|
|
1701
1860
|
*/
|
|
1702
1861
|
getTransaction({ chainId, txHash, }: {
|
|
1703
1862
|
/**
|
|
1704
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1863
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1705
1864
|
*/
|
|
1706
1865
|
chainId: string;
|
|
1707
1866
|
/**
|
|
@@ -1717,7 +1876,7 @@ declare class EvmTransactionsService {
|
|
|
1717
1876
|
*/
|
|
1718
1877
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1719
1878
|
/**
|
|
1720
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1879
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1721
1880
|
*/
|
|
1722
1881
|
chainId: string;
|
|
1723
1882
|
/**
|
|
@@ -1731,19 +1890,19 @@ declare class EvmTransactionsService {
|
|
|
1731
1890
|
* @returns ListNativeTransactionsResponse
|
|
1732
1891
|
* @throws ApiError
|
|
1733
1892
|
*/
|
|
1734
|
-
listLatestTransactions({ chainId,
|
|
1893
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1735
1894
|
/**
|
|
1736
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1895
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1737
1896
|
*/
|
|
1738
1897
|
chainId: string;
|
|
1739
|
-
/**
|
|
1740
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1741
|
-
*/
|
|
1742
|
-
pageSize?: number;
|
|
1743
1898
|
/**
|
|
1744
1899
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1745
1900
|
*/
|
|
1746
1901
|
pageToken?: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1904
|
+
*/
|
|
1905
|
+
pageSize?: number;
|
|
1747
1906
|
/**
|
|
1748
1907
|
* A status filter for listed transactions.
|
|
1749
1908
|
*/
|
|
@@ -1767,6 +1926,14 @@ declare class HealthCheckService {
|
|
|
1767
1926
|
}>;
|
|
1768
1927
|
}
|
|
1769
1928
|
|
|
1929
|
+
type ListNftTokens = {
|
|
1930
|
+
/**
|
|
1931
|
+
* 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.
|
|
1932
|
+
*/
|
|
1933
|
+
nextPageToken?: string;
|
|
1934
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1770
1937
|
declare class NfTsService {
|
|
1771
1938
|
readonly httpRequest: BaseHttpRequest;
|
|
1772
1939
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1778,7 +1945,7 @@ declare class NfTsService {
|
|
|
1778
1945
|
*/
|
|
1779
1946
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1780
1947
|
/**
|
|
1781
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1948
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1782
1949
|
*/
|
|
1783
1950
|
chainId: string;
|
|
1784
1951
|
/**
|
|
@@ -1790,6 +1957,30 @@ declare class NfTsService {
|
|
|
1790
1957
|
*/
|
|
1791
1958
|
tokenId: string;
|
|
1792
1959
|
}): CancelablePromise<any>;
|
|
1960
|
+
/**
|
|
1961
|
+
* List tokens
|
|
1962
|
+
* Lists tokens for an NFT contract.
|
|
1963
|
+
* @returns ListNftTokens
|
|
1964
|
+
* @throws ApiError
|
|
1965
|
+
*/
|
|
1966
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1967
|
+
/**
|
|
1968
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1969
|
+
*/
|
|
1970
|
+
chainId: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* Contract address on the relevant chain.
|
|
1973
|
+
*/
|
|
1974
|
+
address: string;
|
|
1975
|
+
/**
|
|
1976
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1977
|
+
*/
|
|
1978
|
+
pageToken?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1981
|
+
*/
|
|
1982
|
+
pageSize?: number;
|
|
1983
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1793
1984
|
/**
|
|
1794
1985
|
* Get token details
|
|
1795
1986
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1798,7 +1989,7 @@ declare class NfTsService {
|
|
|
1798
1989
|
*/
|
|
1799
1990
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1800
1991
|
/**
|
|
1801
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1992
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1802
1993
|
*/
|
|
1803
1994
|
chainId: string;
|
|
1804
1995
|
/**
|
|
@@ -1817,8 +2008,12 @@ type EvmNetworkOptions = {
|
|
|
1817
2008
|
includeChains: Array<string>;
|
|
1818
2009
|
};
|
|
1819
2010
|
|
|
2011
|
+
declare enum EVMOperationType {
|
|
2012
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1820
2015
|
type CreateEvmTransactionExportRequest = {
|
|
1821
|
-
type:
|
|
2016
|
+
type: EVMOperationType;
|
|
1822
2017
|
firstDate: string;
|
|
1823
2018
|
lastDate: string;
|
|
1824
2019
|
/**
|
|
@@ -1831,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1831
2026
|
endDate: string;
|
|
1832
2027
|
options: EvmNetworkOptions;
|
|
1833
2028
|
};
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
2029
|
+
|
|
2030
|
+
declare enum PrimaryNetworkOperationType {
|
|
2031
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1838
2034
|
}
|
|
1839
2035
|
|
|
1840
2036
|
type PrimaryNetworkOptions = {
|
|
1841
|
-
addresses
|
|
2037
|
+
addresses?: Array<string>;
|
|
1842
2038
|
cChainEvmAddresses?: Array<string>;
|
|
1843
2039
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1844
2040
|
};
|
|
1845
2041
|
|
|
1846
2042
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1847
|
-
type:
|
|
2043
|
+
type: PrimaryNetworkOperationType;
|
|
1848
2044
|
firstDate: string;
|
|
1849
2045
|
lastDate: string;
|
|
1850
2046
|
/**
|
|
@@ -1857,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1857
2053
|
endDate: string;
|
|
1858
2054
|
options: PrimaryNetworkOptions;
|
|
1859
2055
|
};
|
|
1860
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1861
|
-
enum type {
|
|
1862
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
2056
|
|
|
1866
2057
|
declare enum OperationStatus {
|
|
1867
2058
|
RUNNING = "RUNNING",
|
|
@@ -1871,8 +2062,10 @@ declare enum OperationStatus {
|
|
|
1871
2062
|
}
|
|
1872
2063
|
|
|
1873
2064
|
declare enum OperationType {
|
|
1874
|
-
|
|
1875
|
-
|
|
2065
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2068
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1876
2069
|
}
|
|
1877
2070
|
|
|
1878
2071
|
declare enum OperationStatusCode {
|
|
@@ -1906,17 +2099,6 @@ type OperationStatusResponse = {
|
|
|
1906
2099
|
declare class OperationsService {
|
|
1907
2100
|
readonly httpRequest: BaseHttpRequest;
|
|
1908
2101
|
constructor(httpRequest: BaseHttpRequest);
|
|
1909
|
-
/**
|
|
1910
|
-
* Create transaction export operation
|
|
1911
|
-
* Trigger a transaction export operation with given parameters.
|
|
1912
|
-
*
|
|
1913
|
-
* 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.
|
|
1914
|
-
* @returns OperationStatusResponse
|
|
1915
|
-
* @throws ApiError
|
|
1916
|
-
*/
|
|
1917
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1918
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1919
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1920
2102
|
/**
|
|
1921
2103
|
* Get operation
|
|
1922
2104
|
* Gets operation details for the given operation id.
|
|
@@ -1929,6 +2111,17 @@ declare class OperationsService {
|
|
|
1929
2111
|
*/
|
|
1930
2112
|
operationId: string;
|
|
1931
2113
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2114
|
+
/**
|
|
2115
|
+
* Create transaction export operation
|
|
2116
|
+
* Trigger a transaction export operation with given parameters.
|
|
2117
|
+
*
|
|
2118
|
+
* 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.
|
|
2119
|
+
* @returns OperationStatusResponse
|
|
2120
|
+
* @throws ApiError
|
|
2121
|
+
*/
|
|
2122
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2123
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2124
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1932
2125
|
}
|
|
1933
2126
|
|
|
1934
2127
|
declare enum BlockchainIds {
|
|
@@ -1997,6 +2190,7 @@ type ListBlockchainsResponse = {
|
|
|
1997
2190
|
|
|
1998
2191
|
type ActiveDelegatorDetails = {
|
|
1999
2192
|
txHash: string;
|
|
2193
|
+
nodeId: string;
|
|
2000
2194
|
rewardAddresses: Array<string>;
|
|
2001
2195
|
amountDelegated: string;
|
|
2002
2196
|
delegationFee: string;
|
|
@@ -2014,6 +2208,7 @@ declare namespace ActiveDelegatorDetails {
|
|
|
2014
2208
|
|
|
2015
2209
|
type CompletedDelegatorDetails = {
|
|
2016
2210
|
txHash: string;
|
|
2211
|
+
nodeId: string;
|
|
2017
2212
|
rewardAddresses: Array<string>;
|
|
2018
2213
|
amountDelegated: string;
|
|
2019
2214
|
delegationFee: string;
|
|
@@ -2031,6 +2226,7 @@ declare namespace CompletedDelegatorDetails {
|
|
|
2031
2226
|
|
|
2032
2227
|
type PendingDelegatorDetails = {
|
|
2033
2228
|
txHash: string;
|
|
2229
|
+
nodeId: string;
|
|
2034
2230
|
rewardAddresses: Array<string>;
|
|
2035
2231
|
amountDelegated: string;
|
|
2036
2232
|
delegationFee: string;
|
|
@@ -2061,13 +2257,44 @@ type BlockchainInfo = {
|
|
|
2061
2257
|
blockchainId: string;
|
|
2062
2258
|
};
|
|
2063
2259
|
|
|
2260
|
+
type SubnetOwnershipInfo = {
|
|
2261
|
+
/**
|
|
2262
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2263
|
+
*/
|
|
2264
|
+
locktime: number;
|
|
2265
|
+
/**
|
|
2266
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2267
|
+
*/
|
|
2268
|
+
threshold: number;
|
|
2269
|
+
/**
|
|
2270
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2271
|
+
*/
|
|
2272
|
+
addresses: Array<string>;
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2064
2275
|
type Subnet = {
|
|
2065
2276
|
createBlockTimestamp: number;
|
|
2066
2277
|
createBlockIndex: string;
|
|
2067
2278
|
subnetId: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2281
|
+
* @deprecated
|
|
2282
|
+
*/
|
|
2068
2283
|
ownerAddresses: Array<string>;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2069
2288
|
threshold: number;
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2070
2293
|
locktime: number;
|
|
2294
|
+
/**
|
|
2295
|
+
* Latest subnet owner details for this Subnet.
|
|
2296
|
+
*/
|
|
2297
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2071
2298
|
blockchains: Array<BlockchainInfo>;
|
|
2072
2299
|
};
|
|
2073
2300
|
|
|
@@ -2082,22 +2309,46 @@ type ListSubnetsResponse = {
|
|
|
2082
2309
|
type Rewards = {
|
|
2083
2310
|
validationRewardAmount: string;
|
|
2084
2311
|
delegationRewardAmount: string;
|
|
2312
|
+
rewardAddresses?: Array<string>;
|
|
2313
|
+
rewardTxHash?: string;
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
type ValidatorHealthDetails = {
|
|
2317
|
+
/**
|
|
2318
|
+
* Percent of requests responded to in last polling.
|
|
2319
|
+
*/
|
|
2320
|
+
reachabilityPercent: number;
|
|
2321
|
+
/**
|
|
2322
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2323
|
+
*/
|
|
2324
|
+
benchedPChainRequestsPercent: number;
|
|
2325
|
+
/**
|
|
2326
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2327
|
+
*/
|
|
2328
|
+
benchedXChainRequestsPercent: number;
|
|
2329
|
+
/**
|
|
2330
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2331
|
+
*/
|
|
2332
|
+
benchedCChainRequestsPercent: number;
|
|
2085
2333
|
};
|
|
2086
2334
|
|
|
2087
2335
|
type ActiveValidatorDetails = {
|
|
2336
|
+
txHash: string;
|
|
2088
2337
|
nodeId: string;
|
|
2338
|
+
subnetId: string;
|
|
2089
2339
|
amountStaked: string;
|
|
2090
|
-
delegationFee
|
|
2340
|
+
delegationFee?: string;
|
|
2091
2341
|
startTimestamp: number;
|
|
2092
2342
|
endTimestamp: number;
|
|
2093
2343
|
stakePercentage: number;
|
|
2094
2344
|
delegatorCount: number;
|
|
2095
|
-
amountDelegated
|
|
2345
|
+
amountDelegated?: string;
|
|
2096
2346
|
uptimePerformance: number;
|
|
2097
|
-
avalancheGoVersion
|
|
2098
|
-
delegationCapacity
|
|
2347
|
+
avalancheGoVersion?: string;
|
|
2348
|
+
delegationCapacity?: string;
|
|
2099
2349
|
potentialRewards: Rewards;
|
|
2100
2350
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2351
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2101
2352
|
};
|
|
2102
2353
|
declare namespace ActiveValidatorDetails {
|
|
2103
2354
|
enum validationStatus {
|
|
@@ -2106,9 +2357,11 @@ declare namespace ActiveValidatorDetails {
|
|
|
2106
2357
|
}
|
|
2107
2358
|
|
|
2108
2359
|
type CompletedValidatorDetails = {
|
|
2360
|
+
txHash: string;
|
|
2109
2361
|
nodeId: string;
|
|
2362
|
+
subnetId: string;
|
|
2110
2363
|
amountStaked: string;
|
|
2111
|
-
delegationFee
|
|
2364
|
+
delegationFee?: string;
|
|
2112
2365
|
startTimestamp: number;
|
|
2113
2366
|
endTimestamp: number;
|
|
2114
2367
|
delegatorCount: number;
|
|
@@ -2122,9 +2375,11 @@ declare namespace CompletedValidatorDetails {
|
|
|
2122
2375
|
}
|
|
2123
2376
|
|
|
2124
2377
|
type PendingValidatorDetails = {
|
|
2378
|
+
txHash: string;
|
|
2125
2379
|
nodeId: string;
|
|
2380
|
+
subnetId: string;
|
|
2126
2381
|
amountStaked: string;
|
|
2127
|
-
delegationFee
|
|
2382
|
+
delegationFee?: string;
|
|
2128
2383
|
startTimestamp: number;
|
|
2129
2384
|
endTimestamp: number;
|
|
2130
2385
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
@@ -2135,15 +2390,33 @@ declare namespace PendingValidatorDetails {
|
|
|
2135
2390
|
}
|
|
2136
2391
|
}
|
|
2137
2392
|
|
|
2393
|
+
type RemovedValidatorDetails = {
|
|
2394
|
+
txHash: string;
|
|
2395
|
+
nodeId: string;
|
|
2396
|
+
subnetId: string;
|
|
2397
|
+
amountStaked: string;
|
|
2398
|
+
delegationFee?: string;
|
|
2399
|
+
startTimestamp: number;
|
|
2400
|
+
endTimestamp: number;
|
|
2401
|
+
removeTxHash: string;
|
|
2402
|
+
removeTimestamp: number;
|
|
2403
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2404
|
+
};
|
|
2405
|
+
declare namespace RemovedValidatorDetails {
|
|
2406
|
+
enum validationStatus {
|
|
2407
|
+
REMOVED = "removed"
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2138
2411
|
type ListValidatorDetailsResponse = {
|
|
2139
2412
|
/**
|
|
2140
2413
|
* 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.
|
|
2141
2414
|
*/
|
|
2142
2415
|
nextPageToken?: string;
|
|
2143
2416
|
/**
|
|
2144
|
-
* The list of
|
|
2417
|
+
* The list of validator Details.
|
|
2145
2418
|
*/
|
|
2146
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2419
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2147
2420
|
};
|
|
2148
2421
|
|
|
2149
2422
|
declare enum Network {
|
|
@@ -2154,7 +2427,24 @@ declare enum Network {
|
|
|
2154
2427
|
declare enum ValidationStatusType {
|
|
2155
2428
|
COMPLETED = "completed",
|
|
2156
2429
|
ACTIVE = "active",
|
|
2157
|
-
PENDING = "pending"
|
|
2430
|
+
PENDING = "pending",
|
|
2431
|
+
REMOVED = "removed"
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2436
|
+
*/
|
|
2437
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2438
|
+
FIXED = "fixed",
|
|
2439
|
+
VARIABLE = "variable"
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2444
|
+
*/
|
|
2445
|
+
declare enum PrimaryNetworkAssetType {
|
|
2446
|
+
SECP256K1 = "secp256k1",
|
|
2447
|
+
NFT = "nft"
|
|
2158
2448
|
}
|
|
2159
2449
|
|
|
2160
2450
|
type XChainAssetDetails = {
|
|
@@ -2174,18 +2464,12 @@ type XChainAssetDetails = {
|
|
|
2174
2464
|
* Denomination of this asset to represent fungibility.
|
|
2175
2465
|
*/
|
|
2176
2466
|
denomination: number;
|
|
2177
|
-
|
|
2178
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2179
|
-
*/
|
|
2180
|
-
type: string;
|
|
2467
|
+
type: PrimaryNetworkAssetType;
|
|
2181
2468
|
/**
|
|
2182
2469
|
* Timestamp in seconds this asset was created on.
|
|
2183
2470
|
*/
|
|
2184
2471
|
createdAtTimestamp: number;
|
|
2185
|
-
|
|
2186
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2187
|
-
*/
|
|
2188
|
-
cap: string;
|
|
2472
|
+
cap: PrimaryNetworkAssetCap;
|
|
2189
2473
|
};
|
|
2190
2474
|
|
|
2191
2475
|
declare enum XChainId {
|
|
@@ -2251,19 +2535,19 @@ declare class PrimaryNetworkService {
|
|
|
2251
2535
|
* @returns ListBlockchainsResponse
|
|
2252
2536
|
* @throws ApiError
|
|
2253
2537
|
*/
|
|
2254
|
-
listBlockchains({ network,
|
|
2538
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2255
2539
|
/**
|
|
2256
2540
|
* Either mainnet or a testnet.
|
|
2257
2541
|
*/
|
|
2258
2542
|
network: Network;
|
|
2259
|
-
/**
|
|
2260
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2261
|
-
*/
|
|
2262
|
-
pageSize?: number;
|
|
2263
2543
|
/**
|
|
2264
2544
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2265
2545
|
*/
|
|
2266
2546
|
pageToken?: string;
|
|
2547
|
+
/**
|
|
2548
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2549
|
+
*/
|
|
2550
|
+
pageSize?: number;
|
|
2267
2551
|
/**
|
|
2268
2552
|
* 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.
|
|
2269
2553
|
*/
|
|
@@ -2275,19 +2559,19 @@ declare class PrimaryNetworkService {
|
|
|
2275
2559
|
* @returns ListSubnetsResponse
|
|
2276
2560
|
* @throws ApiError
|
|
2277
2561
|
*/
|
|
2278
|
-
listSubnets({ network,
|
|
2562
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2279
2563
|
/**
|
|
2280
2564
|
* Either mainnet or a testnet.
|
|
2281
2565
|
*/
|
|
2282
2566
|
network: Network;
|
|
2283
|
-
/**
|
|
2284
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2285
|
-
*/
|
|
2286
|
-
pageSize?: number;
|
|
2287
2567
|
/**
|
|
2288
2568
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2289
2569
|
*/
|
|
2290
2570
|
pageToken?: string;
|
|
2571
|
+
/**
|
|
2572
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2573
|
+
*/
|
|
2574
|
+
pageSize?: number;
|
|
2291
2575
|
/**
|
|
2292
2576
|
* 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.
|
|
2293
2577
|
*/
|
|
@@ -2299,19 +2583,19 @@ declare class PrimaryNetworkService {
|
|
|
2299
2583
|
* @returns ListValidatorDetailsResponse
|
|
2300
2584
|
* @throws ApiError
|
|
2301
2585
|
*/
|
|
2302
|
-
listValidators({ network,
|
|
2586
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2303
2587
|
/**
|
|
2304
2588
|
* Either mainnet or a testnet.
|
|
2305
2589
|
*/
|
|
2306
2590
|
network: Network;
|
|
2307
|
-
/**
|
|
2308
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2309
|
-
*/
|
|
2310
|
-
pageSize?: number;
|
|
2311
2591
|
/**
|
|
2312
2592
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2313
2593
|
*/
|
|
2314
2594
|
pageToken?: string;
|
|
2595
|
+
/**
|
|
2596
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2597
|
+
*/
|
|
2598
|
+
pageSize?: number;
|
|
2315
2599
|
/**
|
|
2316
2600
|
* A comma separated list of node ids to filter by.
|
|
2317
2601
|
*/
|
|
@@ -2325,9 +2609,33 @@ declare class PrimaryNetworkService {
|
|
|
2325
2609
|
*/
|
|
2326
2610
|
validationStatus?: ValidationStatusType;
|
|
2327
2611
|
/**
|
|
2328
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2612
|
+
* 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
|
|
2613
|
+
*/
|
|
2614
|
+
minDelegationCapacity?: string;
|
|
2615
|
+
/**
|
|
2616
|
+
* 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.
|
|
2617
|
+
*/
|
|
2618
|
+
maxDelegationCapacity?: string;
|
|
2619
|
+
/**
|
|
2620
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2621
|
+
*/
|
|
2622
|
+
minTimeRemaining?: number;
|
|
2623
|
+
/**
|
|
2624
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2329
2625
|
*/
|
|
2330
|
-
|
|
2626
|
+
maxTimeRemaining?: number;
|
|
2627
|
+
/**
|
|
2628
|
+
* 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.
|
|
2629
|
+
*/
|
|
2630
|
+
minFeePercentage?: number;
|
|
2631
|
+
/**
|
|
2632
|
+
* 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.
|
|
2633
|
+
*/
|
|
2634
|
+
maxFeePercentage?: number;
|
|
2635
|
+
/**
|
|
2636
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2637
|
+
*/
|
|
2638
|
+
subnetId?: any;
|
|
2331
2639
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2332
2640
|
/**
|
|
2333
2641
|
* Get single validator details
|
|
@@ -2335,7 +2643,7 @@ declare class PrimaryNetworkService {
|
|
|
2335
2643
|
* @returns ListValidatorDetailsResponse
|
|
2336
2644
|
* @throws ApiError
|
|
2337
2645
|
*/
|
|
2338
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2646
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2339
2647
|
/**
|
|
2340
2648
|
* Either mainnet or a testnet.
|
|
2341
2649
|
*/
|
|
@@ -2344,14 +2652,14 @@ declare class PrimaryNetworkService {
|
|
|
2344
2652
|
* A primary network (P or X chain) nodeId.
|
|
2345
2653
|
*/
|
|
2346
2654
|
nodeId: string;
|
|
2347
|
-
/**
|
|
2348
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2349
|
-
*/
|
|
2350
|
-
pageSize?: number;
|
|
2351
2655
|
/**
|
|
2352
2656
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2353
2657
|
*/
|
|
2354
2658
|
pageToken?: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2661
|
+
*/
|
|
2662
|
+
pageSize?: number;
|
|
2355
2663
|
/**
|
|
2356
2664
|
* 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.
|
|
2357
2665
|
*/
|
|
@@ -2367,19 +2675,23 @@ declare class PrimaryNetworkService {
|
|
|
2367
2675
|
* @returns ListDelegatorDetailsResponse
|
|
2368
2676
|
* @throws ApiError
|
|
2369
2677
|
*/
|
|
2370
|
-
listDelegators({ network, pageSize,
|
|
2678
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2371
2679
|
/**
|
|
2372
2680
|
* Either mainnet or a testnet.
|
|
2373
2681
|
*/
|
|
2374
2682
|
network: Network;
|
|
2683
|
+
/**
|
|
2684
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2685
|
+
*/
|
|
2686
|
+
pageToken?: string;
|
|
2375
2687
|
/**
|
|
2376
2688
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2377
2689
|
*/
|
|
2378
2690
|
pageSize?: number;
|
|
2379
2691
|
/**
|
|
2380
|
-
* A
|
|
2692
|
+
* A comma separated list of reward addresses to filter by.
|
|
2381
2693
|
*/
|
|
2382
|
-
|
|
2694
|
+
rewardAddresses?: string;
|
|
2383
2695
|
/**
|
|
2384
2696
|
* 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.
|
|
2385
2697
|
*/
|
|
@@ -2388,10 +2700,6 @@ declare class PrimaryNetworkService {
|
|
|
2388
2700
|
* Delegation status of the node.
|
|
2389
2701
|
*/
|
|
2390
2702
|
delegationStatus?: DelegationStatusType;
|
|
2391
|
-
/**
|
|
2392
|
-
* A comma separated list of reward addresses to filter by.
|
|
2393
|
-
*/
|
|
2394
|
-
rewardAddresses?: string;
|
|
2395
2703
|
/**
|
|
2396
2704
|
* A comma separated list of node ids to filter by.
|
|
2397
2705
|
*/
|
|
@@ -2427,10 +2735,7 @@ type CChainSharedAssetBalance = {
|
|
|
2427
2735
|
* Denomination of this asset to represent fungibility.
|
|
2428
2736
|
*/
|
|
2429
2737
|
denomination: number;
|
|
2430
|
-
|
|
2431
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2432
|
-
*/
|
|
2433
|
-
type: string;
|
|
2738
|
+
type: PrimaryNetworkAssetType;
|
|
2434
2739
|
/**
|
|
2435
2740
|
* Amount of the asset.
|
|
2436
2741
|
*/
|
|
@@ -2465,49 +2770,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2465
2770
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2466
2771
|
};
|
|
2467
2772
|
|
|
2468
|
-
type
|
|
2773
|
+
type AggregatedAssetAmount = {
|
|
2774
|
+
/**
|
|
2775
|
+
* Unique ID for an asset.
|
|
2776
|
+
*/
|
|
2469
2777
|
assetId: string;
|
|
2778
|
+
/**
|
|
2779
|
+
* Name of this asset.
|
|
2780
|
+
*/
|
|
2781
|
+
name: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* Symbol for this asset (max 4 characters).
|
|
2784
|
+
*/
|
|
2785
|
+
symbol: string;
|
|
2786
|
+
/**
|
|
2787
|
+
* Denomination of this asset to represent fungibility.
|
|
2788
|
+
*/
|
|
2789
|
+
denomination: number;
|
|
2790
|
+
type: PrimaryNetworkAssetType;
|
|
2791
|
+
/**
|
|
2792
|
+
* Amount of the asset.
|
|
2793
|
+
*/
|
|
2470
2794
|
amount: string;
|
|
2795
|
+
utxoCount: number;
|
|
2471
2796
|
};
|
|
2472
2797
|
|
|
2473
2798
|
type PChainSharedAsset = {
|
|
2799
|
+
/**
|
|
2800
|
+
* Unique ID for an asset.
|
|
2801
|
+
*/
|
|
2474
2802
|
assetId: string;
|
|
2803
|
+
/**
|
|
2804
|
+
* Name of this asset.
|
|
2805
|
+
*/
|
|
2806
|
+
name: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* Symbol for this asset (max 4 characters).
|
|
2809
|
+
*/
|
|
2810
|
+
symbol: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* Denomination of this asset to represent fungibility.
|
|
2813
|
+
*/
|
|
2814
|
+
denomination: number;
|
|
2815
|
+
type: PrimaryNetworkAssetType;
|
|
2816
|
+
/**
|
|
2817
|
+
* Amount of the asset.
|
|
2818
|
+
*/
|
|
2475
2819
|
amount: string;
|
|
2820
|
+
utxoCount: number;
|
|
2476
2821
|
sharedWithChainId: string;
|
|
2477
2822
|
status: string;
|
|
2478
2823
|
};
|
|
2479
2824
|
|
|
2480
2825
|
type PChainBalance = {
|
|
2481
2826
|
/**
|
|
2482
|
-
* A list of objects containing P-chain Asset
|
|
2827
|
+
* 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.
|
|
2483
2828
|
*/
|
|
2484
|
-
unlockedUnstaked: Array<
|
|
2829
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2485
2830
|
/**
|
|
2486
|
-
* A list of objects containing P-chain Asset
|
|
2831
|
+
* 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.
|
|
2487
2832
|
*/
|
|
2488
|
-
unlockedStaked: Array<
|
|
2833
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2489
2834
|
/**
|
|
2490
|
-
* A list of objects containing P-chain Asset
|
|
2835
|
+
* 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.
|
|
2491
2836
|
*/
|
|
2492
|
-
lockedPlatform: Array<
|
|
2837
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2493
2838
|
/**
|
|
2494
|
-
* A list of objects containing P-chain Asset
|
|
2839
|
+
* 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.
|
|
2495
2840
|
*/
|
|
2496
|
-
lockedStakeable: Array<
|
|
2841
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2497
2842
|
/**
|
|
2498
|
-
* A list of objects containing P-chain Asset
|
|
2843
|
+
* 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.
|
|
2499
2844
|
*/
|
|
2500
|
-
lockedStaked: Array<
|
|
2845
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2501
2846
|
/**
|
|
2502
|
-
* A list of objects containing P-chain Asset
|
|
2847
|
+
* 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.
|
|
2503
2848
|
*/
|
|
2504
|
-
pendingStaked: Array<
|
|
2849
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2505
2850
|
/**
|
|
2506
|
-
* A list of objects containing P-chain Asset
|
|
2851
|
+
* 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.
|
|
2507
2852
|
*/
|
|
2508
2853
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2509
2854
|
/**
|
|
2510
|
-
* A list of objects containing P-chain Asset
|
|
2855
|
+
* 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.
|
|
2511
2856
|
*/
|
|
2512
2857
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2513
2858
|
};
|
|
@@ -2517,7 +2862,7 @@ type ListPChainBalancesResponse = {
|
|
|
2517
2862
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2518
2863
|
};
|
|
2519
2864
|
|
|
2520
|
-
type
|
|
2865
|
+
type XChainSharedAssetBalance = {
|
|
2521
2866
|
/**
|
|
2522
2867
|
* Unique ID for an asset.
|
|
2523
2868
|
*/
|
|
@@ -2534,55 +2879,24 @@ type XChainAssetBalance = {
|
|
|
2534
2879
|
* Denomination of this asset to represent fungibility.
|
|
2535
2880
|
*/
|
|
2536
2881
|
denomination: number;
|
|
2537
|
-
|
|
2538
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2539
|
-
*/
|
|
2540
|
-
type: string;
|
|
2882
|
+
type: PrimaryNetworkAssetType;
|
|
2541
2883
|
/**
|
|
2542
2884
|
* Amount of the asset.
|
|
2543
2885
|
*/
|
|
2544
2886
|
amount: string;
|
|
2545
2887
|
utxoCount: number;
|
|
2888
|
+
sharedWithChainId: string;
|
|
2546
2889
|
};
|
|
2547
2890
|
|
|
2548
|
-
type
|
|
2549
|
-
/**
|
|
2550
|
-
* Unique ID for an asset.
|
|
2551
|
-
*/
|
|
2552
|
-
assetId: string;
|
|
2553
|
-
/**
|
|
2554
|
-
* Name of this asset.
|
|
2555
|
-
*/
|
|
2556
|
-
name: string;
|
|
2557
|
-
/**
|
|
2558
|
-
* Symbol for this asset (max 4 characters).
|
|
2559
|
-
*/
|
|
2560
|
-
symbol: string;
|
|
2561
|
-
/**
|
|
2562
|
-
* Denomination of this asset to represent fungibility.
|
|
2563
|
-
*/
|
|
2564
|
-
denomination: number;
|
|
2565
|
-
/**
|
|
2566
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2567
|
-
*/
|
|
2568
|
-
type: string;
|
|
2569
|
-
/**
|
|
2570
|
-
* Amount of the asset.
|
|
2571
|
-
*/
|
|
2572
|
-
amount: string;
|
|
2573
|
-
utxoCount: number;
|
|
2574
|
-
sharedWithChainId: string;
|
|
2575
|
-
};
|
|
2576
|
-
|
|
2577
|
-
type XChainBalances = {
|
|
2891
|
+
type XChainBalances = {
|
|
2578
2892
|
/**
|
|
2579
2893
|
* A list of objects containing X-chain Asset balance information.
|
|
2580
2894
|
*/
|
|
2581
|
-
locked: Array<
|
|
2895
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2582
2896
|
/**
|
|
2583
2897
|
* A list of objects containing X-chain Asset balance information.
|
|
2584
2898
|
*/
|
|
2585
|
-
unlocked: Array<
|
|
2899
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2586
2900
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2587
2901
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2588
2902
|
};
|
|
@@ -2640,6 +2954,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2640
2954
|
txCount: number;
|
|
2641
2955
|
transactions: Array<string>;
|
|
2642
2956
|
blockSizeBytes: number;
|
|
2957
|
+
currentSupply?: string;
|
|
2643
2958
|
proposerDetails?: ProposerDetails;
|
|
2644
2959
|
};
|
|
2645
2960
|
|
|
@@ -2652,6 +2967,7 @@ type PrimaryNetworkBlock = {
|
|
|
2652
2967
|
txCount: number;
|
|
2653
2968
|
transactions: Array<string>;
|
|
2654
2969
|
blockSizeBytes: number;
|
|
2970
|
+
currentSupply?: string;
|
|
2655
2971
|
proposerDetails?: ProposerDetails;
|
|
2656
2972
|
};
|
|
2657
2973
|
|
|
@@ -2693,7 +3009,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2693
3009
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2694
3010
|
* @throws ApiError
|
|
2695
3011
|
*/
|
|
2696
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3012
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2697
3013
|
/**
|
|
2698
3014
|
* A primary network blockchain id or alias.
|
|
2699
3015
|
*/
|
|
@@ -2706,14 +3022,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2706
3022
|
* A primary network (P or X chain) nodeId.
|
|
2707
3023
|
*/
|
|
2708
3024
|
nodeId: string;
|
|
2709
|
-
/**
|
|
2710
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2711
|
-
*/
|
|
2712
|
-
pageSize?: number;
|
|
2713
3025
|
/**
|
|
2714
3026
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2715
3027
|
*/
|
|
2716
3028
|
pageToken?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3031
|
+
*/
|
|
3032
|
+
pageSize?: number;
|
|
2717
3033
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2718
3034
|
/**
|
|
2719
3035
|
* List latest blocks
|
|
@@ -2721,7 +3037,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2721
3037
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2722
3038
|
* @throws ApiError
|
|
2723
3039
|
*/
|
|
2724
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3040
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2725
3041
|
/**
|
|
2726
3042
|
* A primary network blockchain id or alias.
|
|
2727
3043
|
*/
|
|
@@ -2730,20 +3046,49 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2730
3046
|
* Either mainnet or a testnet.
|
|
2731
3047
|
*/
|
|
2732
3048
|
network: Network;
|
|
2733
|
-
/**
|
|
2734
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2735
|
-
*/
|
|
2736
|
-
pageSize?: number;
|
|
2737
3049
|
/**
|
|
2738
3050
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2739
3051
|
*/
|
|
2740
3052
|
pageToken?: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3055
|
+
*/
|
|
3056
|
+
pageSize?: number;
|
|
2741
3057
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2742
3058
|
}
|
|
2743
3059
|
|
|
3060
|
+
type AssetWithPriceInfo = {
|
|
3061
|
+
/**
|
|
3062
|
+
* Unique ID for an asset.
|
|
3063
|
+
*/
|
|
3064
|
+
assetId: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* Name of this asset.
|
|
3067
|
+
*/
|
|
3068
|
+
name: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* Symbol for this asset (max 4 characters).
|
|
3071
|
+
*/
|
|
3072
|
+
symbol: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* Denomination of this asset to represent fungibility.
|
|
3075
|
+
*/
|
|
3076
|
+
denomination: number;
|
|
3077
|
+
type: PrimaryNetworkAssetType;
|
|
3078
|
+
/**
|
|
3079
|
+
* Amount of the asset.
|
|
3080
|
+
*/
|
|
3081
|
+
amount: string;
|
|
3082
|
+
/**
|
|
3083
|
+
* 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.
|
|
3084
|
+
*/
|
|
3085
|
+
historicalPrice?: Money;
|
|
3086
|
+
};
|
|
3087
|
+
|
|
2744
3088
|
declare enum RewardType {
|
|
2745
3089
|
VALIDATOR = "VALIDATOR",
|
|
2746
|
-
DELEGATOR = "DELEGATOR"
|
|
3090
|
+
DELEGATOR = "DELEGATOR",
|
|
3091
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2747
3092
|
}
|
|
2748
3093
|
|
|
2749
3094
|
type HistoricalReward = {
|
|
@@ -2759,10 +3104,7 @@ type HistoricalReward = {
|
|
|
2759
3104
|
rewardType: RewardType;
|
|
2760
3105
|
utxoId: string;
|
|
2761
3106
|
outputIndex: number;
|
|
2762
|
-
|
|
2763
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2764
|
-
*/
|
|
2765
|
-
reward: PChainAsset;
|
|
3107
|
+
reward: AssetWithPriceInfo;
|
|
2766
3108
|
rewardTxHash: string;
|
|
2767
3109
|
};
|
|
2768
3110
|
|
|
@@ -2774,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2774
3116
|
historicalRewards: Array<HistoricalReward>;
|
|
2775
3117
|
};
|
|
2776
3118
|
|
|
3119
|
+
type AssetAmount = {
|
|
3120
|
+
/**
|
|
3121
|
+
* Unique ID for an asset.
|
|
3122
|
+
*/
|
|
3123
|
+
assetId: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* Name of this asset.
|
|
3126
|
+
*/
|
|
3127
|
+
name: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* Symbol for this asset (max 4 characters).
|
|
3130
|
+
*/
|
|
3131
|
+
symbol: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* Denomination of this asset to represent fungibility.
|
|
3134
|
+
*/
|
|
3135
|
+
denomination: number;
|
|
3136
|
+
type: PrimaryNetworkAssetType;
|
|
3137
|
+
/**
|
|
3138
|
+
* Amount of the asset.
|
|
3139
|
+
*/
|
|
3140
|
+
amount: string;
|
|
3141
|
+
};
|
|
3142
|
+
|
|
2777
3143
|
type PendingReward = {
|
|
2778
3144
|
/**
|
|
2779
3145
|
* An array of P-Chain wallet addresses.
|
|
@@ -2787,9 +3153,9 @@ type PendingReward = {
|
|
|
2787
3153
|
rewardType: RewardType;
|
|
2788
3154
|
progress: number;
|
|
2789
3155
|
/**
|
|
2790
|
-
* An object containing P-chain Asset
|
|
3156
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2791
3157
|
*/
|
|
2792
|
-
estimatedReward:
|
|
3158
|
+
estimatedReward: AssetAmount;
|
|
2793
3159
|
};
|
|
2794
3160
|
|
|
2795
3161
|
type ListPendingRewardsResponse = {
|
|
@@ -2809,23 +3175,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2809
3175
|
* @returns ListPendingRewardsResponse
|
|
2810
3176
|
* @throws ApiError
|
|
2811
3177
|
*/
|
|
2812
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3178
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2813
3179
|
/**
|
|
2814
3180
|
* Either mainnet or a testnet.
|
|
2815
3181
|
*/
|
|
2816
3182
|
network: Network;
|
|
2817
3183
|
/**
|
|
2818
|
-
* 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".
|
|
3184
|
+
* 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.
|
|
2819
3185
|
*/
|
|
2820
3186
|
addresses?: string;
|
|
3187
|
+
/**
|
|
3188
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3189
|
+
*/
|
|
3190
|
+
pageToken?: string;
|
|
2821
3191
|
/**
|
|
2822
3192
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2823
3193
|
*/
|
|
2824
3194
|
pageSize?: number;
|
|
2825
3195
|
/**
|
|
2826
|
-
* A
|
|
3196
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2827
3197
|
*/
|
|
2828
|
-
|
|
3198
|
+
nodeIds?: string;
|
|
2829
3199
|
/**
|
|
2830
3200
|
* 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.
|
|
2831
3201
|
*/
|
|
@@ -2837,64 +3207,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2837
3207
|
* @returns ListHistoricalRewardsResponse
|
|
2838
3208
|
* @throws ApiError
|
|
2839
3209
|
*/
|
|
2840
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3210
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2841
3211
|
/**
|
|
2842
3212
|
* Either mainnet or a testnet.
|
|
2843
3213
|
*/
|
|
2844
3214
|
network: Network;
|
|
2845
3215
|
/**
|
|
2846
|
-
* 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".
|
|
3216
|
+
* 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.
|
|
2847
3217
|
*/
|
|
2848
3218
|
addresses?: string;
|
|
3219
|
+
/**
|
|
3220
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3221
|
+
*/
|
|
3222
|
+
pageToken?: string;
|
|
2849
3223
|
/**
|
|
2850
3224
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2851
3225
|
*/
|
|
2852
3226
|
pageSize?: number;
|
|
2853
3227
|
/**
|
|
2854
|
-
* A
|
|
3228
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2855
3229
|
*/
|
|
2856
|
-
|
|
3230
|
+
nodeIds?: string;
|
|
2857
3231
|
/**
|
|
2858
3232
|
* 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.
|
|
2859
3233
|
*/
|
|
2860
3234
|
sortOrder?: SortOrder;
|
|
3235
|
+
/**
|
|
3236
|
+
* The currency that return values should use. Defaults to USD.
|
|
3237
|
+
*/
|
|
3238
|
+
currency?: CurrencyCode;
|
|
2861
3239
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2862
3240
|
}
|
|
2863
3241
|
|
|
2864
|
-
type Asset = {
|
|
2865
|
-
/**
|
|
2866
|
-
* Unique ID for an asset.
|
|
2867
|
-
*/
|
|
2868
|
-
assetId: string;
|
|
2869
|
-
/**
|
|
2870
|
-
* Name of this asset.
|
|
2871
|
-
*/
|
|
2872
|
-
name: string;
|
|
2873
|
-
/**
|
|
2874
|
-
* Symbol for this asset (max 4 characters).
|
|
2875
|
-
*/
|
|
2876
|
-
symbol: string;
|
|
2877
|
-
/**
|
|
2878
|
-
* Denomination of this asset to represent fungibility.
|
|
2879
|
-
*/
|
|
2880
|
-
denomination: number;
|
|
2881
|
-
/**
|
|
2882
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2883
|
-
*/
|
|
2884
|
-
type: string;
|
|
2885
|
-
/**
|
|
2886
|
-
* Amount of the asset.
|
|
2887
|
-
*/
|
|
2888
|
-
amount: string;
|
|
2889
|
-
};
|
|
2890
|
-
|
|
2891
3242
|
type UtxoCredential = {
|
|
2892
3243
|
/**
|
|
2893
|
-
* Signature provided to consume the output
|
|
3244
|
+
* Signature provided to consume the output.
|
|
2894
3245
|
*/
|
|
2895
3246
|
signature?: string;
|
|
2896
3247
|
/**
|
|
2897
|
-
* Public key associated with the signature
|
|
3248
|
+
* Public key associated with the signature.
|
|
2898
3249
|
*/
|
|
2899
3250
|
publicKey?: string;
|
|
2900
3251
|
};
|
|
@@ -2905,9 +3256,9 @@ type EVMInput = {
|
|
|
2905
3256
|
*/
|
|
2906
3257
|
fromAddress: string;
|
|
2907
3258
|
/**
|
|
2908
|
-
*
|
|
3259
|
+
* AssetAmount details for the asset being transferred.
|
|
2909
3260
|
*/
|
|
2910
|
-
asset:
|
|
3261
|
+
asset: AssetAmount;
|
|
2911
3262
|
/**
|
|
2912
3263
|
* Credentials that signed this transaction.
|
|
2913
3264
|
*/
|
|
@@ -2916,66 +3267,66 @@ type EVMInput = {
|
|
|
2916
3267
|
|
|
2917
3268
|
type Utxo = {
|
|
2918
3269
|
/**
|
|
2919
|
-
*
|
|
3270
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2920
3271
|
*/
|
|
2921
|
-
|
|
2922
|
-
asset:
|
|
3272
|
+
addresses: Array<string>;
|
|
3273
|
+
asset: AssetAmount;
|
|
2923
3274
|
/**
|
|
2924
|
-
*
|
|
3275
|
+
* Blockchain ID on which this output is consumed on.
|
|
2925
3276
|
*/
|
|
2926
|
-
|
|
3277
|
+
consumedOnChainId: string;
|
|
2927
3278
|
/**
|
|
2928
|
-
*
|
|
3279
|
+
* Transaction ID that consumed this output.
|
|
2929
3280
|
*/
|
|
2930
|
-
|
|
3281
|
+
consumingTxHash?: string;
|
|
2931
3282
|
/**
|
|
2932
|
-
* Blockchain ID on which this output is
|
|
3283
|
+
* Blockchain ID on which this output is created on.
|
|
2933
3284
|
*/
|
|
2934
|
-
|
|
3285
|
+
createdOnChainId: string;
|
|
2935
3286
|
/**
|
|
2936
|
-
*
|
|
3287
|
+
* UTXO ID for this output.
|
|
2937
3288
|
*/
|
|
2938
|
-
|
|
3289
|
+
utxoId: string;
|
|
2939
3290
|
/**
|
|
2940
|
-
*
|
|
3291
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2941
3292
|
*/
|
|
2942
|
-
|
|
3293
|
+
consumingTxTimestamp?: number;
|
|
2943
3294
|
/**
|
|
2944
|
-
*
|
|
3295
|
+
* Transaction ID that created this output.
|
|
2945
3296
|
*/
|
|
2946
|
-
|
|
3297
|
+
creationTxHash: string;
|
|
2947
3298
|
/**
|
|
2948
|
-
*
|
|
3299
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2949
3300
|
*/
|
|
2950
|
-
|
|
3301
|
+
credentials?: Array<UtxoCredential>;
|
|
2951
3302
|
/**
|
|
2952
|
-
*
|
|
3303
|
+
* Index representing the minting set for the NFT mint output.
|
|
2953
3304
|
*/
|
|
2954
|
-
|
|
3305
|
+
groupId?: number;
|
|
2955
3306
|
/**
|
|
2956
3307
|
* Locktime in seconds after which this output can be consumed.
|
|
2957
3308
|
*/
|
|
2958
3309
|
locktime: number;
|
|
2959
3310
|
/**
|
|
2960
|
-
*
|
|
3311
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2961
3312
|
*/
|
|
2962
|
-
|
|
3313
|
+
outputIndex: string;
|
|
2963
3314
|
/**
|
|
2964
|
-
*
|
|
3315
|
+
* Hex encoded data for NFT assets.
|
|
2965
3316
|
*/
|
|
2966
|
-
|
|
3317
|
+
payload?: string;
|
|
2967
3318
|
/**
|
|
2968
|
-
*
|
|
3319
|
+
* Minimum number of signatures required to consume this output.
|
|
2969
3320
|
*/
|
|
2970
|
-
|
|
3321
|
+
threshold: number;
|
|
2971
3322
|
/**
|
|
2972
|
-
*
|
|
3323
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2973
3324
|
*/
|
|
2974
|
-
|
|
3325
|
+
timestamp: number;
|
|
2975
3326
|
/**
|
|
2976
|
-
*
|
|
3327
|
+
* Type of output.
|
|
2977
3328
|
*/
|
|
2978
|
-
|
|
3329
|
+
utxoType: string;
|
|
2979
3330
|
};
|
|
2980
3331
|
|
|
2981
3332
|
type CChainExportTransaction = {
|
|
@@ -3002,11 +3353,11 @@ type CChainExportTransaction = {
|
|
|
3002
3353
|
/**
|
|
3003
3354
|
* Assets unlocked by inputs of this transaction.
|
|
3004
3355
|
*/
|
|
3005
|
-
amountUnlocked: Array<
|
|
3356
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3006
3357
|
/**
|
|
3007
3358
|
* Assets created by outputs of this transaction.
|
|
3008
3359
|
*/
|
|
3009
|
-
amountCreated: Array<
|
|
3360
|
+
amountCreated: Array<AssetAmount>;
|
|
3010
3361
|
/**
|
|
3011
3362
|
* Source chain for an atomic transaction.
|
|
3012
3363
|
*/
|
|
@@ -3037,9 +3388,9 @@ type EVMOutput = {
|
|
|
3037
3388
|
*/
|
|
3038
3389
|
toAddress: string;
|
|
3039
3390
|
/**
|
|
3040
|
-
*
|
|
3391
|
+
* AssetAmount details for the asset being transferred.
|
|
3041
3392
|
*/
|
|
3042
|
-
asset:
|
|
3393
|
+
asset: AssetAmount;
|
|
3043
3394
|
};
|
|
3044
3395
|
|
|
3045
3396
|
type CChainImportTransaction = {
|
|
@@ -3066,11 +3417,11 @@ type CChainImportTransaction = {
|
|
|
3066
3417
|
/**
|
|
3067
3418
|
* Assets unlocked by inputs of this transaction.
|
|
3068
3419
|
*/
|
|
3069
|
-
amountUnlocked: Array<
|
|
3420
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3070
3421
|
/**
|
|
3071
3422
|
* Assets created by outputs of this transaction.
|
|
3072
3423
|
*/
|
|
3073
|
-
amountCreated: Array<
|
|
3424
|
+
amountCreated: Array<AssetAmount>;
|
|
3074
3425
|
/**
|
|
3075
3426
|
* Source chain for an atomic transaction.
|
|
3076
3427
|
*/
|
|
@@ -3106,16 +3457,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3106
3457
|
|
|
3107
3458
|
declare enum PChainTransactionType {
|
|
3108
3459
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3109
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3110
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3111
3460
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3112
|
-
|
|
3113
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3461
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3114
3462
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3115
3463
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3116
3464
|
IMPORT_TX = "ImportTx",
|
|
3117
3465
|
EXPORT_TX = "ExportTx",
|
|
3118
3466
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3467
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3468
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3469
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3470
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3471
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3472
|
+
BASE_TX = "BaseTx",
|
|
3473
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3119
3474
|
UNKNOWN = "UNKNOWN"
|
|
3120
3475
|
}
|
|
3121
3476
|
|
|
@@ -3126,29 +3481,48 @@ declare enum UtxoType {
|
|
|
3126
3481
|
|
|
3127
3482
|
type PChainUtxo = {
|
|
3128
3483
|
/**
|
|
3129
|
-
*
|
|
3484
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3130
3485
|
*/
|
|
3131
3486
|
addresses: Array<string>;
|
|
3487
|
+
asset: AssetAmount;
|
|
3488
|
+
/**
|
|
3489
|
+
* Blockchain ID on which this output is consumed on.
|
|
3490
|
+
*/
|
|
3491
|
+
consumedOnChainId: string;
|
|
3492
|
+
/**
|
|
3493
|
+
* Transaction ID that consumed this output.
|
|
3494
|
+
*/
|
|
3495
|
+
consumingTxHash?: string;
|
|
3496
|
+
/**
|
|
3497
|
+
* Blockchain ID on which this output is created on.
|
|
3498
|
+
*/
|
|
3499
|
+
createdOnChainId: string;
|
|
3500
|
+
/**
|
|
3501
|
+
* UTXO ID for this output.
|
|
3502
|
+
*/
|
|
3132
3503
|
utxoId: string;
|
|
3133
|
-
|
|
3134
|
-
|
|
3504
|
+
/**
|
|
3505
|
+
* @deprecated
|
|
3506
|
+
*/
|
|
3507
|
+
amount: string;
|
|
3508
|
+
/**
|
|
3509
|
+
* @deprecated
|
|
3510
|
+
*/
|
|
3511
|
+
assetId: string;
|
|
3135
3512
|
blockNumber: string;
|
|
3136
3513
|
blockTimestamp: number;
|
|
3137
|
-
consumingTxHash?: string;
|
|
3138
|
-
consumingBlockTimestamp?: number;
|
|
3139
3514
|
consumingBlockNumber?: string;
|
|
3140
|
-
|
|
3141
|
-
utxoType: UtxoType;
|
|
3142
|
-
amount: string;
|
|
3143
|
-
stakeableLocktime?: number;
|
|
3515
|
+
consumingBlockTimestamp?: number;
|
|
3144
3516
|
platformLocktime?: number;
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3517
|
+
outputIndex: number;
|
|
3518
|
+
rewardType?: RewardType;
|
|
3519
|
+
stakeableLocktime?: number;
|
|
3148
3520
|
staked?: boolean;
|
|
3149
|
-
|
|
3521
|
+
threshold?: number;
|
|
3522
|
+
txHash: string;
|
|
3150
3523
|
utxoEndTimestamp?: number;
|
|
3151
|
-
|
|
3524
|
+
utxoStartTimestamp?: number;
|
|
3525
|
+
utxoType: UtxoType;
|
|
3152
3526
|
};
|
|
3153
3527
|
|
|
3154
3528
|
type PChainTransaction = {
|
|
@@ -3174,17 +3548,17 @@ type PChainTransaction = {
|
|
|
3174
3548
|
*/
|
|
3175
3549
|
destinationChain?: string;
|
|
3176
3550
|
/**
|
|
3177
|
-
* A list of objects containing P-chain Asset
|
|
3551
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3178
3552
|
*/
|
|
3179
|
-
value: Array<
|
|
3553
|
+
value: Array<AssetAmount>;
|
|
3180
3554
|
/**
|
|
3181
|
-
* A list of objects containing P-chain Asset
|
|
3555
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3182
3556
|
*/
|
|
3183
|
-
amountBurned: Array<
|
|
3557
|
+
amountBurned: Array<AssetAmount>;
|
|
3184
3558
|
/**
|
|
3185
|
-
* A list of objects containing P-chain Asset
|
|
3559
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3186
3560
|
*/
|
|
3187
|
-
amountStaked: Array<
|
|
3561
|
+
amountStaked: Array<AssetAmount>;
|
|
3188
3562
|
/**
|
|
3189
3563
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3190
3564
|
*/
|
|
@@ -3210,11 +3584,16 @@ type PChainTransaction = {
|
|
|
3210
3584
|
*/
|
|
3211
3585
|
estimatedReward?: string;
|
|
3212
3586
|
rewardTxHash?: string;
|
|
3587
|
+
rewardAddresses?: Array<string>;
|
|
3213
3588
|
memo?: string;
|
|
3214
3589
|
/**
|
|
3215
3590
|
* Present for RewardValidatorTx
|
|
3216
3591
|
*/
|
|
3217
3592
|
stakingTxHash?: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3595
|
+
*/
|
|
3596
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3218
3597
|
};
|
|
3219
3598
|
|
|
3220
3599
|
type ListPChainTransactionsResponse = {
|
|
@@ -3226,6 +3605,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3226
3605
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3227
3606
|
};
|
|
3228
3607
|
|
|
3608
|
+
/**
|
|
3609
|
+
* Type of transaction.
|
|
3610
|
+
*/
|
|
3611
|
+
declare enum XChainTransactionType {
|
|
3612
|
+
BASE_TX = "BaseTx",
|
|
3613
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3614
|
+
OPERATION_TX = "OperationTx",
|
|
3615
|
+
IMPORT_TX = "ImportTx",
|
|
3616
|
+
EXPORT_TX = "ExportTx",
|
|
3617
|
+
UNKNOWN = "UNKNOWN"
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3229
3620
|
type XChainLinearTransaction = {
|
|
3230
3621
|
/**
|
|
3231
3622
|
* Unique ID for this transaction.
|
|
@@ -3239,10 +3630,7 @@ type XChainLinearTransaction = {
|
|
|
3239
3630
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3240
3631
|
*/
|
|
3241
3632
|
timestamp: number;
|
|
3242
|
-
|
|
3243
|
-
* Type of transaction.
|
|
3244
|
-
*/
|
|
3245
|
-
txType: string;
|
|
3633
|
+
txType: XChainTransactionType;
|
|
3246
3634
|
/**
|
|
3247
3635
|
* Hex encoded memo bytes for this transaction.
|
|
3248
3636
|
*/
|
|
@@ -3252,11 +3640,11 @@ type XChainLinearTransaction = {
|
|
|
3252
3640
|
/**
|
|
3253
3641
|
* Assets unlocked by inputs of this transaction.
|
|
3254
3642
|
*/
|
|
3255
|
-
amountUnlocked: Array<
|
|
3643
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3256
3644
|
/**
|
|
3257
3645
|
* Assets created by outputs of this transaction.
|
|
3258
3646
|
*/
|
|
3259
|
-
amountCreated: Array<
|
|
3647
|
+
amountCreated: Array<AssetAmount>;
|
|
3260
3648
|
/**
|
|
3261
3649
|
* Source chain for an atomic transaction.
|
|
3262
3650
|
*/
|
|
@@ -3266,7 +3654,7 @@ type XChainLinearTransaction = {
|
|
|
3266
3654
|
*/
|
|
3267
3655
|
destinationChain?: string;
|
|
3268
3656
|
/**
|
|
3269
|
-
*
|
|
3657
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3270
3658
|
*/
|
|
3271
3659
|
assetCreated?: XChainAssetDetails;
|
|
3272
3660
|
/**
|
|
@@ -3316,10 +3704,7 @@ type XChainNonLinearTransaction = {
|
|
|
3316
3704
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3317
3705
|
*/
|
|
3318
3706
|
timestamp: number;
|
|
3319
|
-
|
|
3320
|
-
* Type of transaction.
|
|
3321
|
-
*/
|
|
3322
|
-
txType: string;
|
|
3707
|
+
txType: XChainTransactionType;
|
|
3323
3708
|
/**
|
|
3324
3709
|
* Hex encoded memo bytes for this transaction.
|
|
3325
3710
|
*/
|
|
@@ -3329,11 +3714,11 @@ type XChainNonLinearTransaction = {
|
|
|
3329
3714
|
/**
|
|
3330
3715
|
* Assets unlocked by inputs of this transaction.
|
|
3331
3716
|
*/
|
|
3332
|
-
amountUnlocked: Array<
|
|
3717
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3333
3718
|
/**
|
|
3334
3719
|
* Assets created by outputs of this transaction.
|
|
3335
3720
|
*/
|
|
3336
|
-
amountCreated: Array<
|
|
3721
|
+
amountCreated: Array<AssetAmount>;
|
|
3337
3722
|
/**
|
|
3338
3723
|
* Source chain for an atomic transaction.
|
|
3339
3724
|
*/
|
|
@@ -3343,7 +3728,7 @@ type XChainNonLinearTransaction = {
|
|
|
3343
3728
|
*/
|
|
3344
3729
|
destinationChain?: string;
|
|
3345
3730
|
/**
|
|
3346
|
-
*
|
|
3731
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3347
3732
|
*/
|
|
3348
3733
|
assetCreated?: XChainAssetDetails;
|
|
3349
3734
|
/**
|
|
@@ -3377,18 +3762,21 @@ declare enum PChainId {
|
|
|
3377
3762
|
|
|
3378
3763
|
declare enum PrimaryNetworkTxType {
|
|
3379
3764
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3380
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3381
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3382
3765
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3383
|
-
|
|
3384
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3766
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3385
3767
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3386
3768
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3387
3769
|
IMPORT_TX = "ImportTx",
|
|
3388
3770
|
EXPORT_TX = "ExportTx",
|
|
3389
3771
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3390
|
-
|
|
3772
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3773
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3774
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3775
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3776
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3391
3777
|
BASE_TX = "BaseTx",
|
|
3778
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3779
|
+
UNKNOWN = "UNKNOWN",
|
|
3392
3780
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3393
3781
|
OPERATION_TX = "OperationTx"
|
|
3394
3782
|
}
|
|
@@ -3420,13 +3808,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3420
3808
|
* List latest transactions
|
|
3421
3809
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3422
3810
|
*
|
|
3423
|
-
* Transactions are filterable by addresses.
|
|
3811
|
+
* 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.
|
|
3424
3812
|
*
|
|
3425
3813
|
* 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.
|
|
3426
3814
|
* @returns any
|
|
3427
3815
|
* @throws ApiError
|
|
3428
3816
|
*/
|
|
3429
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3817
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3430
3818
|
/**
|
|
3431
3819
|
* A primary network blockchain id or alias.
|
|
3432
3820
|
*/
|
|
@@ -3451,14 +3839,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3451
3839
|
* Query param for retrieving items before a specific timestamp.
|
|
3452
3840
|
*/
|
|
3453
3841
|
endTimestamp?: number;
|
|
3454
|
-
/**
|
|
3455
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3456
|
-
*/
|
|
3457
|
-
pageSize?: number;
|
|
3458
3842
|
/**
|
|
3459
3843
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3460
3844
|
*/
|
|
3461
3845
|
pageToken?: string;
|
|
3846
|
+
/**
|
|
3847
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3848
|
+
*/
|
|
3849
|
+
pageSize?: number;
|
|
3462
3850
|
/**
|
|
3463
3851
|
* 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.
|
|
3464
3852
|
*/
|
|
@@ -3470,7 +3858,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3470
3858
|
* @returns ListPChainTransactionsResponse
|
|
3471
3859
|
* @throws ApiError
|
|
3472
3860
|
*/
|
|
3473
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3861
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3474
3862
|
/**
|
|
3475
3863
|
* A primary network blockchain id or alias.
|
|
3476
3864
|
*/
|
|
@@ -3495,14 +3883,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3495
3883
|
* Query param for retrieving items before a specific timestamp.
|
|
3496
3884
|
*/
|
|
3497
3885
|
endTimestamp?: number;
|
|
3498
|
-
/**
|
|
3499
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3500
|
-
*/
|
|
3501
|
-
pageSize?: number;
|
|
3502
3886
|
/**
|
|
3503
3887
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3504
3888
|
*/
|
|
3505
3889
|
pageToken?: string;
|
|
3890
|
+
/**
|
|
3891
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3892
|
+
*/
|
|
3893
|
+
pageSize?: number;
|
|
3506
3894
|
/**
|
|
3507
3895
|
* 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.
|
|
3508
3896
|
*/
|
|
@@ -3514,7 +3902,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3514
3902
|
* @returns ListXChainTransactionsResponse
|
|
3515
3903
|
* @throws ApiError
|
|
3516
3904
|
*/
|
|
3517
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3905
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3518
3906
|
/**
|
|
3519
3907
|
* A primary network blockchain id or alias.
|
|
3520
3908
|
*/
|
|
@@ -3539,14 +3927,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3539
3927
|
* Query param for retrieving items before a specific timestamp.
|
|
3540
3928
|
*/
|
|
3541
3929
|
endTimestamp?: number;
|
|
3542
|
-
/**
|
|
3543
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3544
|
-
*/
|
|
3545
|
-
pageSize?: number;
|
|
3546
3930
|
/**
|
|
3547
3931
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3548
3932
|
*/
|
|
3549
3933
|
pageToken?: string;
|
|
3934
|
+
/**
|
|
3935
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3936
|
+
*/
|
|
3937
|
+
pageSize?: number;
|
|
3550
3938
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3551
3939
|
}
|
|
3552
3940
|
|
|
@@ -3577,7 +3965,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3577
3965
|
* @returns any
|
|
3578
3966
|
* @throws ApiError
|
|
3579
3967
|
*/
|
|
3580
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3968
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3581
3969
|
/**
|
|
3582
3970
|
* A primary network blockchain id or alias.
|
|
3583
3971
|
*/
|
|
@@ -3590,14 +3978,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3590
3978
|
* 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".
|
|
3591
3979
|
*/
|
|
3592
3980
|
addresses?: string;
|
|
3593
|
-
/**
|
|
3594
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3595
|
-
*/
|
|
3596
|
-
pageSize?: number;
|
|
3597
3981
|
/**
|
|
3598
3982
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3599
3983
|
*/
|
|
3600
3984
|
pageToken?: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3987
|
+
*/
|
|
3988
|
+
pageSize?: number;
|
|
3601
3989
|
/**
|
|
3602
3990
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3603
3991
|
*/
|
|
@@ -3642,7 +4030,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3642
4030
|
* @returns ListXChainVerticesResponse
|
|
3643
4031
|
* @throws ApiError
|
|
3644
4032
|
*/
|
|
3645
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4033
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3646
4034
|
/**
|
|
3647
4035
|
* A primary network blockchain id or alias.
|
|
3648
4036
|
*/
|
|
@@ -3651,14 +4039,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3651
4039
|
* Either mainnet or a testnet.
|
|
3652
4040
|
*/
|
|
3653
4041
|
network: Network;
|
|
3654
|
-
/**
|
|
3655
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3656
|
-
*/
|
|
3657
|
-
pageSize?: number;
|
|
3658
4042
|
/**
|
|
3659
4043
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3660
4044
|
*/
|
|
3661
4045
|
pageToken?: string;
|
|
4046
|
+
/**
|
|
4047
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4048
|
+
*/
|
|
4049
|
+
pageSize?: number;
|
|
3662
4050
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3663
4051
|
/**
|
|
3664
4052
|
* Get vertex
|
|
@@ -3686,7 +4074,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3686
4074
|
* @returns ListXChainVerticesResponse
|
|
3687
4075
|
* @throws ApiError
|
|
3688
4076
|
*/
|
|
3689
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4077
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3690
4078
|
/**
|
|
3691
4079
|
* The height of a vertex.
|
|
3692
4080
|
*/
|
|
@@ -3699,23 +4087,409 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3699
4087
|
* Either mainnet or a testnet.
|
|
3700
4088
|
*/
|
|
3701
4089
|
network: Network;
|
|
4090
|
+
/**
|
|
4091
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4092
|
+
*/
|
|
4093
|
+
pageToken?: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4096
|
+
*/
|
|
4097
|
+
pageSize?: number;
|
|
4098
|
+
/**
|
|
4099
|
+
* 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.
|
|
4100
|
+
*/
|
|
4101
|
+
sortOrder?: SortOrder;
|
|
4102
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
type RpcErrorDto = {
|
|
4106
|
+
code: number;
|
|
4107
|
+
message: string;
|
|
4108
|
+
data?: Record<string, any>;
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
type RpcErrorResponseDto = {
|
|
4112
|
+
jsonrpc: string;
|
|
4113
|
+
id?: (string | number);
|
|
4114
|
+
error: RpcErrorDto;
|
|
4115
|
+
};
|
|
4116
|
+
|
|
4117
|
+
type RpcRequestBodyDto = {
|
|
4118
|
+
method: string;
|
|
4119
|
+
params?: Record<string, any>;
|
|
4120
|
+
id?: (string | number);
|
|
4121
|
+
jsonrpc?: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type RpcSuccessResponseDto = {
|
|
4125
|
+
jsonrpc: string;
|
|
4126
|
+
id?: (string | number);
|
|
4127
|
+
result: Record<string, any>;
|
|
4128
|
+
};
|
|
4129
|
+
|
|
4130
|
+
declare class RpcService {
|
|
4131
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4132
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4133
|
+
/**
|
|
4134
|
+
* Calls JSON-RPC method
|
|
4135
|
+
* Calls JSON-RPC method.
|
|
4136
|
+
* @returns any
|
|
4137
|
+
* @throws ApiError
|
|
4138
|
+
*/
|
|
4139
|
+
rpc({ chainId, requestBody, }: {
|
|
4140
|
+
/**
|
|
4141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4142
|
+
*/
|
|
4143
|
+
chainId: string;
|
|
4144
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4145
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
type TeleporterDestinationTransaction = {
|
|
4149
|
+
txHash: string;
|
|
4150
|
+
timestamp: number;
|
|
4151
|
+
gasSpent: string;
|
|
4152
|
+
rewardRedeemer: string;
|
|
4153
|
+
delivererAddress: string;
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
type TeleporterReceipt = {
|
|
4157
|
+
receivedMessageNonce: string;
|
|
4158
|
+
relayerRewardAddress: string;
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
type TeleporterRewardDetails = {
|
|
4162
|
+
/**
|
|
4163
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4164
|
+
*/
|
|
4165
|
+
address: string;
|
|
4166
|
+
/**
|
|
4167
|
+
* The contract name.
|
|
4168
|
+
*/
|
|
4169
|
+
name: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* The contract symbol.
|
|
4172
|
+
*/
|
|
4173
|
+
symbol: string;
|
|
4174
|
+
/**
|
|
4175
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4176
|
+
*/
|
|
4177
|
+
decimals: number;
|
|
4178
|
+
/**
|
|
4179
|
+
* The logo uri for the address.
|
|
4180
|
+
*/
|
|
4181
|
+
logoUri?: string;
|
|
4182
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4183
|
+
/**
|
|
4184
|
+
* The token price, if available.
|
|
4185
|
+
*/
|
|
4186
|
+
price?: Money;
|
|
4187
|
+
value: string;
|
|
4188
|
+
};
|
|
4189
|
+
declare namespace TeleporterRewardDetails {
|
|
4190
|
+
enum ercType {
|
|
4191
|
+
ERC_20 = "ERC-20"
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4196
|
+
messageId: string;
|
|
4197
|
+
teleporterContractAddress: string;
|
|
4198
|
+
sourceBlockchainId: string;
|
|
4199
|
+
destinationBlockchainId: string;
|
|
4200
|
+
messageNonce: string;
|
|
4201
|
+
from: string;
|
|
4202
|
+
to: string;
|
|
4203
|
+
data?: string;
|
|
4204
|
+
messageExecuted: boolean;
|
|
4205
|
+
receipts: Array<TeleporterReceipt>;
|
|
4206
|
+
receiptDelivered: boolean;
|
|
4207
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4208
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4209
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4210
|
+
};
|
|
4211
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4212
|
+
enum status {
|
|
4213
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4214
|
+
}
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
type TeleporterSourceTransaction = {
|
|
4218
|
+
txHash: string;
|
|
4219
|
+
timestamp: number;
|
|
4220
|
+
gasSpent: string;
|
|
4221
|
+
};
|
|
4222
|
+
|
|
4223
|
+
type DeliveredTeleporterMessage = {
|
|
4224
|
+
messageId: string;
|
|
4225
|
+
teleporterContractAddress: string;
|
|
4226
|
+
sourceBlockchainId: string;
|
|
4227
|
+
destinationBlockchainId: string;
|
|
4228
|
+
messageNonce: string;
|
|
4229
|
+
from: string;
|
|
4230
|
+
to: string;
|
|
4231
|
+
data?: string;
|
|
4232
|
+
messageExecuted: boolean;
|
|
4233
|
+
receipts: Array<TeleporterReceipt>;
|
|
4234
|
+
receiptDelivered: boolean;
|
|
4235
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4236
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4237
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4238
|
+
status: DeliveredTeleporterMessage.status;
|
|
4239
|
+
};
|
|
4240
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4241
|
+
enum status {
|
|
4242
|
+
DELIVERED = "delivered"
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
type NextPageToken = {
|
|
4247
|
+
/**
|
|
4248
|
+
* 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.
|
|
4249
|
+
*/
|
|
4250
|
+
nextPageToken?: string;
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
type PendingTeleporterMessage = {
|
|
4254
|
+
messageId: string;
|
|
4255
|
+
teleporterContractAddress: string;
|
|
4256
|
+
sourceBlockchainId: string;
|
|
4257
|
+
destinationBlockchainId: string;
|
|
4258
|
+
messageNonce: string;
|
|
4259
|
+
from: string;
|
|
4260
|
+
to: string;
|
|
4261
|
+
data?: string;
|
|
4262
|
+
messageExecuted: boolean;
|
|
4263
|
+
receipts: Array<TeleporterReceipt>;
|
|
4264
|
+
receiptDelivered: boolean;
|
|
4265
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4266
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4267
|
+
status: PendingTeleporterMessage.status;
|
|
4268
|
+
};
|
|
4269
|
+
declare namespace PendingTeleporterMessage {
|
|
4270
|
+
enum status {
|
|
4271
|
+
PENDING = "pending"
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
declare class TeleporterService {
|
|
4276
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4277
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4278
|
+
/**
|
|
4279
|
+
* Get a teleporter message
|
|
4280
|
+
* Gets a teleporter message by message ID.
|
|
4281
|
+
* @returns any
|
|
4282
|
+
* @throws ApiError
|
|
4283
|
+
*/
|
|
4284
|
+
getTeleporterMessage({ messageId, }: {
|
|
4285
|
+
/**
|
|
4286
|
+
* The message ID of the teleporter message.
|
|
4287
|
+
*/
|
|
4288
|
+
messageId: string;
|
|
4289
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4290
|
+
/**
|
|
4291
|
+
* List teleporter messages
|
|
4292
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4293
|
+
* @returns any
|
|
4294
|
+
* @throws ApiError
|
|
4295
|
+
*/
|
|
4296
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4297
|
+
/**
|
|
4298
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4299
|
+
*/
|
|
4300
|
+
pageToken?: string;
|
|
3702
4301
|
/**
|
|
3703
4302
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3704
4303
|
*/
|
|
3705
4304
|
pageSize?: number;
|
|
4305
|
+
/**
|
|
4306
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4307
|
+
*/
|
|
4308
|
+
sourceBlockchainId?: string;
|
|
4309
|
+
/**
|
|
4310
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4311
|
+
*/
|
|
4312
|
+
destinationBlockchainId?: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* The address of the recipient of the teleporter message.
|
|
4315
|
+
*/
|
|
4316
|
+
to?: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The address of the sender of the teleporter message.
|
|
4319
|
+
*/
|
|
4320
|
+
from?: string;
|
|
4321
|
+
}): CancelablePromise<NextPageToken>;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
type AddressActivityMetadata = {
|
|
4325
|
+
/**
|
|
4326
|
+
* Ethereum address for the address_activity event type
|
|
4327
|
+
*/
|
|
4328
|
+
address: string;
|
|
4329
|
+
/**
|
|
4330
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4331
|
+
*/
|
|
4332
|
+
eventSignatures?: Array<string>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
declare enum EventType {
|
|
4336
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
declare enum WebhookStatusType {
|
|
4340
|
+
ACTIVE = "active",
|
|
4341
|
+
INACTIVE = "inactive"
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
type WebhookResponse = {
|
|
4345
|
+
id: string;
|
|
4346
|
+
eventType: EventType;
|
|
4347
|
+
metadata: AddressActivityMetadata;
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether to include traces in the webhook payload.
|
|
4350
|
+
*/
|
|
4351
|
+
includeInternalTxs?: boolean;
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether to include logs in the webhook payload.
|
|
4354
|
+
*/
|
|
4355
|
+
includeLogs?: boolean;
|
|
4356
|
+
url: string;
|
|
4357
|
+
chainId: string;
|
|
4358
|
+
status: WebhookStatusType;
|
|
4359
|
+
createdAt: number;
|
|
4360
|
+
name: string;
|
|
4361
|
+
description: string;
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
type ListWebhooksResponse = {
|
|
4365
|
+
/**
|
|
4366
|
+
* 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.
|
|
4367
|
+
*/
|
|
4368
|
+
nextPageToken?: string;
|
|
4369
|
+
webhooks: Array<WebhookResponse>;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type RegisterWebhookRequest = {
|
|
4373
|
+
url: string;
|
|
4374
|
+
chainId: string;
|
|
4375
|
+
eventType: EventType;
|
|
4376
|
+
metadata: AddressActivityMetadata;
|
|
4377
|
+
/**
|
|
4378
|
+
* Whether to include traces in the webhook payload.
|
|
4379
|
+
*/
|
|
4380
|
+
includeInternalTxs?: boolean;
|
|
4381
|
+
/**
|
|
4382
|
+
* Whether to include logs in the webhook payload.
|
|
4383
|
+
*/
|
|
4384
|
+
includeLogs?: boolean;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
type SharedSecretsResponse = {
|
|
4388
|
+
secret: string;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
type UpdateWebhookRequest = {
|
|
4392
|
+
name?: string;
|
|
4393
|
+
description?: string;
|
|
4394
|
+
url?: string;
|
|
4395
|
+
status?: WebhookStatusType;
|
|
4396
|
+
includeInternalTxs?: boolean;
|
|
4397
|
+
includeLogs?: boolean;
|
|
4398
|
+
};
|
|
4399
|
+
|
|
4400
|
+
declare enum WebhookStatus {
|
|
4401
|
+
ACTIVE = "active",
|
|
4402
|
+
INACTIVE = "inactive"
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
declare class WebhooksService {
|
|
4406
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4407
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4408
|
+
/**
|
|
4409
|
+
* Register a webhook
|
|
4410
|
+
* Registers a new webhook.
|
|
4411
|
+
* @returns WebhookResponse
|
|
4412
|
+
* @throws ApiError
|
|
4413
|
+
*/
|
|
4414
|
+
registerWebhook({ requestBody, }: {
|
|
4415
|
+
requestBody: RegisterWebhookRequest;
|
|
4416
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4417
|
+
/**
|
|
4418
|
+
* List webhooks
|
|
4419
|
+
* Lists webhooks for the user.
|
|
4420
|
+
* @returns ListWebhooksResponse
|
|
4421
|
+
* @throws ApiError
|
|
4422
|
+
*/
|
|
4423
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3706
4424
|
/**
|
|
3707
4425
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3708
4426
|
*/
|
|
3709
4427
|
pageToken?: string;
|
|
3710
4428
|
/**
|
|
3711
|
-
* The
|
|
4429
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3712
4430
|
*/
|
|
3713
|
-
|
|
3714
|
-
|
|
4431
|
+
pageSize?: number;
|
|
4432
|
+
/**
|
|
4433
|
+
* 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.
|
|
4434
|
+
*/
|
|
4435
|
+
status?: WebhookStatus;
|
|
4436
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get a webhook by ID
|
|
4439
|
+
* Retrieves a webhook by ID.
|
|
4440
|
+
* @returns WebhookResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
getWebhook({ id, }: {
|
|
4444
|
+
/**
|
|
4445
|
+
* The webhook identifier.
|
|
4446
|
+
*/
|
|
4447
|
+
id: string;
|
|
4448
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4449
|
+
/**
|
|
4450
|
+
* Deactivate a webhook
|
|
4451
|
+
* Deactivates a webhook by ID.
|
|
4452
|
+
* @returns WebhookResponse
|
|
4453
|
+
* @throws ApiError
|
|
4454
|
+
*/
|
|
4455
|
+
deactivateWebhook({ id, }: {
|
|
4456
|
+
/**
|
|
4457
|
+
* The webhook identifier.
|
|
4458
|
+
*/
|
|
4459
|
+
id: string;
|
|
4460
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4461
|
+
/**
|
|
4462
|
+
* Update a webhook
|
|
4463
|
+
* Updates an existing webhook.
|
|
4464
|
+
* @returns WebhookResponse
|
|
4465
|
+
* @throws ApiError
|
|
4466
|
+
*/
|
|
4467
|
+
updateWebhook({ id, requestBody, }: {
|
|
4468
|
+
/**
|
|
4469
|
+
* The webhook identifier.
|
|
4470
|
+
*/
|
|
4471
|
+
id: string;
|
|
4472
|
+
requestBody: UpdateWebhookRequest;
|
|
4473
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4474
|
+
/**
|
|
4475
|
+
* Generate a shared secret
|
|
4476
|
+
* Generates a new shared secret.
|
|
4477
|
+
* @returns SharedSecretsResponse
|
|
4478
|
+
* @throws ApiError
|
|
4479
|
+
*/
|
|
4480
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4481
|
+
/**
|
|
4482
|
+
* Get a shared secret
|
|
4483
|
+
* Get a previously generated shared secret.
|
|
4484
|
+
* @returns SharedSecretsResponse
|
|
4485
|
+
* @throws ApiError
|
|
4486
|
+
*/
|
|
4487
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
3715
4488
|
}
|
|
3716
4489
|
|
|
3717
4490
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3718
4491
|
declare class Glacier {
|
|
4492
|
+
readonly default: DefaultService;
|
|
3719
4493
|
readonly evmBalances: EvmBalancesService;
|
|
3720
4494
|
readonly evmBlocks: EvmBlocksService;
|
|
3721
4495
|
readonly evmChains: EvmChainsService;
|
|
@@ -3731,6 +4505,9 @@ declare class Glacier {
|
|
|
3731
4505
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3732
4506
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3733
4507
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4508
|
+
readonly rpc: RpcService;
|
|
4509
|
+
readonly teleporter: TeleporterService;
|
|
4510
|
+
readonly webhooks: WebhooksService;
|
|
3734
4511
|
readonly request: BaseHttpRequest;
|
|
3735
4512
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3736
4513
|
}
|
|
@@ -3752,4 +4529,4 @@ declare class ApiError extends Error {
|
|
|
3752
4529
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3753
4530
|
}
|
|
3754
4531
|
|
|
3755
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4532
|
+
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, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|