@avalabs/glacier-sdk 2.8.0-canary.ea6afdd.0 → 2.8.0-canary.ebad486.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 +975 -417
- package/dist/index.js +414 -164
- 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/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- 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 +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- 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 +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +35 -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,15 @@ type GetChainResponse = {
|
|
|
691
682
|
networkToken: NetworkToken;
|
|
692
683
|
chainLogoUri?: string;
|
|
693
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
694
686
|
};
|
|
695
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing"
|
|
690
|
+
}
|
|
691
|
+
|
|
696
692
|
type ChainInfo = {
|
|
697
693
|
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
694
|
status: ChainStatus;
|
|
702
695
|
chainName: string;
|
|
703
696
|
description: string;
|
|
@@ -713,6 +706,7 @@ type ChainInfo = {
|
|
|
713
706
|
networkToken: NetworkToken;
|
|
714
707
|
chainLogoUri?: string;
|
|
715
708
|
private?: boolean;
|
|
709
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
716
710
|
};
|
|
717
711
|
|
|
718
712
|
type ListChainsResponse = {
|
|
@@ -733,11 +727,15 @@ declare class EvmChainsService {
|
|
|
733
727
|
* @returns ListChainsResponse
|
|
734
728
|
* @throws ApiError
|
|
735
729
|
*/
|
|
736
|
-
supportedChains({ network, }: {
|
|
730
|
+
supportedChains({ network, feature, }: {
|
|
737
731
|
/**
|
|
738
732
|
* mainnet or testnet.
|
|
739
733
|
*/
|
|
740
734
|
network?: NetworkType;
|
|
735
|
+
/**
|
|
736
|
+
* Filter by feature.
|
|
737
|
+
*/
|
|
738
|
+
feature?: GlacierApiFeature;
|
|
741
739
|
}): CancelablePromise<ListChainsResponse>;
|
|
742
740
|
/**
|
|
743
741
|
* Get chain information
|
|
@@ -747,7 +745,7 @@ declare class EvmChainsService {
|
|
|
747
745
|
*/
|
|
748
746
|
getChainInfo({ chainId, }: {
|
|
749
747
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
748
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
749
|
*/
|
|
752
750
|
chainId: string;
|
|
753
751
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1040,7 @@ declare class EvmContractsService {
|
|
|
1042
1040
|
*/
|
|
1043
1041
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1042
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1043
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1044
|
*/
|
|
1047
1045
|
chainId: string;
|
|
1048
1046
|
/**
|
|
@@ -1058,7 +1056,7 @@ declare class EvmContractsService {
|
|
|
1058
1056
|
*/
|
|
1059
1057
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1058
|
/**
|
|
1061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1059
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
1060
|
*/
|
|
1063
1061
|
chainId: string;
|
|
1064
1062
|
/**
|
|
@@ -1192,6 +1190,9 @@ type Erc721TransferDetails = {
|
|
|
1192
1190
|
erc721Token: Erc721Token;
|
|
1193
1191
|
};
|
|
1194
1192
|
|
|
1193
|
+
/**
|
|
1194
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1195
|
+
*/
|
|
1195
1196
|
declare enum TransactionMethodType {
|
|
1196
1197
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1197
1198
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1199,9 +1200,6 @@ declare enum TransactionMethodType {
|
|
|
1199
1200
|
}
|
|
1200
1201
|
|
|
1201
1202
|
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
1203
|
callType: TransactionMethodType;
|
|
1206
1204
|
/**
|
|
1207
1205
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1562,7 +1560,7 @@ type ListTransfersResponse = {
|
|
|
1562
1560
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1563
1561
|
*/
|
|
1564
1562
|
nextPageToken?: string;
|
|
1565
|
-
transfers:
|
|
1563
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1566
1564
|
};
|
|
1567
1565
|
|
|
1568
1566
|
declare enum SortOrder {
|
|
@@ -1586,7 +1584,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1584
|
*/
|
|
1587
1585
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1586
|
/**
|
|
1589
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1587
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1590
1588
|
*/
|
|
1591
1589
|
chainId: string;
|
|
1592
1590
|
/**
|
|
@@ -1604,23 +1602,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1602
|
* @returns ListContractsResponse
|
|
1605
1603
|
* @throws ApiError
|
|
1606
1604
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1605
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1606
|
/**
|
|
1609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1607
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1610
1608
|
*/
|
|
1611
1609
|
chainId: string;
|
|
1612
1610
|
/**
|
|
1613
1611
|
* A wallet address.
|
|
1614
1612
|
*/
|
|
1615
1613
|
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
1614
|
/**
|
|
1621
1615
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1616
|
*/
|
|
1623
1617
|
pageToken?: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1620
|
+
*/
|
|
1621
|
+
pageSize?: number;
|
|
1624
1622
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1623
|
/**
|
|
1626
1624
|
* List ERC transfers
|
|
@@ -1628,25 +1626,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1626
|
* @returns ListTransfersResponse
|
|
1629
1627
|
* @throws ApiError
|
|
1630
1628
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1629
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1630
|
/**
|
|
1633
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1631
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1634
1632
|
*/
|
|
1635
1633
|
chainId: string;
|
|
1636
1634
|
/**
|
|
1637
1635
|
* A wallet address.
|
|
1638
1636
|
*/
|
|
1639
1637
|
address: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1640
|
+
*/
|
|
1640
1641
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1642
|
/**
|
|
1643
|
-
* The
|
|
1643
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1644
1644
|
*/
|
|
1645
|
-
|
|
1645
|
+
endBlock?: number;
|
|
1646
1646
|
/**
|
|
1647
1647
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1648
|
*/
|
|
1649
1649
|
pageToken?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1652
|
+
*/
|
|
1653
|
+
pageSize?: number;
|
|
1650
1654
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1655
|
/**
|
|
1652
1656
|
* List transactions
|
|
@@ -1656,24 +1660,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1660
|
* @returns ListTransactionDetailsResponse
|
|
1657
1661
|
* @throws ApiError
|
|
1658
1662
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1663
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1664
|
/**
|
|
1661
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1665
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1662
1666
|
*/
|
|
1663
1667
|
chainId: string;
|
|
1664
1668
|
/**
|
|
1665
1669
|
* A wallet address.
|
|
1666
1670
|
*/
|
|
1667
1671
|
address: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1674
|
+
*/
|
|
1675
|
+
pageToken?: string;
|
|
1668
1676
|
/**
|
|
1669
1677
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1678
|
*/
|
|
1671
1679
|
pageSize?: number;
|
|
1672
1680
|
/**
|
|
1673
|
-
*
|
|
1681
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1674
1682
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
1683
|
startBlock?: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1686
|
+
*/
|
|
1677
1687
|
endBlock?: number;
|
|
1678
1688
|
/**
|
|
1679
1689
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -1686,25 +1696,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1696
|
* @returns ListNativeTransactionsResponse
|
|
1687
1697
|
* @throws ApiError
|
|
1688
1698
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1699
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1700
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1701
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1702
|
*/
|
|
1693
1703
|
chainId: string;
|
|
1694
1704
|
/**
|
|
1695
1705
|
* A wallet address.
|
|
1696
1706
|
*/
|
|
1697
1707
|
address: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1710
|
+
*/
|
|
1698
1711
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1712
|
/**
|
|
1701
|
-
* The
|
|
1713
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1702
1714
|
*/
|
|
1703
|
-
|
|
1715
|
+
endBlock?: number;
|
|
1704
1716
|
/**
|
|
1705
1717
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1718
|
*/
|
|
1707
1719
|
pageToken?: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1722
|
+
*/
|
|
1723
|
+
pageSize?: number;
|
|
1708
1724
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1725
|
/**
|
|
1710
1726
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1728,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1728
|
* @returns ListErc20TransactionsResponse
|
|
1713
1729
|
* @throws ApiError
|
|
1714
1730
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1731
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1732
|
/**
|
|
1717
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1733
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1718
1734
|
*/
|
|
1719
1735
|
chainId: string;
|
|
1720
1736
|
/**
|
|
1721
1737
|
* A wallet address.
|
|
1722
1738
|
*/
|
|
1723
1739
|
address: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1742
|
+
*/
|
|
1724
1743
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1744
|
/**
|
|
1727
|
-
* The
|
|
1745
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1728
1746
|
*/
|
|
1729
|
-
|
|
1747
|
+
endBlock?: number;
|
|
1730
1748
|
/**
|
|
1731
1749
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1750
|
*/
|
|
1733
1751
|
pageToken?: string;
|
|
1752
|
+
/**
|
|
1753
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1754
|
+
*/
|
|
1755
|
+
pageSize?: number;
|
|
1734
1756
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1757
|
/**
|
|
1736
1758
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1760,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1760
|
* @returns ListErc721TransactionsResponse
|
|
1739
1761
|
* @throws ApiError
|
|
1740
1762
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1763
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1764
|
/**
|
|
1743
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1744
1766
|
*/
|
|
1745
1767
|
chainId: string;
|
|
1746
1768
|
/**
|
|
1747
1769
|
* A wallet address.
|
|
1748
1770
|
*/
|
|
1749
1771
|
address: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1774
|
+
*/
|
|
1750
1775
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1776
|
/**
|
|
1753
|
-
* The
|
|
1777
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1754
1778
|
*/
|
|
1755
|
-
|
|
1779
|
+
endBlock?: number;
|
|
1756
1780
|
/**
|
|
1757
1781
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1782
|
*/
|
|
1759
1783
|
pageToken?: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1786
|
+
*/
|
|
1787
|
+
pageSize?: number;
|
|
1760
1788
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1789
|
/**
|
|
1762
1790
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1792,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1792
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1793
|
* @throws ApiError
|
|
1766
1794
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1795
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1796
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1797
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1798
|
*/
|
|
1771
1799
|
chainId: string;
|
|
1772
1800
|
/**
|
|
1773
1801
|
* A wallet address.
|
|
1774
1802
|
*/
|
|
1775
1803
|
address: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1806
|
+
*/
|
|
1776
1807
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1808
|
/**
|
|
1779
|
-
* The
|
|
1809
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1780
1810
|
*/
|
|
1781
|
-
|
|
1811
|
+
endBlock?: number;
|
|
1782
1812
|
/**
|
|
1783
1813
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1814
|
*/
|
|
1785
1815
|
pageToken?: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1818
|
+
*/
|
|
1819
|
+
pageSize?: number;
|
|
1786
1820
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1821
|
/**
|
|
1788
1822
|
* List internal transactions
|
|
@@ -1792,25 +1826,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1826
|
* @returns ListInternalTransactionsResponse
|
|
1793
1827
|
* @throws ApiError
|
|
1794
1828
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1829
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1830
|
/**
|
|
1797
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1831
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
1832
|
*/
|
|
1799
1833
|
chainId: string;
|
|
1800
1834
|
/**
|
|
1801
1835
|
* A wallet address.
|
|
1802
1836
|
*/
|
|
1803
1837
|
address: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1840
|
+
*/
|
|
1804
1841
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1842
|
/**
|
|
1807
|
-
* The
|
|
1843
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1808
1844
|
*/
|
|
1809
|
-
|
|
1845
|
+
endBlock?: number;
|
|
1810
1846
|
/**
|
|
1811
1847
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1848
|
*/
|
|
1813
1849
|
pageToken?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1852
|
+
*/
|
|
1853
|
+
pageSize?: number;
|
|
1814
1854
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1855
|
/**
|
|
1816
1856
|
* Get transaction
|
|
@@ -1820,7 +1860,7 @@ declare class EvmTransactionsService {
|
|
|
1820
1860
|
*/
|
|
1821
1861
|
getTransaction({ chainId, txHash, }: {
|
|
1822
1862
|
/**
|
|
1823
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1863
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1824
1864
|
*/
|
|
1825
1865
|
chainId: string;
|
|
1826
1866
|
/**
|
|
@@ -1836,7 +1876,7 @@ declare class EvmTransactionsService {
|
|
|
1836
1876
|
*/
|
|
1837
1877
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
1878
|
/**
|
|
1839
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1879
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1840
1880
|
*/
|
|
1841
1881
|
chainId: string;
|
|
1842
1882
|
/**
|
|
@@ -1850,19 +1890,19 @@ declare class EvmTransactionsService {
|
|
|
1850
1890
|
* @returns ListNativeTransactionsResponse
|
|
1851
1891
|
* @throws ApiError
|
|
1852
1892
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
1893
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
1894
|
/**
|
|
1855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1895
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1856
1896
|
*/
|
|
1857
1897
|
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
1898
|
/**
|
|
1863
1899
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
1900
|
*/
|
|
1865
1901
|
pageToken?: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1904
|
+
*/
|
|
1905
|
+
pageSize?: number;
|
|
1866
1906
|
/**
|
|
1867
1907
|
* A status filter for listed transactions.
|
|
1868
1908
|
*/
|
|
@@ -1891,7 +1931,7 @@ type ListNftTokens = {
|
|
|
1891
1931
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1892
1932
|
*/
|
|
1893
1933
|
nextPageToken?: string;
|
|
1894
|
-
tokens:
|
|
1934
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1895
1935
|
};
|
|
1896
1936
|
|
|
1897
1937
|
declare class NfTsService {
|
|
@@ -1905,7 +1945,7 @@ declare class NfTsService {
|
|
|
1905
1945
|
*/
|
|
1906
1946
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1907
1947
|
/**
|
|
1908
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1948
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1909
1949
|
*/
|
|
1910
1950
|
chainId: string;
|
|
1911
1951
|
/**
|
|
@@ -1923,23 +1963,23 @@ declare class NfTsService {
|
|
|
1923
1963
|
* @returns ListNftTokens
|
|
1924
1964
|
* @throws ApiError
|
|
1925
1965
|
*/
|
|
1926
|
-
listTokens({ chainId, address,
|
|
1966
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1927
1967
|
/**
|
|
1928
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1968
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1929
1969
|
*/
|
|
1930
1970
|
chainId: string;
|
|
1931
1971
|
/**
|
|
1932
1972
|
* Contract address on the relevant chain.
|
|
1933
1973
|
*/
|
|
1934
1974
|
address: string;
|
|
1935
|
-
/**
|
|
1936
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1937
|
-
*/
|
|
1938
|
-
pageSize?: number;
|
|
1939
1975
|
/**
|
|
1940
1976
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1941
1977
|
*/
|
|
1942
1978
|
pageToken?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1981
|
+
*/
|
|
1982
|
+
pageSize?: number;
|
|
1943
1983
|
}): CancelablePromise<ListNftTokens>;
|
|
1944
1984
|
/**
|
|
1945
1985
|
* Get token details
|
|
@@ -1949,7 +1989,7 @@ declare class NfTsService {
|
|
|
1949
1989
|
*/
|
|
1950
1990
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1951
1991
|
/**
|
|
1952
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1992
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1953
1993
|
*/
|
|
1954
1994
|
chainId: string;
|
|
1955
1995
|
/**
|
|
@@ -1968,8 +2008,12 @@ type EvmNetworkOptions = {
|
|
|
1968
2008
|
includeChains: Array<string>;
|
|
1969
2009
|
};
|
|
1970
2010
|
|
|
2011
|
+
declare enum EVMOperationType {
|
|
2012
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1971
2015
|
type CreateEvmTransactionExportRequest = {
|
|
1972
|
-
type:
|
|
2016
|
+
type: EVMOperationType;
|
|
1973
2017
|
firstDate: string;
|
|
1974
2018
|
lastDate: string;
|
|
1975
2019
|
/**
|
|
@@ -1982,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1982
2026
|
endDate: string;
|
|
1983
2027
|
options: EvmNetworkOptions;
|
|
1984
2028
|
};
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2029
|
+
|
|
2030
|
+
declare enum PrimaryNetworkOperationType {
|
|
2031
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1989
2034
|
}
|
|
1990
2035
|
|
|
1991
2036
|
type PrimaryNetworkOptions = {
|
|
1992
|
-
addresses
|
|
2037
|
+
addresses?: Array<string>;
|
|
1993
2038
|
cChainEvmAddresses?: Array<string>;
|
|
1994
2039
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1995
2040
|
};
|
|
1996
2041
|
|
|
1997
2042
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1998
|
-
type:
|
|
2043
|
+
type: PrimaryNetworkOperationType;
|
|
1999
2044
|
firstDate: string;
|
|
2000
2045
|
lastDate: string;
|
|
2001
2046
|
/**
|
|
@@ -2008,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2008
2053
|
endDate: string;
|
|
2009
2054
|
options: PrimaryNetworkOptions;
|
|
2010
2055
|
};
|
|
2011
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2012
|
-
enum type {
|
|
2013
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
2056
|
|
|
2017
2057
|
declare enum OperationStatus {
|
|
2018
2058
|
RUNNING = "RUNNING",
|
|
@@ -2022,8 +2062,10 @@ declare enum OperationStatus {
|
|
|
2022
2062
|
}
|
|
2023
2063
|
|
|
2024
2064
|
declare enum OperationType {
|
|
2025
|
-
|
|
2026
|
-
|
|
2065
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2068
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2027
2069
|
}
|
|
2028
2070
|
|
|
2029
2071
|
declare enum OperationStatusCode {
|
|
@@ -2215,13 +2257,44 @@ type BlockchainInfo = {
|
|
|
2215
2257
|
blockchainId: string;
|
|
2216
2258
|
};
|
|
2217
2259
|
|
|
2260
|
+
type SubnetOwnershipInfo = {
|
|
2261
|
+
/**
|
|
2262
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2263
|
+
*/
|
|
2264
|
+
locktime: number;
|
|
2265
|
+
/**
|
|
2266
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2267
|
+
*/
|
|
2268
|
+
threshold: number;
|
|
2269
|
+
/**
|
|
2270
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2271
|
+
*/
|
|
2272
|
+
addresses: Array<string>;
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2218
2275
|
type Subnet = {
|
|
2219
2276
|
createBlockTimestamp: number;
|
|
2220
2277
|
createBlockIndex: string;
|
|
2221
2278
|
subnetId: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2281
|
+
* @deprecated
|
|
2282
|
+
*/
|
|
2222
2283
|
ownerAddresses: Array<string>;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2223
2288
|
threshold: number;
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2224
2293
|
locktime: number;
|
|
2294
|
+
/**
|
|
2295
|
+
* Latest subnet owner details for this Subnet.
|
|
2296
|
+
*/
|
|
2297
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2225
2298
|
blockchains: Array<BlockchainInfo>;
|
|
2226
2299
|
};
|
|
2227
2300
|
|
|
@@ -2317,6 +2390,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2317
2390
|
}
|
|
2318
2391
|
}
|
|
2319
2392
|
|
|
2393
|
+
type RemovedValidatorDetails = {
|
|
2394
|
+
txHash: string;
|
|
2395
|
+
nodeId: string;
|
|
2396
|
+
subnetId: string;
|
|
2397
|
+
amountStaked: string;
|
|
2398
|
+
delegationFee?: string;
|
|
2399
|
+
startTimestamp: number;
|
|
2400
|
+
endTimestamp: number;
|
|
2401
|
+
removeTxHash: string;
|
|
2402
|
+
removeTimestamp: number;
|
|
2403
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2404
|
+
};
|
|
2405
|
+
declare namespace RemovedValidatorDetails {
|
|
2406
|
+
enum validationStatus {
|
|
2407
|
+
REMOVED = "removed"
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2320
2411
|
type ListValidatorDetailsResponse = {
|
|
2321
2412
|
/**
|
|
2322
2413
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2325,7 +2416,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2325
2416
|
/**
|
|
2326
2417
|
* The list of validator Details.
|
|
2327
2418
|
*/
|
|
2328
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2419
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2329
2420
|
};
|
|
2330
2421
|
|
|
2331
2422
|
declare enum Network {
|
|
@@ -2336,7 +2427,24 @@ declare enum Network {
|
|
|
2336
2427
|
declare enum ValidationStatusType {
|
|
2337
2428
|
COMPLETED = "completed",
|
|
2338
2429
|
ACTIVE = "active",
|
|
2339
|
-
PENDING = "pending"
|
|
2430
|
+
PENDING = "pending",
|
|
2431
|
+
REMOVED = "removed"
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2436
|
+
*/
|
|
2437
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2438
|
+
FIXED = "fixed",
|
|
2439
|
+
VARIABLE = "variable"
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2444
|
+
*/
|
|
2445
|
+
declare enum PrimaryNetworkAssetType {
|
|
2446
|
+
SECP256K1 = "secp256k1",
|
|
2447
|
+
NFT = "nft"
|
|
2340
2448
|
}
|
|
2341
2449
|
|
|
2342
2450
|
type XChainAssetDetails = {
|
|
@@ -2356,18 +2464,12 @@ type XChainAssetDetails = {
|
|
|
2356
2464
|
* Denomination of this asset to represent fungibility.
|
|
2357
2465
|
*/
|
|
2358
2466
|
denomination: number;
|
|
2359
|
-
|
|
2360
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2361
|
-
*/
|
|
2362
|
-
type: string;
|
|
2467
|
+
type: PrimaryNetworkAssetType;
|
|
2363
2468
|
/**
|
|
2364
2469
|
* Timestamp in seconds this asset was created on.
|
|
2365
2470
|
*/
|
|
2366
2471
|
createdAtTimestamp: number;
|
|
2367
|
-
|
|
2368
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2369
|
-
*/
|
|
2370
|
-
cap: string;
|
|
2472
|
+
cap: PrimaryNetworkAssetCap;
|
|
2371
2473
|
};
|
|
2372
2474
|
|
|
2373
2475
|
declare enum XChainId {
|
|
@@ -2433,19 +2535,19 @@ declare class PrimaryNetworkService {
|
|
|
2433
2535
|
* @returns ListBlockchainsResponse
|
|
2434
2536
|
* @throws ApiError
|
|
2435
2537
|
*/
|
|
2436
|
-
listBlockchains({ network,
|
|
2538
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2437
2539
|
/**
|
|
2438
2540
|
* Either mainnet or a testnet.
|
|
2439
2541
|
*/
|
|
2440
2542
|
network: Network;
|
|
2441
|
-
/**
|
|
2442
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2443
|
-
*/
|
|
2444
|
-
pageSize?: number;
|
|
2445
2543
|
/**
|
|
2446
2544
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2447
2545
|
*/
|
|
2448
2546
|
pageToken?: string;
|
|
2547
|
+
/**
|
|
2548
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2549
|
+
*/
|
|
2550
|
+
pageSize?: number;
|
|
2449
2551
|
/**
|
|
2450
2552
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2451
2553
|
*/
|
|
@@ -2457,19 +2559,19 @@ declare class PrimaryNetworkService {
|
|
|
2457
2559
|
* @returns ListSubnetsResponse
|
|
2458
2560
|
* @throws ApiError
|
|
2459
2561
|
*/
|
|
2460
|
-
listSubnets({ network,
|
|
2562
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2461
2563
|
/**
|
|
2462
2564
|
* Either mainnet or a testnet.
|
|
2463
2565
|
*/
|
|
2464
2566
|
network: Network;
|
|
2465
|
-
/**
|
|
2466
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2467
|
-
*/
|
|
2468
|
-
pageSize?: number;
|
|
2469
2567
|
/**
|
|
2470
2568
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2471
2569
|
*/
|
|
2472
2570
|
pageToken?: string;
|
|
2571
|
+
/**
|
|
2572
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2573
|
+
*/
|
|
2574
|
+
pageSize?: number;
|
|
2473
2575
|
/**
|
|
2474
2576
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2475
2577
|
*/
|
|
@@ -2481,59 +2583,59 @@ declare class PrimaryNetworkService {
|
|
|
2481
2583
|
* @returns ListValidatorDetailsResponse
|
|
2482
2584
|
* @throws ApiError
|
|
2483
2585
|
*/
|
|
2484
|
-
listValidators({ network, pageSize,
|
|
2586
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2485
2587
|
/**
|
|
2486
2588
|
* Either mainnet or a testnet.
|
|
2487
2589
|
*/
|
|
2488
2590
|
network: Network;
|
|
2591
|
+
/**
|
|
2592
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2593
|
+
*/
|
|
2594
|
+
pageToken?: string;
|
|
2489
2595
|
/**
|
|
2490
2596
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2491
2597
|
*/
|
|
2492
2598
|
pageSize?: number;
|
|
2493
2599
|
/**
|
|
2494
|
-
* A
|
|
2600
|
+
* A comma separated list of node ids to filter by.
|
|
2495
2601
|
*/
|
|
2496
|
-
|
|
2602
|
+
nodeIds?: string;
|
|
2497
2603
|
/**
|
|
2498
|
-
* The
|
|
2604
|
+
* 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.
|
|
2499
2605
|
*/
|
|
2500
|
-
|
|
2606
|
+
sortOrder?: SortOrder;
|
|
2501
2607
|
/**
|
|
2502
|
-
*
|
|
2608
|
+
* Validation status of the node.
|
|
2503
2609
|
*/
|
|
2504
|
-
|
|
2610
|
+
validationStatus?: ValidationStatusType;
|
|
2505
2611
|
/**
|
|
2506
2612
|
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2507
2613
|
*/
|
|
2508
|
-
minDelegationCapacity?:
|
|
2614
|
+
minDelegationCapacity?: string;
|
|
2509
2615
|
/**
|
|
2510
2616
|
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2511
2617
|
*/
|
|
2512
|
-
maxDelegationCapacity?:
|
|
2618
|
+
maxDelegationCapacity?: string;
|
|
2513
2619
|
/**
|
|
2514
|
-
* The minimum
|
|
2515
|
-
*/
|
|
2516
|
-
minFeePercentage?: any;
|
|
2517
|
-
/**
|
|
2518
|
-
* 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.
|
|
2620
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2519
2621
|
*/
|
|
2520
|
-
|
|
2622
|
+
minTimeRemaining?: number;
|
|
2521
2623
|
/**
|
|
2522
|
-
*
|
|
2624
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2523
2625
|
*/
|
|
2524
|
-
|
|
2626
|
+
maxTimeRemaining?: number;
|
|
2525
2627
|
/**
|
|
2526
|
-
* The
|
|
2628
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2527
2629
|
*/
|
|
2528
|
-
|
|
2630
|
+
minFeePercentage?: number;
|
|
2529
2631
|
/**
|
|
2530
|
-
*
|
|
2632
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2531
2633
|
*/
|
|
2532
|
-
|
|
2634
|
+
maxFeePercentage?: number;
|
|
2533
2635
|
/**
|
|
2534
2636
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2535
2637
|
*/
|
|
2536
|
-
subnetId?:
|
|
2638
|
+
subnetId?: any;
|
|
2537
2639
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2538
2640
|
/**
|
|
2539
2641
|
* Get single validator details
|
|
@@ -2541,7 +2643,7 @@ declare class PrimaryNetworkService {
|
|
|
2541
2643
|
* @returns ListValidatorDetailsResponse
|
|
2542
2644
|
* @throws ApiError
|
|
2543
2645
|
*/
|
|
2544
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2646
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2545
2647
|
/**
|
|
2546
2648
|
* Either mainnet or a testnet.
|
|
2547
2649
|
*/
|
|
@@ -2550,14 +2652,14 @@ declare class PrimaryNetworkService {
|
|
|
2550
2652
|
* A primary network (P or X chain) nodeId.
|
|
2551
2653
|
*/
|
|
2552
2654
|
nodeId: string;
|
|
2553
|
-
/**
|
|
2554
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2555
|
-
*/
|
|
2556
|
-
pageSize?: number;
|
|
2557
2655
|
/**
|
|
2558
2656
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2559
2657
|
*/
|
|
2560
2658
|
pageToken?: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2661
|
+
*/
|
|
2662
|
+
pageSize?: number;
|
|
2561
2663
|
/**
|
|
2562
2664
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2563
2665
|
*/
|
|
@@ -2573,21 +2675,21 @@ declare class PrimaryNetworkService {
|
|
|
2573
2675
|
* @returns ListDelegatorDetailsResponse
|
|
2574
2676
|
* @throws ApiError
|
|
2575
2677
|
*/
|
|
2576
|
-
listDelegators({ network,
|
|
2678
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2577
2679
|
/**
|
|
2578
2680
|
* Either mainnet or a testnet.
|
|
2579
2681
|
*/
|
|
2580
2682
|
network: Network;
|
|
2581
|
-
/**
|
|
2582
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2583
|
-
*/
|
|
2584
|
-
pageSize?: number;
|
|
2585
2683
|
/**
|
|
2586
2684
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2587
2685
|
*/
|
|
2588
2686
|
pageToken?: string;
|
|
2589
2687
|
/**
|
|
2590
|
-
*
|
|
2688
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2689
|
+
*/
|
|
2690
|
+
pageSize?: number;
|
|
2691
|
+
/**
|
|
2692
|
+
* A comma separated list of reward addresses to filter by.
|
|
2591
2693
|
*/
|
|
2592
2694
|
rewardAddresses?: string;
|
|
2593
2695
|
/**
|
|
@@ -2633,10 +2735,7 @@ type CChainSharedAssetBalance = {
|
|
|
2633
2735
|
* Denomination of this asset to represent fungibility.
|
|
2634
2736
|
*/
|
|
2635
2737
|
denomination: number;
|
|
2636
|
-
|
|
2637
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2638
|
-
*/
|
|
2639
|
-
type: string;
|
|
2738
|
+
type: PrimaryNetworkAssetType;
|
|
2640
2739
|
/**
|
|
2641
2740
|
* Amount of the asset.
|
|
2642
2741
|
*/
|
|
@@ -2671,49 +2770,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2671
2770
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2672
2771
|
};
|
|
2673
2772
|
|
|
2674
|
-
type
|
|
2773
|
+
type AggregatedAssetAmount = {
|
|
2774
|
+
/**
|
|
2775
|
+
* Unique ID for an asset.
|
|
2776
|
+
*/
|
|
2675
2777
|
assetId: string;
|
|
2778
|
+
/**
|
|
2779
|
+
* Name of this asset.
|
|
2780
|
+
*/
|
|
2781
|
+
name: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* Symbol for this asset (max 4 characters).
|
|
2784
|
+
*/
|
|
2785
|
+
symbol: string;
|
|
2786
|
+
/**
|
|
2787
|
+
* Denomination of this asset to represent fungibility.
|
|
2788
|
+
*/
|
|
2789
|
+
denomination: number;
|
|
2790
|
+
type: PrimaryNetworkAssetType;
|
|
2791
|
+
/**
|
|
2792
|
+
* Amount of the asset.
|
|
2793
|
+
*/
|
|
2676
2794
|
amount: string;
|
|
2795
|
+
utxoCount: number;
|
|
2677
2796
|
};
|
|
2678
2797
|
|
|
2679
2798
|
type PChainSharedAsset = {
|
|
2799
|
+
/**
|
|
2800
|
+
* Unique ID for an asset.
|
|
2801
|
+
*/
|
|
2680
2802
|
assetId: string;
|
|
2803
|
+
/**
|
|
2804
|
+
* Name of this asset.
|
|
2805
|
+
*/
|
|
2806
|
+
name: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* Symbol for this asset (max 4 characters).
|
|
2809
|
+
*/
|
|
2810
|
+
symbol: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* Denomination of this asset to represent fungibility.
|
|
2813
|
+
*/
|
|
2814
|
+
denomination: number;
|
|
2815
|
+
type: PrimaryNetworkAssetType;
|
|
2816
|
+
/**
|
|
2817
|
+
* Amount of the asset.
|
|
2818
|
+
*/
|
|
2681
2819
|
amount: string;
|
|
2820
|
+
utxoCount: number;
|
|
2682
2821
|
sharedWithChainId: string;
|
|
2683
2822
|
status: string;
|
|
2684
2823
|
};
|
|
2685
2824
|
|
|
2686
2825
|
type PChainBalance = {
|
|
2687
2826
|
/**
|
|
2688
|
-
* A list of objects containing P-chain Asset
|
|
2827
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2689
2828
|
*/
|
|
2690
|
-
unlockedUnstaked: Array<
|
|
2829
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2691
2830
|
/**
|
|
2692
|
-
* A list of objects containing P-chain Asset
|
|
2831
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2693
2832
|
*/
|
|
2694
|
-
unlockedStaked: Array<
|
|
2833
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2695
2834
|
/**
|
|
2696
|
-
* A list of objects containing P-chain Asset
|
|
2835
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2697
2836
|
*/
|
|
2698
|
-
lockedPlatform: Array<
|
|
2837
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2699
2838
|
/**
|
|
2700
|
-
* A list of objects containing P-chain Asset
|
|
2839
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2701
2840
|
*/
|
|
2702
|
-
lockedStakeable: Array<
|
|
2841
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2703
2842
|
/**
|
|
2704
|
-
* A list of objects containing P-chain Asset
|
|
2843
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2705
2844
|
*/
|
|
2706
|
-
lockedStaked: Array<
|
|
2845
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2707
2846
|
/**
|
|
2708
|
-
* A list of objects containing P-chain Asset
|
|
2847
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2709
2848
|
*/
|
|
2710
|
-
pendingStaked: Array<
|
|
2849
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2711
2850
|
/**
|
|
2712
|
-
* A list of objects containing P-chain Asset
|
|
2851
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2713
2852
|
*/
|
|
2714
2853
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2715
2854
|
/**
|
|
2716
|
-
* A list of objects containing P-chain Asset
|
|
2855
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2717
2856
|
*/
|
|
2718
2857
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2719
2858
|
};
|
|
@@ -2723,34 +2862,6 @@ type ListPChainBalancesResponse = {
|
|
|
2723
2862
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2724
2863
|
};
|
|
2725
2864
|
|
|
2726
|
-
type XChainAssetBalance = {
|
|
2727
|
-
/**
|
|
2728
|
-
* Unique ID for an asset.
|
|
2729
|
-
*/
|
|
2730
|
-
assetId: string;
|
|
2731
|
-
/**
|
|
2732
|
-
* Name of this asset.
|
|
2733
|
-
*/
|
|
2734
|
-
name: string;
|
|
2735
|
-
/**
|
|
2736
|
-
* Symbol for this asset (max 4 characters).
|
|
2737
|
-
*/
|
|
2738
|
-
symbol: string;
|
|
2739
|
-
/**
|
|
2740
|
-
* Denomination of this asset to represent fungibility.
|
|
2741
|
-
*/
|
|
2742
|
-
denomination: number;
|
|
2743
|
-
/**
|
|
2744
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2745
|
-
*/
|
|
2746
|
-
type: string;
|
|
2747
|
-
/**
|
|
2748
|
-
* Amount of the asset.
|
|
2749
|
-
*/
|
|
2750
|
-
amount: string;
|
|
2751
|
-
utxoCount: number;
|
|
2752
|
-
};
|
|
2753
|
-
|
|
2754
2865
|
type XChainSharedAssetBalance = {
|
|
2755
2866
|
/**
|
|
2756
2867
|
* Unique ID for an asset.
|
|
@@ -2768,10 +2879,7 @@ type XChainSharedAssetBalance = {
|
|
|
2768
2879
|
* Denomination of this asset to represent fungibility.
|
|
2769
2880
|
*/
|
|
2770
2881
|
denomination: number;
|
|
2771
|
-
|
|
2772
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2773
|
-
*/
|
|
2774
|
-
type: string;
|
|
2882
|
+
type: PrimaryNetworkAssetType;
|
|
2775
2883
|
/**
|
|
2776
2884
|
* Amount of the asset.
|
|
2777
2885
|
*/
|
|
@@ -2784,11 +2892,11 @@ type XChainBalances = {
|
|
|
2784
2892
|
/**
|
|
2785
2893
|
* A list of objects containing X-chain Asset balance information.
|
|
2786
2894
|
*/
|
|
2787
|
-
locked: Array<
|
|
2895
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2788
2896
|
/**
|
|
2789
2897
|
* A list of objects containing X-chain Asset balance information.
|
|
2790
2898
|
*/
|
|
2791
|
-
unlocked: Array<
|
|
2899
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2792
2900
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2793
2901
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2794
2902
|
};
|
|
@@ -2846,6 +2954,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2846
2954
|
txCount: number;
|
|
2847
2955
|
transactions: Array<string>;
|
|
2848
2956
|
blockSizeBytes: number;
|
|
2957
|
+
currentSupply?: string;
|
|
2849
2958
|
proposerDetails?: ProposerDetails;
|
|
2850
2959
|
};
|
|
2851
2960
|
|
|
@@ -2858,6 +2967,7 @@ type PrimaryNetworkBlock = {
|
|
|
2858
2967
|
txCount: number;
|
|
2859
2968
|
transactions: Array<string>;
|
|
2860
2969
|
blockSizeBytes: number;
|
|
2970
|
+
currentSupply?: string;
|
|
2861
2971
|
proposerDetails?: ProposerDetails;
|
|
2862
2972
|
};
|
|
2863
2973
|
|
|
@@ -2899,7 +3009,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2899
3009
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2900
3010
|
* @throws ApiError
|
|
2901
3011
|
*/
|
|
2902
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3012
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2903
3013
|
/**
|
|
2904
3014
|
* A primary network blockchain id or alias.
|
|
2905
3015
|
*/
|
|
@@ -2912,14 +3022,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2912
3022
|
* A primary network (P or X chain) nodeId.
|
|
2913
3023
|
*/
|
|
2914
3024
|
nodeId: string;
|
|
2915
|
-
/**
|
|
2916
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2917
|
-
*/
|
|
2918
|
-
pageSize?: number;
|
|
2919
3025
|
/**
|
|
2920
3026
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2921
3027
|
*/
|
|
2922
3028
|
pageToken?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3031
|
+
*/
|
|
3032
|
+
pageSize?: number;
|
|
2923
3033
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2924
3034
|
/**
|
|
2925
3035
|
* List latest blocks
|
|
@@ -2927,7 +3037,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2927
3037
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2928
3038
|
* @throws ApiError
|
|
2929
3039
|
*/
|
|
2930
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3040
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2931
3041
|
/**
|
|
2932
3042
|
* A primary network blockchain id or alias.
|
|
2933
3043
|
*/
|
|
@@ -2936,17 +3046,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2936
3046
|
* Either mainnet or a testnet.
|
|
2937
3047
|
*/
|
|
2938
3048
|
network: Network;
|
|
2939
|
-
/**
|
|
2940
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2941
|
-
*/
|
|
2942
|
-
pageSize?: number;
|
|
2943
3049
|
/**
|
|
2944
3050
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2945
3051
|
*/
|
|
2946
3052
|
pageToken?: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3055
|
+
*/
|
|
3056
|
+
pageSize?: number;
|
|
2947
3057
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2948
3058
|
}
|
|
2949
3059
|
|
|
3060
|
+
type AssetWithPriceInfo = {
|
|
3061
|
+
/**
|
|
3062
|
+
* Unique ID for an asset.
|
|
3063
|
+
*/
|
|
3064
|
+
assetId: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* Name of this asset.
|
|
3067
|
+
*/
|
|
3068
|
+
name: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* Symbol for this asset (max 4 characters).
|
|
3071
|
+
*/
|
|
3072
|
+
symbol: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* Denomination of this asset to represent fungibility.
|
|
3075
|
+
*/
|
|
3076
|
+
denomination: number;
|
|
3077
|
+
type: PrimaryNetworkAssetType;
|
|
3078
|
+
/**
|
|
3079
|
+
* Amount of the asset.
|
|
3080
|
+
*/
|
|
3081
|
+
amount: string;
|
|
3082
|
+
/**
|
|
3083
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3084
|
+
*/
|
|
3085
|
+
historicalPrice?: Money;
|
|
3086
|
+
};
|
|
3087
|
+
|
|
2950
3088
|
declare enum RewardType {
|
|
2951
3089
|
VALIDATOR = "VALIDATOR",
|
|
2952
3090
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2966,10 +3104,7 @@ type HistoricalReward = {
|
|
|
2966
3104
|
rewardType: RewardType;
|
|
2967
3105
|
utxoId: string;
|
|
2968
3106
|
outputIndex: number;
|
|
2969
|
-
|
|
2970
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2971
|
-
*/
|
|
2972
|
-
reward: PChainAsset;
|
|
3107
|
+
reward: AssetWithPriceInfo;
|
|
2973
3108
|
rewardTxHash: string;
|
|
2974
3109
|
};
|
|
2975
3110
|
|
|
@@ -2981,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2981
3116
|
historicalRewards: Array<HistoricalReward>;
|
|
2982
3117
|
};
|
|
2983
3118
|
|
|
3119
|
+
type AssetAmount = {
|
|
3120
|
+
/**
|
|
3121
|
+
* Unique ID for an asset.
|
|
3122
|
+
*/
|
|
3123
|
+
assetId: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* Name of this asset.
|
|
3126
|
+
*/
|
|
3127
|
+
name: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* Symbol for this asset (max 4 characters).
|
|
3130
|
+
*/
|
|
3131
|
+
symbol: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* Denomination of this asset to represent fungibility.
|
|
3134
|
+
*/
|
|
3135
|
+
denomination: number;
|
|
3136
|
+
type: PrimaryNetworkAssetType;
|
|
3137
|
+
/**
|
|
3138
|
+
* Amount of the asset.
|
|
3139
|
+
*/
|
|
3140
|
+
amount: string;
|
|
3141
|
+
};
|
|
3142
|
+
|
|
2984
3143
|
type PendingReward = {
|
|
2985
3144
|
/**
|
|
2986
3145
|
* An array of P-Chain wallet addresses.
|
|
@@ -2994,9 +3153,9 @@ type PendingReward = {
|
|
|
2994
3153
|
rewardType: RewardType;
|
|
2995
3154
|
progress: number;
|
|
2996
3155
|
/**
|
|
2997
|
-
* An object containing P-chain Asset
|
|
3156
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2998
3157
|
*/
|
|
2999
|
-
estimatedReward:
|
|
3158
|
+
estimatedReward: AssetAmount;
|
|
3000
3159
|
};
|
|
3001
3160
|
|
|
3002
3161
|
type ListPendingRewardsResponse = {
|
|
@@ -3016,25 +3175,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3175
|
* @returns ListPendingRewardsResponse
|
|
3017
3176
|
* @throws ApiError
|
|
3018
3177
|
*/
|
|
3019
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3178
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3020
3179
|
/**
|
|
3021
3180
|
* Either mainnet or a testnet.
|
|
3022
3181
|
*/
|
|
3023
3182
|
network: Network;
|
|
3024
3183
|
/**
|
|
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".
|
|
3184
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
3026
3185
|
*/
|
|
3027
3186
|
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
3187
|
/**
|
|
3033
3188
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3189
|
*/
|
|
3035
3190
|
pageToken?: string;
|
|
3036
3191
|
/**
|
|
3037
|
-
*
|
|
3192
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3193
|
+
*/
|
|
3194
|
+
pageSize?: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3038
3197
|
*/
|
|
3039
3198
|
nodeIds?: string;
|
|
3040
3199
|
/**
|
|
@@ -3048,68 +3207,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3048
3207
|
* @returns ListHistoricalRewardsResponse
|
|
3049
3208
|
* @throws ApiError
|
|
3050
3209
|
*/
|
|
3051
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3210
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3052
3211
|
/**
|
|
3053
3212
|
* Either mainnet or a testnet.
|
|
3054
3213
|
*/
|
|
3055
3214
|
network: Network;
|
|
3056
3215
|
/**
|
|
3057
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3216
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
3058
3217
|
*/
|
|
3059
3218
|
addresses?: string;
|
|
3060
|
-
/**
|
|
3061
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3062
|
-
*/
|
|
3063
|
-
pageSize?: number;
|
|
3064
3219
|
/**
|
|
3065
3220
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3066
3221
|
*/
|
|
3067
3222
|
pageToken?: string;
|
|
3068
3223
|
/**
|
|
3069
|
-
*
|
|
3224
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3225
|
+
*/
|
|
3226
|
+
pageSize?: number;
|
|
3227
|
+
/**
|
|
3228
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3070
3229
|
*/
|
|
3071
3230
|
nodeIds?: string;
|
|
3072
3231
|
/**
|
|
3073
3232
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3074
3233
|
*/
|
|
3075
3234
|
sortOrder?: SortOrder;
|
|
3235
|
+
/**
|
|
3236
|
+
* The currency that return values should use. Defaults to USD.
|
|
3237
|
+
*/
|
|
3238
|
+
currency?: CurrencyCode;
|
|
3076
3239
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3077
3240
|
}
|
|
3078
3241
|
|
|
3079
|
-
type Asset = {
|
|
3080
|
-
/**
|
|
3081
|
-
* Unique ID for an asset.
|
|
3082
|
-
*/
|
|
3083
|
-
assetId: string;
|
|
3084
|
-
/**
|
|
3085
|
-
* Name of this asset.
|
|
3086
|
-
*/
|
|
3087
|
-
name: string;
|
|
3088
|
-
/**
|
|
3089
|
-
* Symbol for this asset (max 4 characters).
|
|
3090
|
-
*/
|
|
3091
|
-
symbol: string;
|
|
3092
|
-
/**
|
|
3093
|
-
* Denomination of this asset to represent fungibility.
|
|
3094
|
-
*/
|
|
3095
|
-
denomination: number;
|
|
3096
|
-
/**
|
|
3097
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3098
|
-
*/
|
|
3099
|
-
type: string;
|
|
3100
|
-
/**
|
|
3101
|
-
* Amount of the asset.
|
|
3102
|
-
*/
|
|
3103
|
-
amount: string;
|
|
3104
|
-
};
|
|
3105
|
-
|
|
3106
3242
|
type UtxoCredential = {
|
|
3107
3243
|
/**
|
|
3108
|
-
* Signature provided to consume the output
|
|
3244
|
+
* Signature provided to consume the output.
|
|
3109
3245
|
*/
|
|
3110
3246
|
signature?: string;
|
|
3111
3247
|
/**
|
|
3112
|
-
* Public key associated with the signature
|
|
3248
|
+
* Public key associated with the signature.
|
|
3113
3249
|
*/
|
|
3114
3250
|
publicKey?: string;
|
|
3115
3251
|
};
|
|
@@ -3120,9 +3256,9 @@ type EVMInput = {
|
|
|
3120
3256
|
*/
|
|
3121
3257
|
fromAddress: string;
|
|
3122
3258
|
/**
|
|
3123
|
-
*
|
|
3259
|
+
* AssetAmount details for the asset being transferred.
|
|
3124
3260
|
*/
|
|
3125
|
-
asset:
|
|
3261
|
+
asset: AssetAmount;
|
|
3126
3262
|
/**
|
|
3127
3263
|
* Credentials that signed this transaction.
|
|
3128
3264
|
*/
|
|
@@ -3131,66 +3267,66 @@ type EVMInput = {
|
|
|
3131
3267
|
|
|
3132
3268
|
type Utxo = {
|
|
3133
3269
|
/**
|
|
3134
|
-
*
|
|
3270
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3135
3271
|
*/
|
|
3136
|
-
|
|
3137
|
-
asset:
|
|
3272
|
+
addresses: Array<string>;
|
|
3273
|
+
asset: AssetAmount;
|
|
3138
3274
|
/**
|
|
3139
|
-
*
|
|
3275
|
+
* Blockchain ID on which this output is consumed on.
|
|
3140
3276
|
*/
|
|
3141
|
-
|
|
3277
|
+
consumedOnChainId: string;
|
|
3142
3278
|
/**
|
|
3143
|
-
*
|
|
3279
|
+
* Transaction ID that consumed this output.
|
|
3144
3280
|
*/
|
|
3145
|
-
|
|
3281
|
+
consumingTxHash?: string;
|
|
3146
3282
|
/**
|
|
3147
|
-
* Blockchain ID on which this output is
|
|
3283
|
+
* Blockchain ID on which this output is created on.
|
|
3148
3284
|
*/
|
|
3149
|
-
|
|
3285
|
+
createdOnChainId: string;
|
|
3150
3286
|
/**
|
|
3151
|
-
*
|
|
3287
|
+
* UTXO ID for this output.
|
|
3152
3288
|
*/
|
|
3153
|
-
|
|
3289
|
+
utxoId: string;
|
|
3154
3290
|
/**
|
|
3155
|
-
*
|
|
3291
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3156
3292
|
*/
|
|
3157
|
-
|
|
3293
|
+
consumingTxTimestamp?: number;
|
|
3158
3294
|
/**
|
|
3159
|
-
*
|
|
3295
|
+
* Transaction ID that created this output.
|
|
3160
3296
|
*/
|
|
3161
|
-
|
|
3297
|
+
creationTxHash: string;
|
|
3162
3298
|
/**
|
|
3163
|
-
*
|
|
3299
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3164
3300
|
*/
|
|
3165
|
-
|
|
3301
|
+
credentials?: Array<UtxoCredential>;
|
|
3166
3302
|
/**
|
|
3167
|
-
*
|
|
3303
|
+
* Index representing the minting set for the NFT mint output.
|
|
3168
3304
|
*/
|
|
3169
|
-
|
|
3305
|
+
groupId?: number;
|
|
3170
3306
|
/**
|
|
3171
3307
|
* Locktime in seconds after which this output can be consumed.
|
|
3172
3308
|
*/
|
|
3173
3309
|
locktime: number;
|
|
3174
3310
|
/**
|
|
3175
|
-
*
|
|
3311
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3176
3312
|
*/
|
|
3177
|
-
|
|
3313
|
+
outputIndex: string;
|
|
3178
3314
|
/**
|
|
3179
|
-
*
|
|
3315
|
+
* Hex encoded data for NFT assets.
|
|
3180
3316
|
*/
|
|
3181
|
-
|
|
3317
|
+
payload?: string;
|
|
3182
3318
|
/**
|
|
3183
|
-
*
|
|
3319
|
+
* Minimum number of signatures required to consume this output.
|
|
3184
3320
|
*/
|
|
3185
|
-
|
|
3321
|
+
threshold: number;
|
|
3186
3322
|
/**
|
|
3187
|
-
*
|
|
3323
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3188
3324
|
*/
|
|
3189
|
-
|
|
3325
|
+
timestamp: number;
|
|
3190
3326
|
/**
|
|
3191
|
-
*
|
|
3327
|
+
* Type of output.
|
|
3192
3328
|
*/
|
|
3193
|
-
|
|
3329
|
+
utxoType: string;
|
|
3194
3330
|
};
|
|
3195
3331
|
|
|
3196
3332
|
type CChainExportTransaction = {
|
|
@@ -3217,11 +3353,11 @@ type CChainExportTransaction = {
|
|
|
3217
3353
|
/**
|
|
3218
3354
|
* Assets unlocked by inputs of this transaction.
|
|
3219
3355
|
*/
|
|
3220
|
-
amountUnlocked: Array<
|
|
3356
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3221
3357
|
/**
|
|
3222
3358
|
* Assets created by outputs of this transaction.
|
|
3223
3359
|
*/
|
|
3224
|
-
amountCreated: Array<
|
|
3360
|
+
amountCreated: Array<AssetAmount>;
|
|
3225
3361
|
/**
|
|
3226
3362
|
* Source chain for an atomic transaction.
|
|
3227
3363
|
*/
|
|
@@ -3252,9 +3388,9 @@ type EVMOutput = {
|
|
|
3252
3388
|
*/
|
|
3253
3389
|
toAddress: string;
|
|
3254
3390
|
/**
|
|
3255
|
-
*
|
|
3391
|
+
* AssetAmount details for the asset being transferred.
|
|
3256
3392
|
*/
|
|
3257
|
-
asset:
|
|
3393
|
+
asset: AssetAmount;
|
|
3258
3394
|
};
|
|
3259
3395
|
|
|
3260
3396
|
type CChainImportTransaction = {
|
|
@@ -3281,11 +3417,11 @@ type CChainImportTransaction = {
|
|
|
3281
3417
|
/**
|
|
3282
3418
|
* Assets unlocked by inputs of this transaction.
|
|
3283
3419
|
*/
|
|
3284
|
-
amountUnlocked: Array<
|
|
3420
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3285
3421
|
/**
|
|
3286
3422
|
* Assets created by outputs of this transaction.
|
|
3287
3423
|
*/
|
|
3288
|
-
amountCreated: Array<
|
|
3424
|
+
amountCreated: Array<AssetAmount>;
|
|
3289
3425
|
/**
|
|
3290
3426
|
* Source chain for an atomic transaction.
|
|
3291
3427
|
*/
|
|
@@ -3321,17 +3457,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3321
3457
|
|
|
3322
3458
|
declare enum PChainTransactionType {
|
|
3323
3459
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3324
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3325
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3326
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3327
3460
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3328
|
-
|
|
3329
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3461
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
3462
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3331
3463
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3332
3464
|
IMPORT_TX = "ImportTx",
|
|
3333
3465
|
EXPORT_TX = "ExportTx",
|
|
3334
3466
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3467
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3468
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3469
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3470
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3471
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3472
|
+
BASE_TX = "BaseTx",
|
|
3473
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3335
3474
|
UNKNOWN = "UNKNOWN"
|
|
3336
3475
|
}
|
|
3337
3476
|
|
|
@@ -3342,29 +3481,48 @@ declare enum UtxoType {
|
|
|
3342
3481
|
|
|
3343
3482
|
type PChainUtxo = {
|
|
3344
3483
|
/**
|
|
3345
|
-
*
|
|
3484
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3346
3485
|
*/
|
|
3347
3486
|
addresses: Array<string>;
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
blockTimestamp: number;
|
|
3353
|
-
consumingTxHash?: string;
|
|
3354
|
-
consumingBlockTimestamp?: number;
|
|
3355
|
-
consumingBlockNumber?: string;
|
|
3356
|
-
assetId: string;
|
|
3357
|
-
utxoType: UtxoType;
|
|
3358
|
-
amount: string;
|
|
3359
|
-
stakeableLocktime?: number;
|
|
3360
|
-
platformLocktime?: number;
|
|
3361
|
-
threshold?: number;
|
|
3362
|
-
createdOnChainId: string;
|
|
3487
|
+
asset: AssetAmount;
|
|
3488
|
+
/**
|
|
3489
|
+
* Blockchain ID on which this output is consumed on.
|
|
3490
|
+
*/
|
|
3363
3491
|
consumedOnChainId: string;
|
|
3492
|
+
/**
|
|
3493
|
+
* Transaction ID that consumed this output.
|
|
3494
|
+
*/
|
|
3495
|
+
consumingTxHash?: string;
|
|
3496
|
+
/**
|
|
3497
|
+
* Blockchain ID on which this output is created on.
|
|
3498
|
+
*/
|
|
3499
|
+
createdOnChainId: string;
|
|
3500
|
+
/**
|
|
3501
|
+
* UTXO ID for this output.
|
|
3502
|
+
*/
|
|
3503
|
+
utxoId: string;
|
|
3504
|
+
/**
|
|
3505
|
+
* @deprecated
|
|
3506
|
+
*/
|
|
3507
|
+
amount: string;
|
|
3508
|
+
/**
|
|
3509
|
+
* @deprecated
|
|
3510
|
+
*/
|
|
3511
|
+
assetId: string;
|
|
3512
|
+
blockNumber: string;
|
|
3513
|
+
blockTimestamp: number;
|
|
3514
|
+
consumingBlockNumber?: string;
|
|
3515
|
+
consumingBlockTimestamp?: number;
|
|
3516
|
+
platformLocktime?: number;
|
|
3517
|
+
outputIndex: number;
|
|
3518
|
+
rewardType?: RewardType;
|
|
3519
|
+
stakeableLocktime?: number;
|
|
3364
3520
|
staked?: boolean;
|
|
3365
|
-
|
|
3521
|
+
threshold?: number;
|
|
3522
|
+
txHash: string;
|
|
3366
3523
|
utxoEndTimestamp?: number;
|
|
3367
|
-
|
|
3524
|
+
utxoStartTimestamp?: number;
|
|
3525
|
+
utxoType: UtxoType;
|
|
3368
3526
|
};
|
|
3369
3527
|
|
|
3370
3528
|
type PChainTransaction = {
|
|
@@ -3390,17 +3548,17 @@ type PChainTransaction = {
|
|
|
3390
3548
|
*/
|
|
3391
3549
|
destinationChain?: string;
|
|
3392
3550
|
/**
|
|
3393
|
-
* A list of objects containing P-chain Asset
|
|
3551
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3394
3552
|
*/
|
|
3395
|
-
value: Array<
|
|
3553
|
+
value: Array<AssetAmount>;
|
|
3396
3554
|
/**
|
|
3397
|
-
* A list of objects containing P-chain Asset
|
|
3555
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3398
3556
|
*/
|
|
3399
|
-
amountBurned: Array<
|
|
3557
|
+
amountBurned: Array<AssetAmount>;
|
|
3400
3558
|
/**
|
|
3401
|
-
* A list of objects containing P-chain Asset
|
|
3559
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3402
3560
|
*/
|
|
3403
|
-
amountStaked: Array<
|
|
3561
|
+
amountStaked: Array<AssetAmount>;
|
|
3404
3562
|
/**
|
|
3405
3563
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3406
3564
|
*/
|
|
@@ -3432,6 +3590,10 @@ type PChainTransaction = {
|
|
|
3432
3590
|
* Present for RewardValidatorTx
|
|
3433
3591
|
*/
|
|
3434
3592
|
stakingTxHash?: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3595
|
+
*/
|
|
3596
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3435
3597
|
};
|
|
3436
3598
|
|
|
3437
3599
|
type ListPChainTransactionsResponse = {
|
|
@@ -3443,6 +3605,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3443
3605
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3444
3606
|
};
|
|
3445
3607
|
|
|
3608
|
+
/**
|
|
3609
|
+
* Type of transaction.
|
|
3610
|
+
*/
|
|
3611
|
+
declare enum XChainTransactionType {
|
|
3612
|
+
BASE_TX = "BaseTx",
|
|
3613
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3614
|
+
OPERATION_TX = "OperationTx",
|
|
3615
|
+
IMPORT_TX = "ImportTx",
|
|
3616
|
+
EXPORT_TX = "ExportTx",
|
|
3617
|
+
UNKNOWN = "UNKNOWN"
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3446
3620
|
type XChainLinearTransaction = {
|
|
3447
3621
|
/**
|
|
3448
3622
|
* Unique ID for this transaction.
|
|
@@ -3456,10 +3630,7 @@ type XChainLinearTransaction = {
|
|
|
3456
3630
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3457
3631
|
*/
|
|
3458
3632
|
timestamp: number;
|
|
3459
|
-
|
|
3460
|
-
* Type of transaction.
|
|
3461
|
-
*/
|
|
3462
|
-
txType: string;
|
|
3633
|
+
txType: XChainTransactionType;
|
|
3463
3634
|
/**
|
|
3464
3635
|
* Hex encoded memo bytes for this transaction.
|
|
3465
3636
|
*/
|
|
@@ -3469,11 +3640,11 @@ type XChainLinearTransaction = {
|
|
|
3469
3640
|
/**
|
|
3470
3641
|
* Assets unlocked by inputs of this transaction.
|
|
3471
3642
|
*/
|
|
3472
|
-
amountUnlocked: Array<
|
|
3643
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3473
3644
|
/**
|
|
3474
3645
|
* Assets created by outputs of this transaction.
|
|
3475
3646
|
*/
|
|
3476
|
-
amountCreated: Array<
|
|
3647
|
+
amountCreated: Array<AssetAmount>;
|
|
3477
3648
|
/**
|
|
3478
3649
|
* Source chain for an atomic transaction.
|
|
3479
3650
|
*/
|
|
@@ -3483,7 +3654,7 @@ type XChainLinearTransaction = {
|
|
|
3483
3654
|
*/
|
|
3484
3655
|
destinationChain?: string;
|
|
3485
3656
|
/**
|
|
3486
|
-
*
|
|
3657
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3487
3658
|
*/
|
|
3488
3659
|
assetCreated?: XChainAssetDetails;
|
|
3489
3660
|
/**
|
|
@@ -3533,10 +3704,7 @@ type XChainNonLinearTransaction = {
|
|
|
3533
3704
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3534
3705
|
*/
|
|
3535
3706
|
timestamp: number;
|
|
3536
|
-
|
|
3537
|
-
* Type of transaction.
|
|
3538
|
-
*/
|
|
3539
|
-
txType: string;
|
|
3707
|
+
txType: XChainTransactionType;
|
|
3540
3708
|
/**
|
|
3541
3709
|
* Hex encoded memo bytes for this transaction.
|
|
3542
3710
|
*/
|
|
@@ -3546,11 +3714,11 @@ type XChainNonLinearTransaction = {
|
|
|
3546
3714
|
/**
|
|
3547
3715
|
* Assets unlocked by inputs of this transaction.
|
|
3548
3716
|
*/
|
|
3549
|
-
amountUnlocked: Array<
|
|
3717
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3550
3718
|
/**
|
|
3551
3719
|
* Assets created by outputs of this transaction.
|
|
3552
3720
|
*/
|
|
3553
|
-
amountCreated: Array<
|
|
3721
|
+
amountCreated: Array<AssetAmount>;
|
|
3554
3722
|
/**
|
|
3555
3723
|
* Source chain for an atomic transaction.
|
|
3556
3724
|
*/
|
|
@@ -3560,7 +3728,7 @@ type XChainNonLinearTransaction = {
|
|
|
3560
3728
|
*/
|
|
3561
3729
|
destinationChain?: string;
|
|
3562
3730
|
/**
|
|
3563
|
-
*
|
|
3731
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3564
3732
|
*/
|
|
3565
3733
|
assetCreated?: XChainAssetDetails;
|
|
3566
3734
|
/**
|
|
@@ -3594,19 +3762,21 @@ declare enum PChainId {
|
|
|
3594
3762
|
|
|
3595
3763
|
declare enum PrimaryNetworkTxType {
|
|
3596
3764
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3597
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3598
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3599
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3600
3765
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3601
|
-
|
|
3602
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3766
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3603
3767
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3604
3768
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3605
3769
|
IMPORT_TX = "ImportTx",
|
|
3606
3770
|
EXPORT_TX = "ExportTx",
|
|
3607
3771
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3608
|
-
|
|
3772
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3773
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3774
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3775
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3776
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3609
3777
|
BASE_TX = "BaseTx",
|
|
3778
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3779
|
+
UNKNOWN = "UNKNOWN",
|
|
3610
3780
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3611
3781
|
OPERATION_TX = "OperationTx"
|
|
3612
3782
|
}
|
|
@@ -3638,13 +3808,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3638
3808
|
* List latest transactions
|
|
3639
3809
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3640
3810
|
*
|
|
3641
|
-
* Transactions are filterable by addresses.
|
|
3811
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3642
3812
|
*
|
|
3643
3813
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3644
3814
|
* @returns any
|
|
3645
3815
|
* @throws ApiError
|
|
3646
3816
|
*/
|
|
3647
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3817
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3648
3818
|
/**
|
|
3649
3819
|
* A primary network blockchain id or alias.
|
|
3650
3820
|
*/
|
|
@@ -3669,14 +3839,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3669
3839
|
* Query param for retrieving items before a specific timestamp.
|
|
3670
3840
|
*/
|
|
3671
3841
|
endTimestamp?: number;
|
|
3672
|
-
/**
|
|
3673
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3674
|
-
*/
|
|
3675
|
-
pageSize?: number;
|
|
3676
3842
|
/**
|
|
3677
3843
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3678
3844
|
*/
|
|
3679
3845
|
pageToken?: string;
|
|
3846
|
+
/**
|
|
3847
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3848
|
+
*/
|
|
3849
|
+
pageSize?: number;
|
|
3680
3850
|
/**
|
|
3681
3851
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3682
3852
|
*/
|
|
@@ -3688,7 +3858,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3688
3858
|
* @returns ListPChainTransactionsResponse
|
|
3689
3859
|
* @throws ApiError
|
|
3690
3860
|
*/
|
|
3691
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3861
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3692
3862
|
/**
|
|
3693
3863
|
* A primary network blockchain id or alias.
|
|
3694
3864
|
*/
|
|
@@ -3713,14 +3883,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3713
3883
|
* Query param for retrieving items before a specific timestamp.
|
|
3714
3884
|
*/
|
|
3715
3885
|
endTimestamp?: number;
|
|
3716
|
-
/**
|
|
3717
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3718
|
-
*/
|
|
3719
|
-
pageSize?: number;
|
|
3720
3886
|
/**
|
|
3721
3887
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3722
3888
|
*/
|
|
3723
3889
|
pageToken?: string;
|
|
3890
|
+
/**
|
|
3891
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3892
|
+
*/
|
|
3893
|
+
pageSize?: number;
|
|
3724
3894
|
/**
|
|
3725
3895
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3726
3896
|
*/
|
|
@@ -3732,7 +3902,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3732
3902
|
* @returns ListXChainTransactionsResponse
|
|
3733
3903
|
* @throws ApiError
|
|
3734
3904
|
*/
|
|
3735
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3905
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3736
3906
|
/**
|
|
3737
3907
|
* A primary network blockchain id or alias.
|
|
3738
3908
|
*/
|
|
@@ -3757,14 +3927,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3757
3927
|
* Query param for retrieving items before a specific timestamp.
|
|
3758
3928
|
*/
|
|
3759
3929
|
endTimestamp?: number;
|
|
3760
|
-
/**
|
|
3761
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3762
|
-
*/
|
|
3763
|
-
pageSize?: number;
|
|
3764
3930
|
/**
|
|
3765
3931
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3766
3932
|
*/
|
|
3767
3933
|
pageToken?: string;
|
|
3934
|
+
/**
|
|
3935
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3936
|
+
*/
|
|
3937
|
+
pageSize?: number;
|
|
3768
3938
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3769
3939
|
}
|
|
3770
3940
|
|
|
@@ -3795,7 +3965,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3795
3965
|
* @returns any
|
|
3796
3966
|
* @throws ApiError
|
|
3797
3967
|
*/
|
|
3798
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3968
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3799
3969
|
/**
|
|
3800
3970
|
* A primary network blockchain id or alias.
|
|
3801
3971
|
*/
|
|
@@ -3808,14 +3978,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3808
3978
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3809
3979
|
*/
|
|
3810
3980
|
addresses?: string;
|
|
3811
|
-
/**
|
|
3812
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3813
|
-
*/
|
|
3814
|
-
pageSize?: number;
|
|
3815
3981
|
/**
|
|
3816
3982
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3817
3983
|
*/
|
|
3818
3984
|
pageToken?: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3987
|
+
*/
|
|
3988
|
+
pageSize?: number;
|
|
3819
3989
|
/**
|
|
3820
3990
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3821
3991
|
*/
|
|
@@ -3860,7 +4030,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3860
4030
|
* @returns ListXChainVerticesResponse
|
|
3861
4031
|
* @throws ApiError
|
|
3862
4032
|
*/
|
|
3863
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4033
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3864
4034
|
/**
|
|
3865
4035
|
* A primary network blockchain id or alias.
|
|
3866
4036
|
*/
|
|
@@ -3869,14 +4039,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3869
4039
|
* Either mainnet or a testnet.
|
|
3870
4040
|
*/
|
|
3871
4041
|
network: Network;
|
|
3872
|
-
/**
|
|
3873
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3874
|
-
*/
|
|
3875
|
-
pageSize?: number;
|
|
3876
4042
|
/**
|
|
3877
4043
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3878
4044
|
*/
|
|
3879
4045
|
pageToken?: string;
|
|
4046
|
+
/**
|
|
4047
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4048
|
+
*/
|
|
4049
|
+
pageSize?: number;
|
|
3880
4050
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3881
4051
|
/**
|
|
3882
4052
|
* Get vertex
|
|
@@ -3904,7 +4074,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3904
4074
|
* @returns ListXChainVerticesResponse
|
|
3905
4075
|
* @throws ApiError
|
|
3906
4076
|
*/
|
|
3907
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4077
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3908
4078
|
/**
|
|
3909
4079
|
* The height of a vertex.
|
|
3910
4080
|
*/
|
|
@@ -3917,19 +4087,404 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3917
4087
|
* Either mainnet or a testnet.
|
|
3918
4088
|
*/
|
|
3919
4089
|
network: Network;
|
|
4090
|
+
/**
|
|
4091
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4092
|
+
*/
|
|
4093
|
+
pageToken?: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4096
|
+
*/
|
|
4097
|
+
pageSize?: number;
|
|
4098
|
+
/**
|
|
4099
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4100
|
+
*/
|
|
4101
|
+
sortOrder?: SortOrder;
|
|
4102
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
type RpcErrorDto = {
|
|
4106
|
+
code: number;
|
|
4107
|
+
message: string;
|
|
4108
|
+
data?: Record<string, any>;
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
type RpcErrorResponseDto = {
|
|
4112
|
+
jsonrpc: string;
|
|
4113
|
+
id?: (string | number);
|
|
4114
|
+
error: RpcErrorDto;
|
|
4115
|
+
};
|
|
4116
|
+
|
|
4117
|
+
type RpcRequestBodyDto = {
|
|
4118
|
+
method: string;
|
|
4119
|
+
params?: Record<string, any>;
|
|
4120
|
+
id?: (string | number);
|
|
4121
|
+
jsonrpc?: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type RpcSuccessResponseDto = {
|
|
4125
|
+
jsonrpc: string;
|
|
4126
|
+
id?: (string | number);
|
|
4127
|
+
result: Record<string, any>;
|
|
4128
|
+
};
|
|
4129
|
+
|
|
4130
|
+
declare class RpcService {
|
|
4131
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4132
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4133
|
+
/**
|
|
4134
|
+
* Calls JSON-RPC method
|
|
4135
|
+
* Calls JSON-RPC method.
|
|
4136
|
+
* @returns any
|
|
4137
|
+
* @throws ApiError
|
|
4138
|
+
*/
|
|
4139
|
+
rpc({ chainId, requestBody, }: {
|
|
4140
|
+
/**
|
|
4141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4142
|
+
*/
|
|
4143
|
+
chainId: string;
|
|
4144
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4145
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
type TeleporterDestinationTransaction = {
|
|
4149
|
+
txHash: string;
|
|
4150
|
+
timestamp: number;
|
|
4151
|
+
gasSpent: string;
|
|
4152
|
+
rewardRedeemer: string;
|
|
4153
|
+
delivererAddress: string;
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
type TeleporterReceipt = {
|
|
4157
|
+
receivedMessageNonce: string;
|
|
4158
|
+
relayerRewardAddress: string;
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
type TeleporterRewardDetails = {
|
|
4162
|
+
/**
|
|
4163
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4164
|
+
*/
|
|
4165
|
+
address: string;
|
|
4166
|
+
/**
|
|
4167
|
+
* The contract name.
|
|
4168
|
+
*/
|
|
4169
|
+
name: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* The contract symbol.
|
|
4172
|
+
*/
|
|
4173
|
+
symbol: string;
|
|
4174
|
+
/**
|
|
4175
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4176
|
+
*/
|
|
4177
|
+
decimals: number;
|
|
4178
|
+
/**
|
|
4179
|
+
* The logo uri for the address.
|
|
4180
|
+
*/
|
|
4181
|
+
logoUri?: string;
|
|
4182
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4183
|
+
/**
|
|
4184
|
+
* The token price, if available.
|
|
4185
|
+
*/
|
|
4186
|
+
price?: Money;
|
|
4187
|
+
value: string;
|
|
4188
|
+
};
|
|
4189
|
+
declare namespace TeleporterRewardDetails {
|
|
4190
|
+
enum ercType {
|
|
4191
|
+
ERC_20 = "ERC-20"
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4196
|
+
messageId: string;
|
|
4197
|
+
teleporterContractAddress: string;
|
|
4198
|
+
sourceBlockchainId: string;
|
|
4199
|
+
destinationBlockchainId: string;
|
|
4200
|
+
messageNonce: string;
|
|
4201
|
+
from: string;
|
|
4202
|
+
to: string;
|
|
4203
|
+
data?: string;
|
|
4204
|
+
messageExecuted: boolean;
|
|
4205
|
+
receipts: Array<TeleporterReceipt>;
|
|
4206
|
+
receiptDelivered: boolean;
|
|
4207
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4208
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4209
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4210
|
+
};
|
|
4211
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4212
|
+
enum status {
|
|
4213
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4214
|
+
}
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
type TeleporterSourceTransaction = {
|
|
4218
|
+
txHash: string;
|
|
4219
|
+
timestamp: number;
|
|
4220
|
+
gasSpent: string;
|
|
4221
|
+
};
|
|
4222
|
+
|
|
4223
|
+
type DeliveredTeleporterMessage = {
|
|
4224
|
+
messageId: string;
|
|
4225
|
+
teleporterContractAddress: string;
|
|
4226
|
+
sourceBlockchainId: string;
|
|
4227
|
+
destinationBlockchainId: string;
|
|
4228
|
+
messageNonce: string;
|
|
4229
|
+
from: string;
|
|
4230
|
+
to: string;
|
|
4231
|
+
data?: string;
|
|
4232
|
+
messageExecuted: boolean;
|
|
4233
|
+
receipts: Array<TeleporterReceipt>;
|
|
4234
|
+
receiptDelivered: boolean;
|
|
4235
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4236
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4237
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4238
|
+
status: DeliveredTeleporterMessage.status;
|
|
4239
|
+
};
|
|
4240
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4241
|
+
enum status {
|
|
4242
|
+
DELIVERED = "delivered"
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
type NextPageToken = {
|
|
4247
|
+
/**
|
|
4248
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4249
|
+
*/
|
|
4250
|
+
nextPageToken?: string;
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
type PendingTeleporterMessage = {
|
|
4254
|
+
messageId: string;
|
|
4255
|
+
teleporterContractAddress: string;
|
|
4256
|
+
sourceBlockchainId: string;
|
|
4257
|
+
destinationBlockchainId: string;
|
|
4258
|
+
messageNonce: string;
|
|
4259
|
+
from: string;
|
|
4260
|
+
to: string;
|
|
4261
|
+
data?: string;
|
|
4262
|
+
messageExecuted: boolean;
|
|
4263
|
+
receipts: Array<TeleporterReceipt>;
|
|
4264
|
+
receiptDelivered: boolean;
|
|
4265
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4266
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4267
|
+
status: PendingTeleporterMessage.status;
|
|
4268
|
+
};
|
|
4269
|
+
declare namespace PendingTeleporterMessage {
|
|
4270
|
+
enum status {
|
|
4271
|
+
PENDING = "pending"
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
declare class TeleporterService {
|
|
4276
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4277
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4278
|
+
/**
|
|
4279
|
+
* Get a teleporter message
|
|
4280
|
+
* Gets a teleporter message by message ID.
|
|
4281
|
+
* @returns any
|
|
4282
|
+
* @throws ApiError
|
|
4283
|
+
*/
|
|
4284
|
+
getTeleporterMessage({ messageId, }: {
|
|
4285
|
+
/**
|
|
4286
|
+
* The message ID of the teleporter message.
|
|
4287
|
+
*/
|
|
4288
|
+
messageId: string;
|
|
4289
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4290
|
+
/**
|
|
4291
|
+
* List teleporter messages
|
|
4292
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4293
|
+
* @returns any
|
|
4294
|
+
* @throws ApiError
|
|
4295
|
+
*/
|
|
4296
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4297
|
+
/**
|
|
4298
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4299
|
+
*/
|
|
4300
|
+
pageToken?: string;
|
|
3920
4301
|
/**
|
|
3921
4302
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3922
4303
|
*/
|
|
3923
4304
|
pageSize?: number;
|
|
4305
|
+
/**
|
|
4306
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4307
|
+
*/
|
|
4308
|
+
sourceBlockchainId?: string;
|
|
4309
|
+
/**
|
|
4310
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4311
|
+
*/
|
|
4312
|
+
destinationBlockchainId?: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* The address of the recipient of the teleporter message.
|
|
4315
|
+
*/
|
|
4316
|
+
to?: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The address of the sender of the teleporter message.
|
|
4319
|
+
*/
|
|
4320
|
+
from?: string;
|
|
4321
|
+
}): CancelablePromise<NextPageToken>;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
type AddressActivityMetadata = {
|
|
4325
|
+
/**
|
|
4326
|
+
* Ethereum address for the address_activity event type
|
|
4327
|
+
*/
|
|
4328
|
+
address: string;
|
|
4329
|
+
/**
|
|
4330
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4331
|
+
*/
|
|
4332
|
+
eventSignatures?: Array<string>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
declare enum EventType {
|
|
4336
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
declare enum WebhookStatusType {
|
|
4340
|
+
ACTIVE = "active",
|
|
4341
|
+
INACTIVE = "inactive"
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
type WebhookResponse = {
|
|
4345
|
+
id: string;
|
|
4346
|
+
eventType: EventType;
|
|
4347
|
+
metadata: AddressActivityMetadata;
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether to include traces in the webhook payload.
|
|
4350
|
+
*/
|
|
4351
|
+
includeInternalTxs?: boolean;
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether to include logs in the webhook payload.
|
|
4354
|
+
*/
|
|
4355
|
+
includeLogs?: boolean;
|
|
4356
|
+
url: string;
|
|
4357
|
+
chainId: string;
|
|
4358
|
+
status: WebhookStatusType;
|
|
4359
|
+
createdAt: number;
|
|
4360
|
+
name: string;
|
|
4361
|
+
description: string;
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
type ListWebhooksResponse = {
|
|
4365
|
+
/**
|
|
4366
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4367
|
+
*/
|
|
4368
|
+
nextPageToken?: string;
|
|
4369
|
+
webhooks: Array<WebhookResponse>;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type RegisterWebhookRequest = {
|
|
4373
|
+
url: string;
|
|
4374
|
+
chainId: string;
|
|
4375
|
+
eventType: EventType;
|
|
4376
|
+
metadata: AddressActivityMetadata;
|
|
4377
|
+
/**
|
|
4378
|
+
* Whether to include traces in the webhook payload.
|
|
4379
|
+
*/
|
|
4380
|
+
includeInternalTxs?: boolean;
|
|
4381
|
+
/**
|
|
4382
|
+
* Whether to include logs in the webhook payload.
|
|
4383
|
+
*/
|
|
4384
|
+
includeLogs?: boolean;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
type SharedSecretsResponse = {
|
|
4388
|
+
secret: string;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
type UpdateWebhookRequest = {
|
|
4392
|
+
name?: string;
|
|
4393
|
+
description?: string;
|
|
4394
|
+
url?: string;
|
|
4395
|
+
status?: WebhookStatusType;
|
|
4396
|
+
includeInternalTxs?: boolean;
|
|
4397
|
+
includeLogs?: boolean;
|
|
4398
|
+
};
|
|
4399
|
+
|
|
4400
|
+
declare enum WebhookStatus {
|
|
4401
|
+
ACTIVE = "active",
|
|
4402
|
+
INACTIVE = "inactive"
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
declare class WebhooksService {
|
|
4406
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4407
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4408
|
+
/**
|
|
4409
|
+
* Register a webhook
|
|
4410
|
+
* Registers a new webhook.
|
|
4411
|
+
* @returns WebhookResponse
|
|
4412
|
+
* @throws ApiError
|
|
4413
|
+
*/
|
|
4414
|
+
registerWebhook({ requestBody, }: {
|
|
4415
|
+
requestBody: RegisterWebhookRequest;
|
|
4416
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4417
|
+
/**
|
|
4418
|
+
* List webhooks
|
|
4419
|
+
* Lists webhooks for the user.
|
|
4420
|
+
* @returns ListWebhooksResponse
|
|
4421
|
+
* @throws ApiError
|
|
4422
|
+
*/
|
|
4423
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3924
4424
|
/**
|
|
3925
4425
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3926
4426
|
*/
|
|
3927
4427
|
pageToken?: string;
|
|
3928
4428
|
/**
|
|
3929
|
-
* The
|
|
4429
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3930
4430
|
*/
|
|
3931
|
-
|
|
3932
|
-
|
|
4431
|
+
pageSize?: number;
|
|
4432
|
+
/**
|
|
4433
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
4434
|
+
*/
|
|
4435
|
+
status?: WebhookStatus;
|
|
4436
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get a webhook by ID
|
|
4439
|
+
* Retrieves a webhook by ID.
|
|
4440
|
+
* @returns WebhookResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
getWebhook({ id, }: {
|
|
4444
|
+
/**
|
|
4445
|
+
* The webhook identifier.
|
|
4446
|
+
*/
|
|
4447
|
+
id: string;
|
|
4448
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4449
|
+
/**
|
|
4450
|
+
* Deactivate a webhook
|
|
4451
|
+
* Deactivates a webhook by ID.
|
|
4452
|
+
* @returns WebhookResponse
|
|
4453
|
+
* @throws ApiError
|
|
4454
|
+
*/
|
|
4455
|
+
deactivateWebhook({ id, }: {
|
|
4456
|
+
/**
|
|
4457
|
+
* The webhook identifier.
|
|
4458
|
+
*/
|
|
4459
|
+
id: string;
|
|
4460
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4461
|
+
/**
|
|
4462
|
+
* Update a webhook
|
|
4463
|
+
* Updates an existing webhook.
|
|
4464
|
+
* @returns WebhookResponse
|
|
4465
|
+
* @throws ApiError
|
|
4466
|
+
*/
|
|
4467
|
+
updateWebhook({ id, requestBody, }: {
|
|
4468
|
+
/**
|
|
4469
|
+
* The webhook identifier.
|
|
4470
|
+
*/
|
|
4471
|
+
id: string;
|
|
4472
|
+
requestBody: UpdateWebhookRequest;
|
|
4473
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4474
|
+
/**
|
|
4475
|
+
* Generate a shared secret
|
|
4476
|
+
* Generates a new shared secret.
|
|
4477
|
+
* @returns SharedSecretsResponse
|
|
4478
|
+
* @throws ApiError
|
|
4479
|
+
*/
|
|
4480
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4481
|
+
/**
|
|
4482
|
+
* Get a shared secret
|
|
4483
|
+
* Get a previously generated shared secret.
|
|
4484
|
+
* @returns SharedSecretsResponse
|
|
4485
|
+
* @throws ApiError
|
|
4486
|
+
*/
|
|
4487
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
3933
4488
|
}
|
|
3934
4489
|
|
|
3935
4490
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3950,6 +4505,9 @@ declare class Glacier {
|
|
|
3950
4505
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3951
4506
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3952
4507
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4508
|
+
readonly rpc: RpcService;
|
|
4509
|
+
readonly teleporter: TeleporterService;
|
|
4510
|
+
readonly webhooks: WebhooksService;
|
|
3953
4511
|
readonly request: BaseHttpRequest;
|
|
3954
4512
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3955
4513
|
}
|
|
@@ -3971,4 +4529,4 @@ declare class ApiError extends Error {
|
|
|
3971
4529
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3972
4530
|
}
|
|
3973
4531
|
|
|
3974
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4532
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|