@avalabs/glacier-sdk 2.8.0-canary.6573f71.0 → 2.8.0-canary.6577bde.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 +245 -375
- package/dist/index.js +107 -164
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +0 -3
- package/esm/generated/models/Asset.d.ts +3 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/PChainSharedAsset.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/WebhookResponse.d.ts +2 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/services/DefaultService.d.ts +5 -5
- package/esm/generated/services/DefaultService.js +2 -2
- 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 +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- 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 +17 -12
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
- package/esm/generated/services/PrimaryNetworkService.js +11 -11
- 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/index.d.ts +3 -8
- package/esm/index.js +2 -5
- package/package.json +2 -2
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +0 -24
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +0 -8
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +0 -26
- package/esm/generated/models/DeliveredTeleporterMessage.js +0 -8
- package/esm/generated/models/NextPageToken.d.ts +0 -8
- package/esm/generated/models/PendingTeleporterMessage.d.ts +0 -24
- package/esm/generated/models/PendingTeleporterMessage.js +0 -8
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +0 -9
- package/esm/generated/models/TeleporterRewardDetails.d.ts +0 -37
- package/esm/generated/models/TeleporterRewardDetails.js +0 -8
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +0 -7
- package/esm/generated/services/TeleporterService.d.ts +0 -65
- package/esm/generated/services/TeleporterService.js +0 -43
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ type WebhookResponse = {
|
|
|
88
88
|
chainId: string;
|
|
89
89
|
status: WebhookStatusType;
|
|
90
90
|
createdAt: number;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
91
93
|
};
|
|
92
94
|
|
|
93
95
|
type ListWebhooksResponse = {
|
|
@@ -140,15 +142,15 @@ declare class DefaultService {
|
|
|
140
142
|
* @returns ListWebhooksResponse
|
|
141
143
|
* @throws ApiError
|
|
142
144
|
*/
|
|
143
|
-
listWebhooks({
|
|
144
|
-
/**
|
|
145
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
146
|
-
*/
|
|
147
|
-
pageSize?: number;
|
|
145
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
148
146
|
/**
|
|
149
147
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
150
148
|
*/
|
|
151
149
|
pageToken?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
152
|
+
*/
|
|
153
|
+
pageSize?: number;
|
|
152
154
|
/**
|
|
153
155
|
* 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.
|
|
154
156
|
*/
|
|
@@ -450,7 +452,7 @@ declare class EvmBalancesService {
|
|
|
450
452
|
*/
|
|
451
453
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
452
454
|
/**
|
|
453
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
455
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
454
456
|
*/
|
|
455
457
|
chainId: string;
|
|
456
458
|
/**
|
|
@@ -476,9 +478,9 @@ declare class EvmBalancesService {
|
|
|
476
478
|
* @returns ListErc20BalancesResponse
|
|
477
479
|
* @throws ApiError
|
|
478
480
|
*/
|
|
479
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
481
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
480
482
|
/**
|
|
481
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
483
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
482
484
|
*/
|
|
483
485
|
chainId: string;
|
|
484
486
|
/**
|
|
@@ -489,14 +491,14 @@ declare class EvmBalancesService {
|
|
|
489
491
|
* The block number, if not defined the block number will be the latest block.
|
|
490
492
|
*/
|
|
491
493
|
blockNumber?: string;
|
|
492
|
-
/**
|
|
493
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
494
|
-
*/
|
|
495
|
-
pageSize?: number;
|
|
496
494
|
/**
|
|
497
495
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
498
496
|
*/
|
|
499
497
|
pageToken?: string;
|
|
498
|
+
/**
|
|
499
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
500
|
+
*/
|
|
501
|
+
pageSize?: number;
|
|
500
502
|
/**
|
|
501
503
|
* A comma separated list of contract addresses to filter by.
|
|
502
504
|
*/
|
|
@@ -514,23 +516,23 @@ declare class EvmBalancesService {
|
|
|
514
516
|
* @returns ListErc721BalancesResponse
|
|
515
517
|
* @throws ApiError
|
|
516
518
|
*/
|
|
517
|
-
listErc721Balances({ chainId, address,
|
|
519
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
518
520
|
/**
|
|
519
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
521
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
520
522
|
*/
|
|
521
523
|
chainId: string;
|
|
522
524
|
/**
|
|
523
525
|
* A wallet address.
|
|
524
526
|
*/
|
|
525
527
|
address: string;
|
|
526
|
-
/**
|
|
527
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
528
|
-
*/
|
|
529
|
-
pageSize?: number;
|
|
530
528
|
/**
|
|
531
529
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
532
530
|
*/
|
|
533
531
|
pageToken?: string;
|
|
532
|
+
/**
|
|
533
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
534
|
+
*/
|
|
535
|
+
pageSize?: number;
|
|
534
536
|
/**
|
|
535
537
|
* A contract addresses to filter by.
|
|
536
538
|
*/
|
|
@@ -546,9 +548,9 @@ declare class EvmBalancesService {
|
|
|
546
548
|
* @returns ListErc1155BalancesResponse
|
|
547
549
|
* @throws ApiError
|
|
548
550
|
*/
|
|
549
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
551
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
550
552
|
/**
|
|
551
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
553
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
552
554
|
*/
|
|
553
555
|
chainId: string;
|
|
554
556
|
/**
|
|
@@ -559,14 +561,14 @@ declare class EvmBalancesService {
|
|
|
559
561
|
* The block number, if not defined the block number will be the latest block.
|
|
560
562
|
*/
|
|
561
563
|
blockNumber?: string;
|
|
562
|
-
/**
|
|
563
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
564
|
-
*/
|
|
565
|
-
pageSize?: number;
|
|
566
564
|
/**
|
|
567
565
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
568
566
|
*/
|
|
569
567
|
pageToken?: string;
|
|
568
|
+
/**
|
|
569
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
570
|
+
*/
|
|
571
|
+
pageSize?: number;
|
|
570
572
|
/**
|
|
571
573
|
* A contract addresses to filter by.
|
|
572
574
|
*/
|
|
@@ -580,23 +582,23 @@ declare class EvmBalancesService {
|
|
|
580
582
|
* @returns ListCollectibleBalancesResponse
|
|
581
583
|
* @throws ApiError
|
|
582
584
|
*/
|
|
583
|
-
listCollectibleBalances({ chainId, address,
|
|
585
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
584
586
|
/**
|
|
585
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
587
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
586
588
|
*/
|
|
587
589
|
chainId: string;
|
|
588
590
|
/**
|
|
589
591
|
* A wallet address.
|
|
590
592
|
*/
|
|
591
593
|
address: string;
|
|
592
|
-
/**
|
|
593
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
594
|
-
*/
|
|
595
|
-
pageSize?: number;
|
|
596
594
|
/**
|
|
597
595
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
598
596
|
*/
|
|
599
597
|
pageToken?: string;
|
|
598
|
+
/**
|
|
599
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
600
|
+
*/
|
|
601
|
+
pageSize?: number;
|
|
600
602
|
/**
|
|
601
603
|
* A contract addresses to filter by.
|
|
602
604
|
*/
|
|
@@ -709,19 +711,19 @@ declare class EvmBlocksService {
|
|
|
709
711
|
* @returns ListEvmBlocksResponse
|
|
710
712
|
* @throws ApiError
|
|
711
713
|
*/
|
|
712
|
-
getLatestBlocks({ chainId,
|
|
714
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
713
715
|
/**
|
|
714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
716
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
715
717
|
*/
|
|
716
718
|
chainId: string;
|
|
717
|
-
/**
|
|
718
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
719
|
-
*/
|
|
720
|
-
pageSize?: number;
|
|
721
719
|
/**
|
|
722
720
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
723
721
|
*/
|
|
724
722
|
pageToken?: string;
|
|
723
|
+
/**
|
|
724
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
725
|
+
*/
|
|
726
|
+
pageSize?: number;
|
|
725
727
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
726
728
|
/**
|
|
727
729
|
* Get block
|
|
@@ -731,7 +733,7 @@ declare class EvmBlocksService {
|
|
|
731
733
|
*/
|
|
732
734
|
getBlock({ chainId, blockId, }: {
|
|
733
735
|
/**
|
|
734
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
736
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
735
737
|
*/
|
|
736
738
|
chainId: string;
|
|
737
739
|
/**
|
|
@@ -852,7 +854,7 @@ declare class EvmChainsService {
|
|
|
852
854
|
*/
|
|
853
855
|
getChainInfo({ chainId, }: {
|
|
854
856
|
/**
|
|
855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
857
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
856
858
|
*/
|
|
857
859
|
chainId: string;
|
|
858
860
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1147,7 +1149,7 @@ declare class EvmContractsService {
|
|
|
1147
1149
|
*/
|
|
1148
1150
|
getContractMetadata({ chainId, address, }: {
|
|
1149
1151
|
/**
|
|
1150
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1152
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1151
1153
|
*/
|
|
1152
1154
|
chainId: string;
|
|
1153
1155
|
/**
|
|
@@ -1163,7 +1165,7 @@ declare class EvmContractsService {
|
|
|
1163
1165
|
*/
|
|
1164
1166
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
1167
|
/**
|
|
1166
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1168
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
1169
|
*/
|
|
1168
1170
|
chainId: string;
|
|
1169
1171
|
/**
|
|
@@ -1691,7 +1693,7 @@ declare class EvmTransactionsService {
|
|
|
1691
1693
|
*/
|
|
1692
1694
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1693
1695
|
/**
|
|
1694
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1696
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1695
1697
|
*/
|
|
1696
1698
|
chainId: string;
|
|
1697
1699
|
/**
|
|
@@ -1709,23 +1711,23 @@ declare class EvmTransactionsService {
|
|
|
1709
1711
|
* @returns ListContractsResponse
|
|
1710
1712
|
* @throws ApiError
|
|
1711
1713
|
*/
|
|
1712
|
-
listContractDeployments({ chainId, address,
|
|
1714
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1713
1715
|
/**
|
|
1714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1716
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1715
1717
|
*/
|
|
1716
1718
|
chainId: string;
|
|
1717
1719
|
/**
|
|
1718
1720
|
* A wallet address.
|
|
1719
1721
|
*/
|
|
1720
1722
|
address: string;
|
|
1721
|
-
/**
|
|
1722
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1723
|
-
*/
|
|
1724
|
-
pageSize?: number;
|
|
1725
1723
|
/**
|
|
1726
1724
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1727
1725
|
*/
|
|
1728
1726
|
pageToken?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1729
|
+
*/
|
|
1730
|
+
pageSize?: number;
|
|
1729
1731
|
}): CancelablePromise<ListContractsResponse>;
|
|
1730
1732
|
/**
|
|
1731
1733
|
* List ERC transfers
|
|
@@ -1733,9 +1735,9 @@ declare class EvmTransactionsService {
|
|
|
1733
1735
|
* @returns ListTransfersResponse
|
|
1734
1736
|
* @throws ApiError
|
|
1735
1737
|
*/
|
|
1736
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1738
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
1739
|
/**
|
|
1738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1740
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
1741
|
*/
|
|
1740
1742
|
chainId: string;
|
|
1741
1743
|
/**
|
|
@@ -1750,14 +1752,14 @@ declare class EvmTransactionsService {
|
|
|
1750
1752
|
* 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.
|
|
1751
1753
|
*/
|
|
1752
1754
|
endBlock?: number;
|
|
1753
|
-
/**
|
|
1754
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
-
*/
|
|
1756
|
-
pageSize?: number;
|
|
1757
1755
|
/**
|
|
1758
1756
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1759
1757
|
*/
|
|
1760
1758
|
pageToken?: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1761
|
+
*/
|
|
1762
|
+
pageSize?: number;
|
|
1761
1763
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1762
1764
|
/**
|
|
1763
1765
|
* List transactions
|
|
@@ -1767,23 +1769,23 @@ declare class EvmTransactionsService {
|
|
|
1767
1769
|
* @returns ListTransactionDetailsResponse
|
|
1768
1770
|
* @throws ApiError
|
|
1769
1771
|
*/
|
|
1770
|
-
listTransactions({ chainId, address,
|
|
1772
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1771
1773
|
/**
|
|
1772
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1774
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1773
1775
|
*/
|
|
1774
1776
|
chainId: string;
|
|
1775
1777
|
/**
|
|
1776
1778
|
* A wallet address.
|
|
1777
1779
|
*/
|
|
1778
1780
|
address: string;
|
|
1779
|
-
/**
|
|
1780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1781
|
-
*/
|
|
1782
|
-
pageSize?: number;
|
|
1783
1781
|
/**
|
|
1784
1782
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1785
1783
|
*/
|
|
1786
1784
|
pageToken?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1787
|
+
*/
|
|
1788
|
+
pageSize?: number;
|
|
1787
1789
|
/**
|
|
1788
1790
|
* 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.
|
|
1789
1791
|
*/
|
|
@@ -1803,9 +1805,9 @@ declare class EvmTransactionsService {
|
|
|
1803
1805
|
* @returns ListNativeTransactionsResponse
|
|
1804
1806
|
* @throws ApiError
|
|
1805
1807
|
*/
|
|
1806
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1808
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1807
1809
|
/**
|
|
1808
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1810
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
1811
|
*/
|
|
1810
1812
|
chainId: string;
|
|
1811
1813
|
/**
|
|
@@ -1820,14 +1822,14 @@ declare class EvmTransactionsService {
|
|
|
1820
1822
|
* 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.
|
|
1821
1823
|
*/
|
|
1822
1824
|
endBlock?: number;
|
|
1823
|
-
/**
|
|
1824
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1825
|
-
*/
|
|
1826
|
-
pageSize?: number;
|
|
1827
1825
|
/**
|
|
1828
1826
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1829
1827
|
*/
|
|
1830
1828
|
pageToken?: string;
|
|
1829
|
+
/**
|
|
1830
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1831
|
+
*/
|
|
1832
|
+
pageSize?: number;
|
|
1831
1833
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1832
1834
|
/**
|
|
1833
1835
|
* List ERC-20 transfers
|
|
@@ -1835,9 +1837,9 @@ declare class EvmTransactionsService {
|
|
|
1835
1837
|
* @returns ListErc20TransactionsResponse
|
|
1836
1838
|
* @throws ApiError
|
|
1837
1839
|
*/
|
|
1838
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1840
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1839
1841
|
/**
|
|
1840
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1842
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1841
1843
|
*/
|
|
1842
1844
|
chainId: string;
|
|
1843
1845
|
/**
|
|
@@ -1852,14 +1854,14 @@ declare class EvmTransactionsService {
|
|
|
1852
1854
|
* 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.
|
|
1853
1855
|
*/
|
|
1854
1856
|
endBlock?: number;
|
|
1855
|
-
/**
|
|
1856
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
-
*/
|
|
1858
|
-
pageSize?: number;
|
|
1859
1857
|
/**
|
|
1860
1858
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1861
1859
|
*/
|
|
1862
1860
|
pageToken?: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1863
|
+
*/
|
|
1864
|
+
pageSize?: number;
|
|
1863
1865
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1864
1866
|
/**
|
|
1865
1867
|
* List ERC-721 transfers
|
|
@@ -1867,9 +1869,9 @@ declare class EvmTransactionsService {
|
|
|
1867
1869
|
* @returns ListErc721TransactionsResponse
|
|
1868
1870
|
* @throws ApiError
|
|
1869
1871
|
*/
|
|
1870
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1872
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1871
1873
|
/**
|
|
1872
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1874
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1873
1875
|
*/
|
|
1874
1876
|
chainId: string;
|
|
1875
1877
|
/**
|
|
@@ -1884,14 +1886,14 @@ declare class EvmTransactionsService {
|
|
|
1884
1886
|
* 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.
|
|
1885
1887
|
*/
|
|
1886
1888
|
endBlock?: number;
|
|
1887
|
-
/**
|
|
1888
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1889
|
-
*/
|
|
1890
|
-
pageSize?: number;
|
|
1891
1889
|
/**
|
|
1892
1890
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1893
1891
|
*/
|
|
1894
1892
|
pageToken?: string;
|
|
1893
|
+
/**
|
|
1894
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1895
|
+
*/
|
|
1896
|
+
pageSize?: number;
|
|
1895
1897
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1896
1898
|
/**
|
|
1897
1899
|
* List ERC-1155 transfers
|
|
@@ -1899,9 +1901,9 @@ declare class EvmTransactionsService {
|
|
|
1899
1901
|
* @returns ListErc1155TransactionsResponse
|
|
1900
1902
|
* @throws ApiError
|
|
1901
1903
|
*/
|
|
1902
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1904
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1903
1905
|
/**
|
|
1904
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1906
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
1907
|
*/
|
|
1906
1908
|
chainId: string;
|
|
1907
1909
|
/**
|
|
@@ -1916,14 +1918,14 @@ declare class EvmTransactionsService {
|
|
|
1916
1918
|
* 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.
|
|
1917
1919
|
*/
|
|
1918
1920
|
endBlock?: number;
|
|
1919
|
-
/**
|
|
1920
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1921
|
-
*/
|
|
1922
|
-
pageSize?: number;
|
|
1923
1921
|
/**
|
|
1924
1922
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1925
1923
|
*/
|
|
1926
1924
|
pageToken?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1927
|
+
*/
|
|
1928
|
+
pageSize?: number;
|
|
1927
1929
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1928
1930
|
/**
|
|
1929
1931
|
* List internal transactions
|
|
@@ -1933,9 +1935,9 @@ declare class EvmTransactionsService {
|
|
|
1933
1935
|
* @returns ListInternalTransactionsResponse
|
|
1934
1936
|
* @throws ApiError
|
|
1935
1937
|
*/
|
|
1936
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1938
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1937
1939
|
/**
|
|
1938
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1940
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1939
1941
|
*/
|
|
1940
1942
|
chainId: string;
|
|
1941
1943
|
/**
|
|
@@ -1950,14 +1952,14 @@ declare class EvmTransactionsService {
|
|
|
1950
1952
|
* 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.
|
|
1951
1953
|
*/
|
|
1952
1954
|
endBlock?: number;
|
|
1953
|
-
/**
|
|
1954
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1955
|
-
*/
|
|
1956
|
-
pageSize?: number;
|
|
1957
1955
|
/**
|
|
1958
1956
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1959
1957
|
*/
|
|
1960
1958
|
pageToken?: string;
|
|
1959
|
+
/**
|
|
1960
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1961
|
+
*/
|
|
1962
|
+
pageSize?: number;
|
|
1961
1963
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1962
1964
|
/**
|
|
1963
1965
|
* Get transaction
|
|
@@ -1967,7 +1969,7 @@ declare class EvmTransactionsService {
|
|
|
1967
1969
|
*/
|
|
1968
1970
|
getTransaction({ chainId, txHash, }: {
|
|
1969
1971
|
/**
|
|
1970
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1972
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1971
1973
|
*/
|
|
1972
1974
|
chainId: string;
|
|
1973
1975
|
/**
|
|
@@ -1983,7 +1985,7 @@ declare class EvmTransactionsService {
|
|
|
1983
1985
|
*/
|
|
1984
1986
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1985
1987
|
/**
|
|
1986
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1988
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1987
1989
|
*/
|
|
1988
1990
|
chainId: string;
|
|
1989
1991
|
/**
|
|
@@ -1997,19 +1999,19 @@ declare class EvmTransactionsService {
|
|
|
1997
1999
|
* @returns ListNativeTransactionsResponse
|
|
1998
2000
|
* @throws ApiError
|
|
1999
2001
|
*/
|
|
2000
|
-
listLatestTransactions({ chainId,
|
|
2002
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2001
2003
|
/**
|
|
2002
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2004
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2003
2005
|
*/
|
|
2004
2006
|
chainId: string;
|
|
2005
|
-
/**
|
|
2006
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2007
|
-
*/
|
|
2008
|
-
pageSize?: number;
|
|
2009
2007
|
/**
|
|
2010
2008
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2011
2009
|
*/
|
|
2012
2010
|
pageToken?: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2013
|
+
*/
|
|
2014
|
+
pageSize?: number;
|
|
2013
2015
|
/**
|
|
2014
2016
|
* A status filter for listed transactions.
|
|
2015
2017
|
*/
|
|
@@ -2052,7 +2054,7 @@ declare class NfTsService {
|
|
|
2052
2054
|
*/
|
|
2053
2055
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2054
2056
|
/**
|
|
2055
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2057
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2056
2058
|
*/
|
|
2057
2059
|
chainId: string;
|
|
2058
2060
|
/**
|
|
@@ -2070,23 +2072,23 @@ declare class NfTsService {
|
|
|
2070
2072
|
* @returns ListNftTokens
|
|
2071
2073
|
* @throws ApiError
|
|
2072
2074
|
*/
|
|
2073
|
-
listTokens({ chainId, address,
|
|
2075
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2074
2076
|
/**
|
|
2075
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2077
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
2078
|
*/
|
|
2077
2079
|
chainId: string;
|
|
2078
2080
|
/**
|
|
2079
2081
|
* Contract address on the relevant chain.
|
|
2080
2082
|
*/
|
|
2081
2083
|
address: string;
|
|
2082
|
-
/**
|
|
2083
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2084
|
-
*/
|
|
2085
|
-
pageSize?: number;
|
|
2086
2084
|
/**
|
|
2087
2085
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2088
2086
|
*/
|
|
2089
2087
|
pageToken?: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2090
|
+
*/
|
|
2091
|
+
pageSize?: number;
|
|
2090
2092
|
}): CancelablePromise<ListNftTokens>;
|
|
2091
2093
|
/**
|
|
2092
2094
|
* Get token details
|
|
@@ -2096,7 +2098,7 @@ declare class NfTsService {
|
|
|
2096
2098
|
*/
|
|
2097
2099
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2098
2100
|
/**
|
|
2099
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2101
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2100
2102
|
*/
|
|
2101
2103
|
chainId: string;
|
|
2102
2104
|
/**
|
|
@@ -2505,6 +2507,16 @@ declare enum ValidationStatusType {
|
|
|
2505
2507
|
REMOVED = "removed"
|
|
2506
2508
|
}
|
|
2507
2509
|
|
|
2510
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2511
|
+
FIXED = "fixed",
|
|
2512
|
+
VARIABLE = "variable"
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
declare enum PrimaryNetworkAssetType {
|
|
2516
|
+
SECP256K1 = "secp256k1",
|
|
2517
|
+
NFT = "nft"
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2508
2520
|
type XChainAssetDetails = {
|
|
2509
2521
|
/**
|
|
2510
2522
|
* Unique ID for an asset.
|
|
@@ -2525,15 +2537,15 @@ type XChainAssetDetails = {
|
|
|
2525
2537
|
/**
|
|
2526
2538
|
* Type of asset like SECP256K1 or NFT.
|
|
2527
2539
|
*/
|
|
2528
|
-
type:
|
|
2540
|
+
type: PrimaryNetworkAssetType;
|
|
2529
2541
|
/**
|
|
2530
2542
|
* Timestamp in seconds this asset was created on.
|
|
2531
2543
|
*/
|
|
2532
2544
|
createdAtTimestamp: number;
|
|
2533
2545
|
/**
|
|
2534
|
-
* Cap represents if an asset
|
|
2546
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2535
2547
|
*/
|
|
2536
|
-
cap:
|
|
2548
|
+
cap: PrimaryNetworkAssetCap;
|
|
2537
2549
|
};
|
|
2538
2550
|
|
|
2539
2551
|
declare enum XChainId {
|
|
@@ -2599,19 +2611,19 @@ declare class PrimaryNetworkService {
|
|
|
2599
2611
|
* @returns ListBlockchainsResponse
|
|
2600
2612
|
* @throws ApiError
|
|
2601
2613
|
*/
|
|
2602
|
-
listBlockchains({ network,
|
|
2614
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2603
2615
|
/**
|
|
2604
2616
|
* Either mainnet or a testnet.
|
|
2605
2617
|
*/
|
|
2606
2618
|
network: Network;
|
|
2607
|
-
/**
|
|
2608
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2609
|
-
*/
|
|
2610
|
-
pageSize?: number;
|
|
2611
2619
|
/**
|
|
2612
2620
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2613
2621
|
*/
|
|
2614
2622
|
pageToken?: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2625
|
+
*/
|
|
2626
|
+
pageSize?: number;
|
|
2615
2627
|
/**
|
|
2616
2628
|
* 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.
|
|
2617
2629
|
*/
|
|
@@ -2623,19 +2635,19 @@ declare class PrimaryNetworkService {
|
|
|
2623
2635
|
* @returns ListSubnetsResponse
|
|
2624
2636
|
* @throws ApiError
|
|
2625
2637
|
*/
|
|
2626
|
-
listSubnets({ network,
|
|
2638
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2627
2639
|
/**
|
|
2628
2640
|
* Either mainnet or a testnet.
|
|
2629
2641
|
*/
|
|
2630
2642
|
network: Network;
|
|
2631
|
-
/**
|
|
2632
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2633
|
-
*/
|
|
2634
|
-
pageSize?: number;
|
|
2635
2643
|
/**
|
|
2636
2644
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2637
2645
|
*/
|
|
2638
2646
|
pageToken?: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2649
|
+
*/
|
|
2650
|
+
pageSize?: number;
|
|
2639
2651
|
/**
|
|
2640
2652
|
* 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.
|
|
2641
2653
|
*/
|
|
@@ -2647,19 +2659,19 @@ declare class PrimaryNetworkService {
|
|
|
2647
2659
|
* @returns ListValidatorDetailsResponse
|
|
2648
2660
|
* @throws ApiError
|
|
2649
2661
|
*/
|
|
2650
|
-
listValidators({ network,
|
|
2662
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2651
2663
|
/**
|
|
2652
2664
|
* Either mainnet or a testnet.
|
|
2653
2665
|
*/
|
|
2654
2666
|
network: Network;
|
|
2655
|
-
/**
|
|
2656
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
-
*/
|
|
2658
|
-
pageSize?: number;
|
|
2659
2667
|
/**
|
|
2660
2668
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2661
2669
|
*/
|
|
2662
2670
|
pageToken?: string;
|
|
2671
|
+
/**
|
|
2672
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2673
|
+
*/
|
|
2674
|
+
pageSize?: number;
|
|
2663
2675
|
/**
|
|
2664
2676
|
* A comma separated list of node ids to filter by.
|
|
2665
2677
|
*/
|
|
@@ -2675,27 +2687,27 @@ declare class PrimaryNetworkService {
|
|
|
2675
2687
|
/**
|
|
2676
2688
|
* 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
|
|
2677
2689
|
*/
|
|
2678
|
-
minDelegationCapacity?:
|
|
2690
|
+
minDelegationCapacity?: string;
|
|
2679
2691
|
/**
|
|
2680
2692
|
* 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.
|
|
2681
2693
|
*/
|
|
2682
|
-
maxDelegationCapacity?:
|
|
2694
|
+
maxDelegationCapacity?: string;
|
|
2683
2695
|
/**
|
|
2684
2696
|
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2685
2697
|
*/
|
|
2686
|
-
minTimeRemaining?:
|
|
2698
|
+
minTimeRemaining?: number;
|
|
2687
2699
|
/**
|
|
2688
2700
|
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2689
2701
|
*/
|
|
2690
|
-
maxTimeRemaining?:
|
|
2702
|
+
maxTimeRemaining?: number;
|
|
2691
2703
|
/**
|
|
2692
2704
|
* 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.
|
|
2693
2705
|
*/
|
|
2694
|
-
minFeePercentage?:
|
|
2706
|
+
minFeePercentage?: number;
|
|
2695
2707
|
/**
|
|
2696
2708
|
* 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.
|
|
2697
2709
|
*/
|
|
2698
|
-
maxFeePercentage?:
|
|
2710
|
+
maxFeePercentage?: number;
|
|
2699
2711
|
/**
|
|
2700
2712
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2701
2713
|
*/
|
|
@@ -2707,7 +2719,7 @@ declare class PrimaryNetworkService {
|
|
|
2707
2719
|
* @returns ListValidatorDetailsResponse
|
|
2708
2720
|
* @throws ApiError
|
|
2709
2721
|
*/
|
|
2710
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2722
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2711
2723
|
/**
|
|
2712
2724
|
* Either mainnet or a testnet.
|
|
2713
2725
|
*/
|
|
@@ -2716,14 +2728,14 @@ declare class PrimaryNetworkService {
|
|
|
2716
2728
|
* A primary network (P or X chain) nodeId.
|
|
2717
2729
|
*/
|
|
2718
2730
|
nodeId: string;
|
|
2719
|
-
/**
|
|
2720
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2721
|
-
*/
|
|
2722
|
-
pageSize?: number;
|
|
2723
2731
|
/**
|
|
2724
2732
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2725
2733
|
*/
|
|
2726
2734
|
pageToken?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
|
+
*/
|
|
2738
|
+
pageSize?: number;
|
|
2727
2739
|
/**
|
|
2728
2740
|
* 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.
|
|
2729
2741
|
*/
|
|
@@ -2739,19 +2751,19 @@ declare class PrimaryNetworkService {
|
|
|
2739
2751
|
* @returns ListDelegatorDetailsResponse
|
|
2740
2752
|
* @throws ApiError
|
|
2741
2753
|
*/
|
|
2742
|
-
listDelegators({ network,
|
|
2754
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2743
2755
|
/**
|
|
2744
2756
|
* Either mainnet or a testnet.
|
|
2745
2757
|
*/
|
|
2746
2758
|
network: Network;
|
|
2747
|
-
/**
|
|
2748
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2749
|
-
*/
|
|
2750
|
-
pageSize?: number;
|
|
2751
2759
|
/**
|
|
2752
2760
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2753
2761
|
*/
|
|
2754
2762
|
pageToken?: string;
|
|
2763
|
+
/**
|
|
2764
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2765
|
+
*/
|
|
2766
|
+
pageSize?: number;
|
|
2755
2767
|
/**
|
|
2756
2768
|
* A comma separated list of reward addresses to filter by.
|
|
2757
2769
|
*/
|
|
@@ -2802,7 +2814,7 @@ type CChainSharedAssetBalance = {
|
|
|
2802
2814
|
/**
|
|
2803
2815
|
* Type of asset like SECP256K1 or NFT.
|
|
2804
2816
|
*/
|
|
2805
|
-
type:
|
|
2817
|
+
type: PrimaryNetworkAssetType;
|
|
2806
2818
|
/**
|
|
2807
2819
|
* Amount of the asset.
|
|
2808
2820
|
*/
|
|
@@ -2857,7 +2869,7 @@ type Asset = {
|
|
|
2857
2869
|
/**
|
|
2858
2870
|
* Type of asset like SECP256K1 or NFT.
|
|
2859
2871
|
*/
|
|
2860
|
-
type:
|
|
2872
|
+
type: PrimaryNetworkAssetType;
|
|
2861
2873
|
/**
|
|
2862
2874
|
* Amount of the asset.
|
|
2863
2875
|
*/
|
|
@@ -2884,7 +2896,7 @@ type PChainSharedAsset = {
|
|
|
2884
2896
|
/**
|
|
2885
2897
|
* Type of asset like SECP256K1 or NFT.
|
|
2886
2898
|
*/
|
|
2887
|
-
type:
|
|
2899
|
+
type: PrimaryNetworkAssetType;
|
|
2888
2900
|
/**
|
|
2889
2901
|
* Amount of the asset.
|
|
2890
2902
|
*/
|
|
@@ -2953,7 +2965,7 @@ type XChainAssetBalance = {
|
|
|
2953
2965
|
/**
|
|
2954
2966
|
* Type of asset like SECP256K1 or NFT.
|
|
2955
2967
|
*/
|
|
2956
|
-
type:
|
|
2968
|
+
type: PrimaryNetworkAssetType;
|
|
2957
2969
|
/**
|
|
2958
2970
|
* Amount of the asset.
|
|
2959
2971
|
*/
|
|
@@ -2981,7 +2993,7 @@ type XChainSharedAssetBalance = {
|
|
|
2981
2993
|
/**
|
|
2982
2994
|
* Type of asset like SECP256K1 or NFT.
|
|
2983
2995
|
*/
|
|
2984
|
-
type:
|
|
2996
|
+
type: PrimaryNetworkAssetType;
|
|
2985
2997
|
/**
|
|
2986
2998
|
* Amount of the asset.
|
|
2987
2999
|
*/
|
|
@@ -3111,7 +3123,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3111
3123
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3112
3124
|
* @throws ApiError
|
|
3113
3125
|
*/
|
|
3114
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3126
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3115
3127
|
/**
|
|
3116
3128
|
* A primary network blockchain id or alias.
|
|
3117
3129
|
*/
|
|
@@ -3124,14 +3136,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3124
3136
|
* A primary network (P or X chain) nodeId.
|
|
3125
3137
|
*/
|
|
3126
3138
|
nodeId: string;
|
|
3127
|
-
/**
|
|
3128
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3129
|
-
*/
|
|
3130
|
-
pageSize?: number;
|
|
3131
3139
|
/**
|
|
3132
3140
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3133
3141
|
*/
|
|
3134
3142
|
pageToken?: string;
|
|
3143
|
+
/**
|
|
3144
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3145
|
+
*/
|
|
3146
|
+
pageSize?: number;
|
|
3135
3147
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3136
3148
|
/**
|
|
3137
3149
|
* List latest blocks
|
|
@@ -3139,7 +3151,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3139
3151
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3140
3152
|
* @throws ApiError
|
|
3141
3153
|
*/
|
|
3142
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3154
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3143
3155
|
/**
|
|
3144
3156
|
* A primary network blockchain id or alias.
|
|
3145
3157
|
*/
|
|
@@ -3148,17 +3160,48 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3148
3160
|
* Either mainnet or a testnet.
|
|
3149
3161
|
*/
|
|
3150
3162
|
network: Network;
|
|
3151
|
-
/**
|
|
3152
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3153
|
-
*/
|
|
3154
|
-
pageSize?: number;
|
|
3155
3163
|
/**
|
|
3156
3164
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3157
3165
|
*/
|
|
3158
3166
|
pageToken?: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3169
|
+
*/
|
|
3170
|
+
pageSize?: number;
|
|
3159
3171
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3160
3172
|
}
|
|
3161
3173
|
|
|
3174
|
+
type AssetWithPriceInfo = {
|
|
3175
|
+
/**
|
|
3176
|
+
* Unique ID for an asset.
|
|
3177
|
+
*/
|
|
3178
|
+
assetId: string;
|
|
3179
|
+
/**
|
|
3180
|
+
* Name of this asset.
|
|
3181
|
+
*/
|
|
3182
|
+
name: string;
|
|
3183
|
+
/**
|
|
3184
|
+
* Symbol for this asset (max 4 characters).
|
|
3185
|
+
*/
|
|
3186
|
+
symbol: string;
|
|
3187
|
+
/**
|
|
3188
|
+
* Denomination of this asset to represent fungibility.
|
|
3189
|
+
*/
|
|
3190
|
+
denomination: number;
|
|
3191
|
+
/**
|
|
3192
|
+
* Type of asset like SECP256K1 or NFT.
|
|
3193
|
+
*/
|
|
3194
|
+
type: PrimaryNetworkAssetType;
|
|
3195
|
+
/**
|
|
3196
|
+
* Amount of the asset.
|
|
3197
|
+
*/
|
|
3198
|
+
amount: string;
|
|
3199
|
+
/**
|
|
3200
|
+
* 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.
|
|
3201
|
+
*/
|
|
3202
|
+
historicalPrice?: Money;
|
|
3203
|
+
};
|
|
3204
|
+
|
|
3162
3205
|
declare enum RewardType {
|
|
3163
3206
|
VALIDATOR = "VALIDATOR",
|
|
3164
3207
|
DELEGATOR = "DELEGATOR",
|
|
@@ -3178,10 +3221,7 @@ type HistoricalReward = {
|
|
|
3178
3221
|
rewardType: RewardType;
|
|
3179
3222
|
utxoId: string;
|
|
3180
3223
|
outputIndex: number;
|
|
3181
|
-
|
|
3182
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3183
|
-
*/
|
|
3184
|
-
reward: Asset;
|
|
3224
|
+
reward: AssetWithPriceInfo;
|
|
3185
3225
|
rewardTxHash: string;
|
|
3186
3226
|
};
|
|
3187
3227
|
|
|
@@ -3228,25 +3268,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3228
3268
|
* @returns ListPendingRewardsResponse
|
|
3229
3269
|
* @throws ApiError
|
|
3230
3270
|
*/
|
|
3231
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3271
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3232
3272
|
/**
|
|
3233
3273
|
* Either mainnet or a testnet.
|
|
3234
3274
|
*/
|
|
3235
3275
|
network: Network;
|
|
3236
3276
|
/**
|
|
3237
|
-
* 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".
|
|
3277
|
+
* 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.
|
|
3238
3278
|
*/
|
|
3239
3279
|
addresses?: string;
|
|
3240
|
-
/**
|
|
3241
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3242
|
-
*/
|
|
3243
|
-
pageSize?: number;
|
|
3244
3280
|
/**
|
|
3245
3281
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3246
3282
|
*/
|
|
3247
3283
|
pageToken?: string;
|
|
3248
3284
|
/**
|
|
3249
|
-
*
|
|
3285
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3286
|
+
*/
|
|
3287
|
+
pageSize?: number;
|
|
3288
|
+
/**
|
|
3289
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3250
3290
|
*/
|
|
3251
3291
|
nodeIds?: string;
|
|
3252
3292
|
/**
|
|
@@ -3260,7 +3300,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3260
3300
|
* @returns ListHistoricalRewardsResponse
|
|
3261
3301
|
* @throws ApiError
|
|
3262
3302
|
*/
|
|
3263
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3303
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3264
3304
|
/**
|
|
3265
3305
|
* Either mainnet or a testnet.
|
|
3266
3306
|
*/
|
|
@@ -3269,14 +3309,14 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3269
3309
|
* 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.
|
|
3270
3310
|
*/
|
|
3271
3311
|
addresses?: string;
|
|
3272
|
-
/**
|
|
3273
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3274
|
-
*/
|
|
3275
|
-
pageSize?: number;
|
|
3276
3312
|
/**
|
|
3277
3313
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3278
3314
|
*/
|
|
3279
3315
|
pageToken?: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3318
|
+
*/
|
|
3319
|
+
pageSize?: number;
|
|
3280
3320
|
/**
|
|
3281
3321
|
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3282
3322
|
*/
|
|
@@ -3285,6 +3325,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3285
3325
|
* 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.
|
|
3286
3326
|
*/
|
|
3287
3327
|
sortOrder?: SortOrder;
|
|
3328
|
+
/**
|
|
3329
|
+
* The currency that return values should use. Defaults to USD.
|
|
3330
|
+
*/
|
|
3331
|
+
currency?: CurrencyCode;
|
|
3288
3332
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3289
3333
|
}
|
|
3290
3334
|
|
|
@@ -3853,13 +3897,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3853
3897
|
* List latest transactions
|
|
3854
3898
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3855
3899
|
*
|
|
3856
|
-
* Transactions are filterable by addresses.
|
|
3900
|
+
* 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.
|
|
3857
3901
|
*
|
|
3858
3902
|
* 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.
|
|
3859
3903
|
* @returns any
|
|
3860
3904
|
* @throws ApiError
|
|
3861
3905
|
*/
|
|
3862
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3863
3907
|
/**
|
|
3864
3908
|
* A primary network blockchain id or alias.
|
|
3865
3909
|
*/
|
|
@@ -3884,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3884
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3885
3929
|
*/
|
|
3886
3930
|
endTimestamp?: number;
|
|
3887
|
-
/**
|
|
3888
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3889
|
-
*/
|
|
3890
|
-
pageSize?: number;
|
|
3891
3931
|
/**
|
|
3892
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3893
3933
|
*/
|
|
3894
3934
|
pageToken?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3937
|
+
*/
|
|
3938
|
+
pageSize?: number;
|
|
3895
3939
|
/**
|
|
3896
3940
|
* 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.
|
|
3897
3941
|
*/
|
|
@@ -3903,7 +3947,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3903
3947
|
* @returns ListPChainTransactionsResponse
|
|
3904
3948
|
* @throws ApiError
|
|
3905
3949
|
*/
|
|
3906
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3950
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3907
3951
|
/**
|
|
3908
3952
|
* A primary network blockchain id or alias.
|
|
3909
3953
|
*/
|
|
@@ -3928,14 +3972,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3928
3972
|
* Query param for retrieving items before a specific timestamp.
|
|
3929
3973
|
*/
|
|
3930
3974
|
endTimestamp?: number;
|
|
3931
|
-
/**
|
|
3932
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3933
|
-
*/
|
|
3934
|
-
pageSize?: number;
|
|
3935
3975
|
/**
|
|
3936
3976
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3937
3977
|
*/
|
|
3938
3978
|
pageToken?: string;
|
|
3979
|
+
/**
|
|
3980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3981
|
+
*/
|
|
3982
|
+
pageSize?: number;
|
|
3939
3983
|
/**
|
|
3940
3984
|
* 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.
|
|
3941
3985
|
*/
|
|
@@ -3947,7 +3991,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3947
3991
|
* @returns ListXChainTransactionsResponse
|
|
3948
3992
|
* @throws ApiError
|
|
3949
3993
|
*/
|
|
3950
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3994
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3951
3995
|
/**
|
|
3952
3996
|
* A primary network blockchain id or alias.
|
|
3953
3997
|
*/
|
|
@@ -3972,14 +4016,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3972
4016
|
* Query param for retrieving items before a specific timestamp.
|
|
3973
4017
|
*/
|
|
3974
4018
|
endTimestamp?: number;
|
|
3975
|
-
/**
|
|
3976
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3977
|
-
*/
|
|
3978
|
-
pageSize?: number;
|
|
3979
4019
|
/**
|
|
3980
4020
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3981
4021
|
*/
|
|
3982
4022
|
pageToken?: string;
|
|
4023
|
+
/**
|
|
4024
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4025
|
+
*/
|
|
4026
|
+
pageSize?: number;
|
|
3983
4027
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3984
4028
|
}
|
|
3985
4029
|
|
|
@@ -4010,7 +4054,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4010
4054
|
* @returns any
|
|
4011
4055
|
* @throws ApiError
|
|
4012
4056
|
*/
|
|
4013
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4057
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
4014
4058
|
/**
|
|
4015
4059
|
* A primary network blockchain id or alias.
|
|
4016
4060
|
*/
|
|
@@ -4023,14 +4067,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4023
4067
|
* 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".
|
|
4024
4068
|
*/
|
|
4025
4069
|
addresses?: string;
|
|
4026
|
-
/**
|
|
4027
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4028
|
-
*/
|
|
4029
|
-
pageSize?: number;
|
|
4030
4070
|
/**
|
|
4031
4071
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4032
4072
|
*/
|
|
4033
4073
|
pageToken?: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4076
|
+
*/
|
|
4077
|
+
pageSize?: number;
|
|
4034
4078
|
/**
|
|
4035
4079
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4036
4080
|
*/
|
|
@@ -4075,7 +4119,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4075
4119
|
* @returns ListXChainVerticesResponse
|
|
4076
4120
|
* @throws ApiError
|
|
4077
4121
|
*/
|
|
4078
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4122
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4079
4123
|
/**
|
|
4080
4124
|
* A primary network blockchain id or alias.
|
|
4081
4125
|
*/
|
|
@@ -4084,14 +4128,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4084
4128
|
* Either mainnet or a testnet.
|
|
4085
4129
|
*/
|
|
4086
4130
|
network: Network;
|
|
4087
|
-
/**
|
|
4088
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4089
|
-
*/
|
|
4090
|
-
pageSize?: number;
|
|
4091
4131
|
/**
|
|
4092
4132
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4093
4133
|
*/
|
|
4094
4134
|
pageToken?: string;
|
|
4135
|
+
/**
|
|
4136
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4137
|
+
*/
|
|
4138
|
+
pageSize?: number;
|
|
4095
4139
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4096
4140
|
/**
|
|
4097
4141
|
* Get vertex
|
|
@@ -4119,7 +4163,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4119
4163
|
* @returns ListXChainVerticesResponse
|
|
4120
4164
|
* @throws ApiError
|
|
4121
4165
|
*/
|
|
4122
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4166
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4123
4167
|
/**
|
|
4124
4168
|
* The height of a vertex.
|
|
4125
4169
|
*/
|
|
@@ -4132,192 +4176,19 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4132
4176
|
* Either mainnet or a testnet.
|
|
4133
4177
|
*/
|
|
4134
4178
|
network: Network;
|
|
4135
|
-
/**
|
|
4136
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4137
|
-
*/
|
|
4138
|
-
pageSize?: number;
|
|
4139
4179
|
/**
|
|
4140
4180
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4141
4181
|
*/
|
|
4142
4182
|
pageToken?: string;
|
|
4143
|
-
/**
|
|
4144
|
-
* 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.
|
|
4145
|
-
*/
|
|
4146
|
-
sortOrder?: SortOrder;
|
|
4147
|
-
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4148
|
-
}
|
|
4149
|
-
|
|
4150
|
-
type TeleporterDestinationTransaction = {
|
|
4151
|
-
txHash: string;
|
|
4152
|
-
timestamp: number;
|
|
4153
|
-
gasSpent: string;
|
|
4154
|
-
rewardRedeemer: string;
|
|
4155
|
-
delivererAddress: string;
|
|
4156
|
-
};
|
|
4157
|
-
|
|
4158
|
-
type TeleporterRewardDetails = {
|
|
4159
|
-
/**
|
|
4160
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
4161
|
-
*/
|
|
4162
|
-
address: string;
|
|
4163
|
-
/**
|
|
4164
|
-
* The contract name.
|
|
4165
|
-
*/
|
|
4166
|
-
name: string;
|
|
4167
|
-
/**
|
|
4168
|
-
* The contract symbol.
|
|
4169
|
-
*/
|
|
4170
|
-
symbol: string;
|
|
4171
|
-
/**
|
|
4172
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4173
|
-
*/
|
|
4174
|
-
decimals: number;
|
|
4175
|
-
/**
|
|
4176
|
-
* The logo uri for the address.
|
|
4177
|
-
*/
|
|
4178
|
-
logoUri?: string;
|
|
4179
|
-
ercType: TeleporterRewardDetails.ercType;
|
|
4180
|
-
/**
|
|
4181
|
-
* The token price, if available.
|
|
4182
|
-
*/
|
|
4183
|
-
price?: Money;
|
|
4184
|
-
value: string;
|
|
4185
|
-
};
|
|
4186
|
-
declare namespace TeleporterRewardDetails {
|
|
4187
|
-
enum ercType {
|
|
4188
|
-
ERC_20 = "ERC-20"
|
|
4189
|
-
}
|
|
4190
|
-
}
|
|
4191
|
-
|
|
4192
|
-
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4193
|
-
sourceBlockchainId: string;
|
|
4194
|
-
destinationBlockchainId: string;
|
|
4195
|
-
messageId: string;
|
|
4196
|
-
from: string;
|
|
4197
|
-
to: string;
|
|
4198
|
-
data?: string;
|
|
4199
|
-
messageExecuted: boolean;
|
|
4200
|
-
receipts: Array<string>;
|
|
4201
|
-
receiptDelivered: boolean;
|
|
4202
|
-
rewardDetails: TeleporterRewardDetails;
|
|
4203
|
-
destinationTransaction: TeleporterDestinationTransaction;
|
|
4204
|
-
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4205
|
-
};
|
|
4206
|
-
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4207
|
-
enum status {
|
|
4208
|
-
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4209
|
-
}
|
|
4210
|
-
}
|
|
4211
|
-
|
|
4212
|
-
type TeleporterSourceTransaction = {
|
|
4213
|
-
txHash: string;
|
|
4214
|
-
timestamp: number;
|
|
4215
|
-
gasSpent: string;
|
|
4216
|
-
};
|
|
4217
|
-
|
|
4218
|
-
type DeliveredTeleporterMessage = {
|
|
4219
|
-
sourceBlockchainId: string;
|
|
4220
|
-
destinationBlockchainId: string;
|
|
4221
|
-
messageId: string;
|
|
4222
|
-
from: string;
|
|
4223
|
-
to: string;
|
|
4224
|
-
data?: string;
|
|
4225
|
-
messageExecuted: boolean;
|
|
4226
|
-
receipts: Array<string>;
|
|
4227
|
-
receiptDelivered: boolean;
|
|
4228
|
-
rewardDetails: TeleporterRewardDetails;
|
|
4229
|
-
sourceTransaction: TeleporterSourceTransaction;
|
|
4230
|
-
destinationTransaction: TeleporterDestinationTransaction;
|
|
4231
|
-
status: DeliveredTeleporterMessage.status;
|
|
4232
|
-
};
|
|
4233
|
-
declare namespace DeliveredTeleporterMessage {
|
|
4234
|
-
enum status {
|
|
4235
|
-
DELIVERED = "delivered"
|
|
4236
|
-
}
|
|
4237
|
-
}
|
|
4238
|
-
|
|
4239
|
-
type NextPageToken = {
|
|
4240
|
-
/**
|
|
4241
|
-
* 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.
|
|
4242
|
-
*/
|
|
4243
|
-
nextPageToken?: string;
|
|
4244
|
-
};
|
|
4245
|
-
|
|
4246
|
-
type PendingTeleporterMessage = {
|
|
4247
|
-
sourceBlockchainId: string;
|
|
4248
|
-
destinationBlockchainId: string;
|
|
4249
|
-
messageId: string;
|
|
4250
|
-
from: string;
|
|
4251
|
-
to: string;
|
|
4252
|
-
data?: string;
|
|
4253
|
-
messageExecuted: boolean;
|
|
4254
|
-
receipts: Array<string>;
|
|
4255
|
-
receiptDelivered: boolean;
|
|
4256
|
-
rewardDetails: TeleporterRewardDetails;
|
|
4257
|
-
sourceTransaction: TeleporterSourceTransaction;
|
|
4258
|
-
status: PendingTeleporterMessage.status;
|
|
4259
|
-
};
|
|
4260
|
-
declare namespace PendingTeleporterMessage {
|
|
4261
|
-
enum status {
|
|
4262
|
-
PENDING = "pending"
|
|
4263
|
-
}
|
|
4264
|
-
}
|
|
4265
|
-
|
|
4266
|
-
declare class TeleporterService {
|
|
4267
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4268
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4269
|
-
/**
|
|
4270
|
-
* Get a teleporter message
|
|
4271
|
-
* Gets a teleporter message by source chain, destination chain, and message ID.
|
|
4272
|
-
* @returns any
|
|
4273
|
-
* @throws ApiError
|
|
4274
|
-
*/
|
|
4275
|
-
getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
|
|
4276
|
-
/**
|
|
4277
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4278
|
-
*/
|
|
4279
|
-
sourceBlockchainId: any;
|
|
4280
|
-
/**
|
|
4281
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4282
|
-
*/
|
|
4283
|
-
destinationBlockchainId: any;
|
|
4284
|
-
/**
|
|
4285
|
-
* The message ID of the teleporter message.
|
|
4286
|
-
*/
|
|
4287
|
-
messageId: any;
|
|
4288
|
-
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4289
|
-
/**
|
|
4290
|
-
* List teleporter messages
|
|
4291
|
-
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4292
|
-
* @returns any
|
|
4293
|
-
* @throws ApiError
|
|
4294
|
-
*/
|
|
4295
|
-
listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4296
4183
|
/**
|
|
4297
4184
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4298
4185
|
*/
|
|
4299
4186
|
pageSize?: number;
|
|
4300
4187
|
/**
|
|
4301
|
-
*
|
|
4302
|
-
*/
|
|
4303
|
-
pageToken?: string;
|
|
4304
|
-
/**
|
|
4305
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4306
|
-
*/
|
|
4307
|
-
sourceBlockchainId?: any;
|
|
4308
|
-
/**
|
|
4309
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4310
|
-
*/
|
|
4311
|
-
destinationBlockchainId?: any;
|
|
4312
|
-
/**
|
|
4313
|
-
* The address of the recipient of the teleporter message.
|
|
4314
|
-
*/
|
|
4315
|
-
to?: any;
|
|
4316
|
-
/**
|
|
4317
|
-
* The address of the sender of the teleporter message.
|
|
4188
|
+
* 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.
|
|
4318
4189
|
*/
|
|
4319
|
-
|
|
4320
|
-
}): CancelablePromise<
|
|
4190
|
+
sortOrder?: SortOrder;
|
|
4191
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4321
4192
|
}
|
|
4322
4193
|
|
|
4323
4194
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4338,7 +4209,6 @@ declare class Glacier {
|
|
|
4338
4209
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4339
4210
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4340
4211
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4341
|
-
readonly teleporter: TeleporterService;
|
|
4342
4212
|
readonly request: BaseHttpRequest;
|
|
4343
4213
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4344
4214
|
}
|
|
@@ -4360,4 +4230,4 @@ declare class ApiError extends Error {
|
|
|
4360
4230
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4361
4231
|
}
|
|
4362
4232
|
|
|
4363
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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,
|
|
4233
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, EVMInput, 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, 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, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|