@avalabs/glacier-sdk 2.8.0-canary.d0bce16.0 → 2.8.0-canary.d5ec74d.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.
Files changed (48) hide show
  1. package/dist/index.d.ts +273 -207
  2. package/dist/index.js +115 -91
  3. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
  4. package/esm/generated/models/Asset.d.ts +3 -1
  5. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  6. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
  7. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  8. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  9. package/esm/generated/models/PChainSharedAsset.d.ts +3 -1
  10. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  11. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  12. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  13. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  14. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  15. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  16. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  17. package/esm/generated/models/ValidationStatusType.js +1 -0
  18. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  19. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  20. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  21. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  22. package/esm/generated/services/DefaultService.d.ts +5 -5
  23. package/esm/generated/services/DefaultService.js +2 -2
  24. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  25. package/esm/generated/services/EvmBalancesService.js +8 -8
  26. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  27. package/esm/generated/services/EvmBlocksService.js +4 -4
  28. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  29. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  30. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  31. package/esm/generated/services/EvmTransactionsService.js +32 -32
  32. package/esm/generated/services/NfTsService.d.ts +8 -8
  33. package/esm/generated/services/NfTsService.js +4 -4
  34. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  35. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  36. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  37. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  38. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
  39. package/esm/generated/services/PrimaryNetworkService.js +11 -11
  40. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  41. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  42. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  43. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  44. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  45. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  46. package/esm/index.d.ts +4 -0
  47. package/esm/index.js +3 -0
  48. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -65,7 +65,10 @@ type AddressActivityMetadata = {
65
65
  * Ethereum address for the address_activity event type
66
66
  */
67
67
  address: string;
68
- topic0?: string;
68
+ /**
69
+ * Array of hexadecimal strings of the event signatures.
70
+ */
71
+ eventSignatures?: Array<string>;
69
72
  };
70
73
 
