@avalabs/glacier-sdk 2.8.0-canary.1f30e0c.0 → 2.8.0-canary.1f4dbe7.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 (60) hide show
  1. package/dist/index.d.ts +450 -328
  2. package/dist/index.js +148 -110
  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/PChainBalance.d.ts +7 -7
  10. package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
  11. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  12. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  13. package/esm/generated/models/PChainTransactionType.js +6 -5
  14. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  15. package/esm/generated/models/PendingReward.d.ts +2 -2
  16. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  17. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  18. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  19. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  20. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  21. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  22. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  23. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  24. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  25. package/esm/generated/models/Utxo.d.ts +28 -28
  26. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  27. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  28. package/esm/generated/models/ValidationStatusType.js +1 -0
  29. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  30. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  31. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  32. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  33. package/esm/generated/services/DefaultService.d.ts +20 -5
  34. package/esm/generated/services/DefaultService.js +14 -2
  35. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  36. package/esm/generated/services/EvmBalancesService.js +8 -8
  37. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  38. package/esm/generated/services/EvmBlocksService.js +4 -4
  39. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  40. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  41. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  42. package/esm/generated/services/EvmTransactionsService.js +32 -32
  43. package/esm/generated/services/NfTsService.d.ts +8 -8
  44. package/esm/generated/services/NfTsService.js +4 -4
  45. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  46. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  47. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  48. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  49. package/esm/generated/services/PrimaryNetworkService.d.ts +41 -41
  50. package/esm/generated/services/PrimaryNetworkService.js +20 -20
  51. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  52. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  53. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  54. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  55. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  56. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  57. package/esm/index.d.ts +5 -1
  58. package/esm/index.js +3 -0
  59. package/package.json +2 -2
  60. package/esm/generated/models/PChainAsset.d.ts +0 -6
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 = {
@@ -105,6 +110,10 @@ type RegisterWebhookRequest = {
105
110
  metadata: AddressActivityMetadata;
106
111
  };
107
112
 
113
+ type SharedSecretsResponse = {
114
+ secret: string;
115
+ };
116
+
108
117
  declare enum WebhookStatus {
109
118
  ACTIVE = "active",
110
119
  INACTIVE = "inactive"
@@ -133,15 +142,15 @@ declare class DefaultService {
133
142
  * @returns ListWebhooksResponse
134
143
  * @throws ApiError
135
144
  */
136
- listWebhooks({ pageSize, pageToken, status, }: {
137
- /**
138
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
139
- */
140
- pageSize?: number;
145
+ listWebhooks({ pageToken, pageSize, status, }: {
141
146
  /**
142
147
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
143
148
  */
144
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;
145
154
  /**
146
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.
147
156
  */
@@ -159,6 +168,20 @@ declare class DefaultService {
159
168
  */
160
169
  id: string;
161
170
  }): CancelablePromise<WebhookResponse>;
171
+ /**
172
+ * Generate a shared secret
173
+ * Generates a new shared secret.
174
+ * @returns SharedSecretsResponse
175
+ * @throws ApiError
176
+ */
177
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
+ /**
179
+ * Get a shared secret
180
+ * Get a previously generated shared secret.
181
+ * @returns SharedSecretsResponse
182
+ * @throws ApiError
183
+ */
184
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
162
185
  }
163
186
 
164
187
  declare enum CurrencyCode {
@@ -436,7 +459,7 @@ declare class EvmBalancesService {
436
459
  */
437
460
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
438
461
  /**
439
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
462
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
440
463
  */
441
464
  chainId: string;
442
465
  /**
@@ -462,9 +485,9 @@ declare class EvmBalancesService {
462
485
  * @returns ListErc20BalancesResponse
463
486
  * @throws ApiError
464
487
  */
465
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
488
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
466
489
  /**
467
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
490
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
468
491
  */
469
492
  chainId: string;
470
493
  /**
@@ -475,14 +498,14 @@ declare class EvmBalancesService {
475
498
  * The block number, if not defined the block number will be the latest block.
476
499
  */
477
500
  blockNumber?: string;
478
- /**
479
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
480
- */
481
- pageSize?: number;
482
501
  /**
483
502
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
484
503
  */
485
504
  pageToken?: string;
505
+ /**
506
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
507
+ */
508
+ pageSize?: number;
486
509
  /**
487
510
  * A comma separated list of contract addresses to filter by.
488
511
  */
@@ -500,23 +523,23 @@ declare class EvmBalancesService {
500
523
  * @returns ListErc721BalancesResponse
501
524
  * @throws ApiError
502
525
  */
503
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
526
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
504
527
  /**
505
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
528
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
506
529
  */
507
530
  chainId: string;
508
531
  /**
509
532
  * A wallet address.
510
533
  */
511
534
  address: string;
512
- /**
513
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
514
- */
515
- pageSize?: number;
516
535
  /**
517
536
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
518
537
  */
519
538
  pageToken?: string;
539
+ /**
540
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
541
+ */
542
+ pageSize?: number;
520
543
  /**
521
544
  * A contract addresses to filter by.
522
545
  */
@@ -532,9 +555,9 @@ declare class EvmBalancesService {
532
555
  * @returns ListErc1155BalancesResponse
533
556
  * @throws ApiError
534
557
  */
535
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
558
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
536
559
  /**
537
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
560
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
538
561
  */
539
562
  chainId: string;
540
563
  /**
@@ -545,14 +568,14 @@ declare class EvmBalancesService {
545
568
  * The block number, if not defined the block number will be the latest block.
546
569
  */
547
570
  blockNumber?: string;
548
- /**
549
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
550
- */
551
- pageSize?: number;
552
571
  /**
553
572
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
554
573
  */
555
574
  pageToken?: string;
575
+ /**
576
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
577
+ */
578
+ pageSize?: number;
556
579
  /**
557
580
  * A contract addresses to filter by.
558
581
  */
@@ -566,23 +589,23 @@ declare class EvmBalancesService {
566
589
  * @returns ListCollectibleBalancesResponse
567
590
  * @throws ApiError
568
591
  */
569
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
592
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
570
593
  /**
571
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
594
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
572
595
  */
573
596
  chainId: string;
574
597
  /**
575
598
  * A wallet address.
576
599
  */
577
600
  address: string;
578
- /**
579
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
580
- */
581
- pageSize?: number;
582
601
  /**
583
602
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
584
603
  */
585
604
  pageToken?: string;
605
+ /**
606
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
607
+ */
608
+ pageSize?: number;
586
609
  /**
587
610
  * A contract addresses to filter by.
588
611
  */
@@ -695,19 +718,19 @@ declare class EvmBlocksService {
695
718
  * @returns ListEvmBlocksResponse
696
719
  * @throws ApiError
697
720
  */
698
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
721
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
699
722
  /**
700
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
723
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
701
724
  */
702
725
  chainId: string;
703
- /**
704
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
705
- */
706
- pageSize?: number;
707
726
  /**
708
727
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
709
728
  */
710
729
  pageToken?: string;
730
+ /**
731
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
732
+ */
733
+ pageSize?: number;
711
734
  }): CancelablePromise<ListEvmBlocksResponse>;
712
735
  /**
713
736
  * Get block
@@ -717,7 +740,7 @@ declare class EvmBlocksService {
717
740
  */
718
741
  getBlock({ chainId, blockId, }: {
719
742
  /**
720
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
743
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
721
744
  */
722
745
  chainId: string;
723
746
  /**
@@ -838,7 +861,7 @@ declare class EvmChainsService {
838
861
  */
839
862
  getChainInfo({ chainId, }: {
840
863
  /**
841
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
864
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
842
865
  */
843
866
  chainId: string;
844
867
  }): CancelablePromise<GetChainResponse>;
@@ -1133,7 +1156,7 @@ declare class EvmContractsService {
1133
1156
  */
1134
1157
  getContractMetadata({ chainId, address, }: {
1135
1158
  /**
1136
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1159
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1137
1160
  */
1138
1161
  chainId: string;
1139
1162
  /**
@@ -1149,7 +1172,7 @@ declare class EvmContractsService {
1149
1172
  */
1150
1173
  updateContractInfo({ chainId, address, requestBody, }: {
1151
1174
  /**
1152
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1175
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1153
1176
  */
1154
1177
  chainId: string;
1155
1178
  /**
@@ -1677,7 +1700,7 @@ declare class EvmTransactionsService {
1677
1700
  */
1678
1701
  getDeploymentTransaction({ chainId, address, currency, }: {
1679
1702
  /**
1680
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1703
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1681
1704
  */
1682
1705
  chainId: string;
1683
1706
  /**
@@ -1695,23 +1718,23 @@ declare class EvmTransactionsService {
1695
1718
  * @returns ListContractsResponse
1696
1719
  * @throws ApiError
1697
1720
  */
1698
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1721
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1699
1722
  /**
1700
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1723
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1701
1724
  */
1702
1725
  chainId: string;
1703
1726
  /**
1704
1727
  * A wallet address.
1705
1728
  */
1706
1729
  address: string;
1707
- /**
1708
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1709
- */
1710
- pageSize?: number;
1711
1730
  /**
1712
1731
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1713
1732
  */
1714
1733
  pageToken?: string;
1734
+ /**
1735
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1736
+ */
1737
+ pageSize?: number;
1715
1738
  }): CancelablePromise<ListContractsResponse>;
1716
1739
  /**
1717
1740
  * List ERC transfers
@@ -1719,9 +1742,9 @@ declare class EvmTransactionsService {
1719
1742
  * @returns ListTransfersResponse
1720
1743
  * @throws ApiError
1721
1744
  */
1722
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1745
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1723
1746
  /**
1724
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1747
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1725
1748
  */
1726
1749
  chainId: string;
1727
1750
  /**
@@ -1736,14 +1759,14 @@ declare class EvmTransactionsService {
1736
1759
  * 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.
1737
1760
  */
1738
1761
  endBlock?: number;
1739
- /**
1740
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1741
- */
1742
- pageSize?: number;
1743
1762
  /**
1744
1763
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1745
1764
  */
1746
1765
  pageToken?: string;
1766
+ /**
1767
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1768
+ */
1769
+ pageSize?: number;
1747
1770
  }): CancelablePromise<ListTransfersResponse>;
1748
1771
  /**
1749
1772
  * List transactions
@@ -1753,23 +1776,23 @@ declare class EvmTransactionsService {
1753
1776
  * @returns ListTransactionDetailsResponse
1754
1777
  * @throws ApiError
1755
1778
  */
1756
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1779
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1757
1780
  /**
1758
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1781
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1759
1782
  */
1760
1783
  chainId: string;
1761
1784
  /**
1762
1785
  * A wallet address.
1763
1786
  */
1764
1787
  address: string;
1765
- /**
1766
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1767
- */
1768
- pageSize?: number;
1769
1788
  /**
1770
1789
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1771
1790
  */
1772
1791
  pageToken?: string;
1792
+ /**
1793
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1794
+ */
1795
+ pageSize?: number;
1773
1796
  /**
1774
1797
  * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1775
1798
  */
@@ -1789,9 +1812,9 @@ declare class EvmTransactionsService {
1789
1812
  * @returns ListNativeTransactionsResponse
1790
1813
  * @throws ApiError
1791
1814
  */
1792
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1815
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1793
1816
  /**
1794
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1817
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1795
1818
  */
1796
1819
  chainId: string;
1797
1820
  /**
@@ -1806,14 +1829,14 @@ declare class EvmTransactionsService {
1806
1829
  * 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.
1807
1830
  */
1808
1831
  endBlock?: number;
1809
- /**
1810
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1811
- */
1812
- pageSize?: number;
1813
1832
  /**
1814
1833
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1815
1834
  */
1816
1835
  pageToken?: string;
1836
+ /**
1837
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1838
+ */
1839
+ pageSize?: number;
1817
1840
  }): CancelablePromise<ListNativeTransactionsResponse>;
1818
1841
  /**
1819
1842
  * List ERC-20 transfers
@@ -1821,9 +1844,9 @@ declare class EvmTransactionsService {
1821
1844
  * @returns ListErc20TransactionsResponse
1822
1845
  * @throws ApiError
1823
1846
  */
1824
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1847
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1825
1848
  /**
1826
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1849
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1827
1850
  */
1828
1851
  chainId: string;
1829
1852
  /**
@@ -1838,14 +1861,14 @@ declare class EvmTransactionsService {
1838
1861
  * 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.
1839
1862
  */
1840
1863
  endBlock?: number;
1841
- /**
1842
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1843
- */
1844
- pageSize?: number;
1845
1864
  /**
1846
1865
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1847
1866
  */
1848
1867
  pageToken?: string;
1868
+ /**
1869
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1870
+ */
1871
+ pageSize?: number;
1849
1872
  }): CancelablePromise<ListErc20TransactionsResponse>;
1850
1873
  /**
1851
1874
  * List ERC-721 transfers
@@ -1853,9 +1876,9 @@ declare class EvmTransactionsService {
1853
1876
  * @returns ListErc721TransactionsResponse
1854
1877
  * @throws ApiError
1855
1878
  */
1856
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1879
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1857
1880
  /**
1858
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1881
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1859
1882
  */
1860
1883
  chainId: string;
1861
1884
  /**
@@ -1870,14 +1893,14 @@ declare class EvmTransactionsService {
1870
1893
  * 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.
1871
1894
  */
1872
1895
  endBlock?: number;
1873
- /**
1874
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1875
- */
1876
- pageSize?: number;
1877
1896
  /**
1878
1897
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1879
1898
  */
1880
1899
  pageToken?: string;
1900
+ /**
1901
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1902
+ */
1903
+ pageSize?: number;
1881
1904
  }): CancelablePromise<ListErc721TransactionsResponse>;
1882
1905
  /**
1883
1906
  * List ERC-1155 transfers
@@ -1885,9 +1908,9 @@ declare class EvmTransactionsService {
1885
1908
  * @returns ListErc1155TransactionsResponse
1886
1909
  * @throws ApiError
1887
1910
  */
1888
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1911
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1889
1912
  /**
1890
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1913
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1891
1914
  */
1892
1915
  chainId: string;
1893
1916
  /**
@@ -1902,14 +1925,14 @@ declare class EvmTransactionsService {
1902
1925
  * 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.
1903
1926
  */
1904
1927
  endBlock?: number;
1905
- /**
1906
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1907
- */
1908
- pageSize?: number;
1909
1928
  /**
1910
1929
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1911
1930
  */
1912
1931
  pageToken?: string;
1932
+ /**
1933
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1934
+ */
1935
+ pageSize?: number;
1913
1936
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1914
1937
  /**
1915
1938
  * List internal transactions
@@ -1919,9 +1942,9 @@ declare class EvmTransactionsService {
1919
1942
  * @returns ListInternalTransactionsResponse
1920
1943
  * @throws ApiError
1921
1944
  */
1922
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1945
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1923
1946
  /**
1924
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1947
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
1948
  */
1926
1949
  chainId: string;
1927
1950
  /**
@@ -1936,14 +1959,14 @@ declare class EvmTransactionsService {
1936
1959
  * 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.
1937
1960
  */
1938
1961
  endBlock?: number;
1939
- /**
1940
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1941
- */
1942
- pageSize?: number;
1943
1962
  /**
1944
1963
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1945
1964
  */
1946
1965
  pageToken?: string;
1966
+ /**
1967
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1968
+ */
1969
+ pageSize?: number;
1947
1970
  }): CancelablePromise<ListInternalTransactionsResponse>;
1948
1971
  /**
1949
1972
  * Get transaction
@@ -1953,7 +1976,7 @@ declare class EvmTransactionsService {
1953
1976
  */
1954
1977
  getTransaction({ chainId, txHash, }: {
1955
1978
  /**
1956
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1979
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1957
1980
  */
1958
1981
  chainId: string;
1959
1982
  /**
@@ -1969,7 +1992,7 @@ declare class EvmTransactionsService {
1969
1992
  */
1970
1993
  getTransactionsForBlock({ chainId, blockId, }: {
1971
1994
  /**
1972
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1995
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1973
1996
  */
1974
1997
  chainId: string;
1975
1998
  /**
@@ -1983,19 +2006,19 @@ declare class EvmTransactionsService {
1983
2006
  * @returns ListNativeTransactionsResponse
1984
2007
  * @throws ApiError
1985
2008
  */
1986
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2009
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1987
2010
  /**
1988
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2011
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1989
2012
  */
1990
2013
  chainId: string;
1991
- /**
1992
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1993
- */
1994
- pageSize?: number;
1995
2014
  /**
1996
2015
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1997
2016
  */
1998
2017
  pageToken?: string;
2018
+ /**
2019
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2020
+ */
2021
+ pageSize?: number;
1999
2022
  /**
2000
2023
  * A status filter for listed transactions.
2001
2024
  */
@@ -2038,7 +2061,7 @@ declare class NfTsService {
2038
2061
  */
2039
2062
  reindexNft({ chainId, address, tokenId, }: {
2040
2063
  /**
2041
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2042
2065
  */
2043
2066
  chainId: string;
2044
2067
  /**
@@ -2056,23 +2079,23 @@ declare class NfTsService {
2056
2079
  * @returns ListNftTokens
2057
2080
  * @throws ApiError
2058
2081
  */
2059
- listTokens({ chainId, address, pageSize, pageToken, }: {
2082
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2060
2083
  /**
2061
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2084
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2062
2085
  */
2063
2086
  chainId: string;
2064
2087
  /**
2065
2088
  * Contract address on the relevant chain.
2066
2089
  */
2067
2090
  address: string;
2068
- /**
2069
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2070
- */
2071
- pageSize?: number;
2072
2091
  /**
2073
2092
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2074
2093
  */
2075
2094
  pageToken?: string;
2095
+ /**
2096
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2097
+ */
2098
+ pageSize?: number;
2076
2099
  }): CancelablePromise<ListNftTokens>;
2077
2100
  /**
2078
2101
  * Get token details
@@ -2082,7 +2105,7 @@ declare class NfTsService {
2082
2105
  */
2083
2106
  getTokenDetails({ chainId, address, tokenId, }: {
2084
2107
  /**
2085
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2108
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2086
2109
  */
2087
2110
  chainId: string;
2088
2111
  /**
@@ -2450,6 +2473,24 @@ declare namespace PendingValidatorDetails {
2450
2473
  }
2451
2474
  }
2452
2475
 
2476
+ type RemovedValidatorDetails = {
2477
+ txHash: string;
2478
+ nodeId: string;
2479
+ subnetId: string;
2480
+ amountStaked: string;
2481
+ delegationFee?: string;
2482
+ startTimestamp: number;
2483
+ endTimestamp: number;
2484
+ removeTxHash: string;
2485
+ removeTimestamp: number;
2486
+ validationStatus: RemovedValidatorDetails.validationStatus;
2487
+ };
2488
+ declare namespace RemovedValidatorDetails {
2489
+ enum validationStatus {
2490
+ REMOVED = "removed"
2491
+ }
2492
+ }
2493
+
2453
2494
  type ListValidatorDetailsResponse = {
2454
2495
  /**
2455
2496
  * 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.
@@ -2458,7 +2499,7 @@ type ListValidatorDetailsResponse = {
2458
2499
  /**
2459
2500
  * The list of validator Details.
2460
2501
  */
2461
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2502
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2462
2503
  };
2463
2504
 
2464
2505
  declare enum Network {
@@ -2469,7 +2510,18 @@ declare enum Network {
2469
2510
  declare enum ValidationStatusType {
2470
2511
  COMPLETED = "completed",
2471
2512
  ACTIVE = "active",
2472
- PENDING = "pending"
2513
+ PENDING = "pending",
2514
+ REMOVED = "removed"
2515
+ }
2516
+
2517
+ declare enum PrimaryNetworkAssetCap {
2518
+ FIXED = "fixed",
2519
+ VARIABLE = "variable"
2520
+ }
2521
+
2522
+ declare enum PrimaryNetworkAssetType {
2523
+ SECP256K1 = "secp256k1",
2524
+ NFT = "nft"
2473
2525
  }
2474
2526
 
2475
2527
  type XChainAssetDetails = {
@@ -2492,15 +2544,15 @@ type XChainAssetDetails = {
2492
2544
  /**
2493
2545
  * Type of asset like SECP256K1 or NFT.
2494
2546
  */
2495
- type: string;
2547
+ type: PrimaryNetworkAssetType;
2496
2548
  /**
2497
2549
  * Timestamp in seconds this asset was created on.
2498
2550
  */
2499
2551
  createdAtTimestamp: number;
2500
2552
  /**
2501
- * Cap represents if an asset can be or is fixed cap.
2553
+ * Cap represents if an asset is a variable or fixed cap asset.
2502
2554
  */
2503
- cap: string;
2555
+ cap: PrimaryNetworkAssetCap;
2504
2556
  };
2505
2557
 
2506
2558
  declare enum XChainId {
@@ -2566,19 +2618,19 @@ declare class PrimaryNetworkService {
2566
2618
  * @returns ListBlockchainsResponse
2567
2619
  * @throws ApiError
2568
2620
  */
2569
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2621
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2570
2622
  /**
2571
2623
  * Either mainnet or a testnet.
2572
2624
  */
2573
2625
  network: Network;
2574
- /**
2575
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2576
- */
2577
- pageSize?: number;
2578
2626
  /**
2579
2627
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2580
2628
  */
2581
2629
  pageToken?: string;
2630
+ /**
2631
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2632
+ */
2633
+ pageSize?: number;
2582
2634
  /**
2583
2635
  * 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.
2584
2636
  */
@@ -2590,19 +2642,19 @@ declare class PrimaryNetworkService {
2590
2642
  * @returns ListSubnetsResponse
2591
2643
  * @throws ApiError
2592
2644
  */
2593
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2645
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2594
2646
  /**
2595
2647
  * Either mainnet or a testnet.
2596
2648
  */
2597
2649
  network: Network;
2598
- /**
2599
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2600
- */
2601
- pageSize?: number;
2602
2650
  /**
2603
2651
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2604
2652
  */
2605
2653
  pageToken?: string;
2654
+ /**
2655
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2656
+ */
2657
+ pageSize?: number;
2606
2658
  /**
2607
2659
  * 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.
2608
2660
  */
@@ -2614,55 +2666,55 @@ declare class PrimaryNetworkService {
2614
2666
  * @returns ListValidatorDetailsResponse
2615
2667
  * @throws ApiError
2616
2668
  */
2617
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2669
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2618
2670
  /**
2619
2671
  * Either mainnet or a testnet.
2620
2672
  */
2621
2673
  network: Network;
2674
+ /**
2675
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2676
+ */
2677
+ pageToken?: string;
2622
2678
  /**
2623
2679
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2624
2680
  */
2625
2681
  pageSize?: number;
2626
2682
  /**
2627
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2683
+ * A comma separated list of node ids to filter by.
2628
2684
  */
2629
- pageToken?: string;
2685
+ nodeIds?: string;
2630
2686
  /**
2631
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2687
+ * 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.
2632
2688
  */
2633
- minTimeRemaining?: any;
2689
+ sortOrder?: SortOrder;
2634
2690
  /**
2635
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2691
+ * Validation status of the node.
2636
2692
  */
2637
- maxTimeRemaining?: any;
2693
+ validationStatus?: ValidationStatusType;
2638
2694
  /**
2639
2695
  * 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
2640
2696
  */
2641
- minDelegationCapacity?: number;
2697
+ minDelegationCapacity?: string;
2642
2698
  /**
2643
2699
  * 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.
2644
2700
  */
2645
- maxDelegationCapacity?: number;
2646
- /**
2647
- * 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.
2648
- */
2649
- minFeePercentage?: any;
2701
+ maxDelegationCapacity?: string;
2650
2702
  /**
2651
- * 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.
2703
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2652
2704
  */
2653
- maxFeePercentage?: any;
2705
+ minTimeRemaining?: number;
2654
2706
  /**
2655
- * A comma separated list of node ids to filter by.
2707
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2656
2708
  */
2657
- nodeIds?: string;
2709
+ maxTimeRemaining?: number;
2658
2710
  /**
2659
- * 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.
2711
+ * 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.
2660
2712
  */
2661
- sortOrder?: SortOrder;
2713
+ minFeePercentage?: number;
2662
2714
  /**
2663
- * Validation status of the node.
2715
+ * 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.
2664
2716
  */
2665
- validationStatus?: ValidationStatusType;
2717
+ maxFeePercentage?: number;
2666
2718
  /**
2667
2719
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2668
2720
  */
@@ -2674,7 +2726,7 @@ declare class PrimaryNetworkService {
2674
2726
  * @returns ListValidatorDetailsResponse
2675
2727
  * @throws ApiError
2676
2728
  */
2677
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2729
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2678
2730
  /**
2679
2731
  * Either mainnet or a testnet.
2680
2732
  */
@@ -2683,14 +2735,14 @@ declare class PrimaryNetworkService {
2683
2735
  * A primary network (P or X chain) nodeId.
2684
2736
  */
2685
2737
  nodeId: string;
2686
- /**
2687
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2688
- */
2689
- pageSize?: number;
2690
2738
  /**
2691
2739
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2692
2740
  */
2693
2741
  pageToken?: string;
2742
+ /**
2743
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2744
+ */
2745
+ pageSize?: number;
2694
2746
  /**
2695
2747
  * 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.
2696
2748
  */
@@ -2706,19 +2758,19 @@ declare class PrimaryNetworkService {
2706
2758
  * @returns ListDelegatorDetailsResponse
2707
2759
  * @throws ApiError
2708
2760
  */
2709
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2761
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2710
2762
  /**
2711
2763
  * Either mainnet or a testnet.
2712
2764
  */
2713
2765
  network: Network;
2714
- /**
2715
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2716
- */
2717
- pageSize?: number;
2718
2766
  /**
2719
2767
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2720
2768
  */
2721
2769
  pageToken?: string;
2770
+ /**
2771
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2772
+ */
2773
+ pageSize?: number;
2722
2774
  /**
2723
2775
  * A comma separated list of reward addresses to filter by.
2724
2776
  */
@@ -2769,7 +2821,7 @@ type CChainSharedAssetBalance = {
2769
2821
  /**
2770
2822
  * Type of asset like SECP256K1 or NFT.
2771
2823
  */
2772
- type: string;
2824
+ type: PrimaryNetworkAssetType;
2773
2825
  /**
2774
2826
  * Amount of the asset.
2775
2827
  */
@@ -2804,49 +2856,93 @@ type ListCChainAtomicBalancesResponse = {
2804
2856
  chainInfo: PrimaryNetworkChainInfo;
2805
2857
  };
2806
2858
 
2807
- type PChainAsset = {
2808
- assetId: string;
2809
- amount: string;
2810
- };
2811
-
2812
- type PChainSharedAsset = {
2813
- assetId: string;
2814
- amount: string;
2815
- sharedWithChainId: string;
2816
- status: string;
2817
- };
2818
-
2819
- type PChainBalance = {
2859
+ type Asset = {
2820
2860
  /**
2821
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2861
+ * Unique ID for an asset.
2822
2862
  */
2823
- unlockedUnstaked: Array<PChainAsset>;
2863
+ assetId: string;
2824
2864
  /**
2825
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2865
+ * Name of this asset.
2826
2866
  */
2827
- unlockedStaked: Array<PChainAsset>;
2867
+ name: string;
2828
2868
  /**
2829
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2869
+ * Symbol for this asset (max 4 characters).
2830
2870
  */
2831
- lockedPlatform: Array<PChainAsset>;
2871
+ symbol: string;
2832
2872
  /**
2833
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2873
+ * Denomination of this asset to represent fungibility.
2834
2874
  */
2835
- lockedStakeable: Array<PChainAsset>;
2875
+ denomination: number;
2836
2876
  /**
2837
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2877
+ * Type of asset like SECP256K1 or NFT.
2838
2878
  */
2839
- lockedStaked: Array<PChainAsset>;
2879
+ type: PrimaryNetworkAssetType;
2840
2880
  /**
2841
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2881
+ * Amount of the asset.
2842
2882
  */
2843
- pendingStaked: Array<PChainAsset>;
2883
+ amount: string;
2884
+ };
2885
+
2886
+ type PChainSharedAsset = {
2844
2887
  /**
2845
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2888
+ * Unique ID for an asset.
2846
2889
  */
2847
- atomicMemoryUnlocked: Array<PChainSharedAsset>;
2890
+ assetId: string;
2848
2891
  /**
2849
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2892
+ * Name of this asset.
2893
+ */
2894
+ name: string;
2895
+ /**
2896
+ * Symbol for this asset (max 4 characters).
2897
+ */
2898
+ symbol: string;
2899
+ /**
2900
+ * Denomination of this asset to represent fungibility.
2901
+ */
2902
+ denomination: number;
2903
+ /**
2904
+ * Type of asset like SECP256K1 or NFT.
2905
+ */
2906
+ type: PrimaryNetworkAssetType;
2907
+ /**
2908
+ * Amount of the asset.
2909
+ */
2910
+ amount: string;
2911
+ sharedWithChainId: string;
2912
+ status: string;
2913
+ };
2914
+
2915
+ type PChainBalance = {
2916
+ /**
2917
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2918
+ */
2919
+ unlockedUnstaked: Array<Asset>;
2920
+ /**
2921
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2922
+ */
2923
+ unlockedStaked: Array<Asset>;
2924
+ /**
2925
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2926
+ */
2927
+ lockedPlatform: Array<Asset>;
2928
+ /**
2929
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2930
+ */
2931
+ lockedStakeable: Array<Asset>;
2932
+ /**
2933
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2934
+ */
2935
+ lockedStaked: Array<Asset>;
2936
+ /**
2937
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2938
+ */
2939
+ pendingStaked: Array<Asset>;
2940
+ /**
2941
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2942
+ */
2943
+ atomicMemoryUnlocked: Array<PChainSharedAsset>;
2944
+ /**
2945
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2850
2946
  */
2851
2947
  atomicMemoryLocked: Array<PChainSharedAsset>;
2852
2948
  };
@@ -2876,7 +2972,7 @@ type XChainAssetBalance = {
2876
2972
  /**
2877
2973
  * Type of asset like SECP256K1 or NFT.
2878
2974
  */
2879
- type: string;
2975
+ type: PrimaryNetworkAssetType;
2880
2976
  /**
2881
2977
  * Amount of the asset.
2882
2978
  */
@@ -2904,7 +3000,7 @@ type XChainSharedAssetBalance = {
2904
3000
  /**
2905
3001
  * Type of asset like SECP256K1 or NFT.
2906
3002
  */
2907
- type: string;
3003
+ type: PrimaryNetworkAssetType;
2908
3004
  /**
2909
3005
  * Amount of the asset.
2910
3006
  */
@@ -3034,7 +3130,7 @@ declare class PrimaryNetworkBlocksService {
3034
3130
  * @returns ListPrimaryNetworkBlocksResponse
3035
3131
  * @throws ApiError
3036
3132
  */
3037
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3133
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3038
3134
  /**
3039
3135
  * A primary network blockchain id or alias.
3040
3136
  */
@@ -3047,14 +3143,14 @@ declare class PrimaryNetworkBlocksService {
3047
3143
  * A primary network (P or X chain) nodeId.
3048
3144
  */
3049
3145
  nodeId: string;
3050
- /**
3051
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3052
- */
3053
- pageSize?: number;
3054
3146
  /**
3055
3147
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3056
3148
  */
3057
3149
  pageToken?: string;
3150
+ /**
3151
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3152
+ */
3153
+ pageSize?: number;
3058
3154
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3059
3155
  /**
3060
3156
  * List latest blocks
@@ -3062,7 +3158,7 @@ declare class PrimaryNetworkBlocksService {
3062
3158
  * @returns ListPrimaryNetworkBlocksResponse
3063
3159
  * @throws ApiError
3064
3160
  */
3065
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3161
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3066
3162
  /**
3067
3163
  * A primary network blockchain id or alias.
3068
3164
  */
@@ -3071,17 +3167,48 @@ declare class PrimaryNetworkBlocksService {
3071
3167
  * Either mainnet or a testnet.
3072
3168
  */
3073
3169
  network: Network;
3074
- /**
3075
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3076
- */
3077
- pageSize?: number;
3078
3170
  /**
3079
3171
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3080
3172
  */
3081
3173
  pageToken?: string;
3174
+ /**
3175
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3176
+ */
3177
+ pageSize?: number;
3082
3178
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3083
3179
  }
3084
3180
 
3181
+ type AssetWithPriceInfo = {
3182
+ /**
3183
+ * Unique ID for an asset.
3184
+ */
3185
+ assetId: string;
3186
+ /**
3187
+ * Name of this asset.
3188
+ */
3189
+ name: string;
3190
+ /**
3191
+ * Symbol for this asset (max 4 characters).
3192
+ */
3193
+ symbol: string;
3194
+ /**
3195
+ * Denomination of this asset to represent fungibility.
3196
+ */
3197
+ denomination: number;
3198
+ /**
3199
+ * Type of asset like SECP256K1 or NFT.
3200
+ */
3201
+ type: PrimaryNetworkAssetType;
3202
+ /**
3203
+ * Amount of the asset.
3204
+ */
3205
+ amount: string;
3206
+ /**
3207
+ * 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.
3208
+ */
3209
+ historicalPrice?: Money;
3210
+ };
3211
+
3085
3212
  declare enum RewardType {
3086
3213
  VALIDATOR = "VALIDATOR",
3087
3214
  DELEGATOR = "DELEGATOR",
@@ -3101,10 +3228,7 @@ type HistoricalReward = {
3101
3228
  rewardType: RewardType;
3102
3229
  utxoId: string;
3103
3230
  outputIndex: number;
3104
- /**
3105
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3106
- */
3107
- reward: PChainAsset;
3231
+ reward: AssetWithPriceInfo;
3108
3232
  rewardTxHash: string;
3109
3233
  };
3110
3234
 
@@ -3131,7 +3255,7 @@ type PendingReward = {
3131
3255
  /**
3132
3256
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3133
3257
  */
3134
- estimatedReward: PChainAsset;
3258
+ estimatedReward: Asset;
3135
3259
  };
3136
3260
 
3137
3261
  type ListPendingRewardsResponse = {
@@ -3151,25 +3275,25 @@ declare class PrimaryNetworkRewardsService {
3151
3275
  * @returns ListPendingRewardsResponse
3152
3276
  * @throws ApiError
3153
3277
  */
3154
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3278
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3155
3279
  /**
3156
3280
  * Either mainnet or a testnet.
3157
3281
  */
3158
3282
  network: Network;
3159
3283
  /**
3160
- * 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".
3284
+ * 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.
3161
3285
  */
3162
3286
  addresses?: string;
3163
- /**
3164
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3165
- */
3166
- pageSize?: number;
3167
3287
  /**
3168
3288
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3169
3289
  */
3170
3290
  pageToken?: string;
3171
3291
  /**
3172
- * A comma separated list of node ids to filter by.
3292
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3293
+ */
3294
+ pageSize?: number;
3295
+ /**
3296
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3173
3297
  */
3174
3298
  nodeIds?: string;
3175
3299
  /**
@@ -3183,68 +3307,45 @@ declare class PrimaryNetworkRewardsService {
3183
3307
  * @returns ListHistoricalRewardsResponse
3184
3308
  * @throws ApiError
3185
3309
  */
3186
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3310
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3187
3311
  /**
3188
3312
  * Either mainnet or a testnet.
3189
3313
  */
3190
3314
  network: Network;
3191
3315
  /**
3192
- * 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".
3316
+ * 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.
3193
3317
  */
3194
3318
  addresses?: string;
3195
- /**
3196
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3197
- */
3198
- pageSize?: number;
3199
3319
  /**
3200
3320
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3201
3321
  */
3202
3322
  pageToken?: string;
3203
3323
  /**
3204
- * A comma separated list of node ids to filter by.
3324
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3325
+ */
3326
+ pageSize?: number;
3327
+ /**
3328
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3205
3329
  */
3206
3330
  nodeIds?: string;
3207
3331
  /**
3208
3332
  * 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.
3209
3333
  */
3210
3334
  sortOrder?: SortOrder;
3335
+ /**
3336
+ * The currency that return values should use. Defaults to USD.
3337
+ */
3338
+ currency?: CurrencyCode;
3211
3339
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3212
3340
  }
3213
3341
 
3214
- type Asset = {
3215
- /**
3216
- * Unique ID for an asset.
3217
- */
3218
- assetId: string;
3219
- /**
3220
- * Name of this asset.
3221
- */
3222
- name: string;
3223
- /**
3224
- * Symbol for this asset (max 4 characters).
3225
- */
3226
- symbol: string;
3227
- /**
3228
- * Denomination of this asset to represent fungibility.
3229
- */
3230
- denomination: number;
3231
- /**
3232
- * Type of asset like SECP256K1 or NFT.
3233
- */
3234
- type: string;
3235
- /**
3236
- * Amount of the asset.
3237
- */
3238
- amount: string;
3239
- };
3240
-
3241
3342
  type UtxoCredential = {
3242
3343
  /**
3243
- * Signature provided to consume the output
3344
+ * Signature provided to consume the output.
3244
3345
  */
3245
3346
  signature?: string;
3246
3347
  /**
3247
- * Public key associated with the signature
3348
+ * Public key associated with the signature.
3248
3349
  */
3249
3350
  publicKey?: string;
3250
3351
  };
@@ -3266,66 +3367,66 @@ type EVMInput = {
3266
3367
 
3267
3368
  type Utxo = {
3268
3369
  /**
3269
- * UTXO ID for this output.
3370
+ * Addresses that are eligible to sign the consumption of this output.
3270
3371
  */
3271
- utxoId: string;
3372
+ addresses: Array<string>;
3272
3373
  asset: Asset;
3273
3374
  /**
3274
- * Type of output.
3375
+ * Blockchain ID on which this output is consumed on.
3275
3376
  */
3276
- utxoType: string;
3377
+ consumedOnChainId: string;
3277
3378
  /**
3278
- * Blockchain ID on which this output is created on.
3379
+ * Transaction ID that consumed this output.
3279
3380
  */
3280
- createdOnChainId: string;
3381
+ consumingTxHash?: string;
3281
3382
  /**
3282
- * Blockchain ID on which this output is consumed on.
3383
+ * Blockchain ID on which this output is created on.
3283
3384
  */
3284
- consumedOnChainId: string;
3385
+ createdOnChainId: string;
3285
3386
  /**
3286
- * Transaction ID that created this output.
3387
+ * UTXO ID for this output.
3287
3388
  */
3288
- creationTxHash: string;
3389
+ utxoId: string;
3289
3390
  /**
3290
- * Transaction ID that consumed this output.
3391
+ * Unix timestamp in seconds at which this output was consumed.
3291
3392
  */
3292
- consumingTxHash?: string;
3393
+ consumingTxTimestamp?: number;
3293
3394
  /**
3294
- * Timestamp in seconds this output is consumed.
3395
+ * Transaction ID that created this output.
3295
3396
  */
3296
- consumingTxTimestamp?: number;
3397
+ creationTxHash: string;
3297
3398
  /**
3298
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3399
+ * Credentials that signed the transaction to consume this utxo
3299
3400
  */
3300
- outputIndex: string;
3401
+ credentials?: Array<UtxoCredential>;
3301
3402
  /**
3302
- * Timestamp in seconds this outptut is created on.
3403
+ * Index representing the minting set for the NFT mint output.
3303
3404
  */
3304
- timestamp: number;
3405
+ groupId?: number;
3305
3406
  /**
3306
3407
  * Locktime in seconds after which this output can be consumed.
3307
3408
  */
3308
3409
  locktime: number;
3309
3410
  /**
3310
- * Minimum number of signatures required to consume this output.
3411
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3311
3412
  */
3312
- threshold: number;
3413
+ outputIndex: string;
3313
3414
  /**
3314
- * Addresses that are eligible to sign the consumption of this output.
3415
+ * Hex encoded data for NFT assets.
3315
3416
  */
3316
- addresses: Array<string>;
3417
+ payload?: string;
3317
3418
  /**
3318
- * Hex encoded data for NFT assets
3419
+ * Minimum number of signatures required to consume this output.
3319
3420
  */
3320
- payload?: string;
3421
+ threshold: number;
3321
3422
  /**
3322
- * Index representing the minting set for the NFT mint output
3423
+ * Unix timestamp in seconds at which this outptut was created.
3323
3424
  */
3324
- groupId?: number;
3425
+ timestamp: number;
3325
3426
  /**
3326
- * Credentials that signed the transaction to consume this utxo
3427
+ * Type of output.
3327
3428
  */
3328
- credentials?: Array<UtxoCredential>;
3429
+ utxoType: string;
3329
3430
  };
3330
3431
 
3331
3432
  type CChainExportTransaction = {
@@ -3456,17 +3557,18 @@ type ListCChainAtomicTransactionsResponse = {
3456
3557
 
3457
3558
  declare enum PChainTransactionType {
3458
3559
  ADD_VALIDATOR_TX = "AddValidatorTx",
3459
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3460
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3462
3560
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3463
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3464
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3561
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3465
3562
  CREATE_CHAIN_TX = "CreateChainTx",
3466
3563
  CREATE_SUBNET_TX = "CreateSubnetTx",
3467
3564
  IMPORT_TX = "ImportTx",
3468
3565
  EXPORT_TX = "ExportTx",
3469
3566
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3567
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3568
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3569
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3570
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3571
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3470
3572
  UNKNOWN = "UNKNOWN"
3471
3573
  }
3472
3574
 
@@ -3477,29 +3579,48 @@ declare enum UtxoType {
3477
3579
 
3478
3580
  type PChainUtxo = {
3479
3581
  /**
3480
- * An array of P-Chain wallet addresses.
3582
+ * Addresses that are eligible to sign the consumption of this output.
3481
3583
  */
3482
3584
  addresses: Array<string>;
3585
+ asset: Asset;
3586
+ /**
3587
+ * Blockchain ID on which this output is consumed on.
3588
+ */
3589
+ consumedOnChainId: string;
3590
+ /**
3591
+ * Transaction ID that consumed this output.
3592
+ */
3593
+ consumingTxHash?: string;
3594
+ /**
3595
+ * Blockchain ID on which this output is created on.
3596
+ */
3597
+ createdOnChainId: string;
3598
+ /**
3599
+ * UTXO ID for this output.
3600
+ */
3483
3601
  utxoId: string;
3484
- txHash: string;
3485
- outputIndex: number;
3602
+ /**
3603
+ * @deprecated
3604
+ */
3605
+ amount: string;
3606
+ /**
3607
+ * @deprecated
3608
+ */
3609
+ assetId: string;
3486
3610
  blockNumber: string;
3487
3611
  blockTimestamp: number;
3488
- consumingTxHash?: string;
3489
- consumingBlockTimestamp?: number;
3490
3612
  consumingBlockNumber?: string;
3491
- assetId: string;
3492
- utxoType: UtxoType;
3493
- amount: string;
3494
- stakeableLocktime?: number;
3613
+ consumingBlockTimestamp?: number;
3495
3614
  platformLocktime?: number;
3496
- threshold?: number;
3497
- createdOnChainId: string;
3498
- consumedOnChainId: string;
3615
+ outputIndex: number;
3616
+ rewardType?: RewardType;
3617
+ stakeableLocktime?: number;
3499
3618
  staked?: boolean;
3500
- utxoStartTimestamp?: number;
3619
+ threshold?: number;
3620
+ txHash: string;
3501
3621
  utxoEndTimestamp?: number;
3502
- rewardType?: RewardType;
3622
+ utxoStartTimestamp?: number;
3623
+ utxoType: UtxoType;
3503
3624
  };
3504
3625
 
3505
3626
  type PChainTransaction = {
@@ -3527,15 +3648,15 @@ type PChainTransaction = {
3527
3648
  /**
3528
3649
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3529
3650
  */
3530
- value: Array<PChainAsset>;
3651
+ value: Array<Asset>;
3531
3652
  /**
3532
3653
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3533
3654
  */
3534
- amountBurned: Array<PChainAsset>;
3655
+ amountBurned: Array<Asset>;
3535
3656
  /**
3536
3657
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3537
3658
  */
3538
- amountStaked: Array<PChainAsset>;
3659
+ amountStaked: Array<Asset>;
3539
3660
  /**
3540
3661
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3541
3662
  */
@@ -3738,17 +3859,18 @@ declare enum PChainId {
3738
3859
 
3739
3860
  declare enum PrimaryNetworkTxType {
3740
3861
  ADD_VALIDATOR_TX = "AddValidatorTx",
3741
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3742
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3744
3862
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3745
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3746
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3863
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3747
3864
  CREATE_CHAIN_TX = "CreateChainTx",
3748
3865
  CREATE_SUBNET_TX = "CreateSubnetTx",
3749
3866
  IMPORT_TX = "ImportTx",
3750
3867
  EXPORT_TX = "ExportTx",
3751
3868
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3869
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3870
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3871
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3872
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3873
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3752
3874
  UNKNOWN = "UNKNOWN",
3753
3875
  BASE_TX = "BaseTx",
3754
3876
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3782,13 +3904,13 @@ declare class PrimaryNetworkTransactionsService {
3782
3904
  * List latest transactions
3783
3905
  * Lists the latest transactions on one of the Primary Network chains.
3784
3906
  *
3785
- * Transactions are filterable by addresses.
3907
+ * 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.
3786
3908
  *
3787
3909
  * 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.
3788
3910
  * @returns any
3789
3911
  * @throws ApiError
3790
3912
  */
3791
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3913
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3792
3914
  /**
3793
3915
  * A primary network blockchain id or alias.
3794
3916
  */
@@ -3813,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
3813
3935
  * Query param for retrieving items before a specific timestamp.
3814
3936
  */
3815
3937
  endTimestamp?: number;
3816
- /**
3817
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3818
- */
3819
- pageSize?: number;
3820
3938
  /**
3821
3939
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3822
3940
  */
3823
3941
  pageToken?: string;
3942
+ /**
3943
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3944
+ */
3945
+ pageSize?: number;
3824
3946
  /**
3825
3947
  * 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.
3826
3948
  */
@@ -3832,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
3832
3954
  * @returns ListPChainTransactionsResponse
3833
3955
  * @throws ApiError
3834
3956
  */
3835
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3957
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3836
3958
  /**
3837
3959
  * A primary network blockchain id or alias.
3838
3960
  */
@@ -3857,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
3857
3979
  * Query param for retrieving items before a specific timestamp.
3858
3980
  */
3859
3981
  endTimestamp?: number;
3860
- /**
3861
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3862
- */
3863
- pageSize?: number;
3864
3982
  /**
3865
3983
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3866
3984
  */
3867
3985
  pageToken?: string;
3986
+ /**
3987
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3988
+ */
3989
+ pageSize?: number;
3868
3990
  /**
3869
3991
  * 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.
3870
3992
  */
@@ -3876,7 +3998,7 @@ declare class PrimaryNetworkTransactionsService {
3876
3998
  * @returns ListXChainTransactionsResponse
3877
3999
  * @throws ApiError
3878
4000
  */
3879
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
4001
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3880
4002
  /**
3881
4003
  * A primary network blockchain id or alias.
3882
4004
  */
@@ -3901,14 +4023,14 @@ declare class PrimaryNetworkTransactionsService {
3901
4023
  * Query param for retrieving items before a specific timestamp.
3902
4024
  */
3903
4025
  endTimestamp?: number;
3904
- /**
3905
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3906
- */
3907
- pageSize?: number;
3908
4026
  /**
3909
4027
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3910
4028
  */
3911
4029
  pageToken?: string;
4030
+ /**
4031
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4032
+ */
4033
+ pageSize?: number;
3912
4034
  }): CancelablePromise<ListXChainTransactionsResponse>;
3913
4035
  }
3914
4036
 
@@ -3939,7 +4061,7 @@ declare class PrimaryNetworkUtxOsService {
3939
4061
  * @returns any
3940
4062
  * @throws ApiError
3941
4063
  */
3942
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4064
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3943
4065
  /**
3944
4066
  * A primary network blockchain id or alias.
3945
4067
  */
@@ -3952,14 +4074,14 @@ declare class PrimaryNetworkUtxOsService {
3952
4074
  * 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".
3953
4075
  */
3954
4076
  addresses?: string;
3955
- /**
3956
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3957
- */
3958
- pageSize?: number;
3959
4077
  /**
3960
4078
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3961
4079
  */
3962
4080
  pageToken?: string;
4081
+ /**
4082
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4083
+ */
4084
+ pageSize?: number;
3963
4085
  /**
3964
4086
  * Asset ID for any asset (only applicable X-Chain)
3965
4087
  */
@@ -4004,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
4004
4126
  * @returns ListXChainVerticesResponse
4005
4127
  * @throws ApiError
4006
4128
  */
4007
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4129
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4008
4130
  /**
4009
4131
  * A primary network blockchain id or alias.
4010
4132
  */
@@ -4013,14 +4135,14 @@ declare class PrimaryNetworkVerticesService {
4013
4135
  * Either mainnet or a testnet.
4014
4136
  */
4015
4137
  network: Network;
4016
- /**
4017
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4018
- */
4019
- pageSize?: number;
4020
4138
  /**
4021
4139
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4022
4140
  */
4023
4141
  pageToken?: string;
4142
+ /**
4143
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4144
+ */
4145
+ pageSize?: number;
4024
4146
  }): CancelablePromise<ListXChainVerticesResponse>;
4025
4147
  /**
4026
4148
  * Get vertex
@@ -4048,7 +4170,7 @@ declare class PrimaryNetworkVerticesService {
4048
4170
  * @returns ListXChainVerticesResponse
4049
4171
  * @throws ApiError
4050
4172
  */
4051
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4173
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4052
4174
  /**
4053
4175
  * The height of a vertex.
4054
4176
  */
@@ -4061,14 +4183,14 @@ declare class PrimaryNetworkVerticesService {
4061
4183
  * Either mainnet or a testnet.
4062
4184
  */
4063
4185
  network: Network;
4064
- /**
4065
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4066
- */
4067
- pageSize?: number;
4068
4186
  /**
4069
4187
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4070
4188
  */
4071
4189
  pageToken?: string;
4190
+ /**
4191
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4192
+ */
4193
+ pageSize?: number;
4072
4194
  /**
4073
4195
  * 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.
4074
4196
  */
@@ -4115,4 +4237,4 @@ declare class ApiError extends Error {
4115
4237
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4116
4238
  }
4117
4239
 
4118
- 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, PChainAsset, 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, 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 };
4240
+ 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 };