@avalabs/glacier-sdk 2.8.0-canary.13c186b.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 +1006 -422
- 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/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/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/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
|
|
|
@@ -2285,6 +2428,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2428
|
}
|
|
2286
2429
|
}
|
|
2287
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
|
+
|
|
2288
2449
|
type ListValidatorDetailsResponse = {
|
|
2289
2450
|
/**
|
|
2290
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.
|
|
@@ -2293,7 +2454,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2454
|
/**
|
|
2294
2455
|
* The list of validator Details.
|
|
2295
2456
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2457
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2458
|
};
|
|
2298
2459
|
|
|
2299
2460
|
declare enum Network {
|
|
@@ -2304,7 +2465,24 @@ declare enum Network {
|
|
|
2304
2465
|
declare enum ValidationStatusType {
|
|
2305
2466
|
COMPLETED = "completed",
|
|
2306
2467
|
ACTIVE = "active",
|
|
2307
|
-
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"
|
|
2308
2486
|
}
|
|
2309
2487
|
|
|
2310
2488
|
type XChainAssetDetails = {
|
|
@@ -2324,18 +2502,12 @@ type XChainAssetDetails = {
|
|
|
2324
2502
|
* Denomination of this asset to represent fungibility.
|
|
2325
2503
|
*/
|
|
2326
2504
|
denomination: number;
|
|
2327
|
-
|
|
2328
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2329
|
-
*/
|
|
2330
|
-
type: string;
|
|
2505
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2506
|
/**
|
|
2332
2507
|
* Timestamp in seconds this asset was created on.
|
|
2333
2508
|
*/
|
|
2334
2509
|
createdAtTimestamp: number;
|
|
2335
|
-
|
|
2336
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2337
|
-
*/
|
|
2338
|
-
cap: string;
|
|
2510
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2511
|
};
|
|
2340
2512
|
|
|
2341
2513
|
declare enum XChainId {
|
|
@@ -2401,21 +2573,21 @@ declare class PrimaryNetworkService {
|
|
|
2401
2573
|
* @returns ListBlockchainsResponse
|
|
2402
2574
|
* @throws ApiError
|
|
2403
2575
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2576
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2577
|
/**
|
|
2406
2578
|
* Either mainnet or a testnet.
|
|
2407
2579
|
*/
|
|
2408
2580
|
network: Network;
|
|
2409
|
-
/**
|
|
2410
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2411
|
-
*/
|
|
2412
|
-
pageSize?: number;
|
|
2413
2581
|
/**
|
|
2414
2582
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2583
|
*/
|
|
2416
2584
|
pageToken?: string;
|
|
2417
2585
|
/**
|
|
2418
|
-
* The
|
|
2586
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2587
|
+
*/
|
|
2588
|
+
pageSize?: number;
|
|
2589
|
+
/**
|
|
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.
|
|
2419
2591
|
*/
|
|
2420
2592
|
sortOrder?: SortOrder;
|
|
2421
2593
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
@@ -2425,19 +2597,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2597
|
* @returns ListSubnetsResponse
|
|
2426
2598
|
* @throws ApiError
|
|
2427
2599
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2600
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2601
|
/**
|
|
2430
2602
|
* Either mainnet or a testnet.
|
|
2431
2603
|
*/
|
|
2432
2604
|
network: Network;
|
|
2433
|
-
/**
|
|
2434
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2435
|
-
*/
|
|
2436
|
-
pageSize?: number;
|
|
2437
2605
|
/**
|
|
2438
2606
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2439
2607
|
*/
|
|
2440
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;
|
|
2441
2613
|
/**
|
|
2442
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.
|
|
2443
2615
|
*/
|
|
@@ -2449,59 +2621,59 @@ declare class PrimaryNetworkService {
|
|
|
2449
2621
|
* @returns ListValidatorDetailsResponse
|
|
2450
2622
|
* @throws ApiError
|
|
2451
2623
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2624
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2453
2625
|
/**
|
|
2454
2626
|
* Either mainnet or a testnet.
|
|
2455
2627
|
*/
|
|
2456
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;
|
|
2457
2633
|
/**
|
|
2458
2634
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2459
2635
|
*/
|
|
2460
2636
|
pageSize?: number;
|
|
2461
2637
|
/**
|
|
2462
|
-
* A
|
|
2638
|
+
* A comma separated list of node ids to filter by.
|
|
2463
2639
|
*/
|
|
2464
|
-
|
|
2640
|
+
nodeIds?: string;
|
|
2465
2641
|
/**
|
|
2466
|
-
* 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.
|
|
2467
2643
|
*/
|
|
2468
|
-
|
|
2644
|
+
sortOrder?: SortOrder;
|
|
2469
2645
|
/**
|
|
2470
|
-
*
|
|
2646
|
+
* Validation status of the node.
|
|
2471
2647
|
*/
|
|
2472
|
-
|
|
2648
|
+
validationStatus?: ValidationStatusType;
|
|
2473
2649
|
/**
|
|
2474
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
|
|
2475
2651
|
*/
|
|
2476
|
-
minDelegationCapacity?:
|
|
2652
|
+
minDelegationCapacity?: string;
|
|
2477
2653
|
/**
|
|
2478
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.
|
|
2479
2655
|
*/
|
|
2480
|
-
maxDelegationCapacity?:
|
|
2481
|
-
/**
|
|
2482
|
-
* 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.
|
|
2483
|
-
*/
|
|
2484
|
-
minFeePercentage?: any;
|
|
2656
|
+
maxDelegationCapacity?: string;
|
|
2485
2657
|
/**
|
|
2486
|
-
* The
|
|
2658
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2487
2659
|
*/
|
|
2488
|
-
|
|
2660
|
+
minTimeRemaining?: number;
|
|
2489
2661
|
/**
|
|
2490
|
-
*
|
|
2662
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2491
2663
|
*/
|
|
2492
|
-
|
|
2664
|
+
maxTimeRemaining?: number;
|
|
2493
2665
|
/**
|
|
2494
|
-
* 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.
|
|
2495
2667
|
*/
|
|
2496
|
-
|
|
2668
|
+
minFeePercentage?: number;
|
|
2497
2669
|
/**
|
|
2498
|
-
*
|
|
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.
|
|
2499
2671
|
*/
|
|
2500
|
-
|
|
2672
|
+
maxFeePercentage?: number;
|
|
2501
2673
|
/**
|
|
2502
2674
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2675
|
*/
|
|
2504
|
-
subnetId?:
|
|
2676
|
+
subnetId?: any;
|
|
2505
2677
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2506
2678
|
/**
|
|
2507
2679
|
* Get single validator details
|
|
@@ -2509,7 +2681,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2681
|
* @returns ListValidatorDetailsResponse
|
|
2510
2682
|
* @throws ApiError
|
|
2511
2683
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2684
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2513
2685
|
/**
|
|
2514
2686
|
* Either mainnet or a testnet.
|
|
2515
2687
|
*/
|
|
@@ -2518,14 +2690,14 @@ declare class PrimaryNetworkService {
|
|
|
2518
2690
|
* A primary network (P or X chain) nodeId.
|
|
2519
2691
|
*/
|
|
2520
2692
|
nodeId: string;
|
|
2521
|
-
/**
|
|
2522
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2523
|
-
*/
|
|
2524
|
-
pageSize?: number;
|
|
2525
2693
|
/**
|
|
2526
2694
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2695
|
*/
|
|
2528
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;
|
|
2529
2701
|
/**
|
|
2530
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.
|
|
2531
2703
|
*/
|
|
@@ -2541,19 +2713,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2713
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2714
|
* @throws ApiError
|
|
2543
2715
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2716
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2717
|
/**
|
|
2546
2718
|
* Either mainnet or a testnet.
|
|
2547
2719
|
*/
|
|
2548
2720
|
network: Network;
|
|
2549
|
-
/**
|
|
2550
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2551
|
-
*/
|
|
2552
|
-
pageSize?: number;
|
|
2553
2721
|
/**
|
|
2554
2722
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2723
|
*/
|
|
2556
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;
|
|
2557
2729
|
/**
|
|
2558
2730
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2731
|
*/
|
|
@@ -2601,10 +2773,7 @@ type CChainSharedAssetBalance = {
|
|
|
2601
2773
|
* Denomination of this asset to represent fungibility.
|
|
2602
2774
|
*/
|
|
2603
2775
|
denomination: number;
|
|
2604
|
-
|
|
2605
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2606
|
-
*/
|
|
2607
|
-
type: string;
|
|
2776
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2777
|
/**
|
|
2609
2778
|
* Amount of the asset.
|
|
2610
2779
|
*/
|
|
@@ -2639,49 +2808,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2808
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2809
|
};
|
|
2641
2810
|
|
|
2642
|
-
type
|
|
2811
|
+
type AggregatedAssetAmount = {
|
|
2812
|
+
/**
|
|
2813
|
+
* Unique ID for an asset.
|
|
2814
|
+
*/
|
|
2643
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
|
+
*/
|
|
2644
2832
|
amount: string;
|
|
2833
|
+
utxoCount: number;
|
|
2645
2834
|
};
|
|
2646
2835
|
|
|
2647
2836
|
type PChainSharedAsset = {
|
|
2837
|
+
/**
|
|
2838
|
+
* Unique ID for an asset.
|
|
2839
|
+
*/
|
|
2648
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
|
+
*/
|
|
2649
2857
|
amount: string;
|
|
2858
|
+
utxoCount: number;
|
|
2650
2859
|
sharedWithChainId: string;
|
|
2651
2860
|
status: string;
|
|
2652
2861
|
};
|
|
2653
2862
|
|
|
2654
2863
|
type PChainBalance = {
|
|
2655
2864
|
/**
|
|
2656
|
-
* 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.
|
|
2657
2866
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2867
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2659
2868
|
/**
|
|
2660
|
-
* 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.
|
|
2661
2870
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2871
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2663
2872
|
/**
|
|
2664
|
-
* 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.
|
|
2665
2874
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2875
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2667
2876
|
/**
|
|
2668
|
-
* 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.
|
|
2669
2878
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2879
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2671
2880
|
/**
|
|
2672
|
-
* 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.
|
|
2673
2882
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2883
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2675
2884
|
/**
|
|
2676
|
-
* 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.
|
|
2677
2886
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2887
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2679
2888
|
/**
|
|
2680
|
-
* 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.
|
|
2681
2890
|
*/
|
|
2682
2891
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2683
2892
|
/**
|
|
2684
|
-
* 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.
|
|
2685
2894
|
*/
|
|
2686
2895
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2687
2896
|
};
|
|
@@ -2691,34 +2900,6 @@ type ListPChainBalancesResponse = {
|
|
|
2691
2900
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2692
2901
|
};
|
|
2693
2902
|
|
|
2694
|
-
type XChainAssetBalance = {
|
|
2695
|
-
/**
|
|
2696
|
-
* Unique ID for an asset.
|
|
2697
|
-
*/
|
|
2698
|
-
assetId: string;
|
|
2699
|
-
/**
|
|
2700
|
-
* Name of this asset.
|
|
2701
|
-
*/
|
|
2702
|
-
name: string;
|
|
2703
|
-
/**
|
|
2704
|
-
* Symbol for this asset (max 4 characters).
|
|
2705
|
-
*/
|
|
2706
|
-
symbol: string;
|
|
2707
|
-
/**
|
|
2708
|
-
* Denomination of this asset to represent fungibility.
|
|
2709
|
-
*/
|
|
2710
|
-
denomination: number;
|
|
2711
|
-
/**
|
|
2712
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2713
|
-
*/
|
|
2714
|
-
type: string;
|
|
2715
|
-
/**
|
|
2716
|
-
* Amount of the asset.
|
|
2717
|
-
*/
|
|
2718
|
-
amount: string;
|
|
2719
|
-
utxoCount: number;
|
|
2720
|
-
};
|
|
2721
|
-
|
|
2722
2903
|
type XChainSharedAssetBalance = {
|
|
2723
2904
|
/**
|
|
2724
2905
|
* Unique ID for an asset.
|
|
@@ -2736,10 +2917,7 @@ type XChainSharedAssetBalance = {
|
|
|
2736
2917
|
* Denomination of this asset to represent fungibility.
|
|
2737
2918
|
*/
|
|
2738
2919
|
denomination: number;
|
|
2739
|
-
|
|
2740
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2741
|
-
*/
|
|
2742
|
-
type: string;
|
|
2920
|
+
type: PrimaryNetworkAssetType;
|
|
2743
2921
|
/**
|
|
2744
2922
|
* Amount of the asset.
|
|
2745
2923
|
*/
|
|
@@ -2752,11 +2930,11 @@ type XChainBalances = {
|
|
|
2752
2930
|
/**
|
|
2753
2931
|
* A list of objects containing X-chain Asset balance information.
|
|
2754
2932
|
*/
|
|
2755
|
-
locked: Array<
|
|
2933
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2756
2934
|
/**
|
|
2757
2935
|
* A list of objects containing X-chain Asset balance information.
|
|
2758
2936
|
*/
|
|
2759
|
-
unlocked: Array<
|
|
2937
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2760
2938
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2761
2939
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2762
2940
|
};
|
|
@@ -2814,6 +2992,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
2992
|
txCount: number;
|
|
2815
2993
|
transactions: Array<string>;
|
|
2816
2994
|
blockSizeBytes: number;
|
|
2995
|
+
currentSupply?: string;
|
|
2817
2996
|
proposerDetails?: ProposerDetails;
|
|
2818
2997
|
};
|
|
2819
2998
|
|
|
@@ -2826,6 +3005,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
3005
|
txCount: number;
|
|
2827
3006
|
transactions: Array<string>;
|
|
2828
3007
|
blockSizeBytes: number;
|
|
3008
|
+
currentSupply?: string;
|
|
2829
3009
|
proposerDetails?: ProposerDetails;
|
|
2830
3010
|
};
|
|
2831
3011
|
|
|
@@ -2867,7 +3047,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3047
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3048
|
* @throws ApiError
|
|
2869
3049
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3050
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3051
|
/**
|
|
2872
3052
|
* A primary network blockchain id or alias.
|
|
2873
3053
|
*/
|
|
@@ -2880,14 +3060,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3060
|
* A primary network (P or X chain) nodeId.
|
|
2881
3061
|
*/
|
|
2882
3062
|
nodeId: string;
|
|
2883
|
-
/**
|
|
2884
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2885
|
-
*/
|
|
2886
|
-
pageSize?: number;
|
|
2887
3063
|
/**
|
|
2888
3064
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3065
|
*/
|
|
2890
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;
|
|
2891
3071
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3072
|
/**
|
|
2893
3073
|
* List latest blocks
|
|
@@ -2895,7 +3075,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3075
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3076
|
* @throws ApiError
|
|
2897
3077
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3078
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3079
|
/**
|
|
2900
3080
|
* A primary network blockchain id or alias.
|
|
2901
3081
|
*/
|
|
@@ -2904,17 +3084,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3084
|
* Either mainnet or a testnet.
|
|
2905
3085
|
*/
|
|
2906
3086
|
network: Network;
|
|
2907
|
-
/**
|
|
2908
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2909
|
-
*/
|
|
2910
|
-
pageSize?: number;
|
|
2911
3087
|
/**
|
|
2912
3088
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3089
|
*/
|
|
2914
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;
|
|
2915
3095
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3096
|
}
|
|
2917
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
|
+
|
|
2918
3126
|
declare enum RewardType {
|
|
2919
3127
|
VALIDATOR = "VALIDATOR",
|
|
2920
3128
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3142,7 @@ type HistoricalReward = {
|
|
|
2934
3142
|
rewardType: RewardType;
|
|
2935
3143
|
utxoId: string;
|
|
2936
3144
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3145
|
+
reward: AssetWithPriceInfo;
|
|
2941
3146
|
rewardTxHash: string;
|
|
2942
3147
|
};
|
|
2943
3148
|
|
|
@@ -2949,6 +3154,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2949
3154
|
historicalRewards: Array<HistoricalReward>;
|
|
2950
3155
|
};
|
|
2951
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
|
+
|
|
2952
3181
|
type PendingReward = {
|
|
2953
3182
|
/**
|
|
2954
3183
|
* An array of P-Chain wallet addresses.
|
|
@@ -2962,9 +3191,9 @@ type PendingReward = {
|
|
|
2962
3191
|
rewardType: RewardType;
|
|
2963
3192
|
progress: number;
|
|
2964
3193
|
/**
|
|
2965
|
-
* An object containing P-chain Asset
|
|
3194
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2966
3195
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3196
|
+
estimatedReward: AssetAmount;
|
|
2968
3197
|
};
|
|
2969
3198
|
|
|
2970
3199
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3213,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3213
|
* @returns ListPendingRewardsResponse
|
|
2985
3214
|
* @throws ApiError
|
|
2986
3215
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3216
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3217
|
/**
|
|
2989
3218
|
* Either mainnet or a testnet.
|
|
2990
3219
|
*/
|
|
2991
3220
|
network: Network;
|
|
2992
3221
|
/**
|
|
2993
|
-
* 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.
|
|
2994
3223
|
*/
|
|
2995
3224
|
addresses?: string;
|
|
2996
|
-
/**
|
|
2997
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2998
|
-
*/
|
|
2999
|
-
pageSize?: number;
|
|
3000
3225
|
/**
|
|
3001
3226
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3227
|
*/
|
|
3003
3228
|
pageToken?: string;
|
|
3004
3229
|
/**
|
|
3005
|
-
*
|
|
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.
|
|
3006
3235
|
*/
|
|
3007
3236
|
nodeIds?: string;
|
|
3008
3237
|
/**
|
|
@@ -3016,68 +3245,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3245
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3246
|
* @throws ApiError
|
|
3018
3247
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3248
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3249
|
/**
|
|
3021
3250
|
* Either mainnet or a testnet.
|
|
3022
3251
|
*/
|
|
3023
3252
|
network: Network;
|
|
3024
3253
|
/**
|
|
3025
|
-
* 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.
|
|
3026
3255
|
*/
|
|
3027
3256
|
addresses?: string;
|
|
3028
|
-
/**
|
|
3029
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3030
|
-
*/
|
|
3031
|
-
pageSize?: number;
|
|
3032
3257
|
/**
|
|
3033
3258
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3259
|
*/
|
|
3035
3260
|
pageToken?: string;
|
|
3036
3261
|
/**
|
|
3037
|
-
*
|
|
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.
|
|
3038
3267
|
*/
|
|
3039
3268
|
nodeIds?: string;
|
|
3040
3269
|
/**
|
|
3041
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.
|
|
3042
3271
|
*/
|
|
3043
3272
|
sortOrder?: SortOrder;
|
|
3273
|
+
/**
|
|
3274
|
+
* The currency that return values should use. Defaults to USD.
|
|
3275
|
+
*/
|
|
3276
|
+
currency?: CurrencyCode;
|
|
3044
3277
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3278
|
}
|
|
3046
3279
|
|
|
3047
|
-
type Asset = {
|
|
3048
|
-
/**
|
|
3049
|
-
* Unique ID for an asset.
|
|
3050
|
-
*/
|
|
3051
|
-
assetId: string;
|
|
3052
|
-
/**
|
|
3053
|
-
* Name of this asset.
|
|
3054
|
-
*/
|
|
3055
|
-
name: string;
|
|
3056
|
-
/**
|
|
3057
|
-
* Symbol for this asset (max 4 characters).
|
|
3058
|
-
*/
|
|
3059
|
-
symbol: string;
|
|
3060
|
-
/**
|
|
3061
|
-
* Denomination of this asset to represent fungibility.
|
|
3062
|
-
*/
|
|
3063
|
-
denomination: number;
|
|
3064
|
-
/**
|
|
3065
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3066
|
-
*/
|
|
3067
|
-
type: string;
|
|
3068
|
-
/**
|
|
3069
|
-
* Amount of the asset.
|
|
3070
|
-
*/
|
|
3071
|
-
amount: string;
|
|
3072
|
-
};
|
|
3073
|
-
|
|
3074
3280
|
type UtxoCredential = {
|
|
3075
3281
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3282
|
+
* Signature provided to consume the output.
|
|
3077
3283
|
*/
|
|
3078
3284
|
signature?: string;
|
|
3079
3285
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3286
|
+
* Public key associated with the signature.
|
|
3081
3287
|
*/
|
|
3082
3288
|
publicKey?: string;
|
|
3083
3289
|
};
|
|
@@ -3088,9 +3294,9 @@ type EVMInput = {
|
|
|
3088
3294
|
*/
|
|
3089
3295
|
fromAddress: string;
|
|
3090
3296
|
/**
|
|
3091
|
-
*
|
|
3297
|
+
* AssetAmount details for the asset being transferred.
|
|
3092
3298
|
*/
|
|
3093
|
-
asset:
|
|
3299
|
+
asset: AssetAmount;
|
|
3094
3300
|
/**
|
|
3095
3301
|
* Credentials that signed this transaction.
|
|
3096
3302
|
*/
|
|
@@ -3099,66 +3305,66 @@ type EVMInput = {
|
|
|
3099
3305
|
|
|
3100
3306
|
type Utxo = {
|
|
3101
3307
|
/**
|
|
3102
|
-
*
|
|
3308
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3309
|
*/
|
|
3104
|
-
|
|
3105
|
-
asset:
|
|
3310
|
+
addresses: Array<string>;
|
|
3311
|
+
asset: AssetAmount;
|
|
3106
3312
|
/**
|
|
3107
|
-
*
|
|
3313
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3314
|
*/
|
|
3109
|
-
|
|
3315
|
+
consumedOnChainId: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Transaction ID that consumed this output.
|
|
3318
|
+
*/
|
|
3319
|
+
consumingTxHash?: string;
|
|
3110
3320
|
/**
|
|
3111
3321
|
* Blockchain ID on which this output is created on.
|
|
3112
3322
|
*/
|
|
3113
3323
|
createdOnChainId: string;
|
|
3114
3324
|
/**
|
|
3115
|
-
*
|
|
3325
|
+
* UTXO ID for this output.
|
|
3116
3326
|
*/
|
|
3117
|
-
|
|
3327
|
+
utxoId: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3330
|
+
*/
|
|
3331
|
+
consumingTxTimestamp?: number;
|
|
3118
3332
|
/**
|
|
3119
3333
|
* Transaction ID that created this output.
|
|
3120
3334
|
*/
|
|
3121
3335
|
creationTxHash: string;
|
|
3122
3336
|
/**
|
|
3123
|
-
*
|
|
3124
|
-
*/
|
|
3125
|
-
consumingTxHash?: string;
|
|
3126
|
-
/**
|
|
3127
|
-
* Timestamp in seconds this output is consumed.
|
|
3128
|
-
*/
|
|
3129
|
-
consumingTxTimestamp?: number;
|
|
3130
|
-
/**
|
|
3131
|
-
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3337
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3132
3338
|
*/
|
|
3133
|
-
|
|
3339
|
+
credentials?: Array<UtxoCredential>;
|
|
3134
3340
|
/**
|
|
3135
|
-
*
|
|
3341
|
+
* Index representing the minting set for the NFT mint output.
|
|
3136
3342
|
*/
|
|
3137
|
-
|
|
3343
|
+
groupId?: number;
|
|
3138
3344
|
/**
|
|
3139
3345
|
* Locktime in seconds after which this output can be consumed.
|
|
3140
3346
|
*/
|
|
3141
3347
|
locktime: number;
|
|
3142
3348
|
/**
|
|
3143
|
-
*
|
|
3349
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3144
3350
|
*/
|
|
3145
|
-
|
|
3351
|
+
outputIndex: string;
|
|
3146
3352
|
/**
|
|
3147
|
-
*
|
|
3353
|
+
* Hex encoded data for NFT assets.
|
|
3148
3354
|
*/
|
|
3149
|
-
|
|
3355
|
+
payload?: string;
|
|
3150
3356
|
/**
|
|
3151
|
-
*
|
|
3357
|
+
* Minimum number of signatures required to consume this output.
|
|
3152
3358
|
*/
|
|
3153
|
-
|
|
3359
|
+
threshold: number;
|
|
3154
3360
|
/**
|
|
3155
|
-
*
|
|
3361
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3156
3362
|
*/
|
|
3157
|
-
|
|
3363
|
+
timestamp: number;
|
|
3158
3364
|
/**
|
|
3159
|
-
*
|
|
3365
|
+
* Type of output.
|
|
3160
3366
|
*/
|
|
3161
|
-
|
|
3367
|
+
utxoType: string;
|
|
3162
3368
|
};
|
|
3163
3369
|
|
|
3164
3370
|
type CChainExportTransaction = {
|
|
@@ -3185,11 +3391,11 @@ type CChainExportTransaction = {
|
|
|
3185
3391
|
/**
|
|
3186
3392
|
* Assets unlocked by inputs of this transaction.
|
|
3187
3393
|
*/
|
|
3188
|
-
amountUnlocked: Array<
|
|
3394
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3189
3395
|
/**
|
|
3190
3396
|
* Assets created by outputs of this transaction.
|
|
3191
3397
|
*/
|
|
3192
|
-
amountCreated: Array<
|
|
3398
|
+
amountCreated: Array<AssetAmount>;
|
|
3193
3399
|
/**
|
|
3194
3400
|
* Source chain for an atomic transaction.
|
|
3195
3401
|
*/
|
|
@@ -3220,9 +3426,9 @@ type EVMOutput = {
|
|
|
3220
3426
|
*/
|
|
3221
3427
|
toAddress: string;
|
|
3222
3428
|
/**
|
|
3223
|
-
*
|
|
3429
|
+
* AssetAmount details for the asset being transferred.
|
|
3224
3430
|
*/
|
|
3225
|
-
asset:
|
|
3431
|
+
asset: AssetAmount;
|
|
3226
3432
|
};
|
|
3227
3433
|
|
|
3228
3434
|
type CChainImportTransaction = {
|
|
@@ -3249,11 +3455,11 @@ type CChainImportTransaction = {
|
|
|
3249
3455
|
/**
|
|
3250
3456
|
* Assets unlocked by inputs of this transaction.
|
|
3251
3457
|
*/
|
|
3252
|
-
amountUnlocked: Array<
|
|
3458
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3253
3459
|
/**
|
|
3254
3460
|
* Assets created by outputs of this transaction.
|
|
3255
3461
|
*/
|
|
3256
|
-
amountCreated: Array<
|
|
3462
|
+
amountCreated: Array<AssetAmount>;
|
|
3257
3463
|
/**
|
|
3258
3464
|
* Source chain for an atomic transaction.
|
|
3259
3465
|
*/
|
|
@@ -3289,17 +3495,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3495
|
|
|
3290
3496
|
declare enum PChainTransactionType {
|
|
3291
3497
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3498
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3499
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3500
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3501
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3502
|
IMPORT_TX = "ImportTx",
|
|
3301
3503
|
EXPORT_TX = "ExportTx",
|
|
3302
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",
|
|
3303
3512
|
UNKNOWN = "UNKNOWN"
|
|
3304
3513
|
}
|
|
3305
3514
|
|
|
@@ -3310,29 +3519,48 @@ declare enum UtxoType {
|
|
|
3310
3519
|
|
|
3311
3520
|
type PChainUtxo = {
|
|
3312
3521
|
/**
|
|
3313
|
-
*
|
|
3522
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3523
|
*/
|
|
3315
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
|
+
*/
|
|
3316
3541
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3542
|
+
/**
|
|
3543
|
+
* @deprecated
|
|
3544
|
+
*/
|
|
3545
|
+
amount: string;
|
|
3546
|
+
/**
|
|
3547
|
+
* @deprecated
|
|
3548
|
+
*/
|
|
3549
|
+
assetId: string;
|
|
3319
3550
|
blockNumber: string;
|
|
3320
3551
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3552
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3553
|
+
consumingBlockTimestamp?: number;
|
|
3328
3554
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3555
|
+
outputIndex: number;
|
|
3556
|
+
rewardType?: RewardType;
|
|
3557
|
+
stakeableLocktime?: number;
|
|
3332
3558
|
staked?: boolean;
|
|
3333
|
-
|
|
3559
|
+
threshold?: number;
|
|
3560
|
+
txHash: string;
|
|
3334
3561
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3562
|
+
utxoStartTimestamp?: number;
|
|
3563
|
+
utxoType: UtxoType;
|
|
3336
3564
|
};
|
|
3337
3565
|
|
|
3338
3566
|
type PChainTransaction = {
|
|
@@ -3358,17 +3586,17 @@ type PChainTransaction = {
|
|
|
3358
3586
|
*/
|
|
3359
3587
|
destinationChain?: string;
|
|
3360
3588
|
/**
|
|
3361
|
-
* 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.
|
|
3362
3590
|
*/
|
|
3363
|
-
value: Array<
|
|
3591
|
+
value: Array<AssetAmount>;
|
|
3364
3592
|
/**
|
|
3365
|
-
* 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.
|
|
3366
3594
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3595
|
+
amountBurned: Array<AssetAmount>;
|
|
3368
3596
|
/**
|
|
3369
|
-
* 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
|
|
3370
3598
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3599
|
+
amountStaked: Array<AssetAmount>;
|
|
3372
3600
|
/**
|
|
3373
3601
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3602
|
*/
|
|
@@ -3400,6 +3628,10 @@ type PChainTransaction = {
|
|
|
3400
3628
|
* Present for RewardValidatorTx
|
|
3401
3629
|
*/
|
|
3402
3630
|
stakingTxHash?: string;
|
|
3631
|
+
/**
|
|
3632
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3633
|
+
*/
|
|
3634
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3403
3635
|
};
|
|
3404
3636
|
|
|
3405
3637
|
type ListPChainTransactionsResponse = {
|
|
@@ -3411,6 +3643,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3643
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3644
|
};
|
|
3413
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
|
+
|
|
3414
3658
|
type XChainLinearTransaction = {
|
|
3415
3659
|
/**
|
|
3416
3660
|
* Unique ID for this transaction.
|
|
@@ -3424,10 +3668,7 @@ type XChainLinearTransaction = {
|
|
|
3424
3668
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3425
3669
|
*/
|
|
3426
3670
|
timestamp: number;
|
|
3427
|
-
|
|
3428
|
-
* Type of transaction.
|
|
3429
|
-
*/
|
|
3430
|
-
txType: string;
|
|
3671
|
+
txType: XChainTransactionType;
|
|
3431
3672
|
/**
|
|
3432
3673
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3674
|
*/
|
|
@@ -3437,11 +3678,11 @@ type XChainLinearTransaction = {
|
|
|
3437
3678
|
/**
|
|
3438
3679
|
* Assets unlocked by inputs of this transaction.
|
|
3439
3680
|
*/
|
|
3440
|
-
amountUnlocked: Array<
|
|
3681
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3441
3682
|
/**
|
|
3442
3683
|
* Assets created by outputs of this transaction.
|
|
3443
3684
|
*/
|
|
3444
|
-
amountCreated: Array<
|
|
3685
|
+
amountCreated: Array<AssetAmount>;
|
|
3445
3686
|
/**
|
|
3446
3687
|
* Source chain for an atomic transaction.
|
|
3447
3688
|
*/
|
|
@@ -3451,7 +3692,7 @@ type XChainLinearTransaction = {
|
|
|
3451
3692
|
*/
|
|
3452
3693
|
destinationChain?: string;
|
|
3453
3694
|
/**
|
|
3454
|
-
*
|
|
3695
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3455
3696
|
*/
|
|
3456
3697
|
assetCreated?: XChainAssetDetails;
|
|
3457
3698
|
/**
|
|
@@ -3501,10 +3742,7 @@ type XChainNonLinearTransaction = {
|
|
|
3501
3742
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3502
3743
|
*/
|
|
3503
3744
|
timestamp: number;
|
|
3504
|
-
|
|
3505
|
-
* Type of transaction.
|
|
3506
|
-
*/
|
|
3507
|
-
txType: string;
|
|
3745
|
+
txType: XChainTransactionType;
|
|
3508
3746
|
/**
|
|
3509
3747
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3748
|
*/
|
|
@@ -3514,11 +3752,11 @@ type XChainNonLinearTransaction = {
|
|
|
3514
3752
|
/**
|
|
3515
3753
|
* Assets unlocked by inputs of this transaction.
|
|
3516
3754
|
*/
|
|
3517
|
-
amountUnlocked: Array<
|
|
3755
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3518
3756
|
/**
|
|
3519
3757
|
* Assets created by outputs of this transaction.
|
|
3520
3758
|
*/
|
|
3521
|
-
amountCreated: Array<
|
|
3759
|
+
amountCreated: Array<AssetAmount>;
|
|
3522
3760
|
/**
|
|
3523
3761
|
* Source chain for an atomic transaction.
|
|
3524
3762
|
*/
|
|
@@ -3528,7 +3766,7 @@ type XChainNonLinearTransaction = {
|
|
|
3528
3766
|
*/
|
|
3529
3767
|
destinationChain?: string;
|
|
3530
3768
|
/**
|
|
3531
|
-
*
|
|
3769
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3532
3770
|
*/
|
|
3533
3771
|
assetCreated?: XChainAssetDetails;
|
|
3534
3772
|
/**
|
|
@@ -3562,19 +3800,21 @@ declare enum PChainId {
|
|
|
3562
3800
|
|
|
3563
3801
|
declare enum PrimaryNetworkTxType {
|
|
3564
3802
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3803
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3804
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3805
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3806
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3807
|
IMPORT_TX = "ImportTx",
|
|
3574
3808
|
EXPORT_TX = "ExportTx",
|
|
3575
3809
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3576
|
-
|
|
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",
|
|
3577
3815
|
BASE_TX = "BaseTx",
|
|
3816
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3817
|
+
UNKNOWN = "UNKNOWN",
|
|
3578
3818
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3579
3819
|
OPERATION_TX = "OperationTx"
|
|
3580
3820
|
}
|
|
@@ -3606,13 +3846,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3846
|
* List latest transactions
|
|
3607
3847
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3848
|
*
|
|
3609
|
-
* 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.
|
|
3610
3850
|
*
|
|
3611
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.
|
|
3612
3852
|
* @returns any
|
|
3613
3853
|
* @throws ApiError
|
|
3614
3854
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3855
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3856
|
/**
|
|
3617
3857
|
* A primary network blockchain id or alias.
|
|
3618
3858
|
*/
|
|
@@ -3637,14 +3877,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3877
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3878
|
*/
|
|
3639
3879
|
endTimestamp?: number;
|
|
3640
|
-
/**
|
|
3641
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3642
|
-
*/
|
|
3643
|
-
pageSize?: number;
|
|
3644
3880
|
/**
|
|
3645
3881
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3882
|
*/
|
|
3647
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;
|
|
3648
3888
|
/**
|
|
3649
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.
|
|
3650
3890
|
*/
|
|
@@ -3656,7 +3896,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
3896
|
* @returns ListPChainTransactionsResponse
|
|
3657
3897
|
* @throws ApiError
|
|
3658
3898
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3899
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
3900
|
/**
|
|
3661
3901
|
* A primary network blockchain id or alias.
|
|
3662
3902
|
*/
|
|
@@ -3681,14 +3921,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
3921
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
3922
|
*/
|
|
3683
3923
|
endTimestamp?: number;
|
|
3684
|
-
/**
|
|
3685
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3686
|
-
*/
|
|
3687
|
-
pageSize?: number;
|
|
3688
3924
|
/**
|
|
3689
3925
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
3926
|
*/
|
|
3691
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;
|
|
3692
3932
|
/**
|
|
3693
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.
|
|
3694
3934
|
*/
|
|
@@ -3700,7 +3940,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
3940
|
* @returns ListXChainTransactionsResponse
|
|
3701
3941
|
* @throws ApiError
|
|
3702
3942
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3943
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
3944
|
/**
|
|
3705
3945
|
* A primary network blockchain id or alias.
|
|
3706
3946
|
*/
|
|
@@ -3725,14 +3965,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
3965
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
3966
|
*/
|
|
3727
3967
|
endTimestamp?: number;
|
|
3728
|
-
/**
|
|
3729
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3730
|
-
*/
|
|
3731
|
-
pageSize?: number;
|
|
3732
3968
|
/**
|
|
3733
3969
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
3970
|
*/
|
|
3735
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;
|
|
3736
3976
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
3977
|
}
|
|
3738
3978
|
|
|
@@ -3763,7 +4003,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
4003
|
* @returns any
|
|
3764
4004
|
* @throws ApiError
|
|
3765
4005
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4006
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
4007
|
/**
|
|
3768
4008
|
* A primary network blockchain id or alias.
|
|
3769
4009
|
*/
|
|
@@ -3776,14 +4016,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
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".
|
|
3777
4017
|
*/
|
|
3778
4018
|
addresses?: string;
|
|
3779
|
-
/**
|
|
3780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3781
|
-
*/
|
|
3782
|
-
pageSize?: number;
|
|
3783
4019
|
/**
|
|
3784
4020
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
4021
|
*/
|
|
3786
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;
|
|
3787
4027
|
/**
|
|
3788
4028
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
4029
|
*/
|
|
@@ -3828,7 +4068,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4068
|
* @returns ListXChainVerticesResponse
|
|
3829
4069
|
* @throws ApiError
|
|
3830
4070
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4071
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4072
|
/**
|
|
3833
4073
|
* A primary network blockchain id or alias.
|
|
3834
4074
|
*/
|
|
@@ -3837,14 +4077,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4077
|
* Either mainnet or a testnet.
|
|
3838
4078
|
*/
|
|
3839
4079
|
network: Network;
|
|
3840
|
-
/**
|
|
3841
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3842
|
-
*/
|
|
3843
|
-
pageSize?: number;
|
|
3844
4080
|
/**
|
|
3845
4081
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4082
|
*/
|
|
3847
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;
|
|
3848
4088
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4089
|
/**
|
|
3850
4090
|
* Get vertex
|
|
@@ -3872,7 +4112,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4112
|
* @returns ListXChainVerticesResponse
|
|
3873
4113
|
* @throws ApiError
|
|
3874
4114
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4115
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4116
|
/**
|
|
3877
4117
|
* The height of a vertex.
|
|
3878
4118
|
*/
|
|
@@ -3885,19 +4125,361 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4125
|
* Either mainnet or a testnet.
|
|
3886
4126
|
*/
|
|
3887
4127
|
network: Network;
|
|
4128
|
+
/**
|
|
4129
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4130
|
+
*/
|
|
4131
|
+
pageToken?: string;
|
|
4132
|
+
/**
|
|
4133
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4134
|
+
*/
|
|
4135
|
+
pageSize?: number;
|
|
4136
|
+
/**
|
|
4137
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4138
|
+
*/
|
|
4139
|
+
sortOrder?: SortOrder;
|
|
4140
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
type TeleporterDestinationTransaction = {
|
|
4144
|
+
txHash: string;
|
|
4145
|
+
timestamp: number;
|
|
4146
|
+
gasSpent: string;
|
|
4147
|
+
rewardRedeemer: string;
|
|
4148
|
+
delivererAddress: string;
|
|
4149
|
+
};
|
|
4150
|
+
|
|
4151
|
+
type TeleporterReceipt = {
|
|
4152
|
+
receivedMessageNonce: string;
|
|
4153
|
+
relayerRewardAddress: string;
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
type TeleporterRewardDetails = {
|
|
4157
|
+
/**
|
|
4158
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4159
|
+
*/
|
|
4160
|
+
address: string;
|
|
4161
|
+
/**
|
|
4162
|
+
* The contract name.
|
|
4163
|
+
*/
|
|
4164
|
+
name: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* The contract symbol.
|
|
4167
|
+
*/
|
|
4168
|
+
symbol: string;
|
|
4169
|
+
/**
|
|
4170
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4171
|
+
*/
|
|
4172
|
+
decimals: number;
|
|
4173
|
+
/**
|
|
4174
|
+
* The logo uri for the address.
|
|
4175
|
+
*/
|
|
4176
|
+
logoUri?: string;
|
|
4177
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4178
|
+
/**
|
|
4179
|
+
* The token price, if available.
|
|
4180
|
+
*/
|
|
4181
|
+
price?: Money;
|
|
4182
|
+
value: string;
|
|
4183
|
+
};
|
|
4184
|
+
declare namespace TeleporterRewardDetails {
|
|
4185
|
+
enum ercType {
|
|
4186
|
+
ERC_20 = "ERC-20"
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
|
|
4190
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4191
|
+
messageId: string;
|
|
4192
|
+
teleporterContractAddress: string;
|
|
4193
|
+
sourceBlockchainId: string;
|
|
4194
|
+
destinationBlockchainId: string;
|
|
4195
|
+
messageNonce: string;
|
|
4196
|
+
from: string;
|
|
4197
|
+
to: string;
|
|
4198
|
+
data?: string;
|
|
4199
|
+
messageExecuted: boolean;
|
|
4200
|
+
receipts: Array<TeleporterReceipt>;
|
|
4201
|
+
receiptDelivered: boolean;
|
|
4202
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4203
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4204
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4205
|
+
};
|
|
4206
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4207
|
+
enum status {
|
|
4208
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
type TeleporterSourceTransaction = {
|
|
4213
|
+
txHash: string;
|
|
4214
|
+
timestamp: number;
|
|
4215
|
+
gasSpent: string;
|
|
4216
|
+
};
|
|
4217
|
+
|
|
4218
|
+
type DeliveredTeleporterMessage = {
|
|
4219
|
+
messageId: string;
|
|
4220
|
+
teleporterContractAddress: string;
|
|
4221
|
+
sourceBlockchainId: string;
|
|
4222
|
+
destinationBlockchainId: string;
|
|
4223
|
+
messageNonce: string;
|
|
4224
|
+
from: string;
|
|
4225
|
+
to: string;
|
|
4226
|
+
data?: string;
|
|
4227
|
+
messageExecuted: boolean;
|
|
4228
|
+
receipts: Array<TeleporterReceipt>;
|
|
4229
|
+
receiptDelivered: boolean;
|
|
4230
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4231
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4232
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4233
|
+
status: DeliveredTeleporterMessage.status;
|
|
4234
|
+
};
|
|
4235
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4236
|
+
enum status {
|
|
4237
|
+
DELIVERED = "delivered"
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
type NextPageToken = {
|
|
4242
|
+
/**
|
|
4243
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4244
|
+
*/
|
|
4245
|
+
nextPageToken?: string;
|
|
4246
|
+
};
|
|
4247
|
+
|
|
4248
|
+
type PendingTeleporterMessage = {
|
|
4249
|
+
messageId: string;
|
|
4250
|
+
teleporterContractAddress: string;
|
|
4251
|
+
sourceBlockchainId: string;
|
|
4252
|
+
destinationBlockchainId: string;
|
|
4253
|
+
messageNonce: string;
|
|
4254
|
+
from: string;
|
|
4255
|
+
to: string;
|
|
4256
|
+
data?: string;
|
|
4257
|
+
messageExecuted: boolean;
|
|
4258
|
+
receipts: Array<TeleporterReceipt>;
|
|
4259
|
+
receiptDelivered: boolean;
|
|
4260
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4261
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4262
|
+
status: PendingTeleporterMessage.status;
|
|
4263
|
+
};
|
|
4264
|
+
declare namespace PendingTeleporterMessage {
|
|
4265
|
+
enum status {
|
|
4266
|
+
PENDING = "pending"
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
declare class TeleporterService {
|
|
4271
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4272
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4273
|
+
/**
|
|
4274
|
+
* Get a teleporter message
|
|
4275
|
+
* Gets a teleporter message by message ID.
|
|
4276
|
+
* @returns any
|
|
4277
|
+
* @throws ApiError
|
|
4278
|
+
*/
|
|
4279
|
+
getTeleporterMessage({ messageId, }: {
|
|
4280
|
+
/**
|
|
4281
|
+
* The message ID of the teleporter message.
|
|
4282
|
+
*/
|
|
4283
|
+
messageId: string;
|
|
4284
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4285
|
+
/**
|
|
4286
|
+
* List teleporter messages
|
|
4287
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4288
|
+
* @returns any
|
|
4289
|
+
* @throws ApiError
|
|
4290
|
+
*/
|
|
4291
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4292
|
+
/**
|
|
4293
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4294
|
+
*/
|
|
4295
|
+
pageToken?: string;
|
|
3888
4296
|
/**
|
|
3889
4297
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3890
4298
|
*/
|
|
3891
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, }: {
|
|
3892
4419
|
/**
|
|
3893
4420
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4421
|
*/
|
|
3895
4422
|
pageToken?: string;
|
|
3896
4423
|
/**
|
|
3897
|
-
* The
|
|
4424
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
4425
|
*/
|
|
3899
|
-
|
|
3900
|
-
|
|
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>;
|
|
3901
4483
|
}
|
|
3902
4484
|
|
|
3903
4485
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3918,6 +4500,8 @@ declare class Glacier {
|
|
|
3918
4500
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3919
4501
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3920
4502
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4503
|
+
readonly teleporter: TeleporterService;
|
|
4504
|
+
readonly webhooks: WebhooksService;
|
|
3921
4505
|
readonly request: BaseHttpRequest;
|
|
3922
4506
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3923
4507
|
}
|
|
@@ -3939,4 +4523,4 @@ declare class ApiError extends Error {
|
|
|
3939
4523
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4524
|
}
|
|
3941
4525
|
|
|
3942
|
-
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 };
|