71
74
  declare enum EventType {
@@ -85,6 +88,8 @@ type WebhookResponse = {
85
88
  chainId: string;
86
89
  status: WebhookStatusType;
87
90
  createdAt: number;
91
+ name: string;
92
+ description: string;
88
93
  };
89
94
 
90
95
  type ListWebhooksResponse = {
@@ -137,15 +142,15 @@ declare class DefaultService {
137
142
  * @returns ListWebhooksResponse
138
143
  * @throws ApiError
139
144
  */
140
- listWebhooks({ pageSize, pageToken, status, }: {
141
- /**
142
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
143
- */
144
- pageSize?: number;
145
+ listWebhooks({ pageToken, pageSize, status, }: {
145
146
  /**
146
147
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
148
  */
148
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;
149
154
  /**
150
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.
151
156
  */
@@ -447,7 +452,7 @@ declare class EvmBalancesService {
447
452
  */
448
453
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
449
454
  /**
450
- * 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.
451
456
  */
452
457
  chainId: string;
453
458
  /**
@@ -473,9 +478,9 @@ declare class EvmBalancesService {
473
478
  * @returns ListErc20BalancesResponse
474
479
  * @throws ApiError
475
480
  */
476
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
481
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
477
482
  /**
478
- * 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.
479
484
  */
480
485
  chainId: string;
481
486
  /**
@@ -486,14 +491,14 @@ declare class EvmBalancesService {
486
491
  * The block number, if not defined the block number will be the latest block.
487
492
  */
488
493
  blockNumber?: string;
489
- /**
490
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
491
- */
492
- pageSize?: number;
493
494
  /**
494
495
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
495
496
  */
496
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;
497
502
  /**
498
503
  * A comma separated list of contract addresses to filter by.
499
504
  */
@@ -511,23 +516,23 @@ declare class EvmBalancesService {
511
516
  * @returns ListErc721BalancesResponse
512
517
  * @throws ApiError
513
518
  */
514
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
519
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
515
520
  /**
516
- * 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.
517
522
  */
518
523
  chainId: string;
519
524
  /**
520
525
  * A wallet address.
521
526
  */
522
527
  address: string;
523
- /**
524
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
525
- */
526
- pageSize?: number;
527
528
  /**
528
529
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
529
530
  */
530
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;
531
536
  /**
532
537
  * A contract addresses to filter by.
533
538
  */
@@ -543,9 +548,9 @@ declare class EvmBalancesService {
543
548
  * @returns ListErc1155BalancesResponse
544
549
  * @throws ApiError
545
550
  */
546
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
551
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
547
552
  /**
548
- * 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.
549
554
  */
550
555
  chainId: string;
551
556
  /**
@@ -556,14 +561,14 @@ declare class EvmBalancesService {
556
561
  * The block number, if not defined the block number will be the latest block.
557
562
  */
558
563
  blockNumber?: string;
559
- /**
560
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
561
- */
562
- pageSize?: number;
563
564
  /**
564
565
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
565
566
  */
566
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;
567
572
  /**
568
573
  * A contract addresses to filter by.
569
574
  */
@@ -577,23 +582,23 @@ declare class EvmBalancesService {
577
582
  * @returns ListCollectibleBalancesResponse
578
583
  * @throws ApiError
579
584
  */
580
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
585
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
581
586
  /**
582
- * 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.
583
588
  */
584
589
  chainId: string;
585
590
  /**
586
591
  * A wallet address.
587
592
  */
588
593
  address: string;
589
- /**
590
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
591
- */
592
- pageSize?: number;
593
594
  /**
594
595
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
595
596
  */
596
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;
597
602
  /**
598
603
  * A contract addresses to filter by.
599
604
  */
@@ -706,19 +711,19 @@ declare class EvmBlocksService {
706
711
  * @returns ListEvmBlocksResponse
707
712
  * @throws ApiError
708
713
  */
709
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
714
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
710
715
  /**
711
- * 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.
712
717
  */
713
718
  chainId: string;
714
- /**
715
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
716
- */
717
- pageSize?: number;
718
719
  /**
719
720
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
720
721
  */
721
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;
722
727
  }): CancelablePromise<ListEvmBlocksResponse>;
723
728
  /**
724
729
  * Get block
@@ -728,7 +733,7 @@ declare class EvmBlocksService {
728
733
  */
729
734
  getBlock({ chainId, blockId, }: {
730
735
  /**
731
- * 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.
732
737
  */
733
738
  chainId: string;
734
739
  /**
@@ -849,7 +854,7 @@ declare class EvmChainsService {
849
854
  */
850
855
  getChainInfo({ chainId, }: {
851
856
  /**
852
- * 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.
853
858
  */
854
859
  chainId: string;
855
860
  }): CancelablePromise<GetChainResponse>;
@@ -1144,7 +1149,7 @@ declare class EvmContractsService {
1144
1149
  */
1145
1150
  getContractMetadata({ chainId, address, }: {
1146
1151
  /**
1147
- * 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.
1148
1153
  */
1149
1154
  chainId: string;
1150
1155
  /**
@@ -1160,7 +1165,7 @@ declare class EvmContractsService {
1160
1165
  */
1161
1166
  updateContractInfo({ chainId, address, requestBody, }: {
1162
1167
  /**
1163
- * 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.
1164
1169
  */
1165
1170
  chainId: string;
1166
1171
  /**
@@ -1688,7 +1693,7 @@ declare class EvmTransactionsService {
1688
1693
  */
1689
1694
  getDeploymentTransaction({ chainId, address, currency, }: {
1690
1695
  /**
1691
- * 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.
1692
1697
  */
1693
1698
  chainId: string;
1694
1699
  /**
@@ -1706,23 +1711,23 @@ declare class EvmTransactionsService {
1706
1711
  * @returns ListContractsResponse
1707
1712
  * @throws ApiError
1708
1713
  */
1709
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1714
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1710
1715
  /**
1711
- * 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.
1712
1717
  */
1713
1718
  chainId: string;
1714
1719
  /**
1715
1720
  * A wallet address.
1716
1721
  */
1717
1722
  address: string;
1718
- /**
1719
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1720
- */
1721
- pageSize?: number;
1722
1723
  /**
1723
1724
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1724
1725
  */
1725
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;
1726
1731
  }): CancelablePromise<ListContractsResponse>;
1727
1732
  /**
1728
1733
  * List ERC transfers
@@ -1730,9 +1735,9 @@ declare class EvmTransactionsService {
1730
1735
  * @returns ListTransfersResponse
1731
1736
  * @throws ApiError
1732
1737
  */
1733
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1738
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1734
1739
  /**
1735
- * 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.
1736
1741
  */
1737
1742
  chainId: string;
1738
1743
  /**
@@ -1747,14 +1752,14 @@ declare class EvmTransactionsService {
1747
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.
1748
1753
  */
1749
1754
  endBlock?: number;
1750
- /**
1751
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1752
- */
1753
- pageSize?: number;
1754
1755
  /**
1755
1756
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1756
1757
  */
1757
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;
1758
1763
  }): CancelablePromise<ListTransfersResponse>;
1759
1764
  /**
1760
1765
  * List transactions
@@ -1764,23 +1769,23 @@ declare class EvmTransactionsService {
1764
1769
  * @returns ListTransactionDetailsResponse
1765
1770
  * @throws ApiError
1766
1771
  */
1767
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1772
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1768
1773
  /**
1769
- * 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.
1770
1775
  */
1771
1776
  chainId: string;
1772
1777
  /**
1773
1778
  * A wallet address.
1774
1779
  */
1775
1780
  address: string;
1776
- /**
1777
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1778
- */
1779
- pageSize?: number;
1780
1781
  /**
1781
1782
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1782
1783
  */
1783
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;
1784
1789
  /**
1785
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.
1786
1791
  */
@@ -1800,9 +1805,9 @@ declare class EvmTransactionsService {
1800
1805
  * @returns ListNativeTransactionsResponse
1801
1806
  * @throws ApiError
1802
1807
  */
1803
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1808
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1804
1809
  /**
1805
- * 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.
1806
1811
  */
1807
1812
  chainId: string;
1808
1813
  /**
@@ -1817,14 +1822,14 @@ declare class EvmTransactionsService {
1817
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.
1818
1823
  */
1819
1824
  endBlock?: number;
1820
- /**
1821
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1822
- */
1823
- pageSize?: number;
1824
1825
  /**
1825
1826
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1826
1827
  */
1827
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;
1828
1833
  }): CancelablePromise<ListNativeTransactionsResponse>;
1829
1834
  /**
1830
1835
  * List ERC-20 transfers
@@ -1832,9 +1837,9 @@ declare class EvmTransactionsService {
1832
1837
  * @returns ListErc20TransactionsResponse
1833
1838
  * @throws ApiError
1834
1839
  */
1835
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1840
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1836
1841
  /**
1837
- * 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.
1838
1843
  */
1839
1844
  chainId: string;
1840
1845
  /**
@@ -1849,14 +1854,14 @@ declare class EvmTransactionsService {
1849
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.
1850
1855
  */
1851
1856
  endBlock?: number;
1852
- /**
1853
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1854
- */
1855
- pageSize?: number;
1856
1857
  /**
1857
1858
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1858
1859
  */
1859
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;
1860
1865
  }): CancelablePromise<ListErc20TransactionsResponse>;
1861
1866
  /**
1862
1867
  * List ERC-721 transfers
@@ -1864,9 +1869,9 @@ declare class EvmTransactionsService {
1864
1869
  * @returns ListErc721TransactionsResponse
1865
1870
  * @throws ApiError
1866
1871
  */
1867
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1872
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1868
1873
  /**
1869
- * 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.
1870
1875
  */
1871
1876
  chainId: string;
1872
1877
  /**
@@ -1881,14 +1886,14 @@ declare class EvmTransactionsService {
1881
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.
1882
1887
  */
1883
1888
  endBlock?: number;
1884
- /**
1885
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1886
- */
1887
- pageSize?: number;
1888
1889
  /**
1889
1890
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1890
1891
  */
1891
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;
1892
1897
  }): CancelablePromise<ListErc721TransactionsResponse>;
1893
1898
  /**
1894
1899
  * List ERC-1155 transfers
@@ -1896,9 +1901,9 @@ declare class EvmTransactionsService {
1896
1901
  * @returns ListErc1155TransactionsResponse
1897
1902
  * @throws ApiError
1898
1903
  */
1899
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1904
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1900
1905
  /**
1901
- * 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.
1902
1907
  */
1903
1908
  chainId: string;
1904
1909
  /**
@@ -1913,14 +1918,14 @@ declare class EvmTransactionsService {
1913
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.
1914
1919
  */
1915
1920
  endBlock?: number;
1916
- /**
1917
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1918
- */
1919
- pageSize?: number;
1920
1921
  /**
1921
1922
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1922
1923
  */
1923
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;
1924
1929
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1925
1930
  /**
1926
1931
  * List internal transactions
@@ -1930,9 +1935,9 @@ declare class EvmTransactionsService {
1930
1935
  * @returns ListInternalTransactionsResponse
1931
1936
  * @throws ApiError
1932
1937
  */
1933
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1938
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1934
1939
  /**
1935
- * 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.
1936
1941
  */
1937
1942
  chainId: string;
1938
1943
  /**
@@ -1947,14 +1952,14 @@ declare class EvmTransactionsService {
1947
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.
1948
1953
  */
1949
1954
  endBlock?: number;
1950
- /**
1951
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1952
- */
1953
- pageSize?: number;
1954
1955
  /**
1955
1956
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1956
1957
  */
1957
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;
1958
1963
  }): CancelablePromise<ListInternalTransactionsResponse>;
1959
1964
  /**
1960
1965
  * Get transaction
@@ -1964,7 +1969,7 @@ declare class EvmTransactionsService {
1964
1969
  */
1965
1970
  getTransaction({ chainId, txHash, }: {
1966
1971
  /**
1967
- * 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.
1968
1973
  */
1969
1974
  chainId: string;
1970
1975
  /**
@@ -1980,7 +1985,7 @@ declare class EvmTransactionsService {
1980
1985
  */
1981
1986
  getTransactionsForBlock({ chainId, blockId, }: {
1982
1987
  /**
1983
- * 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.
1984
1989
  */
1985
1990
  chainId: string;
1986
1991
  /**
@@ -1994,19 +1999,19 @@ declare class EvmTransactionsService {
1994
1999
  * @returns ListNativeTransactionsResponse
1995
2000
  * @throws ApiError
1996
2001
  */
1997
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2002
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1998
2003
  /**
1999
- * 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.
2000
2005
  */
2001
2006
  chainId: string;
2002
- /**
2003
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2004
- */
2005
- pageSize?: number;
2006
2007
  /**
2007
2008
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2008
2009
  */
2009
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;
2010
2015
  /**
2011
2016
  * A status filter for listed transactions.
2012
2017
  */
@@ -2049,7 +2054,7 @@ declare class NfTsService {
2049
2054
  */
2050
2055
  reindexNft({ chainId, address, tokenId, }: {
2051
2056
  /**
2052
- * 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.
2053
2058
  */
2054
2059
  chainId: string;
2055
2060
  /**
@@ -2067,23 +2072,23 @@ declare class NfTsService {
2067
2072
  * @returns ListNftTokens
2068
2073
  * @throws ApiError
2069
2074
  */
2070
- listTokens({ chainId, address, pageSize, pageToken, }: {
2075
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2071
2076
  /**
2072
- * 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.
2073
2078
  */
2074
2079
  chainId: string;
2075
2080
  /**
2076
2081
  * Contract address on the relevant chain.
2077
2082
  */
2078
2083
  address: string;
2079
- /**
2080
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2081
- */
2082
- pageSize?: number;
2083
2084
  /**
2084
2085
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
2086
  */
2086
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;
2087
2092
  }): CancelablePromise<ListNftTokens>;
2088
2093
  /**
2089
2094
  * Get token details
@@ -2093,7 +2098,7 @@ declare class NfTsService {
2093
2098
  */
2094
2099
  getTokenDetails({ chainId, address, tokenId, }: {
2095
2100
  /**
2096
- * 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.
2097
2102
  */
2098
2103
  chainId: string;
2099
2104
  /**
@@ -2461,6 +2466,24 @@ declare namespace PendingValidatorDetails {
2461
2466
  }
2462
2467
  }
2463
2468
 
2469
+ type RemovedValidatorDetails = {
2470
+ txHash: string;
2471
+ nodeId: string;
2472
+ subnetId: string;
2473
+ amountStaked: string;
2474
+ delegationFee?: string;
2475
+ startTimestamp: number;
2476
+ endTimestamp: number;
2477
+ removeTxHash: string;
2478
+ removeTimestamp: number;
2479
+ validationStatus: RemovedValidatorDetails.validationStatus;
2480
+ };
2481
+ declare namespace RemovedValidatorDetails {
2482
+ enum validationStatus {
2483
+ REMOVED = "removed"
2484
+ }
2485
+ }
2486
+
2464
2487
  type ListValidatorDetailsResponse = {
2465
2488
  /**
2466
2489
  * 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.
@@ -2469,7 +2492,7 @@ type ListValidatorDetailsResponse = {
2469
2492
  /**
2470
2493
  * The list of validator Details.
2471
2494
  */
2472
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2495
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2473
2496
  };
2474
2497
 
2475
2498
  declare enum Network {
@@ -2480,7 +2503,18 @@ declare enum Network {
2480
2503
  declare enum ValidationStatusType {
2481
2504
  COMPLETED = "completed",
2482
2505
  ACTIVE = "active",
2483
- PENDING = "pending"
2506
+ PENDING = "pending",
2507
+ REMOVED = "removed"
2508
+ }
2509
+
2510
+ declare enum PrimaryNetworkAssetCap {
2511
+ FIXED = "fixed",
2512
+ VARIABLE = "variable"
2513
+ }
2514
+
2515
+ declare enum PrimaryNetworkAssetType {
2516
+ SECP256K1 = "secp256k1",
2517
+ NFT = "nft"
2484
2518
  }
2485
2519
 
2486
2520
  type XChainAssetDetails = {
@@ -2503,15 +2537,15 @@ type XChainAssetDetails = {
2503
2537
  /**
2504
2538
  * Type of asset like SECP256K1 or NFT.
2505
2539
  */
2506
- type: string;
2540
+ type: PrimaryNetworkAssetType;
2507
2541
  /**
2508
2542
  * Timestamp in seconds this asset was created on.
2509
2543
  */
2510
2544
  createdAtTimestamp: number;
2511
2545
  /**
2512
- * Cap represents if an asset can be or is fixed cap.
2546
+ * Cap represents if an asset is a variable or fixed cap asset.
2513
2547
  */
2514
- cap: string;
2548
+ cap: PrimaryNetworkAssetCap;
2515
2549
  };
2516
2550
 
2517
2551
  declare enum XChainId {
@@ -2577,19 +2611,19 @@ declare class PrimaryNetworkService {
2577
2611
  * @returns ListBlockchainsResponse
2578
2612
  * @throws ApiError
2579
2613
  */
2580
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2614
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2581
2615
  /**
2582
2616
  * Either mainnet or a testnet.
2583
2617
  */
2584
2618
  network: Network;
2585
- /**
2586
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2587
- */
2588
- pageSize?: number;
2589
2619
  /**
2590
2620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2591
2621
  */
2592
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;
2593
2627
  /**
2594
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.
2595
2629
  */
@@ -2601,19 +2635,19 @@ declare class PrimaryNetworkService {
2601
2635
  * @returns ListSubnetsResponse
2602
2636
  * @throws ApiError
2603
2637
  */
2604
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2638
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2605
2639
  /**
2606
2640
  * Either mainnet or a testnet.
2607
2641
  */
2608
2642
  network: Network;
2609
- /**
2610
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2611
- */
2612
- pageSize?: number;
2613
2643
  /**
2614
2644
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2615
2645
  */
2616
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;
2617
2651
  /**
2618
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.
2619
2653
  */
@@ -2625,19 +2659,19 @@ declare class PrimaryNetworkService {
2625
2659
  * @returns ListValidatorDetailsResponse
2626
2660
  * @throws ApiError
2627
2661
  */
2628
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2662
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2629
2663
  /**
2630
2664
  * Either mainnet or a testnet.
2631
2665
  */
2632
2666
  network: Network;
2633
- /**
2634
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2635
- */
2636
- pageSize?: number;
2637
2667
  /**
2638
2668
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2639
2669
  */
2640
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;
2641
2675
  /**
2642
2676
  * A comma separated list of node ids to filter by.
2643
2677
  */
@@ -2653,27 +2687,27 @@ declare class PrimaryNetworkService {
2653
2687
  /**
2654
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
2655
2689
  */
2656
- minDelegationCapacity?: any;
2690
+ minDelegationCapacity?: string;
2657
2691
  /**
2658
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.
2659
2693
  */
2660
- maxDelegationCapacity?: any;
2694
+ maxDelegationCapacity?: string;
2661
2695
  /**
2662
2696
  * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2697
  */
2664
- minTimeRemaining?: any;
2698
+ minTimeRemaining?: number;
2665
2699
  /**
2666
2700
  * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
2701
  */
2668
- maxTimeRemaining?: any;
2702
+ maxTimeRemaining?: number;
2669
2703
  /**
2670
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.
2671
2705
  */
2672
- minFeePercentage?: any;
2706
+ minFeePercentage?: number;
2673
2707
  /**
2674
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.
2675
2709
  */
2676
- maxFeePercentage?: any;
2710
+ maxFeePercentage?: number;
2677
2711
  /**
2678
2712
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2713
  */
@@ -2685,7 +2719,7 @@ declare class PrimaryNetworkService {
2685
2719
  * @returns ListValidatorDetailsResponse
2686
2720
  * @throws ApiError
2687
2721
  */
2688
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2722
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2689
2723
  /**
2690
2724
  * Either mainnet or a testnet.
2691
2725
  */
@@ -2694,14 +2728,14 @@ declare class PrimaryNetworkService {
2694
2728
  * A primary network (P or X chain) nodeId.
2695
2729
  */
2696
2730
  nodeId: string;
2697
- /**
2698
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2699
- */
2700
- pageSize?: number;
2701
2731
  /**
2702
2732
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2703
2733
  */
2704
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;
2705
2739
  /**
2706
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.
2707
2741
  */
@@ -2717,19 +2751,19 @@ declare class PrimaryNetworkService {
2717
2751
  * @returns ListDelegatorDetailsResponse
2718
2752
  * @throws ApiError
2719
2753
  */
2720
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2754
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2721
2755
  /**
2722
2756
  * Either mainnet or a testnet.
2723
2757
  */
2724
2758
  network: Network;
2725
- /**
2726
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2727
- */
2728
- pageSize?: number;
2729
2759
  /**
2730
2760
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2731
2761
  */
2732
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;
2733
2767
  /**
2734
2768
  * A comma separated list of reward addresses to filter by.
2735
2769
  */
@@ -2780,7 +2814,7 @@ type CChainSharedAssetBalance = {
2780
2814
  /**
2781
2815
  * Type of asset like SECP256K1 or NFT.
2782
2816
  */
2783
- type: string;
2817
+ type: PrimaryNetworkAssetType;
2784
2818
  /**
2785
2819
  * Amount of the asset.
2786
2820
  */
@@ -2835,7 +2869,7 @@ type Asset = {
2835
2869
  /**
2836
2870
  * Type of asset like SECP256K1 or NFT.
2837
2871
  */
2838
- type: string;
2872
+ type: PrimaryNetworkAssetType;
2839
2873
  /**
2840
2874
  * Amount of the asset.
2841
2875
  */
@@ -2862,7 +2896,7 @@ type PChainSharedAsset = {
2862
2896
  /**
2863
2897
  * Type of asset like SECP256K1 or NFT.
2864
2898
  */
2865
- type: string;
2899
+ type: PrimaryNetworkAssetType;
2866
2900
  /**
2867
2901
  * Amount of the asset.
2868
2902
  */
@@ -2931,7 +2965,7 @@ type XChainAssetBalance = {
2931
2965
  /**
2932
2966
  * Type of asset like SECP256K1 or NFT.
2933
2967
  */
2934
- type: string;
2968
+ type: PrimaryNetworkAssetType;
2935
2969
  /**
2936
2970
  * Amount of the asset.
2937
2971
  */
@@ -2959,7 +2993,7 @@ type XChainSharedAssetBalance = {
2959
2993
  /**
2960
2994
  * Type of asset like SECP256K1 or NFT.
2961
2995
  */
2962
- type: string;
2996
+ type: PrimaryNetworkAssetType;
2963
2997
  /**
2964
2998
  * Amount of the asset.
2965
2999
  */
@@ -3089,7 +3123,7 @@ declare class PrimaryNetworkBlocksService {
3089
3123
  * @returns ListPrimaryNetworkBlocksResponse
3090
3124
  * @throws ApiError
3091
3125
  */
3092
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3126
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3093
3127
  /**
3094
3128
  * A primary network blockchain id or alias.
3095
3129
  */
@@ -3102,14 +3136,14 @@ declare class PrimaryNetworkBlocksService {
3102
3136
  * A primary network (P or X chain) nodeId.
3103
3137
  */
3104
3138
  nodeId: string;
3105
- /**
3106
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3107
- */
3108
- pageSize?: number;
3109
3139
  /**
3110
3140
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3111
3141
  */
3112
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;
3113
3147
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3114
3148
  /**
3115
3149
  * List latest blocks
@@ -3117,7 +3151,7 @@ declare class PrimaryNetworkBlocksService {
3117
3151
  * @returns ListPrimaryNetworkBlocksResponse
3118
3152
  * @throws ApiError
3119
3153
  */
3120
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3154
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3121
3155
  /**
3122
3156
  * A primary network blockchain id or alias.
3123
3157
  */
@@ -3126,17 +3160,48 @@ declare class PrimaryNetworkBlocksService {
3126
3160
  * Either mainnet or a testnet.
3127
3161
  */
3128
3162
  network: Network;
3129
- /**
3130
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3131
- */
3132
- pageSize?: number;
3133
3163
  /**
3134
3164
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3135
3165
  */
3136
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;
3137
3171
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3138
3172
  }
3139
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
+
3140
3205
  declare enum RewardType {
3141
3206
  VALIDATOR = "VALIDATOR",
3142
3207
  DELEGATOR = "DELEGATOR",
@@ -3156,10 +3221,7 @@ type HistoricalReward = {
3156
3221
  rewardType: RewardType;
3157
3222
  utxoId: string;
3158
3223
  outputIndex: number;
3159
- /**
3160
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3161
- */
3162
- reward: Asset;
3224
+ reward: AssetWithPriceInfo;
3163
3225
  rewardTxHash: string;
3164
3226
  };
3165
3227
 
@@ -3206,25 +3268,25 @@ declare class PrimaryNetworkRewardsService {
3206
3268
  * @returns ListPendingRewardsResponse
3207
3269
  * @throws ApiError
3208
3270
  */
3209
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3271
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3210
3272
  /**
3211
3273
  * Either mainnet or a testnet.
3212
3274
  */
3213
3275
  network: Network;
3214
3276
  /**
3215
- * 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.
3216
3278
  */
3217
3279
  addresses?: string;
3218
- /**
3219
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3220
- */
3221
- pageSize?: number;
3222
3280
  /**
3223
3281
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3224
3282
  */
3225
3283
  pageToken?: string;
3226
3284
  /**
3227
- * A comma separated list of node ids to filter by.
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.
3228
3290
  */
3229
3291
  nodeIds?: string;
3230
3292
  /**
@@ -3238,31 +3300,35 @@ declare class PrimaryNetworkRewardsService {
3238
3300
  * @returns ListHistoricalRewardsResponse
3239
3301
  * @throws ApiError
3240
3302
  */
3241
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3303
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3242
3304
  /**
3243
3305
  * Either mainnet or a testnet.
3244
3306
  */
3245
3307
  network: Network;
3246
3308
  /**
3247
- * 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".
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.
3248
3310
  */
3249
3311
  addresses?: string;
3250
- /**
3251
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3252
- */
3253
- pageSize?: number;
3254
3312
  /**
3255
3313
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3256
3314
  */
3257
3315
  pageToken?: string;
3258
3316
  /**
3259
- * A comma separated list of node ids to filter by.
3317
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3318
+ */
3319
+ pageSize?: number;
3320
+ /**
3321
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3260
3322
  */
3261
3323
  nodeIds?: string;
3262
3324
  /**
3263
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.
3264
3326
  */
3265
3327
  sortOrder?: SortOrder;
3328
+ /**
3329
+ * The currency that return values should use. Defaults to USD.
3330
+ */
3331
+ currency?: CurrencyCode;
3266
3332
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3267
3333
  }
3268
3334
 
@@ -3831,13 +3897,13 @@ declare class PrimaryNetworkTransactionsService {
3831
3897
  * List latest transactions
3832
3898
  * Lists the latest transactions on one of the Primary Network chains.
3833
3899
  *
3834
- * 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.
3835
3901
  *
3836
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.
3837
3903
  * @returns any
3838
3904
  * @throws ApiError
3839
3905
  */
3840
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3906
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3841
3907
  /**
3842
3908
  * A primary network blockchain id or alias.
3843
3909
  */
@@ -3862,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
3862
3928
  * Query param for retrieving items before a specific timestamp.
3863
3929
  */
3864
3930
  endTimestamp?: number;
3865
- /**
3866
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3867
- */
3868
- pageSize?: number;
3869
3931
  /**
3870
3932
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3871
3933
  */
3872
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;
3873
3939
  /**
3874
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.
3875
3941
  */
@@ -3881,7 +3947,7 @@ declare class PrimaryNetworkTransactionsService {
3881
3947
  * @returns ListPChainTransactionsResponse
3882
3948
  * @throws ApiError
3883
3949
  */
3884
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3950
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3885
3951
  /**
3886
3952
  * A primary network blockchain id or alias.
3887
3953
  */
@@ -3906,14 +3972,14 @@ declare class PrimaryNetworkTransactionsService {
3906
3972
  * Query param for retrieving items before a specific timestamp.
3907
3973
  */
3908
3974
  endTimestamp?: number;
3909
- /**
3910
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3911
- */
3912
- pageSize?: number;
3913
3975
  /**
3914
3976
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3915
3977
  */
3916
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;
3917
3983
  /**
3918
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.
3919
3985
  */
@@ -3925,7 +3991,7 @@ declare class PrimaryNetworkTransactionsService {
3925
3991
  * @returns ListXChainTransactionsResponse
3926
3992
  * @throws ApiError
3927
3993
  */
3928
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3994
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3929
3995
  /**
3930
3996
  * A primary network blockchain id or alias.
3931
3997
  */
@@ -3950,14 +4016,14 @@ declare class PrimaryNetworkTransactionsService {
3950
4016
  * Query param for retrieving items before a specific timestamp.
3951
4017
  */
3952
4018
  endTimestamp?: number;
3953
- /**
3954
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3955
- */
3956
- pageSize?: number;
3957
4019
  /**
3958
4020
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3959
4021
  */
3960
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;
3961
4027
  }): CancelablePromise<ListXChainTransactionsResponse>;
3962
4028
  }
3963
4029
 
@@ -3988,7 +4054,7 @@ declare class PrimaryNetworkUtxOsService {
3988
4054
  * @returns any
3989
4055
  * @throws ApiError
3990
4056
  */
3991
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4057
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3992
4058
  /**
3993
4059
  * A primary network blockchain id or alias.
3994
4060
  */
@@ -4001,14 +4067,14 @@ declare class PrimaryNetworkUtxOsService {
4001
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".
4002
4068
  */
4003
4069
  addresses?: string;
4004
- /**
4005
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4006
- */
4007
- pageSize?: number;
4008
4070
  /**
4009
4071
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4010
4072
  */
4011
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;
4012
4078
  /**
4013
4079
  * Asset ID for any asset (only applicable X-Chain)
4014
4080
  */
@@ -4053,7 +4119,7 @@ declare class PrimaryNetworkVerticesService {
4053
4119
  * @returns ListXChainVerticesResponse
4054
4120
  * @throws ApiError
4055
4121
  */
4056
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4122
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4057
4123
  /**
4058
4124
  * A primary network blockchain id or alias.
4059
4125
  */
@@ -4062,14 +4128,14 @@ declare class PrimaryNetworkVerticesService {
4062
4128
  * Either mainnet or a testnet.
4063
4129
  */
4064
4130
  network: Network;
4065
- /**
4066
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4067
- */
4068
- pageSize?: number;
4069
4131
  /**
4070
4132
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4071
4133
  */
4072
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;
4073
4139
  }): CancelablePromise<ListXChainVerticesResponse>;
4074
4140
  /**
4075
4141
  * Get vertex
@@ -4097,7 +4163,7 @@ declare class PrimaryNetworkVerticesService {
4097
4163
  * @returns ListXChainVerticesResponse
4098
4164
  * @throws ApiError
4099
4165
  */
4100
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4166
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4101
4167
  /**
4102
4168
  * The height of a vertex.
4103
4169
  */
@@ -4110,14 +4176,14 @@ declare class PrimaryNetworkVerticesService {
4110
4176
  * Either mainnet or a testnet.
4111
4177
  */
4112
4178
  network: Network;
4113
- /**
4114
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4115
- */
4116
- pageSize?: number;
4117
4179
  /**
4118
4180
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4119
4181
  */
4120
4182
  pageToken?: string;
4183
+ /**
4184
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4185
+ */
4186
+ pageSize?: number;
4121
4187
  /**
4122
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.
4123
4189
  */
@@ -4164,4 +4230,4 @@ declare class ApiError extends Error {
4164
4230
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4165
4231
  }
4166
4232
 
4167
- 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, 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, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, 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 };
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 };