@avalabs/glacier-sdk 2.8.0-canary.122008d.0 → 2.8.0-canary.1571e95.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 +1008 -421
- package/dist/index.js +454 -176
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -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/ActiveValidatorDetails.d.ts +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -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 +1 -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 +2 -1
- 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 +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +8 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- 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 +1 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
- 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/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/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/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 +16 -0
- package/esm/generated/services/DefaultService.js +17 -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 +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- 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 +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +42 -42
- package/esm/generated/services/PrimaryNetworkService.js +20 -20
- 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/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 +35 -3
- package/esm/index.js +16 -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,31 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
57
|
+
type RpcErrorDto = {
|
|
58
|
+
code: number;
|
|
59
|
+
message: string;
|
|
60
|
+
data?: Record<string, any>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
type RpcErrorResponseDto = {
|
|
64
|
+
jsonrpc: string;
|
|
65
|
+
id?: (string | number);
|
|
66
|
+
error: RpcErrorDto;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
type RpcRequestBodyDto = {
|
|
70
|
+
method: string;
|
|
71
|
+
params?: Record<string, any>;
|
|
72
|
+
id?: (string | number);
|
|
73
|
+
jsonrpc?: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
type RpcSuccessResponseDto = {
|
|
77
|
+
jsonrpc: string;
|
|
78
|
+
id?: (string | number);
|
|
79
|
+
result: Record<string, any>;
|
|
80
|
+
};
|
|
81
|
+
|
|
63
82
|
declare class DefaultService {
|
|
64
83
|
readonly httpRequest: BaseHttpRequest;
|
|
65
84
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -68,8 +87,24 @@ declare class DefaultService {
|
|
|
68
87
|
* @throws ApiError
|
|
69
88
|
*/
|
|
70
89
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
90
|
+
/**
|
|
91
|
+
* Calls JSON-RPC method
|
|
92
|
+
* Calls JSON-RPC method.
|
|
93
|
+
* @returns any
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
rpc({ chainId, requestBody, }: {
|
|
97
|
+
/**
|
|
98
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
99
|
+
*/
|
|
100
|
+
chainId: string;
|
|
101
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
102
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
71
103
|
}
|
|
72
104
|
|
|
105
|
+
/**
|
|
106
|
+
* ISO 4217 currency code.
|
|
107
|
+
*/
|
|
73
108
|
declare enum CurrencyCode {
|
|
74
109
|
USD = "usd",
|
|
75
110
|
EUR = "eur",
|
|
@@ -88,9 +123,6 @@ declare enum CurrencyCode {
|
|
|
88
123
|
}
|
|
89
124
|
|
|
90
125
|
type Money = {
|
|
91
|
-
/**
|
|
92
|
-
* ISO 4217 currency code.
|
|
93
|
-
*/
|
|
94
126
|
currencyCode: CurrencyCode;
|
|
95
127
|
/**
|
|
96
128
|
* Monetary value in base 10 decimals.
|
|
@@ -140,6 +172,9 @@ type GetNativeBalanceResponse = {
|
|
|
140
172
|
nativeTokenBalance: NativeTokenBalance;
|
|
141
173
|
};
|
|
142
174
|
|
|
175
|
+
/**
|
|
176
|
+
* The metadata indexing status of the nft.
|
|
177
|
+
*/
|
|
143
178
|
declare enum NftTokenMetadataStatus {
|
|
144
179
|
UNKNOWN = "UNKNOWN",
|
|
145
180
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -155,9 +190,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
155
190
|
}
|
|
156
191
|
|
|
157
192
|
type Erc1155TokenMetadata = {
|
|
158
|
-
/**
|
|
159
|
-
* The metadata indexing status of the nft.
|
|
160
|
-
*/
|
|
161
193
|
indexStatus: NftTokenMetadataStatus;
|
|
162
194
|
metadataLastUpdatedTimestamp?: number;
|
|
163
195
|
name?: string;
|
|
@@ -196,9 +228,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
196
228
|
}
|
|
197
229
|
|
|
198
230
|
type Erc721TokenMetadata = {
|
|
199
|
-
/**
|
|
200
|
-
* The metadata indexing status of the nft.
|
|
201
|
-
*/
|
|
202
231
|
indexStatus: NftTokenMetadataStatus;
|
|
203
232
|
metadataLastUpdatedTimestamp?: number;
|
|
204
233
|
name?: string;
|
|
@@ -345,7 +374,7 @@ declare class EvmBalancesService {
|
|
|
345
374
|
*/
|
|
346
375
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
347
376
|
/**
|
|
348
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
377
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
349
378
|
*/
|
|
350
379
|
chainId: string;
|
|
351
380
|
/**
|
|
@@ -371,9 +400,9 @@ declare class EvmBalancesService {
|
|
|
371
400
|
* @returns ListErc20BalancesResponse
|
|
372
401
|
* @throws ApiError
|
|
373
402
|
*/
|
|
374
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
403
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
375
404
|
/**
|
|
376
|
-
* 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.
|
|
377
406
|
*/
|
|
378
407
|
chainId: string;
|
|
379
408
|
/**
|
|
@@ -384,14 +413,14 @@ declare class EvmBalancesService {
|
|
|
384
413
|
* The block number, if not defined the block number will be the latest block.
|
|
385
414
|
*/
|
|
386
415
|
blockNumber?: string;
|
|
387
|
-
/**
|
|
388
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
389
|
-
*/
|
|
390
|
-
pageSize?: number;
|
|
391
416
|
/**
|
|
392
417
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
393
418
|
*/
|
|
394
419
|
pageToken?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
422
|
+
*/
|
|
423
|
+
pageSize?: number;
|
|
395
424
|
/**
|
|
396
425
|
* A comma separated list of contract addresses to filter by.
|
|
397
426
|
*/
|
|
@@ -409,23 +438,23 @@ declare class EvmBalancesService {
|
|
|
409
438
|
* @returns ListErc721BalancesResponse
|
|
410
439
|
* @throws ApiError
|
|
411
440
|
*/
|
|
412
|
-
listErc721Balances({ chainId, address,
|
|
441
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
413
442
|
/**
|
|
414
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
443
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
415
444
|
*/
|
|
416
445
|
chainId: string;
|
|
417
446
|
/**
|
|
418
447
|
* A wallet address.
|
|
419
448
|
*/
|
|
420
449
|
address: string;
|
|
421
|
-
/**
|
|
422
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
423
|
-
*/
|
|
424
|
-
pageSize?: number;
|
|
425
450
|
/**
|
|
426
451
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
427
452
|
*/
|
|
428
453
|
pageToken?: string;
|
|
454
|
+
/**
|
|
455
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
456
|
+
*/
|
|
457
|
+
pageSize?: number;
|
|
429
458
|
/**
|
|
430
459
|
* A contract addresses to filter by.
|
|
431
460
|
*/
|
|
@@ -441,9 +470,9 @@ declare class EvmBalancesService {
|
|
|
441
470
|
* @returns ListErc1155BalancesResponse
|
|
442
471
|
* @throws ApiError
|
|
443
472
|
*/
|
|
444
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
473
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
445
474
|
/**
|
|
446
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
475
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
447
476
|
*/
|
|
448
477
|
chainId: string;
|
|
449
478
|
/**
|
|
@@ -454,14 +483,14 @@ declare class EvmBalancesService {
|
|
|
454
483
|
* The block number, if not defined the block number will be the latest block.
|
|
455
484
|
*/
|
|
456
485
|
blockNumber?: string;
|
|
457
|
-
/**
|
|
458
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
459
|
-
*/
|
|
460
|
-
pageSize?: number;
|
|
461
486
|
/**
|
|
462
487
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
463
488
|
*/
|
|
464
489
|
pageToken?: string;
|
|
490
|
+
/**
|
|
491
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
492
|
+
*/
|
|
493
|
+
pageSize?: number;
|
|
465
494
|
/**
|
|
466
495
|
* A contract addresses to filter by.
|
|
467
496
|
*/
|
|
@@ -475,23 +504,23 @@ declare class EvmBalancesService {
|
|
|
475
504
|
* @returns ListCollectibleBalancesResponse
|
|
476
505
|
* @throws ApiError
|
|
477
506
|
*/
|
|
478
|
-
listCollectibleBalances({ chainId, address,
|
|
507
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
479
508
|
/**
|
|
480
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
509
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
481
510
|
*/
|
|
482
511
|
chainId: string;
|
|
483
512
|
/**
|
|
484
513
|
* A wallet address.
|
|
485
514
|
*/
|
|
486
515
|
address: string;
|
|
487
|
-
/**
|
|
488
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
489
|
-
*/
|
|
490
|
-
pageSize?: number;
|
|
491
516
|
/**
|
|
492
517
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
493
518
|
*/
|
|
494
519
|
pageToken?: string;
|
|
520
|
+
/**
|
|
521
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
522
|
+
*/
|
|
523
|
+
pageSize?: number;
|
|
495
524
|
/**
|
|
496
525
|
* A contract addresses to filter by.
|
|
497
526
|
*/
|
|
@@ -604,19 +633,19 @@ declare class EvmBlocksService {
|
|
|
604
633
|
* @returns ListEvmBlocksResponse
|
|
605
634
|
* @throws ApiError
|
|
606
635
|
*/
|
|
607
|
-
getLatestBlocks({ chainId,
|
|
636
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
608
637
|
/**
|
|
609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
638
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
610
639
|
*/
|
|
611
640
|
chainId: string;
|
|
612
|
-
/**
|
|
613
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
614
|
-
*/
|
|
615
|
-
pageSize?: number;
|
|
616
641
|
/**
|
|
617
642
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
618
643
|
*/
|
|
619
644
|
pageToken?: string;
|
|
645
|
+
/**
|
|
646
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
647
|
+
*/
|
|
648
|
+
pageSize?: number;
|
|
620
649
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
621
650
|
/**
|
|
622
651
|
* Get block
|
|
@@ -626,7 +655,7 @@ declare class EvmBlocksService {
|
|
|
626
655
|
*/
|
|
627
656
|
getBlock({ chainId, blockId, }: {
|
|
628
657
|
/**
|
|
629
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
658
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
630
659
|
*/
|
|
631
660
|
chainId: string;
|
|
632
661
|
/**
|
|
@@ -636,6 +665,9 @@ declare class EvmBlocksService {
|
|
|
636
665
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
637
666
|
}
|
|
638
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
670
|
+
*/
|
|
639
671
|
declare enum ChainStatus {
|
|
640
672
|
OK = "OK",
|
|
641
673
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -673,9 +705,6 @@ declare enum VmName {
|
|
|
673
705
|
|
|
674
706
|
type GetChainResponse = {
|
|
675
707
|
chainId: string;
|
|
676
|
-
/**
|
|
677
|
-
* 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.
|
|
678
|
-
*/
|
|
679
708
|
status: ChainStatus;
|
|
680
709
|
chainName: string;
|
|
681
710
|
description: string;
|
|
@@ -691,13 +720,15 @@ type GetChainResponse = {
|
|
|
691
720
|
networkToken: NetworkToken;
|
|
692
721
|
chainLogoUri?: string;
|
|
693
722
|
private?: boolean;
|
|
723
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
694
724
|
};
|
|
695
725
|
|
|
726
|
+
declare enum GlacierApiFeature {
|
|
727
|
+
NFT_INDEXING = "nftIndexing"
|
|
728
|
+
}
|
|
729
|
+
|
|
696
730
|
type ChainInfo = {
|
|
697
731
|
chainId: string;
|
|
698
|
-
/**
|
|
699
|
-
* 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.
|
|
700
|
-
*/
|
|
701
732
|
status: ChainStatus;
|
|
702
733
|
chainName: string;
|
|
703
734
|
description: string;
|
|
@@ -713,6 +744,7 @@ type ChainInfo = {
|
|
|
713
744
|
networkToken: NetworkToken;
|
|
714
745
|
chainLogoUri?: string;
|
|
715
746
|
private?: boolean;
|
|
747
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
716
748
|
};
|
|
717
749
|
|
|
718
750
|
type ListChainsResponse = {
|
|
@@ -733,11 +765,15 @@ declare class EvmChainsService {
|
|
|
733
765
|
* @returns ListChainsResponse
|
|
734
766
|
* @throws ApiError
|
|
735
767
|
*/
|
|
736
|
-
supportedChains({ network, }: {
|
|
768
|
+
supportedChains({ network, feature, }: {
|
|
737
769
|
/**
|
|
738
770
|
* mainnet or testnet.
|
|
739
771
|
*/
|
|
740
772
|
network?: NetworkType;
|
|
773
|
+
/**
|
|
774
|
+
* Filter by feature.
|
|
775
|
+
*/
|
|
776
|
+
feature?: GlacierApiFeature;
|
|
741
777
|
}): CancelablePromise<ListChainsResponse>;
|
|
742
778
|
/**
|
|
743
779
|
* Get chain information
|
|
@@ -747,7 +783,7 @@ declare class EvmChainsService {
|
|
|
747
783
|
*/
|
|
748
784
|
getChainInfo({ chainId, }: {
|
|
749
785
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
786
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
787
|
*/
|
|
752
788
|
chainId: string;
|
|
753
789
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1078,7 @@ declare class EvmContractsService {
|
|
|
1042
1078
|
*/
|
|
1043
1079
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1080
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1081
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1082
|
*/
|
|
1047
1083
|
chainId: string;
|
|
1048
1084
|
/**
|
|
@@ -1058,7 +1094,7 @@ declare class EvmContractsService {
|
|
|
1058
1094
|
*/
|
|
1059
1095
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1096
|
/**
|
|
1061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1097
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
1098
|
*/
|
|
1063
1099
|
chainId: string;
|
|
1064
1100
|
/**
|
|
@@ -1192,6 +1228,9 @@ type Erc721TransferDetails = {
|
|
|
1192
1228
|
erc721Token: Erc721Token;
|
|
1193
1229
|
};
|
|
1194
1230
|
|
|
1231
|
+
/**
|
|
1232
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1233
|
+
*/
|
|
1195
1234
|
declare enum TransactionMethodType {
|
|
1196
1235
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1197
1236
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1199,9 +1238,6 @@ declare enum TransactionMethodType {
|
|
|
1199
1238
|
}
|
|
1200
1239
|
|
|
1201
1240
|
type Method = {
|
|
1202
|
-
/**
|
|
1203
|
-
* 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.
|
|
1204
|
-
*/
|
|
1205
1241
|
callType: TransactionMethodType;
|
|
1206
1242
|
/**
|
|
1207
1243
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1562,7 +1598,7 @@ type ListTransfersResponse = {
|
|
|
1562
1598
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1563
1599
|
*/
|
|
1564
1600
|
nextPageToken?: string;
|
|
1565
|
-
transfers:
|
|
1601
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1566
1602
|
};
|
|
1567
1603
|
|
|
1568
1604
|
declare enum SortOrder {
|
|
@@ -1586,7 +1622,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1622
|
*/
|
|
1587
1623
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1624
|
/**
|
|
1589
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1625
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1590
1626
|
*/
|
|
1591
1627
|
chainId: string;
|
|
1592
1628
|
/**
|
|
@@ -1604,23 +1640,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1640
|
* @returns ListContractsResponse
|
|
1605
1641
|
* @throws ApiError
|
|
1606
1642
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1643
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1644
|
/**
|
|
1609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1645
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1610
1646
|
*/
|
|
1611
1647
|
chainId: string;
|
|
1612
1648
|
/**
|
|
1613
1649
|
* A wallet address.
|
|
1614
1650
|
*/
|
|
1615
1651
|
address: string;
|
|
1616
|
-
/**
|
|
1617
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1618
|
-
*/
|
|
1619
|
-
pageSize?: number;
|
|
1620
1652
|
/**
|
|
1621
1653
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1654
|
*/
|
|
1623
1655
|
pageToken?: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1658
|
+
*/
|
|
1659
|
+
pageSize?: number;
|
|
1624
1660
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1661
|
/**
|
|
1626
1662
|
* List ERC transfers
|
|
@@ -1628,25 +1664,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1664
|
* @returns ListTransfersResponse
|
|
1629
1665
|
* @throws ApiError
|
|
1630
1666
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1667
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1668
|
/**
|
|
1633
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1669
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1634
1670
|
*/
|
|
1635
1671
|
chainId: string;
|
|
1636
1672
|
/**
|
|
1637
1673
|
* A wallet address.
|
|
1638
1674
|
*/
|
|
1639
1675
|
address: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1678
|
+
*/
|
|
1640
1679
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1680
|
/**
|
|
1643
|
-
* The
|
|
1681
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1644
1682
|
*/
|
|
1645
|
-
|
|
1683
|
+
endBlock?: number;
|
|
1646
1684
|
/**
|
|
1647
1685
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1686
|
*/
|
|
1649
1687
|
pageToken?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1690
|
+
*/
|
|
1691
|
+
pageSize?: number;
|
|
1650
1692
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1693
|
/**
|
|
1652
1694
|
* List transactions
|
|
@@ -1656,24 +1698,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1698
|
* @returns ListTransactionDetailsResponse
|
|
1657
1699
|
* @throws ApiError
|
|
1658
1700
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1701
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1702
|
/**
|
|
1661
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1703
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1662
1704
|
*/
|
|
1663
1705
|
chainId: string;
|
|
1664
1706
|
/**
|
|
1665
1707
|
* A wallet address.
|
|
1666
1708
|
*/
|
|
1667
1709
|
address: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1712
|
+
*/
|
|
1713
|
+
pageToken?: string;
|
|
1668
1714
|
/**
|
|
1669
1715
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1716
|
*/
|
|
1671
1717
|
pageSize?: number;
|
|
1672
1718
|
/**
|
|
1673
|
-
*
|
|
1719
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1674
1720
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
1721
|
startBlock?: number;
|
|
1722
|
+
/**
|
|
1723
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1724
|
+
*/
|
|
1677
1725
|
endBlock?: number;
|
|
1678
1726
|
/**
|
|
1679
1727
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -1686,25 +1734,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1734
|
* @returns ListNativeTransactionsResponse
|
|
1687
1735
|
* @throws ApiError
|
|
1688
1736
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1737
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1738
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1740
|
*/
|
|
1693
1741
|
chainId: string;
|
|
1694
1742
|
/**
|
|
1695
1743
|
* A wallet address.
|
|
1696
1744
|
*/
|
|
1697
1745
|
address: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1748
|
+
*/
|
|
1698
1749
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1750
|
/**
|
|
1701
|
-
* The
|
|
1751
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1702
1752
|
*/
|
|
1703
|
-
|
|
1753
|
+
endBlock?: number;
|
|
1704
1754
|
/**
|
|
1705
1755
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1756
|
*/
|
|
1707
1757
|
pageToken?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1760
|
+
*/
|
|
1761
|
+
pageSize?: number;
|
|
1708
1762
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1763
|
/**
|
|
1710
1764
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1766,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1766
|
* @returns ListErc20TransactionsResponse
|
|
1713
1767
|
* @throws ApiError
|
|
1714
1768
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1769
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1770
|
/**
|
|
1717
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1718
1772
|
*/
|
|
1719
1773
|
chainId: string;
|
|
1720
1774
|
/**
|
|
1721
1775
|
* A wallet address.
|
|
1722
1776
|
*/
|
|
1723
1777
|
address: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1780
|
+
*/
|
|
1724
1781
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1782
|
/**
|
|
1727
|
-
* The
|
|
1783
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1728
1784
|
*/
|
|
1729
|
-
|
|
1785
|
+
endBlock?: number;
|
|
1730
1786
|
/**
|
|
1731
1787
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1788
|
*/
|
|
1733
1789
|
pageToken?: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1792
|
+
*/
|
|
1793
|
+
pageSize?: number;
|
|
1734
1794
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1795
|
/**
|
|
1736
1796
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1798,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1798
|
* @returns ListErc721TransactionsResponse
|
|
1739
1799
|
* @throws ApiError
|
|
1740
1800
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1801
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1802
|
/**
|
|
1743
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1744
1804
|
*/
|
|
1745
1805
|
chainId: string;
|
|
1746
1806
|
/**
|
|
1747
1807
|
* A wallet address.
|
|
1748
1808
|
*/
|
|
1749
1809
|
address: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1812
|
+
*/
|
|
1750
1813
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1814
|
/**
|
|
1753
|
-
* The
|
|
1815
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1754
1816
|
*/
|
|
1755
|
-
|
|
1817
|
+
endBlock?: number;
|
|
1756
1818
|
/**
|
|
1757
1819
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1820
|
*/
|
|
1759
1821
|
pageToken?: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1824
|
+
*/
|
|
1825
|
+
pageSize?: number;
|
|
1760
1826
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1827
|
/**
|
|
1762
1828
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1830,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1830
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1831
|
* @throws ApiError
|
|
1766
1832
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1833
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1834
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1835
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1836
|
*/
|
|
1771
1837
|
chainId: string;
|
|
1772
1838
|
/**
|
|
1773
1839
|
* A wallet address.
|
|
1774
1840
|
*/
|
|
1775
1841
|
address: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1844
|
+
*/
|
|
1776
1845
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1846
|
/**
|
|
1779
|
-
* The
|
|
1847
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1780
1848
|
*/
|
|
1781
|
-
|
|
1849
|
+
endBlock?: number;
|
|
1782
1850
|
/**
|
|
1783
1851
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1852
|
*/
|
|
1785
1853
|
pageToken?: string;
|
|
1854
|
+
/**
|
|
1855
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1856
|
+
*/
|
|
1857
|
+
pageSize?: number;
|
|
1786
1858
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1859
|
/**
|
|
1788
1860
|
* List internal transactions
|
|
@@ -1792,25 +1864,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1864
|
* @returns ListInternalTransactionsResponse
|
|
1793
1865
|
* @throws ApiError
|
|
1794
1866
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1867
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1868
|
/**
|
|
1797
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
1870
|
*/
|
|
1799
1871
|
chainId: string;
|
|
1800
1872
|
/**
|
|
1801
1873
|
* A wallet address.
|
|
1802
1874
|
*/
|
|
1803
1875
|
address: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1878
|
+
*/
|
|
1804
1879
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1880
|
/**
|
|
1807
|
-
* The
|
|
1881
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1808
1882
|
*/
|
|
1809
|
-
|
|
1883
|
+
endBlock?: number;
|
|
1810
1884
|
/**
|
|
1811
1885
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1886
|
*/
|
|
1813
1887
|
pageToken?: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1890
|
+
*/
|
|
1891
|
+
pageSize?: number;
|
|
1814
1892
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1893
|
/**
|
|
1816
1894
|
* Get transaction
|
|
@@ -1820,7 +1898,7 @@ declare class EvmTransactionsService {
|
|
|
1820
1898
|
*/
|
|
1821
1899
|
getTransaction({ chainId, txHash, }: {
|
|
1822
1900
|
/**
|
|
1823
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1824
1902
|
*/
|
|
1825
1903
|
chainId: string;
|
|
1826
1904
|
/**
|
|
@@ -1836,7 +1914,7 @@ declare class EvmTransactionsService {
|
|
|
1836
1914
|
*/
|
|
1837
1915
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
1916
|
/**
|
|
1839
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1917
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1840
1918
|
*/
|
|
1841
1919
|
chainId: string;
|
|
1842
1920
|
/**
|
|
@@ -1850,19 +1928,19 @@ declare class EvmTransactionsService {
|
|
|
1850
1928
|
* @returns ListNativeTransactionsResponse
|
|
1851
1929
|
* @throws ApiError
|
|
1852
1930
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
1931
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
1932
|
/**
|
|
1855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1933
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1856
1934
|
*/
|
|
1857
1935
|
chainId: string;
|
|
1858
|
-
/**
|
|
1859
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1860
|
-
*/
|
|
1861
|
-
pageSize?: number;
|
|
1862
1936
|
/**
|
|
1863
1937
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
1938
|
*/
|
|
1865
1939
|
pageToken?: string;
|
|
1940
|
+
/**
|
|
1941
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1942
|
+
*/
|
|
1943
|
+
pageSize?: number;
|
|
1866
1944
|
/**
|
|
1867
1945
|
* A status filter for listed transactions.
|
|
1868
1946
|
*/
|
|
@@ -1886,6 +1964,14 @@ declare class HealthCheckService {
|
|
|
1886
1964
|
}>;
|
|
1887
1965
|
}
|
|
1888
1966
|
|
|
1967
|
+
type ListNftTokens = {
|
|
1968
|
+
/**
|
|
1969
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1970
|
+
*/
|
|
1971
|
+
nextPageToken?: string;
|
|
1972
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1973
|
+
};
|
|
1974
|
+
|
|
1889
1975
|
declare class NfTsService {
|
|
1890
1976
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
1977
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1897,7 +1983,7 @@ declare class NfTsService {
|
|
|
1897
1983
|
*/
|
|
1898
1984
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
1985
|
/**
|
|
1900
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1986
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
1987
|
*/
|
|
1902
1988
|
chainId: string;
|
|
1903
1989
|
/**
|
|
@@ -1909,6 +1995,30 @@ declare class NfTsService {
|
|
|
1909
1995
|
*/
|
|
1910
1996
|
tokenId: string;
|
|
1911
1997
|
}): CancelablePromise<any>;
|
|
1998
|
+
/**
|
|
1999
|
+
* List tokens
|
|
2000
|
+
* Lists tokens for an NFT contract.
|
|
2001
|
+
* @returns ListNftTokens
|
|
2002
|
+
* @throws ApiError
|
|
2003
|
+
*/
|
|
2004
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2005
|
+
/**
|
|
2006
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2007
|
+
*/
|
|
2008
|
+
chainId: string;
|
|
2009
|
+
/**
|
|
2010
|
+
* Contract address on the relevant chain.
|
|
2011
|
+
*/
|
|
2012
|
+
address: string;
|
|
2013
|
+
/**
|
|
2014
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2015
|
+
*/
|
|
2016
|
+
pageToken?: string;
|
|
2017
|
+
/**
|
|
2018
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2019
|
+
*/
|
|
2020
|
+
pageSize?: number;
|
|
2021
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
2022
|
/**
|
|
1913
2023
|
* Get token details
|
|
1914
2024
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1917,7 +2027,7 @@ declare class NfTsService {
|
|
|
1917
2027
|
*/
|
|
1918
2028
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
2029
|
/**
|
|
1920
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2030
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1921
2031
|
*/
|
|
1922
2032
|
chainId: string;
|
|
1923
2033
|
/**
|
|
@@ -1936,8 +2046,12 @@ type EvmNetworkOptions = {
|
|
|
1936
2046
|
includeChains: Array<string>;
|
|
1937
2047
|
};
|
|
1938
2048
|
|
|
2049
|
+
declare enum EVMOperationType {
|
|
2050
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2051
|
+
}
|
|
2052
|
+
|
|
1939
2053
|
type CreateEvmTransactionExportRequest = {
|
|
1940
|
-
type:
|
|
2054
|
+
type: EVMOperationType;
|
|
1941
2055
|
firstDate: string;
|
|
1942
2056
|
lastDate: string;
|
|
1943
2057
|
/**
|
|
@@ -1950,20 +2064,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1950
2064
|
endDate: string;
|
|
1951
2065
|
options: EvmNetworkOptions;
|
|
1952
2066
|
};
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
2067
|
+
|
|
2068
|
+
declare enum PrimaryNetworkOperationType {
|
|
2069
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2070
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1957
2072
|
}
|
|
1958
2073
|
|
|
1959
2074
|
type PrimaryNetworkOptions = {
|
|
1960
|
-
addresses
|
|
2075
|
+
addresses?: Array<string>;
|
|
1961
2076
|
cChainEvmAddresses?: Array<string>;
|
|
1962
2077
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1963
2078
|
};
|
|
1964
2079
|
|
|
1965
2080
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1966
|
-
type:
|
|
2081
|
+
type: PrimaryNetworkOperationType;
|
|
1967
2082
|
firstDate: string;
|
|
1968
2083
|
lastDate: string;
|
|
1969
2084
|
/**
|
|
@@ -1976,11 +2091,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1976
2091
|
endDate: string;
|
|
1977
2092
|
options: PrimaryNetworkOptions;
|
|
1978
2093
|
};
|
|
1979
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1980
|
-
enum type {
|
|
1981
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
2094
|
|
|
1985
2095
|
declare enum OperationStatus {
|
|
1986
2096
|
RUNNING = "RUNNING",
|
|
@@ -1990,8 +2100,10 @@ declare enum OperationStatus {
|
|
|
1990
2100
|
}
|
|
1991
2101
|
|
|
1992
2102
|
declare enum OperationType {
|
|
1993
|
-
|
|
1994
|
-
|
|
2103
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2104
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2105
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2106
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1995
2107
|
}
|
|
1996
2108
|
|
|
1997
2109
|
declare enum OperationStatusCode {
|
|
@@ -2025,17 +2137,6 @@ type OperationStatusResponse = {
|
|
|
2025
2137
|
declare class OperationsService {
|
|
2026
2138
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2139
|
constructor(httpRequest: BaseHttpRequest);
|
|
2028
|
-
/**
|
|
2029
|
-
* Create transaction export operation
|
|
2030
|
-
* Trigger a transaction export operation with given parameters.
|
|
2031
|
-
*
|
|
2032
|
-
* 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.
|
|
2033
|
-
* @returns OperationStatusResponse
|
|
2034
|
-
* @throws ApiError
|
|
2035
|
-
*/
|
|
2036
|
-
postTransactionExportJob({ requestBody, }: {
|
|
2037
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2038
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2039
2140
|
/**
|
|
2040
2141
|
* Get operation
|
|
2041
2142
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2149,17 @@ declare class OperationsService {
|
|
|
2048
2149
|
*/
|
|
2049
2150
|
operationId: string;
|
|
2050
2151
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2152
|
+
/**
|
|
2153
|
+
* Create transaction export operation
|
|
2154
|
+
* Trigger a transaction export operation with given parameters.
|
|
2155
|
+
*
|
|
2156
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2157
|
+
* @returns OperationStatusResponse
|
|
2158
|
+
* @throws ApiError
|
|
2159
|
+
*/
|
|
2160
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2161
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2162
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
2163
|
}
|
|
2052
2164
|
|
|
2053
2165
|
declare enum BlockchainIds {
|
|
@@ -2183,13 +2295,44 @@ type BlockchainInfo = {
|
|
|
2183
2295
|
blockchainId: string;
|
|
2184
2296
|
};
|
|
2185
2297
|
|
|
2298
|
+
type SubnetOwnershipInfo = {
|
|
2299
|
+
/**
|
|
2300
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2301
|
+
*/
|
|
2302
|
+
locktime: number;
|
|
2303
|
+
/**
|
|
2304
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2305
|
+
*/
|
|
2306
|
+
threshold: number;
|
|
2307
|
+
/**
|
|
2308
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2309
|
+
*/
|
|
2310
|
+
addresses: Array<string>;
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2186
2313
|
type Subnet = {
|
|
2187
2314
|
createBlockTimestamp: number;
|
|
2188
2315
|
createBlockIndex: string;
|
|
2189
2316
|
subnetId: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2319
|
+
* @deprecated
|
|
2320
|
+
*/
|
|
2190
2321
|
ownerAddresses: Array<string>;
|
|
2322
|
+
/**
|
|
2323
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2324
|
+
* @deprecated
|
|
2325
|
+
*/
|
|
2191
2326
|
threshold: number;
|
|
2327
|
+
/**
|
|
2328
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2329
|
+
* @deprecated
|
|
2330
|
+
*/
|
|
2192
2331
|
locktime: number;
|
|
2332
|
+
/**
|
|
2333
|
+
* Latest subnet owner details for this Subnet.
|
|
2334
|
+
*/
|
|
2335
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2193
2336
|
blockchains: Array<BlockchainInfo>;
|
|
2194
2337
|
};
|
|
2195
2338
|
|
|
@@ -2228,6 +2371,7 @@ type ValidatorHealthDetails = {
|
|
|
2228
2371
|
};
|
|
2229
2372
|
|
|
2230
2373
|
type ActiveValidatorDetails = {
|
|
2374
|
+
txHash: string;
|
|
2231
2375
|
nodeId: string;
|
|
2232
2376
|
subnetId: string;
|
|
2233
2377
|
amountStaked: string;
|
|
@@ -2251,6 +2395,7 @@ declare namespace ActiveValidatorDetails {
|
|
|
2251
2395
|
}
|
|
2252
2396
|
|
|
2253
2397
|
type CompletedValidatorDetails = {
|
|
2398
|
+
txHash: string;
|
|
2254
2399
|
nodeId: string;
|
|
2255
2400
|
subnetId: string;
|
|
2256
2401
|
amountStaked: string;
|
|
@@ -2268,6 +2413,7 @@ declare namespace CompletedValidatorDetails {
|
|
|
2268
2413
|
}
|
|
2269
2414
|
|
|
2270
2415
|
type PendingValidatorDetails = {
|
|
2416
|
+
txHash: string;
|
|
2271
2417
|
nodeId: string;
|
|
2272
2418
|
subnetId: string;
|
|
2273
2419
|
amountStaked: string;
|
|
@@ -2282,6 +2428,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2282
2428
|
}
|
|
2283
2429
|
}
|
|
2284
2430
|
|
|
2431
|
+
type RemovedValidatorDetails = {
|
|
2432
|
+
txHash: string;
|
|
2433
|
+
nodeId: string;
|
|
2434
|
+
subnetId: string;
|
|
2435
|
+
amountStaked: string;
|
|
2436
|
+
delegationFee?: string;
|
|
2437
|
+
startTimestamp: number;
|
|
2438
|
+
endTimestamp: number;
|
|
2439
|
+
removeTxHash: string;
|
|
2440
|
+
removeTimestamp: number;
|
|
2441
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2442
|
+
};
|
|
2443
|
+
declare namespace RemovedValidatorDetails {
|
|
2444
|
+
enum validationStatus {
|
|
2445
|
+
REMOVED = "removed"
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2285
2449
|
type ListValidatorDetailsResponse = {
|
|
2286
2450
|
/**
|
|
2287
2451
|
* 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.
|
|
@@ -2290,7 +2454,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2290
2454
|
/**
|
|
2291
2455
|
* The list of validator Details.
|
|
2292
2456
|
*/
|
|
2293
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2457
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2294
2458
|
};
|
|
2295
2459
|
|
|
2296
2460
|
declare enum Network {
|
|
@@ -2301,7 +2465,24 @@ declare enum Network {
|
|
|
2301
2465
|
declare enum ValidationStatusType {
|
|
2302
2466
|
COMPLETED = "completed",
|
|
2303
2467
|
ACTIVE = "active",
|
|
2304
|
-
PENDING = "pending"
|
|
2468
|
+
PENDING = "pending",
|
|
2469
|
+
REMOVED = "removed"
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2474
|
+
*/
|
|
2475
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2476
|
+
FIXED = "fixed",
|
|
2477
|
+
VARIABLE = "variable"
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2482
|
+
*/
|
|
2483
|
+
declare enum PrimaryNetworkAssetType {
|
|
2484
|
+
SECP256K1 = "secp256k1",
|
|
2485
|
+
NFT = "nft"
|
|
2305
2486
|
}
|
|
2306
2487
|
|
|
2307
2488
|
type XChainAssetDetails = {
|
|
@@ -2321,18 +2502,12 @@ type XChainAssetDetails = {
|
|
|
2321
2502
|
* Denomination of this asset to represent fungibility.
|
|
2322
2503
|
*/
|
|
2323
2504
|
denomination: number;
|
|
2324
|
-
|
|
2325
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2326
|
-
*/
|
|
2327
|
-
type: string;
|
|
2505
|
+
type: PrimaryNetworkAssetType;
|
|
2328
2506
|
/**
|
|
2329
2507
|
* Timestamp in seconds this asset was created on.
|
|
2330
2508
|
*/
|
|
2331
2509
|
createdAtTimestamp: number;
|
|
2332
|
-
|
|
2333
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2334
|
-
*/
|
|
2335
|
-
cap: string;
|
|
2510
|
+
cap: PrimaryNetworkAssetCap;
|
|
2336
2511
|
};
|
|
2337
2512
|
|
|
2338
2513
|
declare enum XChainId {
|
|
@@ -2398,19 +2573,19 @@ declare class PrimaryNetworkService {
|
|
|
2398
2573
|
* @returns ListBlockchainsResponse
|
|
2399
2574
|
* @throws ApiError
|
|
2400
2575
|
*/
|
|
2401
|
-
listBlockchains({ network,
|
|
2576
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2402
2577
|
/**
|
|
2403
2578
|
* Either mainnet or a testnet.
|
|
2404
2579
|
*/
|
|
2405
2580
|
network: Network;
|
|
2406
2581
|
/**
|
|
2407
|
-
*
|
|
2582
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2408
2583
|
*/
|
|
2409
|
-
|
|
2584
|
+
pageToken?: string;
|
|
2410
2585
|
/**
|
|
2411
|
-
*
|
|
2586
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2412
2587
|
*/
|
|
2413
|
-
|
|
2588
|
+
pageSize?: number;
|
|
2414
2589
|
/**
|
|
2415
2590
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2416
2591
|
*/
|
|
@@ -2422,19 +2597,19 @@ declare class PrimaryNetworkService {
|
|
|
2422
2597
|
* @returns ListSubnetsResponse
|
|
2423
2598
|
* @throws ApiError
|
|
2424
2599
|
*/
|
|
2425
|
-
listSubnets({ network,
|
|
2600
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2426
2601
|
/**
|
|
2427
2602
|
* Either mainnet or a testnet.
|
|
2428
2603
|
*/
|
|
2429
2604
|
network: Network;
|
|
2430
|
-
/**
|
|
2431
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2432
|
-
*/
|
|
2433
|
-
pageSize?: number;
|
|
2434
2605
|
/**
|
|
2435
2606
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2436
2607
|
*/
|
|
2437
2608
|
pageToken?: string;
|
|
2609
|
+
/**
|
|
2610
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2611
|
+
*/
|
|
2612
|
+
pageSize?: number;
|
|
2438
2613
|
/**
|
|
2439
2614
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2440
2615
|
*/
|
|
@@ -2446,59 +2621,59 @@ declare class PrimaryNetworkService {
|
|
|
2446
2621
|
* @returns ListValidatorDetailsResponse
|
|
2447
2622
|
* @throws ApiError
|
|
2448
2623
|
*/
|
|
2449
|
-
listValidators({ network, pageSize,
|
|
2624
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2450
2625
|
/**
|
|
2451
2626
|
* Either mainnet or a testnet.
|
|
2452
2627
|
*/
|
|
2453
2628
|
network: Network;
|
|
2629
|
+
/**
|
|
2630
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2631
|
+
*/
|
|
2632
|
+
pageToken?: string;
|
|
2454
2633
|
/**
|
|
2455
2634
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2456
2635
|
*/
|
|
2457
2636
|
pageSize?: number;
|
|
2458
2637
|
/**
|
|
2459
|
-
* A
|
|
2638
|
+
* A comma separated list of node ids to filter by.
|
|
2460
2639
|
*/
|
|
2461
|
-
|
|
2640
|
+
nodeIds?: string;
|
|
2462
2641
|
/**
|
|
2463
|
-
* The
|
|
2642
|
+
* 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.
|
|
2464
2643
|
*/
|
|
2465
|
-
|
|
2644
|
+
sortOrder?: SortOrder;
|
|
2466
2645
|
/**
|
|
2467
|
-
*
|
|
2646
|
+
* Validation status of the node.
|
|
2468
2647
|
*/
|
|
2469
|
-
|
|
2648
|
+
validationStatus?: ValidationStatusType;
|
|
2470
2649
|
/**
|
|
2471
2650
|
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2472
2651
|
*/
|
|
2473
|
-
minDelegationCapacity?:
|
|
2652
|
+
minDelegationCapacity?: string;
|
|
2474
2653
|
/**
|
|
2475
2654
|
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2476
2655
|
*/
|
|
2477
|
-
maxDelegationCapacity?:
|
|
2478
|
-
/**
|
|
2479
|
-
* 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.
|
|
2480
|
-
*/
|
|
2481
|
-
minFeePercentage?: any;
|
|
2656
|
+
maxDelegationCapacity?: string;
|
|
2482
2657
|
/**
|
|
2483
|
-
* The
|
|
2658
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2484
2659
|
*/
|
|
2485
|
-
|
|
2660
|
+
minTimeRemaining?: number;
|
|
2486
2661
|
/**
|
|
2487
|
-
*
|
|
2662
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2488
2663
|
*/
|
|
2489
|
-
|
|
2664
|
+
maxTimeRemaining?: number;
|
|
2490
2665
|
/**
|
|
2491
|
-
* The
|
|
2666
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2492
2667
|
*/
|
|
2493
|
-
|
|
2668
|
+
minFeePercentage?: number;
|
|
2494
2669
|
/**
|
|
2495
|
-
*
|
|
2670
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2496
2671
|
*/
|
|
2497
|
-
|
|
2672
|
+
maxFeePercentage?: number;
|
|
2498
2673
|
/**
|
|
2499
2674
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2500
2675
|
*/
|
|
2501
|
-
subnetId?:
|
|
2676
|
+
subnetId?: any;
|
|
2502
2677
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2503
2678
|
/**
|
|
2504
2679
|
* Get single validator details
|
|
@@ -2506,7 +2681,7 @@ declare class PrimaryNetworkService {
|
|
|
2506
2681
|
* @returns ListValidatorDetailsResponse
|
|
2507
2682
|
* @throws ApiError
|
|
2508
2683
|
*/
|
|
2509
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2684
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2510
2685
|
/**
|
|
2511
2686
|
* Either mainnet or a testnet.
|
|
2512
2687
|
*/
|
|
@@ -2515,14 +2690,14 @@ declare class PrimaryNetworkService {
|
|
|
2515
2690
|
* A primary network (P or X chain) nodeId.
|
|
2516
2691
|
*/
|
|
2517
2692
|
nodeId: string;
|
|
2518
|
-
/**
|
|
2519
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2520
|
-
*/
|
|
2521
|
-
pageSize?: number;
|
|
2522
2693
|
/**
|
|
2523
2694
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2524
2695
|
*/
|
|
2525
2696
|
pageToken?: string;
|
|
2697
|
+
/**
|
|
2698
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2699
|
+
*/
|
|
2700
|
+
pageSize?: number;
|
|
2526
2701
|
/**
|
|
2527
2702
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2528
2703
|
*/
|
|
@@ -2538,19 +2713,19 @@ declare class PrimaryNetworkService {
|
|
|
2538
2713
|
* @returns ListDelegatorDetailsResponse
|
|
2539
2714
|
* @throws ApiError
|
|
2540
2715
|
*/
|
|
2541
|
-
listDelegators({ network,
|
|
2716
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2542
2717
|
/**
|
|
2543
2718
|
* Either mainnet or a testnet.
|
|
2544
2719
|
*/
|
|
2545
2720
|
network: Network;
|
|
2546
|
-
/**
|
|
2547
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2548
|
-
*/
|
|
2549
|
-
pageSize?: number;
|
|
2550
2721
|
/**
|
|
2551
2722
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2552
2723
|
*/
|
|
2553
2724
|
pageToken?: string;
|
|
2725
|
+
/**
|
|
2726
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2727
|
+
*/
|
|
2728
|
+
pageSize?: number;
|
|
2554
2729
|
/**
|
|
2555
2730
|
* A comma separated list of reward addresses to filter by.
|
|
2556
2731
|
*/
|
|
@@ -2598,10 +2773,7 @@ type CChainSharedAssetBalance = {
|
|
|
2598
2773
|
* Denomination of this asset to represent fungibility.
|
|
2599
2774
|
*/
|
|
2600
2775
|
denomination: number;
|
|
2601
|
-
|
|
2602
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2603
|
-
*/
|
|
2604
|
-
type: string;
|
|
2776
|
+
type: PrimaryNetworkAssetType;
|
|
2605
2777
|
/**
|
|
2606
2778
|
* Amount of the asset.
|
|
2607
2779
|
*/
|
|
@@ -2636,49 +2808,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2636
2808
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2637
2809
|
};
|
|
2638
2810
|
|
|
2639
|
-
type
|
|
2811
|
+
type AggregatedAssetAmount = {
|
|
2812
|
+
/**
|
|
2813
|
+
* Unique ID for an asset.
|
|
2814
|
+
*/
|
|
2640
2815
|
assetId: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* Name of this asset.
|
|
2818
|
+
*/
|
|
2819
|
+
name: string;
|
|
2820
|
+
/**
|
|
2821
|
+
* Symbol for this asset (max 4 characters).
|
|
2822
|
+
*/
|
|
2823
|
+
symbol: string;
|
|
2824
|
+
/**
|
|
2825
|
+
* Denomination of this asset to represent fungibility.
|
|
2826
|
+
*/
|
|
2827
|
+
denomination: number;
|
|
2828
|
+
type: PrimaryNetworkAssetType;
|
|
2829
|
+
/**
|
|
2830
|
+
* Amount of the asset.
|
|
2831
|
+
*/
|
|
2641
2832
|
amount: string;
|
|
2833
|
+
utxoCount: number;
|
|
2642
2834
|
};
|
|
2643
2835
|
|
|
2644
2836
|
type PChainSharedAsset = {
|
|
2837
|
+
/**
|
|
2838
|
+
* Unique ID for an asset.
|
|
2839
|
+
*/
|
|
2645
2840
|
assetId: string;
|
|
2841
|
+
/**
|
|
2842
|
+
* Name of this asset.
|
|
2843
|
+
*/
|
|
2844
|
+
name: string;
|
|
2845
|
+
/**
|
|
2846
|
+
* Symbol for this asset (max 4 characters).
|
|
2847
|
+
*/
|
|
2848
|
+
symbol: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Denomination of this asset to represent fungibility.
|
|
2851
|
+
*/
|
|
2852
|
+
denomination: number;
|
|
2853
|
+
type: PrimaryNetworkAssetType;
|
|
2854
|
+
/**
|
|
2855
|
+
* Amount of the asset.
|
|
2856
|
+
*/
|
|
2646
2857
|
amount: string;
|
|
2858
|
+
utxoCount: number;
|
|
2647
2859
|
sharedWithChainId: string;
|
|
2648
2860
|
status: string;
|
|
2649
2861
|
};
|
|
2650
2862
|
|
|
2651
2863
|
type PChainBalance = {
|
|
2652
2864
|
/**
|
|
2653
|
-
* A list of objects containing P-chain Asset
|
|
2865
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2654
2866
|
*/
|
|
2655
|
-
unlockedUnstaked: Array<
|
|
2867
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2656
2868
|
/**
|
|
2657
|
-
* A list of objects containing P-chain Asset
|
|
2869
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2658
2870
|
*/
|
|
2659
|
-
unlockedStaked: Array<
|
|
2871
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2660
2872
|
/**
|
|
2661
|
-
* A list of objects containing P-chain Asset
|
|
2873
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2662
2874
|
*/
|
|
2663
|
-
lockedPlatform: Array<
|
|
2875
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2664
2876
|
/**
|
|
2665
|
-
* A list of objects containing P-chain Asset
|
|
2877
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2666
2878
|
*/
|
|
2667
|
-
lockedStakeable: Array<
|
|
2879
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2668
2880
|
/**
|
|
2669
|
-
* A list of objects containing P-chain Asset
|
|
2881
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2670
2882
|
*/
|
|
2671
|
-
lockedStaked: Array<
|
|
2883
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2672
2884
|
/**
|
|
2673
|
-
* A list of objects containing P-chain Asset
|
|
2885
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2674
2886
|
*/
|
|
2675
|
-
pendingStaked: Array<
|
|
2887
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2676
2888
|
/**
|
|
2677
|
-
* A list of objects containing P-chain Asset
|
|
2889
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2678
2890
|
*/
|
|
2679
2891
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2680
2892
|
/**
|
|
2681
|
-
* A list of objects containing P-chain Asset
|
|
2893
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2682
2894
|
*/
|
|
2683
2895
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2684
2896
|
};
|
|
@@ -2688,34 +2900,6 @@ type ListPChainBalancesResponse = {
|
|
|
2688
2900
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2689
2901
|
};
|
|
2690
2902
|
|
|
2691
|
-
type XChainAssetBalance = {
|
|
2692
|
-
/**
|
|
2693
|
-
* Unique ID for an asset.
|
|
2694
|
-
*/
|
|
2695
|
-
assetId: string;
|
|
2696
|
-
/**
|
|
2697
|
-
* Name of this asset.
|
|
2698
|
-
*/
|
|
2699
|
-
name: string;
|
|
2700
|
-
/**
|
|
2701
|
-
* Symbol for this asset (max 4 characters).
|
|
2702
|
-
*/
|
|
2703
|
-
symbol: string;
|
|
2704
|
-
/**
|
|
2705
|
-
* Denomination of this asset to represent fungibility.
|
|
2706
|
-
*/
|
|
2707
|
-
denomination: number;
|
|
2708
|
-
/**
|
|
2709
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2710
|
-
*/
|
|
2711
|
-
type: string;
|
|
2712
|
-
/**
|
|
2713
|
-
* Amount of the asset.
|
|
2714
|
-
*/
|
|
2715
|
-
amount: string;
|
|
2716
|
-
utxoCount: number;
|
|
2717
|
-
};
|
|
2718
|
-
|
|
2719
2903
|
type XChainSharedAssetBalance = {
|
|
2720
2904
|
/**
|
|
2721
2905
|
* Unique ID for an asset.
|
|
@@ -2733,10 +2917,7 @@ type XChainSharedAssetBalance = {
|
|
|
2733
2917
|
* Denomination of this asset to represent fungibility.
|
|
2734
2918
|
*/
|
|
2735
2919
|
denomination: number;
|
|
2736
|
-
|
|
2737
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2738
|
-
*/
|
|
2739
|
-
type: string;
|
|
2920
|
+
type: PrimaryNetworkAssetType;
|
|
2740
2921
|
/**
|
|
2741
2922
|
* Amount of the asset.
|
|
2742
2923
|
*/
|
|
@@ -2749,11 +2930,11 @@ type XChainBalances = {
|
|
|
2749
2930
|
/**
|
|
2750
2931
|
* A list of objects containing X-chain Asset balance information.
|
|
2751
2932
|
*/
|
|
2752
|
-
locked: Array<
|
|
2933
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2753
2934
|
/**
|
|
2754
2935
|
* A list of objects containing X-chain Asset balance information.
|
|
2755
2936
|
*/
|
|
2756
|
-
unlocked: Array<
|
|
2937
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2757
2938
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2758
2939
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2759
2940
|
};
|
|
@@ -2811,6 +2992,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2811
2992
|
txCount: number;
|
|
2812
2993
|
transactions: Array<string>;
|
|
2813
2994
|
blockSizeBytes: number;
|
|
2995
|
+
currentSupply?: string;
|
|
2814
2996
|
proposerDetails?: ProposerDetails;
|
|
2815
2997
|
};
|
|
2816
2998
|
|
|
@@ -2823,6 +3005,7 @@ type PrimaryNetworkBlock = {
|
|
|
2823
3005
|
txCount: number;
|
|
2824
3006
|
transactions: Array<string>;
|
|
2825
3007
|
blockSizeBytes: number;
|
|
3008
|
+
currentSupply?: string;
|
|
2826
3009
|
proposerDetails?: ProposerDetails;
|
|
2827
3010
|
};
|
|
2828
3011
|
|
|
@@ -2864,7 +3047,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2864
3047
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2865
3048
|
* @throws ApiError
|
|
2866
3049
|
*/
|
|
2867
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3050
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2868
3051
|
/**
|
|
2869
3052
|
* A primary network blockchain id or alias.
|
|
2870
3053
|
*/
|
|
@@ -2877,14 +3060,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2877
3060
|
* A primary network (P or X chain) nodeId.
|
|
2878
3061
|
*/
|
|
2879
3062
|
nodeId: string;
|
|
2880
|
-
/**
|
|
2881
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2882
|
-
*/
|
|
2883
|
-
pageSize?: number;
|
|
2884
3063
|
/**
|
|
2885
3064
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2886
3065
|
*/
|
|
2887
3066
|
pageToken?: string;
|
|
3067
|
+
/**
|
|
3068
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3069
|
+
*/
|
|
3070
|
+
pageSize?: number;
|
|
2888
3071
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2889
3072
|
/**
|
|
2890
3073
|
* List latest blocks
|
|
@@ -2892,7 +3075,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2892
3075
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2893
3076
|
* @throws ApiError
|
|
2894
3077
|
*/
|
|
2895
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3078
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2896
3079
|
/**
|
|
2897
3080
|
* A primary network blockchain id or alias.
|
|
2898
3081
|
*/
|
|
@@ -2901,17 +3084,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2901
3084
|
* Either mainnet or a testnet.
|
|
2902
3085
|
*/
|
|
2903
3086
|
network: Network;
|
|
2904
|
-
/**
|
|
2905
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2906
|
-
*/
|
|
2907
|
-
pageSize?: number;
|
|
2908
3087
|
/**
|
|
2909
3088
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2910
3089
|
*/
|
|
2911
3090
|
pageToken?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3093
|
+
*/
|
|
3094
|
+
pageSize?: number;
|
|
2912
3095
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2913
3096
|
}
|
|
2914
3097
|
|
|
3098
|
+
type AssetWithPriceInfo = {
|
|
3099
|
+
/**
|
|
3100
|
+
* Unique ID for an asset.
|
|
3101
|
+
*/
|
|
3102
|
+
assetId: string;
|
|
3103
|
+
/**
|
|
3104
|
+
* Name of this asset.
|
|
3105
|
+
*/
|
|
3106
|
+
name: string;
|
|
3107
|
+
/**
|
|
3108
|
+
* Symbol for this asset (max 4 characters).
|
|
3109
|
+
*/
|
|
3110
|
+
symbol: string;
|
|
3111
|
+
/**
|
|
3112
|
+
* Denomination of this asset to represent fungibility.
|
|
3113
|
+
*/
|
|
3114
|
+
denomination: number;
|
|
3115
|
+
type: PrimaryNetworkAssetType;
|
|
3116
|
+
/**
|
|
3117
|
+
* Amount of the asset.
|
|
3118
|
+
*/
|
|
3119
|
+
amount: string;
|
|
3120
|
+
/**
|
|
3121
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3122
|
+
*/
|
|
3123
|
+
historicalPrice?: Money;
|
|
3124
|
+
};
|
|
3125
|
+
|
|
2915
3126
|
declare enum RewardType {
|
|
2916
3127
|
VALIDATOR = "VALIDATOR",
|
|
2917
3128
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2931,10 +3142,7 @@ type HistoricalReward = {
|
|
|
2931
3142
|
rewardType: RewardType;
|
|
2932
3143
|
utxoId: string;
|
|
2933
3144
|
outputIndex: number;
|
|
2934
|
-
|
|
2935
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2936
|
-
*/
|
|
2937
|
-
reward: PChainAsset;
|
|
3145
|
+
reward: AssetWithPriceInfo;
|
|
2938
3146
|
rewardTxHash: string;
|
|
2939
3147
|
};
|
|
2940
3148
|
|
|
@@ -2946,6 +3154,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2946
3154
|
historicalRewards: Array<HistoricalReward>;
|
|
2947
3155
|
};
|
|
2948
3156
|
|
|
3157
|
+
type AssetAmount = {
|
|
3158
|
+
/**
|
|
3159
|
+
* Unique ID for an asset.
|
|
3160
|
+
*/
|
|
3161
|
+
assetId: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* Name of this asset.
|
|
3164
|
+
*/
|
|
3165
|
+
name: string;
|
|
3166
|
+
/**
|
|
3167
|
+
* Symbol for this asset (max 4 characters).
|
|
3168
|
+
*/
|
|
3169
|
+
symbol: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* Denomination of this asset to represent fungibility.
|
|
3172
|
+
*/
|
|
3173
|
+
denomination: number;
|
|
3174
|
+
type: PrimaryNetworkAssetType;
|
|
3175
|
+
/**
|
|
3176
|
+
* Amount of the asset.
|
|
3177
|
+
*/
|
|
3178
|
+
amount: string;
|
|
3179
|
+
};
|
|
3180
|
+
|
|
2949
3181
|
type PendingReward = {
|
|
2950
3182
|
/**
|
|
2951
3183
|
* An array of P-Chain wallet addresses.
|
|
@@ -2959,9 +3191,9 @@ type PendingReward = {
|
|
|
2959
3191
|
rewardType: RewardType;
|
|
2960
3192
|
progress: number;
|
|
2961
3193
|
/**
|
|
2962
|
-
* An object containing P-chain Asset
|
|
3194
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2963
3195
|
*/
|
|
2964
|
-
estimatedReward:
|
|
3196
|
+
estimatedReward: AssetAmount;
|
|
2965
3197
|
};
|
|
2966
3198
|
|
|
2967
3199
|
type ListPendingRewardsResponse = {
|
|
@@ -2981,25 +3213,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2981
3213
|
* @returns ListPendingRewardsResponse
|
|
2982
3214
|
* @throws ApiError
|
|
2983
3215
|
*/
|
|
2984
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3216
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2985
3217
|
/**
|
|
2986
3218
|
* Either mainnet or a testnet.
|
|
2987
3219
|
*/
|
|
2988
3220
|
network: Network;
|
|
2989
3221
|
/**
|
|
2990
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3222
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
2991
3223
|
*/
|
|
2992
3224
|
addresses?: string;
|
|
2993
|
-
/**
|
|
2994
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2995
|
-
*/
|
|
2996
|
-
pageSize?: number;
|
|
2997
3225
|
/**
|
|
2998
3226
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2999
3227
|
*/
|
|
3000
3228
|
pageToken?: string;
|
|
3001
3229
|
/**
|
|
3002
|
-
*
|
|
3230
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3231
|
+
*/
|
|
3232
|
+
pageSize?: number;
|
|
3233
|
+
/**
|
|
3234
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3003
3235
|
*/
|
|
3004
3236
|
nodeIds?: string;
|
|
3005
3237
|
/**
|
|
@@ -3013,68 +3245,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3013
3245
|
* @returns ListHistoricalRewardsResponse
|
|
3014
3246
|
* @throws ApiError
|
|
3015
3247
|
*/
|
|
3016
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3248
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3017
3249
|
/**
|
|
3018
3250
|
* Either mainnet or a testnet.
|
|
3019
3251
|
*/
|
|
3020
3252
|
network: Network;
|
|
3021
3253
|
/**
|
|
3022
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3254
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
3023
3255
|
*/
|
|
3024
3256
|
addresses?: string;
|
|
3025
|
-
/**
|
|
3026
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3027
|
-
*/
|
|
3028
|
-
pageSize?: number;
|
|
3029
3257
|
/**
|
|
3030
3258
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3031
3259
|
*/
|
|
3032
3260
|
pageToken?: string;
|
|
3033
3261
|
/**
|
|
3034
|
-
*
|
|
3262
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3263
|
+
*/
|
|
3264
|
+
pageSize?: number;
|
|
3265
|
+
/**
|
|
3266
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3035
3267
|
*/
|
|
3036
3268
|
nodeIds?: string;
|
|
3037
3269
|
/**
|
|
3038
3270
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3039
3271
|
*/
|
|
3040
3272
|
sortOrder?: SortOrder;
|
|
3273
|
+
/**
|
|
3274
|
+
* The currency that return values should use. Defaults to USD.
|
|
3275
|
+
*/
|
|
3276
|
+
currency?: CurrencyCode;
|
|
3041
3277
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3042
3278
|
}
|
|
3043
3279
|
|
|
3044
|
-
type Asset = {
|
|
3045
|
-
/**
|
|
3046
|
-
* Unique ID for an asset.
|
|
3047
|
-
*/
|
|
3048
|
-
assetId: string;
|
|
3049
|
-
/**
|
|
3050
|
-
* Name of this asset.
|
|
3051
|
-
*/
|
|
3052
|
-
name: string;
|
|
3053
|
-
/**
|
|
3054
|
-
* Symbol for this asset (max 4 characters).
|
|
3055
|
-
*/
|
|
3056
|
-
symbol: string;
|
|
3057
|
-
/**
|
|
3058
|
-
* Denomination of this asset to represent fungibility.
|
|
3059
|
-
*/
|
|
3060
|
-
denomination: number;
|
|
3061
|
-
/**
|
|
3062
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3063
|
-
*/
|
|
3064
|
-
type: string;
|
|
3065
|
-
/**
|
|
3066
|
-
* Amount of the asset.
|
|
3067
|
-
*/
|
|
3068
|
-
amount: string;
|
|
3069
|
-
};
|
|
3070
|
-
|
|
3071
3280
|
type UtxoCredential = {
|
|
3072
3281
|
/**
|
|
3073
|
-
* Signature provided to consume the output
|
|
3282
|
+
* Signature provided to consume the output.
|
|
3074
3283
|
*/
|
|
3075
3284
|
signature?: string;
|
|
3076
3285
|
/**
|
|
3077
|
-
* Public key associated with the signature
|
|
3286
|
+
* Public key associated with the signature.
|
|
3078
3287
|
*/
|
|
3079
3288
|
publicKey?: string;
|
|
3080
3289
|
};
|
|
@@ -3085,9 +3294,9 @@ type EVMInput = {
|
|
|
3085
3294
|
*/
|
|
3086
3295
|
fromAddress: string;
|
|
3087
3296
|
/**
|
|
3088
|
-
*
|
|
3297
|
+
* AssetAmount details for the asset being transferred.
|
|
3089
3298
|
*/
|
|
3090
|
-
asset:
|
|
3299
|
+
asset: AssetAmount;
|
|
3091
3300
|
/**
|
|
3092
3301
|
* Credentials that signed this transaction.
|
|
3093
3302
|
*/
|
|
@@ -3096,66 +3305,66 @@ type EVMInput = {
|
|
|
3096
3305
|
|
|
3097
3306
|
type Utxo = {
|
|
3098
3307
|
/**
|
|
3099
|
-
*
|
|
3308
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3100
3309
|
*/
|
|
3101
|
-
|
|
3102
|
-
asset:
|
|
3310
|
+
addresses: Array<string>;
|
|
3311
|
+
asset: AssetAmount;
|
|
3103
3312
|
/**
|
|
3104
|
-
*
|
|
3313
|
+
* Blockchain ID on which this output is consumed on.
|
|
3105
3314
|
*/
|
|
3106
|
-
|
|
3315
|
+
consumedOnChainId: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Transaction ID that consumed this output.
|
|
3318
|
+
*/
|
|
3319
|
+
consumingTxHash?: string;
|
|
3107
3320
|
/**
|
|
3108
3321
|
* Blockchain ID on which this output is created on.
|
|
3109
3322
|
*/
|
|
3110
3323
|
createdOnChainId: string;
|
|
3111
3324
|
/**
|
|
3112
|
-
*
|
|
3325
|
+
* UTXO ID for this output.
|
|
3113
3326
|
*/
|
|
3114
|
-
|
|
3327
|
+
utxoId: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3330
|
+
*/
|
|
3331
|
+
consumingTxTimestamp?: number;
|
|
3115
3332
|
/**
|
|
3116
3333
|
* Transaction ID that created this output.
|
|
3117
3334
|
*/
|
|
3118
3335
|
creationTxHash: string;
|
|
3119
3336
|
/**
|
|
3120
|
-
*
|
|
3337
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3121
3338
|
*/
|
|
3122
|
-
|
|
3123
|
-
/**
|
|
3124
|
-
* Timestamp in seconds this output is consumed.
|
|
3125
|
-
*/
|
|
3126
|
-
consumingTxTimestamp?: number;
|
|
3127
|
-
/**
|
|
3128
|
-
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3129
|
-
*/
|
|
3130
|
-
outputIndex: string;
|
|
3339
|
+
credentials?: Array<UtxoCredential>;
|
|
3131
3340
|
/**
|
|
3132
|
-
*
|
|
3341
|
+
* Index representing the minting set for the NFT mint output.
|
|
3133
3342
|
*/
|
|
3134
|
-
|
|
3343
|
+
groupId?: number;
|
|
3135
3344
|
/**
|
|
3136
3345
|
* Locktime in seconds after which this output can be consumed.
|
|
3137
3346
|
*/
|
|
3138
3347
|
locktime: number;
|
|
3139
3348
|
/**
|
|
3140
|
-
*
|
|
3349
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3141
3350
|
*/
|
|
3142
|
-
|
|
3351
|
+
outputIndex: string;
|
|
3143
3352
|
/**
|
|
3144
|
-
*
|
|
3353
|
+
* Hex encoded data for NFT assets.
|
|
3145
3354
|
*/
|
|
3146
|
-
|
|
3355
|
+
payload?: string;
|
|
3147
3356
|
/**
|
|
3148
|
-
*
|
|
3357
|
+
* Minimum number of signatures required to consume this output.
|
|
3149
3358
|
*/
|
|
3150
|
-
|
|
3359
|
+
threshold: number;
|
|
3151
3360
|
/**
|
|
3152
|
-
*
|
|
3361
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3153
3362
|
*/
|
|
3154
|
-
|
|
3363
|
+
timestamp: number;
|
|
3155
3364
|
/**
|
|
3156
|
-
*
|
|
3365
|
+
* Type of output.
|
|
3157
3366
|
*/
|
|
3158
|
-
|
|
3367
|
+
utxoType: string;
|
|
3159
3368
|
};
|
|
3160
3369
|
|
|
3161
3370
|
type CChainExportTransaction = {
|
|
@@ -3182,11 +3391,11 @@ type CChainExportTransaction = {
|
|
|
3182
3391
|
/**
|
|
3183
3392
|
* Assets unlocked by inputs of this transaction.
|
|
3184
3393
|
*/
|
|
3185
|
-
amountUnlocked: Array<
|
|
3394
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3186
3395
|
/**
|
|
3187
3396
|
* Assets created by outputs of this transaction.
|
|
3188
3397
|
*/
|
|
3189
|
-
amountCreated: Array<
|
|
3398
|
+
amountCreated: Array<AssetAmount>;
|
|
3190
3399
|
/**
|
|
3191
3400
|
* Source chain for an atomic transaction.
|
|
3192
3401
|
*/
|
|
@@ -3217,9 +3426,9 @@ type EVMOutput = {
|
|
|
3217
3426
|
*/
|
|
3218
3427
|
toAddress: string;
|
|
3219
3428
|
/**
|
|
3220
|
-
*
|
|
3429
|
+
* AssetAmount details for the asset being transferred.
|
|
3221
3430
|
*/
|
|
3222
|
-
asset:
|
|
3431
|
+
asset: AssetAmount;
|
|
3223
3432
|
};
|
|
3224
3433
|
|
|
3225
3434
|
type CChainImportTransaction = {
|
|
@@ -3246,11 +3455,11 @@ type CChainImportTransaction = {
|
|
|
3246
3455
|
/**
|
|
3247
3456
|
* Assets unlocked by inputs of this transaction.
|
|
3248
3457
|
*/
|
|
3249
|
-
amountUnlocked: Array<
|
|
3458
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3250
3459
|
/**
|
|
3251
3460
|
* Assets created by outputs of this transaction.
|
|
3252
3461
|
*/
|
|
3253
|
-
amountCreated: Array<
|
|
3462
|
+
amountCreated: Array<AssetAmount>;
|
|
3254
3463
|
/**
|
|
3255
3464
|
* Source chain for an atomic transaction.
|
|
3256
3465
|
*/
|
|
@@ -3286,17 +3495,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3286
3495
|
|
|
3287
3496
|
declare enum PChainTransactionType {
|
|
3288
3497
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3289
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3290
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3291
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3292
3498
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3293
|
-
|
|
3294
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3499
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3295
3500
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3296
3501
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3297
3502
|
IMPORT_TX = "ImportTx",
|
|
3298
3503
|
EXPORT_TX = "ExportTx",
|
|
3299
3504
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3505
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3506
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3507
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3508
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3509
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3510
|
+
BASE_TX = "BaseTx",
|
|
3511
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3300
3512
|
UNKNOWN = "UNKNOWN"
|
|
3301
3513
|
}
|
|
3302
3514
|
|
|
@@ -3307,29 +3519,48 @@ declare enum UtxoType {
|
|
|
3307
3519
|
|
|
3308
3520
|
type PChainUtxo = {
|
|
3309
3521
|
/**
|
|
3310
|
-
*
|
|
3522
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3311
3523
|
*/
|
|
3312
3524
|
addresses: Array<string>;
|
|
3525
|
+
asset: AssetAmount;
|
|
3526
|
+
/**
|
|
3527
|
+
* Blockchain ID on which this output is consumed on.
|
|
3528
|
+
*/
|
|
3529
|
+
consumedOnChainId: string;
|
|
3530
|
+
/**
|
|
3531
|
+
* Transaction ID that consumed this output.
|
|
3532
|
+
*/
|
|
3533
|
+
consumingTxHash?: string;
|
|
3534
|
+
/**
|
|
3535
|
+
* Blockchain ID on which this output is created on.
|
|
3536
|
+
*/
|
|
3537
|
+
createdOnChainId: string;
|
|
3538
|
+
/**
|
|
3539
|
+
* UTXO ID for this output.
|
|
3540
|
+
*/
|
|
3313
3541
|
utxoId: string;
|
|
3314
|
-
|
|
3315
|
-
|
|
3542
|
+
/**
|
|
3543
|
+
* @deprecated
|
|
3544
|
+
*/
|
|
3545
|
+
amount: string;
|
|
3546
|
+
/**
|
|
3547
|
+
* @deprecated
|
|
3548
|
+
*/
|
|
3549
|
+
assetId: string;
|
|
3316
3550
|
blockNumber: string;
|
|
3317
3551
|
blockTimestamp: number;
|
|
3318
|
-
consumingTxHash?: string;
|
|
3319
|
-
consumingBlockTimestamp?: number;
|
|
3320
3552
|
consumingBlockNumber?: string;
|
|
3321
|
-
|
|
3322
|
-
utxoType: UtxoType;
|
|
3323
|
-
amount: string;
|
|
3324
|
-
stakeableLocktime?: number;
|
|
3553
|
+
consumingBlockTimestamp?: number;
|
|
3325
3554
|
platformLocktime?: number;
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3555
|
+
outputIndex: number;
|
|
3556
|
+
rewardType?: RewardType;
|
|
3557
|
+
stakeableLocktime?: number;
|
|
3329
3558
|
staked?: boolean;
|
|
3330
|
-
|
|
3559
|
+
threshold?: number;
|
|
3560
|
+
txHash: string;
|
|
3331
3561
|
utxoEndTimestamp?: number;
|
|
3332
|
-
|
|
3562
|
+
utxoStartTimestamp?: number;
|
|
3563
|
+
utxoType: UtxoType;
|
|
3333
3564
|
};
|
|
3334
3565
|
|
|
3335
3566
|
type PChainTransaction = {
|
|
@@ -3355,17 +3586,17 @@ type PChainTransaction = {
|
|
|
3355
3586
|
*/
|
|
3356
3587
|
destinationChain?: string;
|
|
3357
3588
|
/**
|
|
3358
|
-
* A list of objects containing P-chain Asset
|
|
3589
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3359
3590
|
*/
|
|
3360
|
-
value: Array<
|
|
3591
|
+
value: Array<AssetAmount>;
|
|
3361
3592
|
/**
|
|
3362
|
-
* A list of objects containing P-chain Asset
|
|
3593
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3363
3594
|
*/
|
|
3364
|
-
amountBurned: Array<
|
|
3595
|
+
amountBurned: Array<AssetAmount>;
|
|
3365
3596
|
/**
|
|
3366
|
-
* A list of objects containing P-chain Asset
|
|
3597
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3367
3598
|
*/
|
|
3368
|
-
amountStaked: Array<
|
|
3599
|
+
amountStaked: Array<AssetAmount>;
|
|
3369
3600
|
/**
|
|
3370
3601
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3371
3602
|
*/
|
|
@@ -3397,6 +3628,10 @@ type PChainTransaction = {
|
|
|
3397
3628
|
* Present for RewardValidatorTx
|
|
3398
3629
|
*/
|
|
3399
3630
|
stakingTxHash?: string;
|
|
3631
|
+
/**
|
|
3632
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3633
|
+
*/
|
|
3634
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3400
3635
|
};
|
|
3401
3636
|
|
|
3402
3637
|
type ListPChainTransactionsResponse = {
|
|
@@ -3408,6 +3643,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3408
3643
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3409
3644
|
};
|
|
3410
3645
|
|
|
3646
|
+
/**
|
|
3647
|
+
* Type of transaction.
|
|
3648
|
+
*/
|
|
3649
|
+
declare enum XChainTransactionType {
|
|
3650
|
+
BASE_TX = "BaseTx",
|
|
3651
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3652
|
+
OPERATION_TX = "OperationTx",
|
|
3653
|
+
IMPORT_TX = "ImportTx",
|
|
3654
|
+
EXPORT_TX = "ExportTx",
|
|
3655
|
+
UNKNOWN = "UNKNOWN"
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3411
3658
|
type XChainLinearTransaction = {
|
|
3412
3659
|
/**
|
|
3413
3660
|
* Unique ID for this transaction.
|
|
@@ -3421,10 +3668,7 @@ type XChainLinearTransaction = {
|
|
|
3421
3668
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3422
3669
|
*/
|
|
3423
3670
|
timestamp: number;
|
|
3424
|
-
|
|
3425
|
-
* Type of transaction.
|
|
3426
|
-
*/
|
|
3427
|
-
txType: string;
|
|
3671
|
+
txType: XChainTransactionType;
|
|
3428
3672
|
/**
|
|
3429
3673
|
* Hex encoded memo bytes for this transaction.
|
|
3430
3674
|
*/
|
|
@@ -3434,11 +3678,11 @@ type XChainLinearTransaction = {
|
|
|
3434
3678
|
/**
|
|
3435
3679
|
* Assets unlocked by inputs of this transaction.
|
|
3436
3680
|
*/
|
|
3437
|
-
amountUnlocked: Array<
|
|
3681
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3438
3682
|
/**
|
|
3439
3683
|
* Assets created by outputs of this transaction.
|
|
3440
3684
|
*/
|
|
3441
|
-
amountCreated: Array<
|
|
3685
|
+
amountCreated: Array<AssetAmount>;
|
|
3442
3686
|
/**
|
|
3443
3687
|
* Source chain for an atomic transaction.
|
|
3444
3688
|
*/
|
|
@@ -3448,7 +3692,7 @@ type XChainLinearTransaction = {
|
|
|
3448
3692
|
*/
|
|
3449
3693
|
destinationChain?: string;
|
|
3450
3694
|
/**
|
|
3451
|
-
*
|
|
3695
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3452
3696
|
*/
|
|
3453
3697
|
assetCreated?: XChainAssetDetails;
|
|
3454
3698
|
/**
|
|
@@ -3498,10 +3742,7 @@ type XChainNonLinearTransaction = {
|
|
|
3498
3742
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3499
3743
|
*/
|
|
3500
3744
|
timestamp: number;
|
|
3501
|
-
|
|
3502
|
-
* Type of transaction.
|
|
3503
|
-
*/
|
|
3504
|
-
txType: string;
|
|
3745
|
+
txType: XChainTransactionType;
|
|
3505
3746
|
/**
|
|
3506
3747
|
* Hex encoded memo bytes for this transaction.
|
|
3507
3748
|
*/
|
|
@@ -3511,11 +3752,11 @@ type XChainNonLinearTransaction = {
|
|
|
3511
3752
|
/**
|
|
3512
3753
|
* Assets unlocked by inputs of this transaction.
|
|
3513
3754
|
*/
|
|
3514
|
-
amountUnlocked: Array<
|
|
3755
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3515
3756
|
/**
|
|
3516
3757
|
* Assets created by outputs of this transaction.
|
|
3517
3758
|
*/
|
|
3518
|
-
amountCreated: Array<
|
|
3759
|
+
amountCreated: Array<AssetAmount>;
|
|
3519
3760
|
/**
|
|
3520
3761
|
* Source chain for an atomic transaction.
|
|
3521
3762
|
*/
|
|
@@ -3525,7 +3766,7 @@ type XChainNonLinearTransaction = {
|
|
|
3525
3766
|
*/
|
|
3526
3767
|
destinationChain?: string;
|
|
3527
3768
|
/**
|
|
3528
|
-
*
|
|
3769
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3529
3770
|
*/
|
|
3530
3771
|
assetCreated?: XChainAssetDetails;
|
|
3531
3772
|
/**
|
|
@@ -3559,19 +3800,21 @@ declare enum PChainId {
|
|
|
3559
3800
|
|
|
3560
3801
|
declare enum PrimaryNetworkTxType {
|
|
3561
3802
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3562
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3563
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3565
3803
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3566
|
-
|
|
3567
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3804
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3568
3805
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3569
3806
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3570
3807
|
IMPORT_TX = "ImportTx",
|
|
3571
3808
|
EXPORT_TX = "ExportTx",
|
|
3572
3809
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3573
|
-
|
|
3810
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3811
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3812
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3813
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3814
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3574
3815
|
BASE_TX = "BaseTx",
|
|
3816
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3817
|
+
UNKNOWN = "UNKNOWN",
|
|
3575
3818
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3576
3819
|
OPERATION_TX = "OperationTx"
|
|
3577
3820
|
}
|
|
@@ -3603,13 +3846,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3603
3846
|
* List latest transactions
|
|
3604
3847
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3605
3848
|
*
|
|
3606
|
-
* Transactions are filterable by addresses.
|
|
3849
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3607
3850
|
*
|
|
3608
3851
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3609
3852
|
* @returns any
|
|
3610
3853
|
* @throws ApiError
|
|
3611
3854
|
*/
|
|
3612
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3855
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3613
3856
|
/**
|
|
3614
3857
|
* A primary network blockchain id or alias.
|
|
3615
3858
|
*/
|
|
@@ -3634,14 +3877,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3634
3877
|
* Query param for retrieving items before a specific timestamp.
|
|
3635
3878
|
*/
|
|
3636
3879
|
endTimestamp?: number;
|
|
3637
|
-
/**
|
|
3638
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3639
|
-
*/
|
|
3640
|
-
pageSize?: number;
|
|
3641
3880
|
/**
|
|
3642
3881
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3643
3882
|
*/
|
|
3644
3883
|
pageToken?: string;
|
|
3884
|
+
/**
|
|
3885
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3886
|
+
*/
|
|
3887
|
+
pageSize?: number;
|
|
3645
3888
|
/**
|
|
3646
3889
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3647
3890
|
*/
|
|
@@ -3653,7 +3896,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3653
3896
|
* @returns ListPChainTransactionsResponse
|
|
3654
3897
|
* @throws ApiError
|
|
3655
3898
|
*/
|
|
3656
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3899
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3657
3900
|
/**
|
|
3658
3901
|
* A primary network blockchain id or alias.
|
|
3659
3902
|
*/
|
|
@@ -3678,14 +3921,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3678
3921
|
* Query param for retrieving items before a specific timestamp.
|
|
3679
3922
|
*/
|
|
3680
3923
|
endTimestamp?: number;
|
|
3681
|
-
/**
|
|
3682
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3683
|
-
*/
|
|
3684
|
-
pageSize?: number;
|
|
3685
3924
|
/**
|
|
3686
3925
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3687
3926
|
*/
|
|
3688
3927
|
pageToken?: string;
|
|
3928
|
+
/**
|
|
3929
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3930
|
+
*/
|
|
3931
|
+
pageSize?: number;
|
|
3689
3932
|
/**
|
|
3690
3933
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3691
3934
|
*/
|
|
@@ -3697,7 +3940,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3697
3940
|
* @returns ListXChainTransactionsResponse
|
|
3698
3941
|
* @throws ApiError
|
|
3699
3942
|
*/
|
|
3700
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3943
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3701
3944
|
/**
|
|
3702
3945
|
* A primary network blockchain id or alias.
|
|
3703
3946
|
*/
|
|
@@ -3722,14 +3965,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3722
3965
|
* Query param for retrieving items before a specific timestamp.
|
|
3723
3966
|
*/
|
|
3724
3967
|
endTimestamp?: number;
|
|
3725
|
-
/**
|
|
3726
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3727
|
-
*/
|
|
3728
|
-
pageSize?: number;
|
|
3729
3968
|
/**
|
|
3730
3969
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3731
3970
|
*/
|
|
3732
3971
|
pageToken?: string;
|
|
3972
|
+
/**
|
|
3973
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3974
|
+
*/
|
|
3975
|
+
pageSize?: number;
|
|
3733
3976
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3734
3977
|
}
|
|
3735
3978
|
|
|
@@ -3760,7 +4003,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3760
4003
|
* @returns any
|
|
3761
4004
|
* @throws ApiError
|
|
3762
4005
|
*/
|
|
3763
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4006
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3764
4007
|
/**
|
|
3765
4008
|
* A primary network blockchain id or alias.
|
|
3766
4009
|
*/
|
|
@@ -3773,14 +4016,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3773
4016
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3774
4017
|
*/
|
|
3775
4018
|
addresses?: string;
|
|
3776
|
-
/**
|
|
3777
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3778
|
-
*/
|
|
3779
|
-
pageSize?: number;
|
|
3780
4019
|
/**
|
|
3781
4020
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3782
4021
|
*/
|
|
3783
4022
|
pageToken?: string;
|
|
4023
|
+
/**
|
|
4024
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4025
|
+
*/
|
|
4026
|
+
pageSize?: number;
|
|
3784
4027
|
/**
|
|
3785
4028
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3786
4029
|
*/
|
|
@@ -3825,7 +4068,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3825
4068
|
* @returns ListXChainVerticesResponse
|
|
3826
4069
|
* @throws ApiError
|
|
3827
4070
|
*/
|
|
3828
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4071
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3829
4072
|
/**
|
|
3830
4073
|
* A primary network blockchain id or alias.
|
|
3831
4074
|
*/
|
|
@@ -3834,14 +4077,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3834
4077
|
* Either mainnet or a testnet.
|
|
3835
4078
|
*/
|
|
3836
4079
|
network: Network;
|
|
3837
|
-
/**
|
|
3838
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3839
|
-
*/
|
|
3840
|
-
pageSize?: number;
|
|
3841
4080
|
/**
|
|
3842
4081
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3843
4082
|
*/
|
|
3844
4083
|
pageToken?: string;
|
|
4084
|
+
/**
|
|
4085
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4086
|
+
*/
|
|
4087
|
+
pageSize?: number;
|
|
3845
4088
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3846
4089
|
/**
|
|
3847
4090
|
* Get vertex
|
|
@@ -3869,7 +4112,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3869
4112
|
* @returns ListXChainVerticesResponse
|
|
3870
4113
|
* @throws ApiError
|
|
3871
4114
|
*/
|
|
3872
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4115
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3873
4116
|
/**
|
|
3874
4117
|
* The height of a vertex.
|
|
3875
4118
|
*/
|
|
@@ -3882,19 +4125,361 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3882
4125
|
* Either mainnet or a testnet.
|
|
3883
4126
|
*/
|
|
3884
4127
|
network: Network;
|
|
4128
|
+
/**
|
|
4129
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4130
|
+
*/
|
|
4131
|
+
pageToken?: string;
|
|
3885
4132
|
/**
|
|
3886
4133
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3887
4134
|
*/
|
|
3888
4135
|
pageSize?: number;
|
|
4136
|
+
/**
|
|
4137
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4138
|
+
*/
|
|
4139
|
+
sortOrder?: SortOrder;
|
|
4140
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
type TeleporterDestinationTransaction = {
|
|
4144
|
+
txHash: string;
|
|
4145
|
+
timestamp: number;
|
|
4146
|
+
gasSpent: string;
|
|
4147
|
+
rewardRedeemer: string;
|
|
4148
|
+
delivererAddress: string;
|
|
4149
|
+
};
|
|
4150
|
+
|
|
4151
|
+
type TeleporterReceipt = {
|
|
4152
|
+
receivedMessageNonce: string;
|
|
4153
|
+
relayerRewardAddress: string;
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
type TeleporterRewardDetails = {
|
|
4157
|
+
/**
|
|
4158
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4159
|
+
*/
|
|
4160
|
+
address: string;
|
|
4161
|
+
/**
|
|
4162
|
+
* The contract name.
|
|
4163
|
+
*/
|
|
4164
|
+
name: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* The contract symbol.
|
|
4167
|
+
*/
|
|
4168
|
+
symbol: string;
|
|
4169
|
+
/**
|
|
4170
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4171
|
+
*/
|
|
4172
|
+
decimals: number;
|
|
4173
|
+
/**
|
|
4174
|
+
* The logo uri for the address.
|
|
4175
|
+
*/
|
|
4176
|
+
logoUri?: string;
|
|
4177
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4178
|
+
/**
|
|
4179
|
+
* The token price, if available.
|
|
4180
|
+
*/
|
|
4181
|
+
price?: Money;
|
|
4182
|
+
value: string;
|
|
4183
|
+
};
|
|
4184
|
+
declare namespace TeleporterRewardDetails {
|
|
4185
|
+
enum ercType {
|
|
4186
|
+
ERC_20 = "ERC-20"
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
|
|
4190
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4191
|
+
messageId: string;
|
|
4192
|
+
teleporterContractAddress: string;
|
|
4193
|
+
sourceBlockchainId: string;
|
|
4194
|
+
destinationBlockchainId: string;
|
|
4195
|
+
messageNonce: string;
|
|
4196
|
+
from: string;
|
|
4197
|
+
to: string;
|
|
4198
|
+
data?: string;
|
|
4199
|
+
messageExecuted: boolean;
|
|
4200
|
+
receipts: Array<TeleporterReceipt>;
|
|
4201
|
+
receiptDelivered: boolean;
|
|
4202
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4203
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4204
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4205
|
+
};
|
|
4206
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4207
|
+
enum status {
|
|
4208
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
type TeleporterSourceTransaction = {
|
|
4213
|
+
txHash: string;
|
|
4214
|
+
timestamp: number;
|
|
4215
|
+
gasSpent: string;
|
|
4216
|
+
};
|
|
4217
|
+
|
|
4218
|
+
type DeliveredTeleporterMessage = {
|
|
4219
|
+
messageId: string;
|
|
4220
|
+
teleporterContractAddress: string;
|
|
4221
|
+
sourceBlockchainId: string;
|
|
4222
|
+
destinationBlockchainId: string;
|
|
4223
|
+
messageNonce: string;
|
|
4224
|
+
from: string;
|
|
4225
|
+
to: string;
|
|
4226
|
+
data?: string;
|
|
4227
|
+
messageExecuted: boolean;
|
|
4228
|
+
receipts: Array<TeleporterReceipt>;
|
|
4229
|
+
receiptDelivered: boolean;
|
|
4230
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4231
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4232
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4233
|
+
status: DeliveredTeleporterMessage.status;
|
|
4234
|
+
};
|
|
4235
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4236
|
+
enum status {
|
|
4237
|
+
DELIVERED = "delivered"
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
type NextPageToken = {
|
|
4242
|
+
/**
|
|
4243
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4244
|
+
*/
|
|
4245
|
+
nextPageToken?: string;
|
|
4246
|
+
};
|
|
4247
|
+
|
|
4248
|
+
type PendingTeleporterMessage = {
|
|
4249
|
+
messageId: string;
|
|
4250
|
+
teleporterContractAddress: string;
|
|
4251
|
+
sourceBlockchainId: string;
|
|
4252
|
+
destinationBlockchainId: string;
|
|
4253
|
+
messageNonce: string;
|
|
4254
|
+
from: string;
|
|
4255
|
+
to: string;
|
|
4256
|
+
data?: string;
|
|
4257
|
+
messageExecuted: boolean;
|
|
4258
|
+
receipts: Array<TeleporterReceipt>;
|
|
4259
|
+
receiptDelivered: boolean;
|
|
4260
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4261
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4262
|
+
status: PendingTeleporterMessage.status;
|
|
4263
|
+
};
|
|
4264
|
+
declare namespace PendingTeleporterMessage {
|
|
4265
|
+
enum status {
|
|
4266
|
+
PENDING = "pending"
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
declare class TeleporterService {
|
|
4271
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4272
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4273
|
+
/**
|
|
4274
|
+
* Get a teleporter message
|
|
4275
|
+
* Gets a teleporter message by message ID.
|
|
4276
|
+
* @returns any
|
|
4277
|
+
* @throws ApiError
|
|
4278
|
+
*/
|
|
4279
|
+
getTeleporterMessage({ messageId, }: {
|
|
4280
|
+
/**
|
|
4281
|
+
* The message ID of the teleporter message.
|
|
4282
|
+
*/
|
|
4283
|
+
messageId: string;
|
|
4284
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4285
|
+
/**
|
|
4286
|
+
* List teleporter messages
|
|
4287
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4288
|
+
* @returns any
|
|
4289
|
+
* @throws ApiError
|
|
4290
|
+
*/
|
|
4291
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
3889
4292
|
/**
|
|
3890
4293
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3891
4294
|
*/
|
|
3892
4295
|
pageToken?: string;
|
|
3893
4296
|
/**
|
|
3894
|
-
* The
|
|
4297
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3895
4298
|
*/
|
|
3896
|
-
|
|
3897
|
-
|
|
4299
|
+
pageSize?: number;
|
|
4300
|
+
/**
|
|
4301
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4302
|
+
*/
|
|
4303
|
+
sourceBlockchainId?: string;
|
|
4304
|
+
/**
|
|
4305
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4306
|
+
*/
|
|
4307
|
+
destinationBlockchainId?: string;
|
|
4308
|
+
/**
|
|
4309
|
+
* The address of the recipient of the teleporter message.
|
|
4310
|
+
*/
|
|
4311
|
+
to?: string;
|
|
4312
|
+
/**
|
|
4313
|
+
* The address of the sender of the teleporter message.
|
|
4314
|
+
*/
|
|
4315
|
+
from?: string;
|
|
4316
|
+
}): CancelablePromise<NextPageToken>;
|
|
4317
|
+
}
|
|
4318
|
+
|
|
4319
|
+
type AddressActivityMetadata = {
|
|
4320
|
+
/**
|
|
4321
|
+
* Ethereum address for the address_activity event type
|
|
4322
|
+
*/
|
|
4323
|
+
address: string;
|
|
4324
|
+
/**
|
|
4325
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4326
|
+
*/
|
|
4327
|
+
eventSignatures?: Array<string>;
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
declare enum EventType {
|
|
4331
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4334
|
+
declare enum WebhookStatusType {
|
|
4335
|
+
ACTIVE = "active",
|
|
4336
|
+
INACTIVE = "inactive"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
type WebhookResponse = {
|
|
4340
|
+
id: string;
|
|
4341
|
+
eventType: EventType;
|
|
4342
|
+
metadata: AddressActivityMetadata;
|
|
4343
|
+
/**
|
|
4344
|
+
* Whether to include traces in the webhook payload.
|
|
4345
|
+
*/
|
|
4346
|
+
includeInternalTxs?: boolean;
|
|
4347
|
+
/**
|
|
4348
|
+
* Whether to include logs in the webhook payload.
|
|
4349
|
+
*/
|
|
4350
|
+
includeLogs?: boolean;
|
|
4351
|
+
url: string;
|
|
4352
|
+
chainId: string;
|
|
4353
|
+
status: WebhookStatusType;
|
|
4354
|
+
createdAt: number;
|
|
4355
|
+
name: string;
|
|
4356
|
+
description: string;
|
|
4357
|
+
};
|
|
4358
|
+
|
|
4359
|
+
type ListWebhooksResponse = {
|
|
4360
|
+
/**
|
|
4361
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4362
|
+
*/
|
|
4363
|
+
nextPageToken?: string;
|
|
4364
|
+
webhooks: Array<WebhookResponse>;
|
|
4365
|
+
};
|
|
4366
|
+
|
|
4367
|
+
type RegisterWebhookRequest = {
|
|
4368
|
+
url: string;
|
|
4369
|
+
chainId: string;
|
|
4370
|
+
eventType: EventType;
|
|
4371
|
+
metadata: AddressActivityMetadata;
|
|
4372
|
+
/**
|
|
4373
|
+
* Whether to include traces in the webhook payload.
|
|
4374
|
+
*/
|
|
4375
|
+
includeInternalTxs?: boolean;
|
|
4376
|
+
/**
|
|
4377
|
+
* Whether to include logs in the webhook payload.
|
|
4378
|
+
*/
|
|
4379
|
+
includeLogs?: boolean;
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4382
|
+
type SharedSecretsResponse = {
|
|
4383
|
+
secret: string;
|
|
4384
|
+
};
|
|
4385
|
+
|
|
4386
|
+
type UpdateWebhookRequest = {
|
|
4387
|
+
name?: string;
|
|
4388
|
+
description?: string;
|
|
4389
|
+
url?: string;
|
|
4390
|
+
status?: WebhookStatusType;
|
|
4391
|
+
includeInternalTxs?: boolean;
|
|
4392
|
+
includeLogs?: boolean;
|
|
4393
|
+
};
|
|
4394
|
+
|
|
4395
|
+
declare enum WebhookStatus {
|
|
4396
|
+
ACTIVE = "active",
|
|
4397
|
+
INACTIVE = "inactive"
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
declare class WebhooksService {
|
|
4401
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4402
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4403
|
+
/**
|
|
4404
|
+
* Register a webhook
|
|
4405
|
+
* Registers a new webhook.
|
|
4406
|
+
* @returns WebhookResponse
|
|
4407
|
+
* @throws ApiError
|
|
4408
|
+
*/
|
|
4409
|
+
registerWebhook({ requestBody, }: {
|
|
4410
|
+
requestBody: RegisterWebhookRequest;
|
|
4411
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4412
|
+
/**
|
|
4413
|
+
* List webhooks
|
|
4414
|
+
* Lists webhooks for the user.
|
|
4415
|
+
* @returns ListWebhooksResponse
|
|
4416
|
+
* @throws ApiError
|
|
4417
|
+
*/
|
|
4418
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4419
|
+
/**
|
|
4420
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4421
|
+
*/
|
|
4422
|
+
pageToken?: string;
|
|
4423
|
+
/**
|
|
4424
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4425
|
+
*/
|
|
4426
|
+
pageSize?: number;
|
|
4427
|
+
/**
|
|
4428
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
4429
|
+
*/
|
|
4430
|
+
status?: WebhookStatus;
|
|
4431
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4432
|
+
/**
|
|
4433
|
+
* Get a webhook by ID
|
|
4434
|
+
* Retrieves a webhook by ID.
|
|
4435
|
+
* @returns WebhookResponse
|
|
4436
|
+
* @throws ApiError
|
|
4437
|
+
*/
|
|
4438
|
+
getWebhook({ id, }: {
|
|
4439
|
+
/**
|
|
4440
|
+
* The webhook identifier.
|
|
4441
|
+
*/
|
|
4442
|
+
id: string;
|
|
4443
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4444
|
+
/**
|
|
4445
|
+
* Deactivate a webhook
|
|
4446
|
+
* Deactivates a webhook by ID.
|
|
4447
|
+
* @returns WebhookResponse
|
|
4448
|
+
* @throws ApiError
|
|
4449
|
+
*/
|
|
4450
|
+
deactivateWebhook({ id, }: {
|
|
4451
|
+
/**
|
|
4452
|
+
* The webhook identifier.
|
|
4453
|
+
*/
|
|
4454
|
+
id: string;
|
|
4455
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4456
|
+
/**
|
|
4457
|
+
* Update a webhook
|
|
4458
|
+
* Updates an existing webhook.
|
|
4459
|
+
* @returns WebhookResponse
|
|
4460
|
+
* @throws ApiError
|
|
4461
|
+
*/
|
|
4462
|
+
updateWebhook({ id, requestBody, }: {
|
|
4463
|
+
/**
|
|
4464
|
+
* The webhook identifier.
|
|
4465
|
+
*/
|
|
4466
|
+
id: string;
|
|
4467
|
+
requestBody: UpdateWebhookRequest;
|
|
4468
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4469
|
+
/**
|
|
4470
|
+
* Generate a shared secret
|
|
4471
|
+
* Generates a new shared secret.
|
|
4472
|
+
* @returns SharedSecretsResponse
|
|
4473
|
+
* @throws ApiError
|
|
4474
|
+
*/
|
|
4475
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4476
|
+
/**
|
|
4477
|
+
* Get a shared secret
|
|
4478
|
+
* Get a previously generated shared secret.
|
|
4479
|
+
* @returns SharedSecretsResponse
|
|
4480
|
+
* @throws ApiError
|
|
4481
|
+
*/
|
|
4482
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
3898
4483
|
}
|
|
3899
4484
|
|
|
3900
4485
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3915,6 +4500,8 @@ declare class Glacier {
|
|
|
3915
4500
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3916
4501
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3917
4502
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4503
|
+
readonly teleporter: TeleporterService;
|
|
4504
|
+
readonly webhooks: WebhooksService;
|
|
3918
4505
|
readonly request: BaseHttpRequest;
|
|
3919
4506
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3920
4507
|
}
|
|
@@ -3936,4 +4523,4 @@ declare class ApiError extends Error {
|
|
|
3936
4523
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3937
4524
|
}
|
|
3938
4525
|
|
|
3939
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4526
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|