@avalabs/glacier-sdk 2.8.0-canary.c3a617d.0 → 2.8.0-canary.c5ffa53.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 +1042 -418
- package/dist/index.js +468 -170
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -36
- package/esm/generated/core/request.js +3 -2
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +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 +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -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/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/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +122 -0
- package/esm/generated/services/WebhooksService.js +108 -0
- package/esm/index.d.ts +37 -3
- package/esm/index.js +17 -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>;
|
|
@@ -70,6 +64,9 @@ declare class DefaultService {
|
|
|
70
64
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
71
65
|
}
|
|
72
66
|
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
73
70
|
declare enum CurrencyCode {
|
|
74
71
|
USD = "usd",
|
|
75
72
|
EUR = "eur",
|
|
@@ -88,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
type Money = {
|
|
91
|
-
/**
|
|
92
|
-
* ISO 4217 currency code.
|
|
93
|
-
*/
|
|
94
88
|
currencyCode: CurrencyCode;
|
|
95
89
|
/**
|
|
96
90
|
* Monetary value in base 10 decimals.
|
|
@@ -140,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
140
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
141
135
|
};
|
|
142
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
143
140
|
declare enum NftTokenMetadataStatus {
|
|
144
141
|
UNKNOWN = "UNKNOWN",
|
|
145
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -155,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
155
152
|
}
|
|
156
153
|
|
|
157
154
|
type Erc1155TokenMetadata = {
|
|
158
|
-
/**
|
|
159
|
-
* The metadata indexing status of the nft.
|
|
160
|
-
*/
|
|
161
155
|
indexStatus: NftTokenMetadataStatus;
|
|
162
156
|
metadataLastUpdatedTimestamp?: number;
|
|
163
157
|
name?: string;
|
|
@@ -196,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
196
190
|
}
|
|
197
191
|
|
|
198
192
|
type Erc721TokenMetadata = {
|
|
199
|
-
/**
|
|
200
|
-
* The metadata indexing status of the nft.
|
|
201
|
-
*/
|
|
202
193
|
indexStatus: NftTokenMetadataStatus;
|
|
203
194
|
metadataLastUpdatedTimestamp?: number;
|
|
204
195
|
name?: string;
|
|
@@ -345,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
345
336
|
*/
|
|
346
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
347
338
|
/**
|
|
348
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
349
340
|
*/
|
|
350
341
|
chainId: string;
|
|
351
342
|
/**
|
|
@@ -371,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
371
362
|
* @returns ListErc20BalancesResponse
|
|
372
363
|
* @throws ApiError
|
|
373
364
|
*/
|
|
374
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
375
366
|
/**
|
|
376
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
377
368
|
*/
|
|
378
369
|
chainId: string;
|
|
379
370
|
/**
|
|
@@ -384,14 +375,14 @@ declare class EvmBalancesService {
|
|
|
384
375
|
* The block number, if not defined the block number will be the latest block.
|
|
385
376
|
*/
|
|
386
377
|
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
378
|
/**
|
|
392
379
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
393
380
|
*/
|
|
394
381
|
pageToken?: string;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
|
+
*/
|
|
385
|
+
pageSize?: number;
|
|
395
386
|
/**
|
|
396
387
|
* A comma separated list of contract addresses to filter by.
|
|
397
388
|
*/
|
|
@@ -409,23 +400,23 @@ declare class EvmBalancesService {
|
|
|
409
400
|
* @returns ListErc721BalancesResponse
|
|
410
401
|
* @throws ApiError
|
|
411
402
|
*/
|
|
412
|
-
listErc721Balances({ chainId, address,
|
|
403
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
413
404
|
/**
|
|
414
|
-
* 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.
|
|
415
406
|
*/
|
|
416
407
|
chainId: string;
|
|
417
408
|
/**
|
|
418
409
|
* A wallet address.
|
|
419
410
|
*/
|
|
420
411
|
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
412
|
/**
|
|
426
413
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
427
414
|
*/
|
|
428
415
|
pageToken?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
418
|
+
*/
|
|
419
|
+
pageSize?: number;
|
|
429
420
|
/**
|
|
430
421
|
* A contract addresses to filter by.
|
|
431
422
|
*/
|
|
@@ -441,9 +432,9 @@ declare class EvmBalancesService {
|
|
|
441
432
|
* @returns ListErc1155BalancesResponse
|
|
442
433
|
* @throws ApiError
|
|
443
434
|
*/
|
|
444
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
435
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
445
436
|
/**
|
|
446
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
447
438
|
*/
|
|
448
439
|
chainId: string;
|
|
449
440
|
/**
|
|
@@ -454,14 +445,14 @@ declare class EvmBalancesService {
|
|
|
454
445
|
* The block number, if not defined the block number will be the latest block.
|
|
455
446
|
*/
|
|
456
447
|
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
448
|
/**
|
|
462
449
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
463
450
|
*/
|
|
464
451
|
pageToken?: string;
|
|
452
|
+
/**
|
|
453
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
454
|
+
*/
|
|
455
|
+
pageSize?: number;
|
|
465
456
|
/**
|
|
466
457
|
* A contract addresses to filter by.
|
|
467
458
|
*/
|
|
@@ -475,23 +466,23 @@ declare class EvmBalancesService {
|
|
|
475
466
|
* @returns ListCollectibleBalancesResponse
|
|
476
467
|
* @throws ApiError
|
|
477
468
|
*/
|
|
478
|
-
listCollectibleBalances({ chainId, address,
|
|
469
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
479
470
|
/**
|
|
480
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
481
472
|
*/
|
|
482
473
|
chainId: string;
|
|
483
474
|
/**
|
|
484
475
|
* A wallet address.
|
|
485
476
|
*/
|
|
486
477
|
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
478
|
/**
|
|
492
479
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
493
480
|
*/
|
|
494
481
|
pageToken?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
484
|
+
*/
|
|
485
|
+
pageSize?: number;
|
|
495
486
|
/**
|
|
496
487
|
* A contract addresses to filter by.
|
|
497
488
|
*/
|
|
@@ -604,19 +595,19 @@ declare class EvmBlocksService {
|
|
|
604
595
|
* @returns ListEvmBlocksResponse
|
|
605
596
|
* @throws ApiError
|
|
606
597
|
*/
|
|
607
|
-
getLatestBlocks({ chainId,
|
|
598
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
608
599
|
/**
|
|
609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
610
601
|
*/
|
|
611
602
|
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
603
|
/**
|
|
617
604
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
618
605
|
*/
|
|
619
606
|
pageToken?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
609
|
+
*/
|
|
610
|
+
pageSize?: number;
|
|
620
611
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
621
612
|
/**
|
|
622
613
|
* Get block
|
|
@@ -626,7 +617,7 @@ declare class EvmBlocksService {
|
|
|
626
617
|
*/
|
|
627
618
|
getBlock({ chainId, blockId, }: {
|
|
628
619
|
/**
|
|
629
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
630
621
|
*/
|
|
631
622
|
chainId: string;
|
|
632
623
|
/**
|
|
@@ -636,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
636
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
637
628
|
}
|
|
638
629
|
|
|
630
|
+
/**
|
|
631
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
632
|
+
*/
|
|
639
633
|
declare enum ChainStatus {
|
|
640
634
|
OK = "OK",
|
|
641
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -673,9 +667,6 @@ declare enum VmName {
|
|
|
673
667
|
|
|
674
668
|
type GetChainResponse = {
|
|
675
669
|
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
670
|
status: ChainStatus;
|
|
680
671
|
chainName: string;
|
|
681
672
|
description: string;
|
|
@@ -691,13 +682,16 @@ type GetChainResponse = {
|
|
|
691
682
|
networkToken: NetworkToken;
|
|
692
683
|
chainLogoUri?: string;
|
|
693
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
694
686
|
};
|
|
695
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing",
|
|
690
|
+
WEBHOOKS = "webhooks"
|
|
691
|
+
}
|
|
692
|
+
|
|
696
693
|
type ChainInfo = {
|
|
697
694
|
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
695
|
status: ChainStatus;
|
|
702
696
|
chainName: string;
|
|
703
697
|
description: string;
|
|
@@ -713,6 +707,7 @@ type ChainInfo = {
|
|
|
713
707
|
networkToken: NetworkToken;
|
|
714
708
|
chainLogoUri?: string;
|
|
715
709
|
private?: boolean;
|
|
710
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
716
711
|
};
|
|
717
712
|
|
|
718
713
|
type ListChainsResponse = {
|
|
@@ -733,11 +728,15 @@ declare class EvmChainsService {
|
|
|
733
728
|
* @returns ListChainsResponse
|
|
734
729
|
* @throws ApiError
|
|
735
730
|
*/
|
|
736
|
-
supportedChains({ network, }: {
|
|
731
|
+
supportedChains({ network, feature, }: {
|
|
737
732
|
/**
|
|
738
733
|
* mainnet or testnet.
|
|
739
734
|
*/
|
|
740
735
|
network?: NetworkType;
|
|
736
|
+
/**
|
|
737
|
+
* Filter by feature.
|
|
738
|
+
*/
|
|
739
|
+
feature?: GlacierApiFeature;
|
|
741
740
|
}): CancelablePromise<ListChainsResponse>;
|
|
742
741
|
/**
|
|
743
742
|
* Get chain information
|
|
@@ -747,7 +746,7 @@ declare class EvmChainsService {
|
|
|
747
746
|
*/
|
|
748
747
|
getChainInfo({ chainId, }: {
|
|
749
748
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
749
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
750
|
*/
|
|
752
751
|
chainId: string;
|
|
753
752
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1041,7 @@ declare class EvmContractsService {
|
|
|
1042
1041
|
*/
|
|
1043
1042
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1043
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1044
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1045
|
*/
|
|
1047
1046
|
chainId: string;
|
|
1048
1047
|
/**
|
|
@@ -1058,7 +1057,7 @@ declare class EvmContractsService {
|
|
|
1058
1057
|
*/
|
|
1059
1058
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1059
|
/**
|
|
1061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1060
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
1061
|
*/
|
|
1063
1062
|
chainId: string;
|
|
1064
1063
|
/**
|
|
@@ -1192,6 +1191,9 @@ type Erc721TransferDetails = {
|
|
|
1192
1191
|
erc721Token: Erc721Token;
|
|
1193
1192
|
};
|
|
1194
1193
|
|
|
1194
|
+
/**
|
|
1195
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1196
|
+
*/
|
|
1195
1197
|
declare enum TransactionMethodType {
|
|
1196
1198
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1197
1199
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1199,9 +1201,6 @@ declare enum TransactionMethodType {
|
|
|
1199
1201
|
}
|
|
1200
1202
|
|
|
1201
1203
|
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
1204
|
callType: TransactionMethodType;
|
|
1206
1205
|
/**
|
|
1207
1206
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1562,7 +1561,7 @@ type ListTransfersResponse = {
|
|
|
1562
1561
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1563
1562
|
*/
|
|
1564
1563
|
nextPageToken?: string;
|
|
1565
|
-
transfers:
|
|
1564
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1566
1565
|
};
|
|
1567
1566
|
|
|
1568
1567
|
declare enum SortOrder {
|
|
@@ -1586,7 +1585,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1585
|
*/
|
|
1587
1586
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1587
|
/**
|
|
1589
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1588
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1590
1589
|
*/
|
|
1591
1590
|
chainId: string;
|
|
1592
1591
|
/**
|
|
@@ -1604,23 +1603,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1603
|
* @returns ListContractsResponse
|
|
1605
1604
|
* @throws ApiError
|
|
1606
1605
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1606
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1607
|
/**
|
|
1609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1608
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1610
1609
|
*/
|
|
1611
1610
|
chainId: string;
|
|
1612
1611
|
/**
|
|
1613
1612
|
* A wallet address.
|
|
1614
1613
|
*/
|
|
1615
1614
|
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
1615
|
/**
|
|
1621
1616
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1617
|
*/
|
|
1623
1618
|
pageToken?: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1621
|
+
*/
|
|
1622
|
+
pageSize?: number;
|
|
1624
1623
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1624
|
/**
|
|
1626
1625
|
* List ERC transfers
|
|
@@ -1628,25 +1627,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1627
|
* @returns ListTransfersResponse
|
|
1629
1628
|
* @throws ApiError
|
|
1630
1629
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1630
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1631
|
/**
|
|
1633
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1632
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1634
1633
|
*/
|
|
1635
1634
|
chainId: string;
|
|
1636
1635
|
/**
|
|
1637
1636
|
* A wallet address.
|
|
1638
1637
|
*/
|
|
1639
1638
|
address: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1641
|
+
*/
|
|
1640
1642
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1643
|
/**
|
|
1643
|
-
* The
|
|
1644
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1644
1645
|
*/
|
|
1645
|
-
|
|
1646
|
+
endBlock?: number;
|
|
1646
1647
|
/**
|
|
1647
1648
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1649
|
*/
|
|
1649
1650
|
pageToken?: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1653
|
+
*/
|
|
1654
|
+
pageSize?: number;
|
|
1650
1655
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1656
|
/**
|
|
1652
1657
|
* List transactions
|
|
@@ -1656,24 +1661,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1661
|
* @returns ListTransactionDetailsResponse
|
|
1657
1662
|
* @throws ApiError
|
|
1658
1663
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1664
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1665
|
/**
|
|
1661
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1666
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1662
1667
|
*/
|
|
1663
1668
|
chainId: string;
|
|
1664
1669
|
/**
|
|
1665
1670
|
* A wallet address.
|
|
1666
1671
|
*/
|
|
1667
1672
|
address: string;
|
|
1673
|
+
/**
|
|
1674
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1675
|
+
*/
|
|
1676
|
+
pageToken?: string;
|
|
1668
1677
|
/**
|
|
1669
1678
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1679
|
*/
|
|
1671
1680
|
pageSize?: number;
|
|
1672
1681
|
/**
|
|
1673
|
-
*
|
|
1682
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1674
1683
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
1684
|
startBlock?: number;
|
|
1685
|
+
/**
|
|
1686
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1687
|
+
*/
|
|
1677
1688
|
endBlock?: number;
|
|
1678
1689
|
/**
|
|
1679
1690
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -1686,25 +1697,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1697
|
* @returns ListNativeTransactionsResponse
|
|
1687
1698
|
* @throws ApiError
|
|
1688
1699
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1700
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1701
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1702
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1703
|
*/
|
|
1693
1704
|
chainId: string;
|
|
1694
1705
|
/**
|
|
1695
1706
|
* A wallet address.
|
|
1696
1707
|
*/
|
|
1697
1708
|
address: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1711
|
+
*/
|
|
1698
1712
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1713
|
/**
|
|
1701
|
-
* The
|
|
1714
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1702
1715
|
*/
|
|
1703
|
-
|
|
1716
|
+
endBlock?: number;
|
|
1704
1717
|
/**
|
|
1705
1718
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1719
|
*/
|
|
1707
1720
|
pageToken?: string;
|
|
1721
|
+
/**
|
|
1722
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1723
|
+
*/
|
|
1724
|
+
pageSize?: number;
|
|
1708
1725
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1726
|
/**
|
|
1710
1727
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1729,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1729
|
* @returns ListErc20TransactionsResponse
|
|
1713
1730
|
* @throws ApiError
|
|
1714
1731
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1732
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1733
|
/**
|
|
1717
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1734
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1718
1735
|
*/
|
|
1719
1736
|
chainId: string;
|
|
1720
1737
|
/**
|
|
1721
1738
|
* A wallet address.
|
|
1722
1739
|
*/
|
|
1723
1740
|
address: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1743
|
+
*/
|
|
1724
1744
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1745
|
/**
|
|
1727
|
-
* The
|
|
1746
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1728
1747
|
*/
|
|
1729
|
-
|
|
1748
|
+
endBlock?: number;
|
|
1730
1749
|
/**
|
|
1731
1750
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1751
|
*/
|
|
1733
1752
|
pageToken?: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
+
*/
|
|
1756
|
+
pageSize?: number;
|
|
1734
1757
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1758
|
/**
|
|
1736
1759
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1761,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1761
|
* @returns ListErc721TransactionsResponse
|
|
1739
1762
|
* @throws ApiError
|
|
1740
1763
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1764
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1765
|
/**
|
|
1743
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1766
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1744
1767
|
*/
|
|
1745
1768
|
chainId: string;
|
|
1746
1769
|
/**
|
|
1747
1770
|
* A wallet address.
|
|
1748
1771
|
*/
|
|
1749
1772
|
address: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1775
|
+
*/
|
|
1750
1776
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1777
|
/**
|
|
1753
|
-
* The
|
|
1778
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1754
1779
|
*/
|
|
1755
|
-
|
|
1780
|
+
endBlock?: number;
|
|
1756
1781
|
/**
|
|
1757
1782
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1783
|
*/
|
|
1759
1784
|
pageToken?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1787
|
+
*/
|
|
1788
|
+
pageSize?: number;
|
|
1760
1789
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1790
|
/**
|
|
1762
1791
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1793,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1793
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1794
|
* @throws ApiError
|
|
1766
1795
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1796
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1797
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1799
|
*/
|
|
1771
1800
|
chainId: string;
|
|
1772
1801
|
/**
|
|
1773
1802
|
* A wallet address.
|
|
1774
1803
|
*/
|
|
1775
1804
|
address: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1807
|
+
*/
|
|
1776
1808
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1809
|
/**
|
|
1779
|
-
* The
|
|
1810
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1780
1811
|
*/
|
|
1781
|
-
|
|
1812
|
+
endBlock?: number;
|
|
1782
1813
|
/**
|
|
1783
1814
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1815
|
*/
|
|
1785
1816
|
pageToken?: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1819
|
+
*/
|
|
1820
|
+
pageSize?: number;
|
|
1786
1821
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1822
|
/**
|
|
1788
1823
|
* List internal transactions
|
|
@@ -1792,25 +1827,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1827
|
* @returns ListInternalTransactionsResponse
|
|
1793
1828
|
* @throws ApiError
|
|
1794
1829
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1830
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1831
|
/**
|
|
1797
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1832
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
1833
|
*/
|
|
1799
1834
|
chainId: string;
|
|
1800
1835
|
/**
|
|
1801
1836
|
* A wallet address.
|
|
1802
1837
|
*/
|
|
1803
1838
|
address: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1841
|
+
*/
|
|
1804
1842
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1843
|
/**
|
|
1807
|
-
* The
|
|
1844
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1808
1845
|
*/
|
|
1809
|
-
|
|
1846
|
+
endBlock?: number;
|
|
1810
1847
|
/**
|
|
1811
1848
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1849
|
*/
|
|
1813
1850
|
pageToken?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1853
|
+
*/
|
|
1854
|
+
pageSize?: number;
|
|
1814
1855
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1856
|
/**
|
|
1816
1857
|
* Get transaction
|
|
@@ -1820,7 +1861,7 @@ declare class EvmTransactionsService {
|
|
|
1820
1861
|
*/
|
|
1821
1862
|
getTransaction({ chainId, txHash, }: {
|
|
1822
1863
|
/**
|
|
1823
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1864
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1824
1865
|
*/
|
|
1825
1866
|
chainId: string;
|
|
1826
1867
|
/**
|
|
@@ -1836,7 +1877,7 @@ declare class EvmTransactionsService {
|
|
|
1836
1877
|
*/
|
|
1837
1878
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
1879
|
/**
|
|
1839
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1880
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1840
1881
|
*/
|
|
1841
1882
|
chainId: string;
|
|
1842
1883
|
/**
|
|
@@ -1850,19 +1891,19 @@ declare class EvmTransactionsService {
|
|
|
1850
1891
|
* @returns ListNativeTransactionsResponse
|
|
1851
1892
|
* @throws ApiError
|
|
1852
1893
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
1894
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
1895
|
/**
|
|
1855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1896
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1856
1897
|
*/
|
|
1857
1898
|
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
1899
|
/**
|
|
1863
1900
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
1901
|
*/
|
|
1865
1902
|
pageToken?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1905
|
+
*/
|
|
1906
|
+
pageSize?: number;
|
|
1866
1907
|
/**
|
|
1867
1908
|
* A status filter for listed transactions.
|
|
1868
1909
|
*/
|
|
@@ -1886,6 +1927,14 @@ declare class HealthCheckService {
|
|
|
1886
1927
|
}>;
|
|
1887
1928
|
}
|
|
1888
1929
|
|
|
1930
|
+
type ListNftTokens = {
|
|
1931
|
+
/**
|
|
1932
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1933
|
+
*/
|
|
1934
|
+
nextPageToken?: string;
|
|
1935
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1889
1938
|
declare class NfTsService {
|
|
1890
1939
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
1940
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1897,7 +1946,7 @@ declare class NfTsService {
|
|
|
1897
1946
|
*/
|
|
1898
1947
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
1948
|
/**
|
|
1900
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1949
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
1950
|
*/
|
|
1902
1951
|
chainId: string;
|
|
1903
1952
|
/**
|
|
@@ -1909,6 +1958,30 @@ declare class NfTsService {
|
|
|
1909
1958
|
*/
|
|
1910
1959
|
tokenId: string;
|
|
1911
1960
|
}): CancelablePromise<any>;
|
|
1961
|
+
/**
|
|
1962
|
+
* List tokens
|
|
1963
|
+
* Lists tokens for an NFT contract.
|
|
1964
|
+
* @returns ListNftTokens
|
|
1965
|
+
* @throws ApiError
|
|
1966
|
+
*/
|
|
1967
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1968
|
+
/**
|
|
1969
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1970
|
+
*/
|
|
1971
|
+
chainId: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Contract address on the relevant chain.
|
|
1974
|
+
*/
|
|
1975
|
+
address: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1978
|
+
*/
|
|
1979
|
+
pageToken?: string;
|
|
1980
|
+
/**
|
|
1981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1982
|
+
*/
|
|
1983
|
+
pageSize?: number;
|
|
1984
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
1985
|
/**
|
|
1913
1986
|
* Get token details
|
|
1914
1987
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1917,7 +1990,7 @@ declare class NfTsService {
|
|
|
1917
1990
|
*/
|
|
1918
1991
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
1992
|
/**
|
|
1920
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1993
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1921
1994
|
*/
|
|
1922
1995
|
chainId: string;
|
|
1923
1996
|
/**
|
|
@@ -1936,8 +2009,12 @@ type EvmNetworkOptions = {
|
|
|
1936
2009
|
includeChains: Array<string>;
|
|
1937
2010
|
};
|
|
1938
2011
|
|
|
2012
|
+
declare enum EVMOperationType {
|
|
2013
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1939
2016
|
type CreateEvmTransactionExportRequest = {
|
|
1940
|
-
type:
|
|
2017
|
+
type: EVMOperationType;
|
|
1941
2018
|
firstDate: string;
|
|
1942
2019
|
lastDate: string;
|
|
1943
2020
|
/**
|
|
@@ -1950,20 +2027,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1950
2027
|
endDate: string;
|
|
1951
2028
|
options: EvmNetworkOptions;
|
|
1952
2029
|
};
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
2030
|
+
|
|
2031
|
+
declare enum PrimaryNetworkOperationType {
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2034
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1957
2035
|
}
|
|
1958
2036
|
|
|
1959
2037
|
type PrimaryNetworkOptions = {
|
|
1960
|
-
addresses
|
|
2038
|
+
addresses?: Array<string>;
|
|
1961
2039
|
cChainEvmAddresses?: Array<string>;
|
|
1962
2040
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1963
2041
|
};
|
|
1964
2042
|
|
|
1965
2043
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1966
|
-
type:
|
|
2044
|
+
type: PrimaryNetworkOperationType;
|
|
1967
2045
|
firstDate: string;
|
|
1968
2046
|
lastDate: string;
|
|
1969
2047
|
/**
|
|
@@ -1976,11 +2054,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1976
2054
|
endDate: string;
|
|
1977
2055
|
options: PrimaryNetworkOptions;
|
|
1978
2056
|
};
|
|
1979
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1980
|
-
enum type {
|
|
1981
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
2057
|
|
|
1985
2058
|
declare enum OperationStatus {
|
|
1986
2059
|
RUNNING = "RUNNING",
|
|
@@ -1990,8 +2063,10 @@ declare enum OperationStatus {
|
|
|
1990
2063
|
}
|
|
1991
2064
|
|
|
1992
2065
|
declare enum OperationType {
|
|
1993
|
-
|
|
1994
|
-
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2068
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2069
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1995
2070
|
}
|
|
1996
2071
|
|
|
1997
2072
|
declare enum OperationStatusCode {
|
|
@@ -2025,17 +2100,6 @@ type OperationStatusResponse = {
|
|
|
2025
2100
|
declare class OperationsService {
|
|
2026
2101
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2102
|
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
2103
|
/**
|
|
2040
2104
|
* Get operation
|
|
2041
2105
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2112,17 @@ declare class OperationsService {
|
|
|
2048
2112
|
*/
|
|
2049
2113
|
operationId: string;
|
|
2050
2114
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2115
|
+
/**
|
|
2116
|
+
* Create transaction export operation
|
|
2117
|
+
* Trigger a transaction export operation with given parameters.
|
|
2118
|
+
*
|
|
2119
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2120
|
+
* @returns OperationStatusResponse
|
|
2121
|
+
* @throws ApiError
|
|
2122
|
+
*/
|
|
2123
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2124
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2125
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
2126
|
}
|
|
2052
2127
|
|
|
2053
2128
|
declare enum BlockchainIds {
|
|
@@ -2183,13 +2258,44 @@ type BlockchainInfo = {
|
|
|
2183
2258
|
blockchainId: string;
|
|
2184
2259
|
};
|
|
2185
2260
|
|
|
2261
|
+
type SubnetOwnershipInfo = {
|
|
2262
|
+
/**
|
|
2263
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2264
|
+
*/
|
|
2265
|
+
locktime: number;
|
|
2266
|
+
/**
|
|
2267
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2268
|
+
*/
|
|
2269
|
+
threshold: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
addresses: Array<string>;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2186
2276
|
type Subnet = {
|
|
2187
2277
|
createBlockTimestamp: number;
|
|
2188
2278
|
createBlockIndex: string;
|
|
2189
2279
|
subnetId: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2282
|
+
* @deprecated
|
|
2283
|
+
*/
|
|
2190
2284
|
ownerAddresses: Array<string>;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
2191
2289
|
threshold: number;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
2192
2294
|
locktime: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* Latest subnet owner details for this Subnet.
|
|
2297
|
+
*/
|
|
2298
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2193
2299
|
blockchains: Array<BlockchainInfo>;
|
|
2194
2300
|
};
|
|
2195
2301
|
|
|
@@ -2285,6 +2391,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2391
|
}
|
|
2286
2392
|
}
|
|
2287
2393
|
|
|
2394
|
+
type RemovedValidatorDetails = {
|
|
2395
|
+
txHash: string;
|
|
2396
|
+
nodeId: string;
|
|
2397
|
+
subnetId: string;
|
|
2398
|
+
amountStaked: string;
|
|
2399
|
+
delegationFee?: string;
|
|
2400
|
+
startTimestamp: number;
|
|
2401
|
+
endTimestamp: number;
|
|
2402
|
+
removeTxHash: string;
|
|
2403
|
+
removeTimestamp: number;
|
|
2404
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2405
|
+
};
|
|
2406
|
+
declare namespace RemovedValidatorDetails {
|
|
2407
|
+
enum validationStatus {
|
|
2408
|
+
REMOVED = "removed"
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2288
2412
|
type ListValidatorDetailsResponse = {
|
|
2289
2413
|
/**
|
|
2290
2414
|
* 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 +2417,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2417
|
/**
|
|
2294
2418
|
* The list of validator Details.
|
|
2295
2419
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2420
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2421
|
};
|
|
2298
2422
|
|
|
2299
2423
|
declare enum Network {
|
|
@@ -2304,7 +2428,24 @@ declare enum Network {
|
|
|
2304
2428
|
declare enum ValidationStatusType {
|
|
2305
2429
|
COMPLETED = "completed",
|
|
2306
2430
|
ACTIVE = "active",
|
|
2307
|
-
PENDING = "pending"
|
|
2431
|
+
PENDING = "pending",
|
|
2432
|
+
REMOVED = "removed"
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2437
|
+
*/
|
|
2438
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2439
|
+
FIXED = "fixed",
|
|
2440
|
+
VARIABLE = "variable"
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2445
|
+
*/
|
|
2446
|
+
declare enum PrimaryNetworkAssetType {
|
|
2447
|
+
SECP256K1 = "secp256k1",
|
|
2448
|
+
NFT = "nft"
|
|
2308
2449
|
}
|
|
2309
2450
|
|
|
2310
2451
|
type XChainAssetDetails = {
|
|
@@ -2324,18 +2465,12 @@ type XChainAssetDetails = {
|
|
|
2324
2465
|
* Denomination of this asset to represent fungibility.
|
|
2325
2466
|
*/
|
|
2326
2467
|
denomination: number;
|
|
2327
|
-
|
|
2328
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2329
|
-
*/
|
|
2330
|
-
type: string;
|
|
2468
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2469
|
/**
|
|
2332
2470
|
* Timestamp in seconds this asset was created on.
|
|
2333
2471
|
*/
|
|
2334
2472
|
createdAtTimestamp: number;
|
|
2335
|
-
|
|
2336
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2337
|
-
*/
|
|
2338
|
-
cap: string;
|
|
2473
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2474
|
};
|
|
2340
2475
|
|
|
2341
2476
|
declare enum XChainId {
|
|
@@ -2401,19 +2536,19 @@ declare class PrimaryNetworkService {
|
|
|
2401
2536
|
* @returns ListBlockchainsResponse
|
|
2402
2537
|
* @throws ApiError
|
|
2403
2538
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2539
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2540
|
/**
|
|
2406
2541
|
* Either mainnet or a testnet.
|
|
2407
2542
|
*/
|
|
2408
2543
|
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
2544
|
/**
|
|
2414
2545
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2546
|
*/
|
|
2416
2547
|
pageToken?: string;
|
|
2548
|
+
/**
|
|
2549
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2550
|
+
*/
|
|
2551
|
+
pageSize?: number;
|
|
2417
2552
|
/**
|
|
2418
2553
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2419
2554
|
*/
|
|
@@ -2425,19 +2560,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2560
|
* @returns ListSubnetsResponse
|
|
2426
2561
|
* @throws ApiError
|
|
2427
2562
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2563
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2564
|
/**
|
|
2430
2565
|
* Either mainnet or a testnet.
|
|
2431
2566
|
*/
|
|
2432
2567
|
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
2568
|
/**
|
|
2438
2569
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2439
2570
|
*/
|
|
2440
2571
|
pageToken?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2574
|
+
*/
|
|
2575
|
+
pageSize?: number;
|
|
2441
2576
|
/**
|
|
2442
2577
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2443
2578
|
*/
|
|
@@ -2449,59 +2584,59 @@ declare class PrimaryNetworkService {
|
|
|
2449
2584
|
* @returns ListValidatorDetailsResponse
|
|
2450
2585
|
* @throws ApiError
|
|
2451
2586
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2587
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2453
2588
|
/**
|
|
2454
2589
|
* Either mainnet or a testnet.
|
|
2455
2590
|
*/
|
|
2456
2591
|
network: Network;
|
|
2457
|
-
/**
|
|
2458
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2459
|
-
*/
|
|
2460
|
-
pageSize?: number;
|
|
2461
2592
|
/**
|
|
2462
2593
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2463
2594
|
*/
|
|
2464
2595
|
pageToken?: string;
|
|
2465
2596
|
/**
|
|
2466
|
-
* The
|
|
2597
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2467
2598
|
*/
|
|
2468
|
-
|
|
2599
|
+
pageSize?: number;
|
|
2469
2600
|
/**
|
|
2470
|
-
*
|
|
2601
|
+
* A comma separated list of node ids to filter by.
|
|
2471
2602
|
*/
|
|
2472
|
-
|
|
2603
|
+
nodeIds?: string;
|
|
2473
2604
|
/**
|
|
2474
|
-
* The
|
|
2605
|
+
* 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.
|
|
2475
2606
|
*/
|
|
2476
|
-
|
|
2607
|
+
sortOrder?: SortOrder;
|
|
2477
2608
|
/**
|
|
2478
|
-
*
|
|
2609
|
+
* Validation status of the node.
|
|
2479
2610
|
*/
|
|
2480
|
-
|
|
2611
|
+
validationStatus?: ValidationStatusType;
|
|
2481
2612
|
/**
|
|
2482
|
-
* The minimum
|
|
2613
|
+
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2483
2614
|
*/
|
|
2484
|
-
|
|
2615
|
+
minDelegationCapacity?: string;
|
|
2485
2616
|
/**
|
|
2486
|
-
* The maximum
|
|
2617
|
+
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2487
2618
|
*/
|
|
2488
|
-
|
|
2619
|
+
maxDelegationCapacity?: string;
|
|
2489
2620
|
/**
|
|
2490
|
-
*
|
|
2621
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2491
2622
|
*/
|
|
2492
|
-
|
|
2623
|
+
minTimeRemaining?: number;
|
|
2493
2624
|
/**
|
|
2494
|
-
* The
|
|
2625
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2495
2626
|
*/
|
|
2496
|
-
|
|
2627
|
+
maxTimeRemaining?: number;
|
|
2497
2628
|
/**
|
|
2498
|
-
*
|
|
2629
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2499
2630
|
*/
|
|
2500
|
-
|
|
2631
|
+
minFeePercentage?: number;
|
|
2632
|
+
/**
|
|
2633
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2634
|
+
*/
|
|
2635
|
+
maxFeePercentage?: number;
|
|
2501
2636
|
/**
|
|
2502
2637
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2638
|
*/
|
|
2504
|
-
subnetId?:
|
|
2639
|
+
subnetId?: any;
|
|
2505
2640
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2506
2641
|
/**
|
|
2507
2642
|
* Get single validator details
|
|
@@ -2509,7 +2644,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2644
|
* @returns ListValidatorDetailsResponse
|
|
2510
2645
|
* @throws ApiError
|
|
2511
2646
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2647
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2513
2648
|
/**
|
|
2514
2649
|
* Either mainnet or a testnet.
|
|
2515
2650
|
*/
|
|
@@ -2518,14 +2653,14 @@ declare class PrimaryNetworkService {
|
|
|
2518
2653
|
* A primary network (P or X chain) nodeId.
|
|
2519
2654
|
*/
|
|
2520
2655
|
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
2656
|
/**
|
|
2526
2657
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2658
|
*/
|
|
2528
2659
|
pageToken?: string;
|
|
2660
|
+
/**
|
|
2661
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2662
|
+
*/
|
|
2663
|
+
pageSize?: number;
|
|
2529
2664
|
/**
|
|
2530
2665
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2531
2666
|
*/
|
|
@@ -2541,19 +2676,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2676
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2677
|
* @throws ApiError
|
|
2543
2678
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2679
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2680
|
/**
|
|
2546
2681
|
* Either mainnet or a testnet.
|
|
2547
2682
|
*/
|
|
2548
2683
|
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
2684
|
/**
|
|
2554
2685
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2686
|
*/
|
|
2556
2687
|
pageToken?: string;
|
|
2688
|
+
/**
|
|
2689
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2690
|
+
*/
|
|
2691
|
+
pageSize?: number;
|
|
2557
2692
|
/**
|
|
2558
2693
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2694
|
*/
|
|
@@ -2601,10 +2736,7 @@ type CChainSharedAssetBalance = {
|
|
|
2601
2736
|
* Denomination of this asset to represent fungibility.
|
|
2602
2737
|
*/
|
|
2603
2738
|
denomination: number;
|
|
2604
|
-
|
|
2605
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2606
|
-
*/
|
|
2607
|
-
type: string;
|
|
2739
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2740
|
/**
|
|
2609
2741
|
* Amount of the asset.
|
|
2610
2742
|
*/
|
|
@@ -2639,49 +2771,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2771
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2772
|
};
|
|
2641
2773
|
|
|
2642
|
-
type
|
|
2774
|
+
type AggregatedAssetAmount = {
|
|
2775
|
+
/**
|
|
2776
|
+
* Unique ID for an asset.
|
|
2777
|
+
*/
|
|
2643
2778
|
assetId: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* Name of this asset.
|
|
2781
|
+
*/
|
|
2782
|
+
name: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* Symbol for this asset (max 4 characters).
|
|
2785
|
+
*/
|
|
2786
|
+
symbol: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* Denomination of this asset to represent fungibility.
|
|
2789
|
+
*/
|
|
2790
|
+
denomination: number;
|
|
2791
|
+
type: PrimaryNetworkAssetType;
|
|
2792
|
+
/**
|
|
2793
|
+
* Amount of the asset.
|
|
2794
|
+
*/
|
|
2644
2795
|
amount: string;
|
|
2796
|
+
utxoCount: number;
|
|
2645
2797
|
};
|
|
2646
2798
|
|
|
2647
2799
|
type PChainSharedAsset = {
|
|
2800
|
+
/**
|
|
2801
|
+
* Unique ID for an asset.
|
|
2802
|
+
*/
|
|
2648
2803
|
assetId: string;
|
|
2804
|
+
/**
|
|
2805
|
+
* Name of this asset.
|
|
2806
|
+
*/
|
|
2807
|
+
name: string;
|
|
2808
|
+
/**
|
|
2809
|
+
* Symbol for this asset (max 4 characters).
|
|
2810
|
+
*/
|
|
2811
|
+
symbol: string;
|
|
2812
|
+
/**
|
|
2813
|
+
* Denomination of this asset to represent fungibility.
|
|
2814
|
+
*/
|
|
2815
|
+
denomination: number;
|
|
2816
|
+
type: PrimaryNetworkAssetType;
|
|
2817
|
+
/**
|
|
2818
|
+
* Amount of the asset.
|
|
2819
|
+
*/
|
|
2649
2820
|
amount: string;
|
|
2821
|
+
utxoCount: number;
|
|
2650
2822
|
sharedWithChainId: string;
|
|
2651
2823
|
status: string;
|
|
2652
2824
|
};
|
|
2653
2825
|
|
|
2654
2826
|
type PChainBalance = {
|
|
2655
2827
|
/**
|
|
2656
|
-
* A list of objects containing P-chain Asset
|
|
2828
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2657
2829
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2830
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2659
2831
|
/**
|
|
2660
|
-
* A list of objects containing P-chain Asset
|
|
2832
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2661
2833
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2834
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2663
2835
|
/**
|
|
2664
|
-
* A list of objects containing P-chain Asset
|
|
2836
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2665
2837
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2838
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2667
2839
|
/**
|
|
2668
|
-
* A list of objects containing P-chain Asset
|
|
2840
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2669
2841
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2842
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2671
2843
|
/**
|
|
2672
|
-
* A list of objects containing P-chain Asset
|
|
2844
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2673
2845
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2846
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2675
2847
|
/**
|
|
2676
|
-
* A list of objects containing P-chain Asset
|
|
2848
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2677
2849
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2850
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2679
2851
|
/**
|
|
2680
|
-
* A list of objects containing P-chain Asset
|
|
2852
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2681
2853
|
*/
|
|
2682
2854
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2683
2855
|
/**
|
|
2684
|
-
* A list of objects containing P-chain Asset
|
|
2856
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2685
2857
|
*/
|
|
2686
2858
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2687
2859
|
};
|
|
@@ -2691,34 +2863,6 @@ type ListPChainBalancesResponse = {
|
|
|
2691
2863
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2692
2864
|
};
|
|
2693
2865
|
|
|
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
2866
|
type XChainSharedAssetBalance = {
|
|
2723
2867
|
/**
|
|
2724
2868
|
* Unique ID for an asset.
|
|
@@ -2736,10 +2880,7 @@ type XChainSharedAssetBalance = {
|
|
|
2736
2880
|
* Denomination of this asset to represent fungibility.
|
|
2737
2881
|
*/
|
|
2738
2882
|
denomination: number;
|
|
2739
|
-
|
|
2740
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2741
|
-
*/
|
|
2742
|
-
type: string;
|
|
2883
|
+
type: PrimaryNetworkAssetType;
|
|
2743
2884
|
/**
|
|
2744
2885
|
* Amount of the asset.
|
|
2745
2886
|
*/
|
|
@@ -2752,11 +2893,11 @@ type XChainBalances = {
|
|
|
2752
2893
|
/**
|
|
2753
2894
|
* A list of objects containing X-chain Asset balance information.
|
|
2754
2895
|
*/
|
|
2755
|
-
locked: Array<
|
|
2896
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2756
2897
|
/**
|
|
2757
2898
|
* A list of objects containing X-chain Asset balance information.
|
|
2758
2899
|
*/
|
|
2759
|
-
unlocked: Array<
|
|
2900
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2760
2901
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2761
2902
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2762
2903
|
};
|
|
@@ -2814,6 +2955,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
2955
|
txCount: number;
|
|
2815
2956
|
transactions: Array<string>;
|
|
2816
2957
|
blockSizeBytes: number;
|
|
2958
|
+
currentSupply?: string;
|
|
2817
2959
|
proposerDetails?: ProposerDetails;
|
|
2818
2960
|
};
|
|
2819
2961
|
|
|
@@ -2826,6 +2968,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
2968
|
txCount: number;
|
|
2827
2969
|
transactions: Array<string>;
|
|
2828
2970
|
blockSizeBytes: number;
|
|
2971
|
+
currentSupply?: string;
|
|
2829
2972
|
proposerDetails?: ProposerDetails;
|
|
2830
2973
|
};
|
|
2831
2974
|
|
|
@@ -2867,7 +3010,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3010
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3011
|
* @throws ApiError
|
|
2869
3012
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3013
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3014
|
/**
|
|
2872
3015
|
* A primary network blockchain id or alias.
|
|
2873
3016
|
*/
|
|
@@ -2880,14 +3023,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3023
|
* A primary network (P or X chain) nodeId.
|
|
2881
3024
|
*/
|
|
2882
3025
|
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
3026
|
/**
|
|
2888
3027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3028
|
*/
|
|
2890
3029
|
pageToken?: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3032
|
+
*/
|
|
3033
|
+
pageSize?: number;
|
|
2891
3034
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3035
|
/**
|
|
2893
3036
|
* List latest blocks
|
|
@@ -2895,7 +3038,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3038
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3039
|
* @throws ApiError
|
|
2897
3040
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3041
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3042
|
/**
|
|
2900
3043
|
* A primary network blockchain id or alias.
|
|
2901
3044
|
*/
|
|
@@ -2904,17 +3047,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3047
|
* Either mainnet or a testnet.
|
|
2905
3048
|
*/
|
|
2906
3049
|
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
3050
|
/**
|
|
2912
3051
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3052
|
*/
|
|
2914
3053
|
pageToken?: string;
|
|
3054
|
+
/**
|
|
3055
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3056
|
+
*/
|
|
3057
|
+
pageSize?: number;
|
|
2915
3058
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3059
|
}
|
|
2917
3060
|
|
|
3061
|
+
type AssetWithPriceInfo = {
|
|
3062
|
+
/**
|
|
3063
|
+
* Unique ID for an asset.
|
|
3064
|
+
*/
|
|
3065
|
+
assetId: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Name of this asset.
|
|
3068
|
+
*/
|
|
3069
|
+
name: string;
|
|
3070
|
+
/**
|
|
3071
|
+
* Symbol for this asset (max 4 characters).
|
|
3072
|
+
*/
|
|
3073
|
+
symbol: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* Denomination of this asset to represent fungibility.
|
|
3076
|
+
*/
|
|
3077
|
+
denomination: number;
|
|
3078
|
+
type: PrimaryNetworkAssetType;
|
|
3079
|
+
/**
|
|
3080
|
+
* Amount of the asset.
|
|
3081
|
+
*/
|
|
3082
|
+
amount: string;
|
|
3083
|
+
/**
|
|
3084
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3085
|
+
*/
|
|
3086
|
+
historicalPrice?: Money;
|
|
3087
|
+
};
|
|
3088
|
+
|
|
2918
3089
|
declare enum RewardType {
|
|
2919
3090
|
VALIDATOR = "VALIDATOR",
|
|
2920
3091
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3105,7 @@ type HistoricalReward = {
|
|
|
2934
3105
|
rewardType: RewardType;
|
|
2935
3106
|
utxoId: string;
|
|
2936
3107
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3108
|
+
reward: AssetWithPriceInfo;
|
|
2941
3109
|
rewardTxHash: string;
|
|
2942
3110
|
};
|
|
2943
3111
|
|
|
@@ -2949,6 +3117,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2949
3117
|
historicalRewards: Array<HistoricalReward>;
|
|
2950
3118
|
};
|
|
2951
3119
|
|
|
3120
|
+
type AssetAmount = {
|
|
3121
|
+
/**
|
|
3122
|
+
* Unique ID for an asset.
|
|
3123
|
+
*/
|
|
3124
|
+
assetId: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Name of this asset.
|
|
3127
|
+
*/
|
|
3128
|
+
name: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Symbol for this asset (max 4 characters).
|
|
3131
|
+
*/
|
|
3132
|
+
symbol: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* Denomination of this asset to represent fungibility.
|
|
3135
|
+
*/
|
|
3136
|
+
denomination: number;
|
|
3137
|
+
type: PrimaryNetworkAssetType;
|
|
3138
|
+
/**
|
|
3139
|
+
* Amount of the asset.
|
|
3140
|
+
*/
|
|
3141
|
+
amount: string;
|
|
3142
|
+
};
|
|
3143
|
+
|
|
2952
3144
|
type PendingReward = {
|
|
2953
3145
|
/**
|
|
2954
3146
|
* An array of P-Chain wallet addresses.
|
|
@@ -2962,9 +3154,9 @@ type PendingReward = {
|
|
|
2962
3154
|
rewardType: RewardType;
|
|
2963
3155
|
progress: number;
|
|
2964
3156
|
/**
|
|
2965
|
-
* An object containing P-chain Asset
|
|
3157
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2966
3158
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3159
|
+
estimatedReward: AssetAmount;
|
|
2968
3160
|
};
|
|
2969
3161
|
|
|
2970
3162
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3176,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3176
|
* @returns ListPendingRewardsResponse
|
|
2985
3177
|
* @throws ApiError
|
|
2986
3178
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3179
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3180
|
/**
|
|
2989
3181
|
* Either mainnet or a testnet.
|
|
2990
3182
|
*/
|
|
2991
3183
|
network: Network;
|
|
2992
3184
|
/**
|
|
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".
|
|
3185
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
2994
3186
|
*/
|
|
2995
3187
|
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
3188
|
/**
|
|
3001
3189
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3190
|
*/
|
|
3003
3191
|
pageToken?: string;
|
|
3004
3192
|
/**
|
|
3005
|
-
*
|
|
3193
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3194
|
+
*/
|
|
3195
|
+
pageSize?: number;
|
|
3196
|
+
/**
|
|
3197
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3006
3198
|
*/
|
|
3007
3199
|
nodeIds?: string;
|
|
3008
3200
|
/**
|
|
@@ -3016,68 +3208,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3208
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3209
|
* @throws ApiError
|
|
3018
3210
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3211
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3212
|
/**
|
|
3021
3213
|
* Either mainnet or a testnet.
|
|
3022
3214
|
*/
|
|
3023
3215
|
network: Network;
|
|
3024
3216
|
/**
|
|
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".
|
|
3217
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
3026
3218
|
*/
|
|
3027
3219
|
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
3220
|
/**
|
|
3033
3221
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3222
|
*/
|
|
3035
3223
|
pageToken?: string;
|
|
3036
3224
|
/**
|
|
3037
|
-
*
|
|
3225
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3226
|
+
*/
|
|
3227
|
+
pageSize?: number;
|
|
3228
|
+
/**
|
|
3229
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3038
3230
|
*/
|
|
3039
3231
|
nodeIds?: string;
|
|
3040
3232
|
/**
|
|
3041
3233
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3042
3234
|
*/
|
|
3043
3235
|
sortOrder?: SortOrder;
|
|
3236
|
+
/**
|
|
3237
|
+
* The currency that return values should use. Defaults to USD.
|
|
3238
|
+
*/
|
|
3239
|
+
currency?: CurrencyCode;
|
|
3044
3240
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3241
|
}
|
|
3046
3242
|
|
|
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
3243
|
type UtxoCredential = {
|
|
3075
3244
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3245
|
+
* Signature provided to consume the output.
|
|
3077
3246
|
*/
|
|
3078
3247
|
signature?: string;
|
|
3079
3248
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3249
|
+
* Public key associated with the signature.
|
|
3081
3250
|
*/
|
|
3082
3251
|
publicKey?: string;
|
|
3083
3252
|
};
|
|
@@ -3088,9 +3257,9 @@ type EVMInput = {
|
|
|
3088
3257
|
*/
|
|
3089
3258
|
fromAddress: string;
|
|
3090
3259
|
/**
|
|
3091
|
-
*
|
|
3260
|
+
* AssetAmount details for the asset being transferred.
|
|
3092
3261
|
*/
|
|
3093
|
-
asset:
|
|
3262
|
+
asset: AssetAmount;
|
|
3094
3263
|
/**
|
|
3095
3264
|
* Credentials that signed this transaction.
|
|
3096
3265
|
*/
|
|
@@ -3099,66 +3268,66 @@ type EVMInput = {
|
|
|
3099
3268
|
|
|
3100
3269
|
type Utxo = {
|
|
3101
3270
|
/**
|
|
3102
|
-
*
|
|
3271
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3272
|
*/
|
|
3104
|
-
|
|
3105
|
-
asset:
|
|
3273
|
+
addresses: Array<string>;
|
|
3274
|
+
asset: AssetAmount;
|
|
3106
3275
|
/**
|
|
3107
|
-
*
|
|
3276
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3277
|
*/
|
|
3109
|
-
|
|
3278
|
+
consumedOnChainId: string;
|
|
3279
|
+
/**
|
|
3280
|
+
* Transaction ID that consumed this output.
|
|
3281
|
+
*/
|
|
3282
|
+
consumingTxHash?: string;
|
|
3110
3283
|
/**
|
|
3111
3284
|
* Blockchain ID on which this output is created on.
|
|
3112
3285
|
*/
|
|
3113
3286
|
createdOnChainId: string;
|
|
3114
3287
|
/**
|
|
3115
|
-
*
|
|
3288
|
+
* UTXO ID for this output.
|
|
3116
3289
|
*/
|
|
3117
|
-
|
|
3290
|
+
utxoId: string;
|
|
3291
|
+
/**
|
|
3292
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3293
|
+
*/
|
|
3294
|
+
consumingTxTimestamp?: number;
|
|
3118
3295
|
/**
|
|
3119
3296
|
* Transaction ID that created this output.
|
|
3120
3297
|
*/
|
|
3121
3298
|
creationTxHash: string;
|
|
3122
3299
|
/**
|
|
3123
|
-
*
|
|
3300
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3124
3301
|
*/
|
|
3125
|
-
|
|
3302
|
+
credentials?: Array<UtxoCredential>;
|
|
3126
3303
|
/**
|
|
3127
|
-
*
|
|
3304
|
+
* Index representing the minting set for the NFT mint output.
|
|
3128
3305
|
*/
|
|
3129
|
-
|
|
3306
|
+
groupId?: number;
|
|
3307
|
+
/**
|
|
3308
|
+
* Locktime in seconds after which this output can be consumed.
|
|
3309
|
+
*/
|
|
3310
|
+
locktime: number;
|
|
3130
3311
|
/**
|
|
3131
3312
|
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3132
3313
|
*/
|
|
3133
3314
|
outputIndex: string;
|
|
3134
3315
|
/**
|
|
3135
|
-
*
|
|
3316
|
+
* Hex encoded data for NFT assets.
|
|
3136
3317
|
*/
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* Locktime in seconds after which this output can be consumed.
|
|
3140
|
-
*/
|
|
3141
|
-
locktime: number;
|
|
3318
|
+
payload?: string;
|
|
3142
3319
|
/**
|
|
3143
3320
|
* Minimum number of signatures required to consume this output.
|
|
3144
3321
|
*/
|
|
3145
3322
|
threshold: number;
|
|
3146
3323
|
/**
|
|
3147
|
-
*
|
|
3324
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3148
3325
|
*/
|
|
3149
|
-
|
|
3150
|
-
/**
|
|
3151
|
-
* Hex encoded data for NFT assets
|
|
3152
|
-
*/
|
|
3153
|
-
payload?: string;
|
|
3154
|
-
/**
|
|
3155
|
-
* Index representing the minting set for the NFT mint output
|
|
3156
|
-
*/
|
|
3157
|
-
groupId?: number;
|
|
3326
|
+
timestamp: number;
|
|
3158
3327
|
/**
|
|
3159
|
-
*
|
|
3328
|
+
* Type of output.
|
|
3160
3329
|
*/
|
|
3161
|
-
|
|
3330
|
+
utxoType: string;
|
|
3162
3331
|
};
|
|
3163
3332
|
|
|
3164
3333
|
type CChainExportTransaction = {
|
|
@@ -3185,11 +3354,11 @@ type CChainExportTransaction = {
|
|
|
3185
3354
|
/**
|
|
3186
3355
|
* Assets unlocked by inputs of this transaction.
|
|
3187
3356
|
*/
|
|
3188
|
-
amountUnlocked: Array<
|
|
3357
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3189
3358
|
/**
|
|
3190
3359
|
* Assets created by outputs of this transaction.
|
|
3191
3360
|
*/
|
|
3192
|
-
amountCreated: Array<
|
|
3361
|
+
amountCreated: Array<AssetAmount>;
|
|
3193
3362
|
/**
|
|
3194
3363
|
* Source chain for an atomic transaction.
|
|
3195
3364
|
*/
|
|
@@ -3220,9 +3389,9 @@ type EVMOutput = {
|
|
|
3220
3389
|
*/
|
|
3221
3390
|
toAddress: string;
|
|
3222
3391
|
/**
|
|
3223
|
-
*
|
|
3392
|
+
* AssetAmount details for the asset being transferred.
|
|
3224
3393
|
*/
|
|
3225
|
-
asset:
|
|
3394
|
+
asset: AssetAmount;
|
|
3226
3395
|
};
|
|
3227
3396
|
|
|
3228
3397
|
type CChainImportTransaction = {
|
|
@@ -3249,11 +3418,11 @@ type CChainImportTransaction = {
|
|
|
3249
3418
|
/**
|
|
3250
3419
|
* Assets unlocked by inputs of this transaction.
|
|
3251
3420
|
*/
|
|
3252
|
-
amountUnlocked: Array<
|
|
3421
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3253
3422
|
/**
|
|
3254
3423
|
* Assets created by outputs of this transaction.
|
|
3255
3424
|
*/
|
|
3256
|
-
amountCreated: Array<
|
|
3425
|
+
amountCreated: Array<AssetAmount>;
|
|
3257
3426
|
/**
|
|
3258
3427
|
* Source chain for an atomic transaction.
|
|
3259
3428
|
*/
|
|
@@ -3289,17 +3458,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3458
|
|
|
3290
3459
|
declare enum PChainTransactionType {
|
|
3291
3460
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3461
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3462
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3463
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3464
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3465
|
IMPORT_TX = "ImportTx",
|
|
3301
3466
|
EXPORT_TX = "ExportTx",
|
|
3302
3467
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3468
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3469
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3470
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3471
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3472
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3473
|
+
BASE_TX = "BaseTx",
|
|
3474
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3303
3475
|
UNKNOWN = "UNKNOWN"
|
|
3304
3476
|
}
|
|
3305
3477
|
|
|
@@ -3310,29 +3482,48 @@ declare enum UtxoType {
|
|
|
3310
3482
|
|
|
3311
3483
|
type PChainUtxo = {
|
|
3312
3484
|
/**
|
|
3313
|
-
*
|
|
3485
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3486
|
*/
|
|
3315
3487
|
addresses: Array<string>;
|
|
3488
|
+
asset: AssetAmount;
|
|
3489
|
+
/**
|
|
3490
|
+
* Blockchain ID on which this output is consumed on.
|
|
3491
|
+
*/
|
|
3492
|
+
consumedOnChainId: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* Transaction ID that consumed this output.
|
|
3495
|
+
*/
|
|
3496
|
+
consumingTxHash?: string;
|
|
3497
|
+
/**
|
|
3498
|
+
* Blockchain ID on which this output is created on.
|
|
3499
|
+
*/
|
|
3500
|
+
createdOnChainId: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* UTXO ID for this output.
|
|
3503
|
+
*/
|
|
3316
3504
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3505
|
+
/**
|
|
3506
|
+
* @deprecated
|
|
3507
|
+
*/
|
|
3508
|
+
amount: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* @deprecated
|
|
3511
|
+
*/
|
|
3512
|
+
assetId: string;
|
|
3319
3513
|
blockNumber: string;
|
|
3320
3514
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3515
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3516
|
+
consumingBlockTimestamp?: number;
|
|
3328
3517
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3518
|
+
outputIndex: number;
|
|
3519
|
+
rewardType?: RewardType;
|
|
3520
|
+
stakeableLocktime?: number;
|
|
3332
3521
|
staked?: boolean;
|
|
3333
|
-
|
|
3522
|
+
threshold?: number;
|
|
3523
|
+
txHash: string;
|
|
3334
3524
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3525
|
+
utxoStartTimestamp?: number;
|
|
3526
|
+
utxoType: UtxoType;
|
|
3336
3527
|
};
|
|
3337
3528
|
|
|
3338
3529
|
type PChainTransaction = {
|
|
@@ -3358,17 +3549,17 @@ type PChainTransaction = {
|
|
|
3358
3549
|
*/
|
|
3359
3550
|
destinationChain?: string;
|
|
3360
3551
|
/**
|
|
3361
|
-
* A list of objects containing P-chain Asset
|
|
3552
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3362
3553
|
*/
|
|
3363
|
-
value: Array<
|
|
3554
|
+
value: Array<AssetAmount>;
|
|
3364
3555
|
/**
|
|
3365
|
-
* A list of objects containing P-chain Asset
|
|
3556
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3366
3557
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3558
|
+
amountBurned: Array<AssetAmount>;
|
|
3368
3559
|
/**
|
|
3369
|
-
* A list of objects containing P-chain Asset
|
|
3560
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3561
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3562
|
+
amountStaked: Array<AssetAmount>;
|
|
3372
3563
|
/**
|
|
3373
3564
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3565
|
*/
|
|
@@ -3400,6 +3591,10 @@ type PChainTransaction = {
|
|
|
3400
3591
|
* Present for RewardValidatorTx
|
|
3401
3592
|
*/
|
|
3402
3593
|
stakingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3596
|
+
*/
|
|
3597
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3403
3598
|
};
|
|
3404
3599
|
|
|
3405
3600
|
type ListPChainTransactionsResponse = {
|
|
@@ -3411,6 +3606,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3606
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3607
|
};
|
|
3413
3608
|
|
|
3609
|
+
/**
|
|
3610
|
+
* Type of transaction.
|
|
3611
|
+
*/
|
|
3612
|
+
declare enum XChainTransactionType {
|
|
3613
|
+
BASE_TX = "BaseTx",
|
|
3614
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3615
|
+
OPERATION_TX = "OperationTx",
|
|
3616
|
+
IMPORT_TX = "ImportTx",
|
|
3617
|
+
EXPORT_TX = "ExportTx",
|
|
3618
|
+
UNKNOWN = "UNKNOWN"
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3414
3621
|
type XChainLinearTransaction = {
|
|
3415
3622
|
/**
|
|
3416
3623
|
* Unique ID for this transaction.
|
|
@@ -3424,10 +3631,7 @@ type XChainLinearTransaction = {
|
|
|
3424
3631
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3425
3632
|
*/
|
|
3426
3633
|
timestamp: number;
|
|
3427
|
-
|
|
3428
|
-
* Type of transaction.
|
|
3429
|
-
*/
|
|
3430
|
-
txType: string;
|
|
3634
|
+
txType: XChainTransactionType;
|
|
3431
3635
|
/**
|
|
3432
3636
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3637
|
*/
|
|
@@ -3437,11 +3641,11 @@ type XChainLinearTransaction = {
|
|
|
3437
3641
|
/**
|
|
3438
3642
|
* Assets unlocked by inputs of this transaction.
|
|
3439
3643
|
*/
|
|
3440
|
-
amountUnlocked: Array<
|
|
3644
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3441
3645
|
/**
|
|
3442
3646
|
* Assets created by outputs of this transaction.
|
|
3443
3647
|
*/
|
|
3444
|
-
amountCreated: Array<
|
|
3648
|
+
amountCreated: Array<AssetAmount>;
|
|
3445
3649
|
/**
|
|
3446
3650
|
* Source chain for an atomic transaction.
|
|
3447
3651
|
*/
|
|
@@ -3451,7 +3655,7 @@ type XChainLinearTransaction = {
|
|
|
3451
3655
|
*/
|
|
3452
3656
|
destinationChain?: string;
|
|
3453
3657
|
/**
|
|
3454
|
-
*
|
|
3658
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3455
3659
|
*/
|
|
3456
3660
|
assetCreated?: XChainAssetDetails;
|
|
3457
3661
|
/**
|
|
@@ -3501,10 +3705,7 @@ type XChainNonLinearTransaction = {
|
|
|
3501
3705
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3502
3706
|
*/
|
|
3503
3707
|
timestamp: number;
|
|
3504
|
-
|
|
3505
|
-
* Type of transaction.
|
|
3506
|
-
*/
|
|
3507
|
-
txType: string;
|
|
3708
|
+
txType: XChainTransactionType;
|
|
3508
3709
|
/**
|
|
3509
3710
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3711
|
*/
|
|
@@ -3514,11 +3715,11 @@ type XChainNonLinearTransaction = {
|
|
|
3514
3715
|
/**
|
|
3515
3716
|
* Assets unlocked by inputs of this transaction.
|
|
3516
3717
|
*/
|
|
3517
|
-
amountUnlocked: Array<
|
|
3718
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3518
3719
|
/**
|
|
3519
3720
|
* Assets created by outputs of this transaction.
|
|
3520
3721
|
*/
|
|
3521
|
-
amountCreated: Array<
|
|
3722
|
+
amountCreated: Array<AssetAmount>;
|
|
3522
3723
|
/**
|
|
3523
3724
|
* Source chain for an atomic transaction.
|
|
3524
3725
|
*/
|
|
@@ -3528,7 +3729,7 @@ type XChainNonLinearTransaction = {
|
|
|
3528
3729
|
*/
|
|
3529
3730
|
destinationChain?: string;
|
|
3530
3731
|
/**
|
|
3531
|
-
*
|
|
3732
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3532
3733
|
*/
|
|
3533
3734
|
assetCreated?: XChainAssetDetails;
|
|
3534
3735
|
/**
|
|
@@ -3562,19 +3763,21 @@ declare enum PChainId {
|
|
|
3562
3763
|
|
|
3563
3764
|
declare enum PrimaryNetworkTxType {
|
|
3564
3765
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3766
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3767
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3768
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3769
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3770
|
IMPORT_TX = "ImportTx",
|
|
3574
3771
|
EXPORT_TX = "ExportTx",
|
|
3575
3772
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3576
|
-
|
|
3773
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3774
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3775
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3776
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3777
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3577
3778
|
BASE_TX = "BaseTx",
|
|
3779
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3780
|
+
UNKNOWN = "UNKNOWN",
|
|
3578
3781
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3579
3782
|
OPERATION_TX = "OperationTx"
|
|
3580
3783
|
}
|
|
@@ -3606,13 +3809,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3809
|
* List latest transactions
|
|
3607
3810
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3811
|
*
|
|
3609
|
-
* Transactions are filterable by addresses.
|
|
3812
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3610
3813
|
*
|
|
3611
3814
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3612
3815
|
* @returns any
|
|
3613
3816
|
* @throws ApiError
|
|
3614
3817
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3818
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3819
|
/**
|
|
3617
3820
|
* A primary network blockchain id or alias.
|
|
3618
3821
|
*/
|
|
@@ -3637,14 +3840,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3840
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3841
|
*/
|
|
3639
3842
|
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
3843
|
/**
|
|
3645
3844
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3845
|
*/
|
|
3647
3846
|
pageToken?: string;
|
|
3847
|
+
/**
|
|
3848
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3849
|
+
*/
|
|
3850
|
+
pageSize?: number;
|
|
3648
3851
|
/**
|
|
3649
3852
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3650
3853
|
*/
|
|
@@ -3656,7 +3859,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
3859
|
* @returns ListPChainTransactionsResponse
|
|
3657
3860
|
* @throws ApiError
|
|
3658
3861
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3862
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
3863
|
/**
|
|
3661
3864
|
* A primary network blockchain id or alias.
|
|
3662
3865
|
*/
|
|
@@ -3681,14 +3884,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
3884
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
3885
|
*/
|
|
3683
3886
|
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
3887
|
/**
|
|
3689
3888
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
3889
|
*/
|
|
3691
3890
|
pageToken?: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3893
|
+
*/
|
|
3894
|
+
pageSize?: number;
|
|
3692
3895
|
/**
|
|
3693
3896
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3694
3897
|
*/
|
|
@@ -3700,7 +3903,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
3903
|
* @returns ListXChainTransactionsResponse
|
|
3701
3904
|
* @throws ApiError
|
|
3702
3905
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
3907
|
/**
|
|
3705
3908
|
* A primary network blockchain id or alias.
|
|
3706
3909
|
*/
|
|
@@ -3725,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
3929
|
*/
|
|
3727
3930
|
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
3931
|
/**
|
|
3733
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
3933
|
*/
|
|
3735
3934
|
pageToken?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3937
|
+
*/
|
|
3938
|
+
pageSize?: number;
|
|
3736
3939
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
3940
|
}
|
|
3738
3941
|
|
|
@@ -3763,7 +3966,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
3966
|
* @returns any
|
|
3764
3967
|
* @throws ApiError
|
|
3765
3968
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3969
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
3970
|
/**
|
|
3768
3971
|
* A primary network blockchain id or alias.
|
|
3769
3972
|
*/
|
|
@@ -3776,14 +3979,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
3979
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3777
3980
|
*/
|
|
3778
3981
|
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
3982
|
/**
|
|
3784
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
3984
|
*/
|
|
3786
3985
|
pageToken?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3988
|
+
*/
|
|
3989
|
+
pageSize?: number;
|
|
3787
3990
|
/**
|
|
3788
3991
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
3992
|
*/
|
|
@@ -3828,7 +4031,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4031
|
* @returns ListXChainVerticesResponse
|
|
3829
4032
|
* @throws ApiError
|
|
3830
4033
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4034
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4035
|
/**
|
|
3833
4036
|
* A primary network blockchain id or alias.
|
|
3834
4037
|
*/
|
|
@@ -3837,14 +4040,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4040
|
* Either mainnet or a testnet.
|
|
3838
4041
|
*/
|
|
3839
4042
|
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
4043
|
/**
|
|
3845
4044
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4045
|
*/
|
|
3847
4046
|
pageToken?: string;
|
|
4047
|
+
/**
|
|
4048
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4049
|
+
*/
|
|
4050
|
+
pageSize?: number;
|
|
3848
4051
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4052
|
/**
|
|
3850
4053
|
* Get vertex
|
|
@@ -3872,7 +4075,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4075
|
* @returns ListXChainVerticesResponse
|
|
3873
4076
|
* @throws ApiError
|
|
3874
4077
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4078
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4079
|
/**
|
|
3877
4080
|
* The height of a vertex.
|
|
3878
4081
|
*/
|
|
@@ -3885,19 +4088,437 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4088
|
* Either mainnet or a testnet.
|
|
3886
4089
|
*/
|
|
3887
4090
|
network: Network;
|
|
4091
|
+
/**
|
|
4092
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4093
|
+
*/
|
|
4094
|
+
pageToken?: string;
|
|
3888
4095
|
/**
|
|
3889
4096
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3890
4097
|
*/
|
|
3891
4098
|
pageSize?: number;
|
|
4099
|
+
/**
|
|
4100
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4101
|
+
*/
|
|
4102
|
+
sortOrder?: SortOrder;
|
|
4103
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
type RpcErrorDto = {
|
|
4107
|
+
code: number;
|
|
4108
|
+
message: string;
|
|
4109
|
+
data?: Record<string, any>;
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
type RpcErrorResponseDto = {
|
|
4113
|
+
jsonrpc: string;
|
|
4114
|
+
id?: (string | number);
|
|
4115
|
+
error: RpcErrorDto;
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4118
|
+
type RpcRequestBodyDto = {
|
|
4119
|
+
method: string;
|
|
4120
|
+
params?: Record<string, any>;
|
|
4121
|
+
id?: (string | number);
|
|
4122
|
+
jsonrpc?: string;
|
|
4123
|
+
};
|
|
4124
|
+
|
|
4125
|
+
type RpcSuccessResponseDto = {
|
|
4126
|
+
jsonrpc: string;
|
|
4127
|
+
id?: (string | number);
|
|
4128
|
+
result: Record<string, any>;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
declare class RpcService {
|
|
4132
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4133
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4134
|
+
/**
|
|
4135
|
+
* Calls JSON-RPC method
|
|
4136
|
+
* Calls JSON-RPC method.
|
|
4137
|
+
* @returns any
|
|
4138
|
+
* @throws ApiError
|
|
4139
|
+
*/
|
|
4140
|
+
rpc({ chainId, requestBody, }: {
|
|
4141
|
+
/**
|
|
4142
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4143
|
+
*/
|
|
4144
|
+
chainId: string;
|
|
4145
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4146
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
type TeleporterDestinationTransaction = {
|
|
4150
|
+
txHash: string;
|
|
4151
|
+
timestamp: number;
|
|
4152
|
+
gasSpent: string;
|
|
4153
|
+
rewardRedeemer: string;
|
|
4154
|
+
delivererAddress: string;
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
type TeleporterReceipt = {
|
|
4158
|
+
receivedMessageNonce: string;
|
|
4159
|
+
relayerRewardAddress: string;
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
type TeleporterRewardDetails = {
|
|
4163
|
+
/**
|
|
4164
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4165
|
+
*/
|
|
4166
|
+
address: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* The contract name.
|
|
4169
|
+
*/
|
|
4170
|
+
name: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The contract symbol.
|
|
4173
|
+
*/
|
|
4174
|
+
symbol: string;
|
|
4175
|
+
/**
|
|
4176
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4177
|
+
*/
|
|
4178
|
+
decimals: number;
|
|
4179
|
+
/**
|
|
4180
|
+
* The logo uri for the address.
|
|
4181
|
+
*/
|
|
4182
|
+
logoUri?: string;
|
|
4183
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4184
|
+
/**
|
|
4185
|
+
* The token price, if available.
|
|
4186
|
+
*/
|
|
4187
|
+
price?: Money;
|
|
4188
|
+
value: string;
|
|
4189
|
+
};
|
|
4190
|
+
declare namespace TeleporterRewardDetails {
|
|
4191
|
+
enum ercType {
|
|
4192
|
+
ERC_20 = "ERC-20"
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4197
|
+
messageId: string;
|
|
4198
|
+
teleporterContractAddress: string;
|
|
4199
|
+
sourceBlockchainId: string;
|
|
4200
|
+
destinationBlockchainId: string;
|
|
4201
|
+
messageNonce: string;
|
|
4202
|
+
from: string;
|
|
4203
|
+
to: string;
|
|
4204
|
+
data?: string;
|
|
4205
|
+
messageExecuted: boolean;
|
|
4206
|
+
receipts: Array<TeleporterReceipt>;
|
|
4207
|
+
receiptDelivered: boolean;
|
|
4208
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4209
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4210
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4211
|
+
};
|
|
4212
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4213
|
+
enum status {
|
|
4214
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
type TeleporterSourceTransaction = {
|
|
4219
|
+
txHash: string;
|
|
4220
|
+
timestamp: number;
|
|
4221
|
+
gasSpent: string;
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
type DeliveredTeleporterMessage = {
|
|
4225
|
+
messageId: string;
|
|
4226
|
+
teleporterContractAddress: string;
|
|
4227
|
+
sourceBlockchainId: string;
|
|
4228
|
+
destinationBlockchainId: string;
|
|
4229
|
+
messageNonce: string;
|
|
4230
|
+
from: string;
|
|
4231
|
+
to: string;
|
|
4232
|
+
data?: string;
|
|
4233
|
+
messageExecuted: boolean;
|
|
4234
|
+
receipts: Array<TeleporterReceipt>;
|
|
4235
|
+
receiptDelivered: boolean;
|
|
4236
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4237
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4238
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4239
|
+
status: DeliveredTeleporterMessage.status;
|
|
4240
|
+
};
|
|
4241
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4242
|
+
enum status {
|
|
4243
|
+
DELIVERED = "delivered"
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
type NextPageToken = {
|
|
4248
|
+
/**
|
|
4249
|
+
* 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.
|
|
4250
|
+
*/
|
|
4251
|
+
nextPageToken?: string;
|
|
4252
|
+
};
|
|
4253
|
+
|
|
4254
|
+
type PendingTeleporterMessage = {
|
|
4255
|
+
messageId: string;
|
|
4256
|
+
teleporterContractAddress: string;
|
|
4257
|
+
sourceBlockchainId: string;
|
|
4258
|
+
destinationBlockchainId: string;
|
|
4259
|
+
messageNonce: string;
|
|
4260
|
+
from: string;
|
|
4261
|
+
to: string;
|
|
4262
|
+
data?: string;
|
|
4263
|
+
messageExecuted: boolean;
|
|
4264
|
+
receipts: Array<TeleporterReceipt>;
|
|
4265
|
+
receiptDelivered: boolean;
|
|
4266
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4267
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4268
|
+
status: PendingTeleporterMessage.status;
|
|
4269
|
+
};
|
|
4270
|
+
declare namespace PendingTeleporterMessage {
|
|
4271
|
+
enum status {
|
|
4272
|
+
PENDING = "pending"
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
declare class TeleporterService {
|
|
4277
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4278
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4279
|
+
/**
|
|
4280
|
+
* Get a teleporter message
|
|
4281
|
+
* Gets a teleporter message by message ID.
|
|
4282
|
+
* @returns any
|
|
4283
|
+
* @throws ApiError
|
|
4284
|
+
*/
|
|
4285
|
+
getTeleporterMessage({ messageId, }: {
|
|
4286
|
+
/**
|
|
4287
|
+
* The message ID of the teleporter message.
|
|
4288
|
+
*/
|
|
4289
|
+
messageId: string;
|
|
4290
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4291
|
+
/**
|
|
4292
|
+
* List teleporter messages
|
|
4293
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4294
|
+
* @returns any
|
|
4295
|
+
* @throws ApiError
|
|
4296
|
+
*/
|
|
4297
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
3892
4298
|
/**
|
|
3893
4299
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4300
|
*/
|
|
3895
4301
|
pageToken?: string;
|
|
3896
4302
|
/**
|
|
3897
|
-
* The
|
|
4303
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
4304
|
*/
|
|
3899
|
-
|
|
3900
|
-
|
|
4305
|
+
pageSize?: number;
|
|
4306
|
+
/**
|
|
4307
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4308
|
+
*/
|
|
4309
|
+
sourceBlockchainId?: string;
|
|
4310
|
+
/**
|
|
4311
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4312
|
+
*/
|
|
4313
|
+
destinationBlockchainId?: string;
|
|
4314
|
+
/**
|
|
4315
|
+
* The address of the recipient of the teleporter message.
|
|
4316
|
+
*/
|
|
4317
|
+
to?: string;
|
|
4318
|
+
/**
|
|
4319
|
+
* The address of the sender of the teleporter message.
|
|
4320
|
+
*/
|
|
4321
|
+
from?: string;
|
|
4322
|
+
}): CancelablePromise<NextPageToken>;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
type AddressesChangeRequest = {
|
|
4326
|
+
/**
|
|
4327
|
+
* Ethereum address(es) for the address_activity event type
|
|
4328
|
+
*/
|
|
4329
|
+
addresses: Array<any[]>;
|
|
4330
|
+
};
|
|
4331
|
+
|
|
4332
|
+
type AddressActivityMetadata = {
|
|
4333
|
+
/**
|
|
4334
|
+
* Ethereum address(es) for the address_activity event type
|
|
4335
|
+
*/
|
|
4336
|
+
addresses: Array<any[]>;
|
|
4337
|
+
/**
|
|
4338
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4339
|
+
*/
|
|
4340
|
+
eventSignatures?: Array<string>;
|
|
4341
|
+
};
|
|
4342
|
+
|
|
4343
|
+
declare enum EventType {
|
|
4344
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
declare enum WebhookStatusType {
|
|
4348
|
+
ACTIVE = "active",
|
|
4349
|
+
INACTIVE = "inactive"
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
type WebhookResponse = {
|
|
4353
|
+
id: string;
|
|
4354
|
+
eventType: EventType;
|
|
4355
|
+
metadata: AddressActivityMetadata;
|
|
4356
|
+
/**
|
|
4357
|
+
* Whether to include traces in the webhook payload.
|
|
4358
|
+
*/
|
|
4359
|
+
includeInternalTxs?: boolean;
|
|
4360
|
+
/**
|
|
4361
|
+
* Whether to include logs in the webhook payload.
|
|
4362
|
+
*/
|
|
4363
|
+
includeLogs?: boolean;
|
|
4364
|
+
url: string;
|
|
4365
|
+
chainId: string;
|
|
4366
|
+
status: WebhookStatusType;
|
|
4367
|
+
createdAt: number;
|
|
4368
|
+
name: string;
|
|
4369
|
+
description: string;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type ListWebhooksResponse = {
|
|
4373
|
+
/**
|
|
4374
|
+
* 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.
|
|
4375
|
+
*/
|
|
4376
|
+
nextPageToken?: string;
|
|
4377
|
+
webhooks: Array<WebhookResponse>;
|
|
4378
|
+
};
|
|
4379
|
+
|
|
4380
|
+
type RegisterWebhookRequest = {
|
|
4381
|
+
url: string;
|
|
4382
|
+
chainId: string;
|
|
4383
|
+
eventType: EventType;
|
|
4384
|
+
metadata: AddressActivityMetadata;
|
|
4385
|
+
/**
|
|
4386
|
+
* Whether to include traces in the webhook payload.
|
|
4387
|
+
*/
|
|
4388
|
+
includeInternalTxs?: boolean;
|
|
4389
|
+
/**
|
|
4390
|
+
* Whether to include logs in the webhook payload.
|
|
4391
|
+
*/
|
|
4392
|
+
includeLogs?: boolean;
|
|
4393
|
+
};
|
|
4394
|
+
|
|
4395
|
+
type SharedSecretsResponse = {
|
|
4396
|
+
secret: string;
|
|
4397
|
+
};
|
|
4398
|
+
|
|
4399
|
+
type UpdateWebhookRequest = {
|
|
4400
|
+
name?: string;
|
|
4401
|
+
description?: string;
|
|
4402
|
+
url?: string;
|
|
4403
|
+
status?: WebhookStatusType;
|
|
4404
|
+
includeInternalTxs?: boolean;
|
|
4405
|
+
includeLogs?: boolean;
|
|
4406
|
+
};
|
|
4407
|
+
|
|
4408
|
+
declare enum WebhookStatus {
|
|
4409
|
+
ACTIVE = "active",
|
|
4410
|
+
INACTIVE = "inactive"
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
declare class WebhooksService {
|
|
4414
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4415
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4416
|
+
/**
|
|
4417
|
+
* Register a webhook
|
|
4418
|
+
* Registers a new webhook.
|
|
4419
|
+
* @returns WebhookResponse
|
|
4420
|
+
* @throws ApiError
|
|
4421
|
+
*/
|
|
4422
|
+
registerWebhook({ requestBody, }: {
|
|
4423
|
+
requestBody: RegisterWebhookRequest;
|
|
4424
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4425
|
+
/**
|
|
4426
|
+
* List webhooks
|
|
4427
|
+
* Lists webhooks for the user.
|
|
4428
|
+
* @returns ListWebhooksResponse
|
|
4429
|
+
* @throws ApiError
|
|
4430
|
+
*/
|
|
4431
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4432
|
+
/**
|
|
4433
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4434
|
+
*/
|
|
4435
|
+
pageToken?: string;
|
|
4436
|
+
/**
|
|
4437
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4438
|
+
*/
|
|
4439
|
+
pageSize?: number;
|
|
4440
|
+
/**
|
|
4441
|
+
* 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.
|
|
4442
|
+
*/
|
|
4443
|
+
status?: WebhookStatus;
|
|
4444
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4445
|
+
/**
|
|
4446
|
+
* Get a webhook by ID
|
|
4447
|
+
* Retrieves a webhook by ID.
|
|
4448
|
+
* @returns WebhookResponse
|
|
4449
|
+
* @throws ApiError
|
|
4450
|
+
*/
|
|
4451
|
+
getWebhook({ id, }: {
|
|
4452
|
+
/**
|
|
4453
|
+
* The webhook identifier.
|
|
4454
|
+
*/
|
|
4455
|
+
id: string;
|
|
4456
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4457
|
+
/**
|
|
4458
|
+
* Deactivate a webhook
|
|
4459
|
+
* Deactivates a webhook by ID.
|
|
4460
|
+
* @returns WebhookResponse
|
|
4461
|
+
* @throws ApiError
|
|
4462
|
+
*/
|
|
4463
|
+
deactivateWebhook({ id, }: {
|
|
4464
|
+
/**
|
|
4465
|
+
* The webhook identifier.
|
|
4466
|
+
*/
|
|
4467
|
+
id: string;
|
|
4468
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4469
|
+
/**
|
|
4470
|
+
* Update a webhook
|
|
4471
|
+
* Updates an existing webhook.
|
|
4472
|
+
* @returns WebhookResponse
|
|
4473
|
+
* @throws ApiError
|
|
4474
|
+
*/
|
|
4475
|
+
updateWebhook({ id, requestBody, }: {
|
|
4476
|
+
/**
|
|
4477
|
+
* The webhook identifier.
|
|
4478
|
+
*/
|
|
4479
|
+
id: string;
|
|
4480
|
+
requestBody: UpdateWebhookRequest;
|
|
4481
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4482
|
+
/**
|
|
4483
|
+
* Generate a shared secret
|
|
4484
|
+
* Generates a new shared secret.
|
|
4485
|
+
* @returns SharedSecretsResponse
|
|
4486
|
+
* @throws ApiError
|
|
4487
|
+
*/
|
|
4488
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4489
|
+
/**
|
|
4490
|
+
* Get a shared secret
|
|
4491
|
+
* Get a previously generated shared secret.
|
|
4492
|
+
* @returns SharedSecretsResponse
|
|
4493
|
+
* @throws ApiError
|
|
4494
|
+
*/
|
|
4495
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4496
|
+
/**
|
|
4497
|
+
* Add address(es) to a webhook
|
|
4498
|
+
* Adding address(es) to a given webhook.
|
|
4499
|
+
* @returns WebhookResponse
|
|
4500
|
+
* @throws ApiError
|
|
4501
|
+
*/
|
|
4502
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4503
|
+
/**
|
|
4504
|
+
* The webhook identifier.
|
|
4505
|
+
*/
|
|
4506
|
+
id: string;
|
|
4507
|
+
requestBody: AddressesChangeRequest;
|
|
4508
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4509
|
+
/**
|
|
4510
|
+
* Remove address(es) from a webhook
|
|
4511
|
+
* Removing address(es) from a given webhook.
|
|
4512
|
+
* @returns WebhookResponse
|
|
4513
|
+
* @throws ApiError
|
|
4514
|
+
*/
|
|
4515
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4516
|
+
/**
|
|
4517
|
+
* The webhook identifier.
|
|
4518
|
+
*/
|
|
4519
|
+
id: string;
|
|
4520
|
+
requestBody: AddressesChangeRequest;
|
|
4521
|
+
}): CancelablePromise<WebhookResponse>;
|
|
3901
4522
|
}
|
|
3902
4523
|
|
|
3903
4524
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3918,6 +4539,9 @@ declare class Glacier {
|
|
|
3918
4539
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3919
4540
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3920
4541
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4542
|
+
readonly rpc: RpcService;
|
|
4543
|
+
readonly teleporter: TeleporterService;
|
|
4544
|
+
readonly webhooks: WebhooksService;
|
|
3921
4545
|
readonly request: BaseHttpRequest;
|
|
3922
4546
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3923
4547
|
}
|
|
@@ -3939,4 +4563,4 @@ declare class ApiError extends Error {
|
|
|
3939
4563
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4564
|
}
|
|
3941
4565
|
|
|
3942
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4566
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|