@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.42fb70b.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 (75) hide show
  1. package/dist/index.d.ts +579 -167
  2. package/dist/index.js +195 -36
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
  7. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  8. package/esm/generated/models/ChainInfo.d.ts +1 -0
  9. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  10. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  11. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  12. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  13. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  14. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  15. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  16. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  17. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  18. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  19. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  20. package/esm/generated/models/EventType.d.ts +5 -0
  21. package/esm/generated/models/EventType.js +6 -0
  22. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  23. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  24. package/esm/generated/models/HistoricalReward.d.ts +2 -2
  25. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  26. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  27. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  28. package/esm/generated/models/PChainBalance.d.ts +7 -7
  29. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  30. package/esm/generated/models/PChainTransaction.d.ts +5 -4
  31. package/esm/generated/models/PChainTransactionType.d.ts +6 -4
  32. package/esm/generated/models/PChainTransactionType.js +6 -4
  33. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  34. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  35. package/esm/generated/models/PendingReward.d.ts +2 -2
  36. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  37. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  38. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
  39. package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
  40. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  41. package/esm/generated/models/RewardType.d.ts +2 -1
  42. package/esm/generated/models/RewardType.js +1 -0
  43. package/esm/generated/models/Rewards.d.ts +2 -0
  44. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  45. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  46. package/esm/generated/models/Utxo.d.ts +28 -28
  47. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  48. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  49. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  50. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  51. package/esm/generated/models/WebhookStatus.js +7 -0
  52. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  53. package/esm/generated/models/WebhookStatusType.js +7 -0
  54. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  55. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  56. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  57. package/esm/generated/models/XChainTransactionType.js +11 -0
  58. package/esm/generated/services/DefaultService.d.ts +67 -0
  59. package/esm/generated/services/DefaultService.js +55 -0
  60. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  61. package/esm/generated/services/EvmContractsService.js +16 -0
  62. package/esm/generated/services/EvmTransactionsService.d.ts +42 -20
  63. package/esm/generated/services/EvmTransactionsService.js +1 -14
  64. package/esm/generated/services/NfTsService.d.ts +25 -0
  65. package/esm/generated/services/NfTsService.js +19 -0
  66. package/esm/generated/services/OperationsService.d.ts +11 -11
  67. package/esm/generated/services/OperationsService.js +10 -10
  68. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  69. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  70. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -7
  71. package/esm/generated/services/PrimaryNetworkService.js +16 -4
  72. package/esm/index.d.ts +18 -1
  73. package/esm/index.js +9 -0
  74. package/package.json +2 -2
  75. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -60,6 +60,118 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
+ type AddressActivityMetadata = {
64
+ /**
65
+ * Ethereum address for the address_activity event type
66
+ */
67
+ address: string;
68
+ topic0?: string;
69
+ };
70
+
71
+ declare enum EventType {
72
+ ADDRESS_ACTIVITY = "address_activity"
73
+ }
74
+
75
+ declare enum WebhookStatusType {
76
+ ACTIVE = "active",
77
+ INACTIVE = "inactive"
78
+ }
79
+
80
+ type WebhookResponse = {
81
+ id: string;
82
+ eventType: EventType;
83
+ metadata: AddressActivityMetadata;
84
+ url: string;
85
+ chainId: string;
86
+ status: WebhookStatusType;
87
+ createdAt: number;
88
+ };
89
+
90
+ type ListWebhooksResponse = {
91
+ /**
92
+ * 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.
93
+ */
94
+ nextPageToken?: string;
95
+ webhooks: Array<WebhookResponse>;
96
+ };
97
+
98
+ type RegisterWebhookRequest = {
99
+ url: string;
100
+ chainId: string;
101
+ /**
102
+ * The type of event for the webhook
103
+ */
104
+ eventType: EventType;
105
+ metadata: AddressActivityMetadata;
106
+ };
107
+
108
+ type SharedSecretsResponse = {
109
+ secret: string;
110
+ };
111
+
112
+ declare enum WebhookStatus {
113
+ ACTIVE = "active",
114
+ INACTIVE = "inactive"
115
+ }
116
+
117
+ declare class DefaultService {
118
+ readonly httpRequest: BaseHttpRequest;
119
+ constructor(httpRequest: BaseHttpRequest);
120
+ /**
121
+ * @returns any
122
+ * @throws ApiError
123
+ */
124
+ mediaControllerUploadImage(): CancelablePromise<any>;
125
+ /**
126
+ * Register a webhook
127
+ * Registers a new webhook.
128
+ * @returns WebhookResponse
129
+ * @throws ApiError
130
+ */
131
+ registerWebhook({ requestBody, }: {
132
+ requestBody: RegisterWebhookRequest;
133
+ }): CancelablePromise<WebhookResponse>;
134
+ /**
135
+ * List webhooks
136
+ * Lists webhooks for the user.
137
+ * @returns ListWebhooksResponse
138
+ * @throws ApiError
139
+ */
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
+ /**
146
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
+ */
148
+ pageToken?: string;
149
+ /**
150
+ * 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
+ */
152
+ status?: WebhookStatus;
153
+ }): CancelablePromise<ListWebhooksResponse>;
154
+ /**
155
+ * Deactivate a webhook
156
+ * Deactivates a webhook by ID.
157
+ * @returns WebhookResponse
158
+ * @throws ApiError
159
+ */
160
+ deactivateWebhook({ id, }: {
161
+ /**
162
+ * The webhook identifier.
163
+ */
164
+ id: string;
165
+ }): CancelablePromise<WebhookResponse>;
166
+ /**
167
+ * Generate a shared secret
168
+ * Generates a new shared secret.
169
+ * @returns SharedSecretsResponse
170
+ * @throws ApiError
171
+ */
172
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
173
+ }
174
+
63
175
  declare enum CurrencyCode {
64
176
  USD = "usd",
65
177
  EUR = "eur",
@@ -680,6 +792,7 @@ type GetChainResponse = {
680
792
  utilityAddresses?: UtilityAddresses;
681
793
  networkToken: NetworkToken;
682
794
  chainLogoUri?: string;
795
+ private?: boolean;
683
796
  };
684
797
 
685
798
  type ChainInfo = {
@@ -701,6 +814,7 @@ type ChainInfo = {
701
814
  utilityAddresses?: UtilityAddresses;
702
815
  networkToken: NetworkToken;
703
816
  chainLogoUri?: string;
817
+ private?: boolean;
704
818
  };
705
819
 
706
820
  type ListChainsResponse = {
@@ -741,18 +855,6 @@ declare class EvmChainsService {
741
855
  }): CancelablePromise<GetChainResponse>;
742
856
  }
743
857
 
744
- type ContractDeploymentDetails = {
745
- txHash: string;
746
- /**
747
- * The address that initiated the transaction which deployed this contract.
748
- */
749
- deployerAddress: string;
750
- /**
751
- * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
752
- */
753
- deployerContractAddress?: string;
754
- };
755
-
756
858
  type ImageAsset = {
757
859
  assetId?: string;
758
860
  /**
@@ -791,6 +893,120 @@ type ResourceLink = {
791
893
  url: string;
792
894
  };
793
895
 
896
+ type ContractSubmissionErc1155 = {
897
+ description?: string;
898
+ officialSite?: string;
899
+ email?: string;
900
+ logoAsset?: ImageAsset;
901
+ bannerAsset?: ImageAsset;
902
+ color?: string;
903
+ resourceLinks?: Array<ResourceLink>;
904
+ tags?: Array<string>;
905
+ /**
906
+ * The contract name.
907
+ */
908
+ name: string;
909
+ ercType: ContractSubmissionErc1155.ercType;
910
+ /**
911
+ * The contract symbol.
912
+ */
913
+ symbol: string;
914
+ pricingProviders?: PricingProviders;
915
+ };
916
+ declare namespace ContractSubmissionErc1155 {
917
+ enum ercType {
918
+ ERC_1155 = "ERC-1155"
919
+ }
920
+ }
921
+
922
+ type ContractSubmissionErc20 = {
923
+ description?: string;
924
+ officialSite?: string;
925
+ email?: string;
926
+ logoAsset?: ImageAsset;
927
+ bannerAsset?: ImageAsset;
928
+ color?: string;
929
+ resourceLinks?: Array<ResourceLink>;
930
+ tags?: Array<string>;
931
+ /**
932
+ * The contract name.
933
+ */
934
+ name: string;
935
+ ercType: ContractSubmissionErc20.ercType;
936
+ /**
937
+ * The contract symbol.
938
+ */
939
+ symbol: string;
940
+ pricingProviders?: PricingProviders;
941
+ };
942
+ declare namespace ContractSubmissionErc20 {
943
+ enum ercType {
944
+ ERC_20 = "ERC-20"
945
+ }
946
+ }
947
+
948
+ type ContractSubmissionErc721 = {
949
+ description?: string;
950
+ officialSite?: string;
951
+ email?: string;
952
+ logoAsset?: ImageAsset;
953
+ bannerAsset?: ImageAsset;
954
+ color?: string;
955
+ resourceLinks?: Array<ResourceLink>;
956
+ tags?: Array<string>;
957
+ /**
958
+ * The contract name.
959
+ */
960
+ name: string;
961
+ ercType: ContractSubmissionErc721.ercType;
962
+ /**
963
+ * The contract symbol.
964
+ */
965
+ symbol: string;
966
+ };
967
+ declare namespace ContractSubmissionErc721 {
968
+ enum ercType {
969
+ ERC_721 = "ERC-721"
970
+ }
971
+ }
972
+
973
+ type ContractSubmissionUnknown = {
974
+ description?: string;
975
+ officialSite?: string;
976
+ email?: string;
977
+ logoAsset?: ImageAsset;
978
+ bannerAsset?: ImageAsset;
979
+ color?: string;
980
+ resourceLinks?: Array<ResourceLink>;
981
+ tags?: Array<string>;
982
+ /**
983
+ * The contract name.
984
+ */
985
+ name: string;
986
+ ercType: ContractSubmissionUnknown.ercType;
987
+ };
988
+ declare namespace ContractSubmissionUnknown {
989
+ enum ercType {
990
+ UNKNOWN = "UNKNOWN"
991
+ }
992
+ }
993
+
994
+ type ContractSubmissionBody = {
995
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
996
+ };
997
+
998
+ type ContractDeploymentDetails = {
999
+ txHash: string;
1000
+ /**
1001
+ * The address that initiated the transaction which deployed this contract.
1002
+ */
1003
+ deployerAddress: string;
1004
+ /**
1005
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1006
+ */
1007
+ deployerContractAddress?: string;
1008
+ };
1009
+
794
1010
  type Erc1155Contract = {
795
1011
  /**
796
1012
  * The contract name.
@@ -913,6 +1129,10 @@ declare namespace UnknownContract {
913
1129
  }
914
1130
  }
915
1131
 
1132
+ type UpdateContractResponse = {
1133
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1134
+ };
1135
+
916
1136
  declare class EvmContractsService {
917
1137
  readonly httpRequest: BaseHttpRequest;
918
1138
  constructor(httpRequest: BaseHttpRequest);
@@ -932,6 +1152,23 @@ declare class EvmContractsService {
932
1152
  */
933
1153
  address: string;
934
1154
  }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1155
+ /**
1156
+ * Update contract information
1157
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1158
+ * @returns UpdateContractResponse
1159
+ * @throws ApiError
1160
+ */
1161
+ updateContractInfo({ chainId, address, requestBody, }: {
1162
+ /**
1163
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1164
+ */
1165
+ chainId: string;
1166
+ /**
1167
+ * Contract address on the relevant chain.
1168
+ */
1169
+ address: string;
1170
+ requestBody: ContractSubmissionBody;
1171
+ }): CancelablePromise<UpdateContractResponse>;
935
1172
  }
936
1173
 
937
1174
  type Erc1155Token = {
@@ -1487,22 +1724,6 @@ declare class EvmTransactionsService {
1487
1724
  */
1488
1725
  pageToken?: string;
1489
1726
  }): CancelablePromise<ListContractsResponse>;
1490
- /**
1491
- * Get contract metadata
1492
- * Gets metadata about the contract at the given address.
1493
- * @returns any
1494
- * @throws ApiError
1495
- */
1496
- getContractMetadata({ chainId, address, }: {
1497
- /**
1498
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1499
- */
1500
- chainId: string;
1501
- /**
1502
- * Contract address on the relevant chain.
1503
- */
1504
- address: string;
1505
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1506
1727
  /**
1507
1728
  * List ERC transfers
1508
1729
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
@@ -1518,7 +1739,13 @@ declare class EvmTransactionsService {
1518
1739
  * A wallet address.
1519
1740
  */
1520
1741
  address: string;
1742
+ /**
1743
+ * 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.
1744
+ */
1521
1745
  startBlock?: number;
1746
+ /**
1747
+ * 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
+ */
1522
1749
  endBlock?: number;
1523
1750
  /**
1524
1751
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1554,7 +1781,13 @@ declare class EvmTransactionsService {
1554
1781
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1555
1782
  */
1556
1783
  pageToken?: string;
1784
+ /**
1785
+ * 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
+ */
1557
1787
  startBlock?: number;
1788
+ /**
1789
+ * 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.
1790
+ */
1558
1791
  endBlock?: number;
1559
1792
  /**
1560
1793
  * 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.
@@ -1576,7 +1809,13 @@ declare class EvmTransactionsService {
1576
1809
  * A wallet address.
1577
1810
  */
1578
1811
  address: string;
1812
+ /**
1813
+ * 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.
1814
+ */
1579
1815
  startBlock?: number;
1816
+ /**
1817
+ * 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
+ */
1580
1819
  endBlock?: number;
1581
1820
  /**
1582
1821
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1602,7 +1841,13 @@ declare class EvmTransactionsService {
1602
1841
  * A wallet address.
1603
1842
  */
1604
1843
  address: string;
1844
+ /**
1845
+ * 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.
1846
+ */
1605
1847
  startBlock?: number;
1848
+ /**
1849
+ * 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
+ */
1606
1851
  endBlock?: number;
1607
1852
  /**
1608
1853
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1628,7 +1873,13 @@ declare class EvmTransactionsService {
1628
1873
  * A wallet address.
1629
1874
  */
1630
1875
  address: string;
1876
+ /**
1877
+ * 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.
1878
+ */
1631
1879
  startBlock?: number;
1880
+ /**
1881
+ * 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
+ */
1632
1883
  endBlock?: number;
1633
1884
  /**
1634
1885
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1654,7 +1905,13 @@ declare class EvmTransactionsService {
1654
1905
  * A wallet address.
1655
1906
  */
1656
1907
  address: string;
1908
+ /**
1909
+ * 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.
1910
+ */
1657
1911
  startBlock?: number;
1912
+ /**
1913
+ * 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
+ */
1658
1915
  endBlock?: number;
1659
1916
  /**
1660
1917
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1682,7 +1939,13 @@ declare class EvmTransactionsService {
1682
1939
  * A wallet address.
1683
1940
  */
1684
1941
  address: string;
1942
+ /**
1943
+ * 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.
1944
+ */
1685
1945
  startBlock?: number;
1946
+ /**
1947
+ * 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
+ */
1686
1949
  endBlock?: number;
1687
1950
  /**
1688
1951
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1767,6 +2030,14 @@ declare class HealthCheckService {
1767
2030
  }>;
1768
2031
  }
1769
2032
 
2033
+ type ListNftTokens = {
2034
+ /**
2035
+ * 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.
2036
+ */
2037
+ nextPageToken?: string;
2038
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2039
+ };
2040
+
1770
2041
  declare class NfTsService {
1771
2042
  readonly httpRequest: BaseHttpRequest;
1772
2043
  constructor(httpRequest: BaseHttpRequest);
@@ -1791,12 +2062,12 @@ declare class NfTsService {
1791
2062
  tokenId: string;
1792
2063
  }): CancelablePromise<any>;
1793
2064
  /**
1794
- * Get token details
1795
- * Gets token details for a specific token of an NFT contract.
1796
- * @returns any
2065
+ * List tokens
2066
+ * Lists tokens for an NFT contract.
2067
+ * @returns ListNftTokens
1797
2068
  * @throws ApiError
1798
2069
  */
1799
- getTokenDetails({ chainId, address, tokenId, }: {
2070
+ listTokens({ chainId, address, pageSize, pageToken, }: {
1800
2071
  /**
1801
2072
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1802
2073
  */
@@ -1806,20 +2077,44 @@ declare class NfTsService {
1806
2077
  */
1807
2078
  address: string;
1808
2079
  /**
1809
- * TokenId on the contract
2080
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1810
2081
  */
1811
- tokenId: string;
1812
- }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1813
- }
1814
-
1815
- type EvmNetworkOptions = {
1816
- addresses: Array<string>;
1817
- includeChains: Array<string>;
1818
- };
1819
-
1820
- type CreateEvmTransactionExportRequest = {
1821
- type: CreateEvmTransactionExportRequest.type;
1822
- firstDate: string;
2082
+ pageSize?: number;
2083
+ /**
2084
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
+ */
2086
+ pageToken?: string;
2087
+ }): CancelablePromise<ListNftTokens>;
2088
+ /**
2089
+ * Get token details
2090
+ * Gets token details for a specific token of an NFT contract.
2091
+ * @returns any
2092
+ * @throws ApiError
2093
+ */
2094
+ getTokenDetails({ chainId, address, tokenId, }: {
2095
+ /**
2096
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2097
+ */
2098
+ chainId: string;
2099
+ /**
2100
+ * Contract address on the relevant chain.
2101
+ */
2102
+ address: string;
2103
+ /**
2104
+ * TokenId on the contract
2105
+ */
2106
+ tokenId: string;
2107
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2108
+ }
2109
+
2110
+ type EvmNetworkOptions = {
2111
+ addresses: Array<string>;
2112
+ includeChains: Array<string>;
2113
+ };
2114
+
2115
+ type CreateEvmTransactionExportRequest = {
2116
+ type: CreateEvmTransactionExportRequest.type;
2117
+ firstDate: string;
1823
2118
  lastDate: string;
1824
2119
  /**
1825
2120
  * @deprecated
@@ -1906,17 +2201,6 @@ type OperationStatusResponse = {
1906
2201
  declare class OperationsService {
1907
2202
  readonly httpRequest: BaseHttpRequest;
1908
2203
  constructor(httpRequest: BaseHttpRequest);
1909
- /**
1910
- * Create transaction export operation
1911
- * Trigger a transaction export operation with given parameters.
1912
- *
1913
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
1914
- * @returns OperationStatusResponse
1915
- * @throws ApiError
1916
- */
1917
- postTransactionExportJob({ requestBody, }: {
1918
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1919
- }): CancelablePromise<OperationStatusResponse>;
1920
2204
  /**
1921
2205
  * Get operation
1922
2206
  * Gets operation details for the given operation id.
@@ -1929,6 +2213,17 @@ declare class OperationsService {
1929
2213
  */
1930
2214
  operationId: string;
1931
2215
  }): CancelablePromise<OperationStatusResponse>;
2216
+ /**
2217
+ * Create transaction export operation
2218
+ * Trigger a transaction export operation with given parameters.
2219
+ *
2220
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2221
+ * @returns OperationStatusResponse
2222
+ * @throws ApiError
2223
+ */
2224
+ postTransactionExportJob({ requestBody, }: {
2225
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2226
+ }): CancelablePromise<OperationStatusResponse>;
1932
2227
  }
1933
2228
 
1934
2229
  declare enum BlockchainIds {
@@ -1997,6 +2292,7 @@ type ListBlockchainsResponse = {
1997
2292
 
1998
2293
  type ActiveDelegatorDetails = {
1999
2294
  txHash: string;
2295
+ nodeId: string;
2000
2296
  rewardAddresses: Array<string>;
2001
2297
  amountDelegated: string;
2002
2298
  delegationFee: string;
@@ -2014,6 +2310,7 @@ declare namespace ActiveDelegatorDetails {
2014
2310
 
2015
2311
  type CompletedDelegatorDetails = {
2016
2312
  txHash: string;
2313
+ nodeId: string;
2017
2314
  rewardAddresses: Array<string>;
2018
2315
  amountDelegated: string;
2019
2316
  delegationFee: string;
@@ -2031,6 +2328,7 @@ declare namespace CompletedDelegatorDetails {
2031
2328
 
2032
2329
  type PendingDelegatorDetails = {
2033
2330
  txHash: string;
2331
+ nodeId: string;
2034
2332
  rewardAddresses: Array<string>;
2035
2333
  amountDelegated: string;
2036
2334
  delegationFee: string;
@@ -2082,22 +2380,46 @@ type ListSubnetsResponse = {
2082
2380
  type Rewards = {
2083
2381
  validationRewardAmount: string;
2084
2382
  delegationRewardAmount: string;
2383
+ rewardAddresses?: Array<string>;
2384
+ rewardTxHash?: string;
2385
+ };
2386
+
2387
+ type ValidatorHealthDetails = {
2388
+ /**
2389
+ * Percent of requests responded to in last polling.
2390
+ */
2391
+ reachabilityPercent: number;
2392
+ /**
2393
+ * Percent of requests benched on the P-Chain in last polling.
2394
+ */
2395
+ benchedPChainRequestsPercent: number;
2396
+ /**
2397
+ * Percentage of requests benched on the X-Chain in last polling.
2398
+ */
2399
+ benchedXChainRequestsPercent: number;
2400
+ /**
2401
+ * Percentage of requests benched on the C-Chain in last polling.
2402
+ */
2403
+ benchedCChainRequestsPercent: number;
2085
2404
  };
2086
2405
 
2087
2406
  type ActiveValidatorDetails = {
2407
+ txHash: string;
2088
2408
  nodeId: string;
2409
+ subnetId: string;
2089
2410
  amountStaked: string;
2090
- delegationFee: string;
2411
+ delegationFee?: string;
2091
2412
  startTimestamp: number;
2092
2413
  endTimestamp: number;
2093
2414
  stakePercentage: number;
2094
2415
  delegatorCount: number;
2095
- amountDelegated: string;
2416
+ amountDelegated?: string;
2096
2417
  uptimePerformance: number;
2097
- avalancheGoVersion: string;
2098
- delegationCapacity: string;
2418
+ avalancheGoVersion?: string;
2419
+ delegationCapacity?: string;
2099
2420
  potentialRewards: Rewards;
2100
2421
  validationStatus: ActiveValidatorDetails.validationStatus;
2422
+ validatorHealth: ValidatorHealthDetails;
2101
2423
  };
2102
2424
  declare namespace ActiveValidatorDetails {
2103
2425
  enum validationStatus {
@@ -2106,9 +2428,11 @@ declare namespace ActiveValidatorDetails {
2106
2428
  }
2107
2429
 
2108
2430
  type CompletedValidatorDetails = {
2431
+ txHash: string;
2109
2432
  nodeId: string;
2433
+ subnetId: string;
2110
2434
  amountStaked: string;
2111
- delegationFee: string;
2435
+ delegationFee?: string;
2112
2436
  startTimestamp: number;
2113
2437
  endTimestamp: number;
2114
2438
  delegatorCount: number;
@@ -2122,9 +2446,11 @@ declare namespace CompletedValidatorDetails {
2122
2446
  }
2123
2447
 
2124
2448
  type PendingValidatorDetails = {
2449
+ txHash: string;
2125
2450
  nodeId: string;
2451
+ subnetId: string;
2126
2452
  amountStaked: string;
2127
- delegationFee: string;
2453
+ delegationFee?: string;
2128
2454
  startTimestamp: number;
2129
2455
  endTimestamp: number;
2130
2456
  validationStatus: PendingValidatorDetails.validationStatus;
@@ -2141,7 +2467,7 @@ type ListValidatorDetailsResponse = {
2141
2467
  */
2142
2468
  nextPageToken?: string;
2143
2469
  /**
2144
- * The list of Validator Details.
2470
+ * The list of validator Details.
2145
2471
  */
2146
2472
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2147
2473
  };
@@ -2299,7 +2625,7 @@ declare class PrimaryNetworkService {
2299
2625
  * @returns ListValidatorDetailsResponse
2300
2626
  * @throws ApiError
2301
2627
  */
2302
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2628
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2303
2629
  /**
2304
2630
  * Either mainnet or a testnet.
2305
2631
  */
@@ -2325,9 +2651,33 @@ declare class PrimaryNetworkService {
2325
2651
  */
2326
2652
  validationStatus?: ValidationStatusType;
2327
2653
  /**
2328
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2654
+ * 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
2329
2655
  */
2330
2656
  minDelegationCapacity?: any;
2657
+ /**
2658
+ * 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
+ */
2660
+ maxDelegationCapacity?: any;
2661
+ /**
2662
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
+ */
2664
+ minTimeRemaining?: any;
2665
+ /**
2666
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
+ */
2668
+ maxTimeRemaining?: any;
2669
+ /**
2670
+ * 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
+ */
2672
+ minFeePercentage?: any;
2673
+ /**
2674
+ * 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
+ */
2676
+ maxFeePercentage?: any;
2677
+ /**
2678
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
+ */
2680
+ subnetId?: string;
2331
2681
  }): CancelablePromise<ListValidatorDetailsResponse>;
2332
2682
  /**
2333
2683
  * Get single validator details
@@ -2367,7 +2717,7 @@ declare class PrimaryNetworkService {
2367
2717
  * @returns ListDelegatorDetailsResponse
2368
2718
  * @throws ApiError
2369
2719
  */
2370
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2720
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2371
2721
  /**
2372
2722
  * Either mainnet or a testnet.
2373
2723
  */
@@ -2380,6 +2730,10 @@ declare class PrimaryNetworkService {
2380
2730
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2381
2731
  */
2382
2732
  pageToken?: string;
2733
+ /**
2734
+ * A comma separated list of reward addresses to filter by.
2735
+ */
2736
+ rewardAddresses?: string;
2383
2737
  /**
2384
2738
  * 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.
2385
2739
  */
@@ -2388,10 +2742,6 @@ declare class PrimaryNetworkService {
2388
2742
  * Delegation status of the node.
2389
2743
  */
2390
2744
  delegationStatus?: DelegationStatusType;
2391
- /**
2392
- * A comma separated list of reward addresses to filter by.
2393
- */
2394
- rewardAddresses?: string;
2395
2745
  /**
2396
2746
  * A comma separated list of node ids to filter by.
2397
2747
  */
@@ -2465,13 +2815,57 @@ type ListCChainAtomicBalancesResponse = {
2465
2815
  chainInfo: PrimaryNetworkChainInfo;
2466
2816
  };
2467
2817
 
2468
- type PChainAsset = {
2818
+ type Asset = {
2819
+ /**
2820
+ * Unique ID for an asset.
2821
+ */
2469
2822
  assetId: string;
2823
+ /**
2824
+ * Name of this asset.
2825
+ */
2826
+ name: string;
2827
+ /**
2828
+ * Symbol for this asset (max 4 characters).
2829
+ */
2830
+ symbol: string;
2831
+ /**
2832
+ * Denomination of this asset to represent fungibility.
2833
+ */
2834
+ denomination: number;
2835
+ /**
2836
+ * Type of asset like SECP256K1 or NFT.
2837
+ */
2838
+ type: string;
2839
+ /**
2840
+ * Amount of the asset.
2841
+ */
2470
2842
  amount: string;
2471
2843
  };
2472
2844
 
2473
2845
  type PChainSharedAsset = {
2846
+ /**
2847
+ * Unique ID for an asset.
2848
+ */
2474
2849
  assetId: string;
2850
+ /**
2851
+ * Name of this asset.
2852
+ */
2853
+ name: string;
2854
+ /**
2855
+ * Symbol for this asset (max 4 characters).
2856
+ */
2857
+ symbol: string;
2858
+ /**
2859
+ * Denomination of this asset to represent fungibility.
2860
+ */
2861
+ denomination: number;
2862
+ /**
2863
+ * Type of asset like SECP256K1 or NFT.
2864
+ */
2865
+ type: string;
2866
+ /**
2867
+ * Amount of the asset.
2868
+ */
2475
2869
  amount: string;
2476
2870
  sharedWithChainId: string;
2477
2871
  status: string;
@@ -2481,27 +2875,27 @@ type PChainBalance = {
2481
2875
  /**
2482
2876
  * 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.
2483
2877
  */
2484
- unlockedUnstaked: Array<PChainAsset>;
2878
+ unlockedUnstaked: Array<Asset>;
2485
2879
  /**
2486
2880
  * 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.
2487
2881
  */
2488
- unlockedStaked: Array<PChainAsset>;
2882
+ unlockedStaked: Array<Asset>;
2489
2883
  /**
2490
2884
  * 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.
2491
2885
  */
2492
- lockedPlatform: Array<PChainAsset>;
2886
+ lockedPlatform: Array<Asset>;
2493
2887
  /**
2494
2888
  * 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.
2495
2889
  */
2496
- lockedStakeable: Array<PChainAsset>;
2890
+ lockedStakeable: Array<Asset>;
2497
2891
  /**
2498
2892
  * 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.
2499
2893
  */
2500
- lockedStaked: Array<PChainAsset>;
2894
+ lockedStaked: Array<Asset>;
2501
2895
  /**
2502
2896
  * 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.
2503
2897
  */
2504
- pendingStaked: Array<PChainAsset>;
2898
+ pendingStaked: Array<Asset>;
2505
2899
  /**
2506
2900
  * 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.
2507
2901
  */
@@ -2640,6 +3034,7 @@ type GetPrimaryNetworkBlockResponse = {
2640
3034
  txCount: number;
2641
3035
  transactions: Array<string>;
2642
3036
  blockSizeBytes: number;
3037
+ currentSupply?: string;
2643
3038
  proposerDetails?: ProposerDetails;
2644
3039
  };
2645
3040
 
@@ -2652,6 +3047,7 @@ type PrimaryNetworkBlock = {
2652
3047
  txCount: number;
2653
3048
  transactions: Array<string>;
2654
3049
  blockSizeBytes: number;
3050
+ currentSupply?: string;
2655
3051
  proposerDetails?: ProposerDetails;
2656
3052
  };
2657
3053
 
@@ -2743,7 +3139,8 @@ declare class PrimaryNetworkBlocksService {
2743
3139
 
2744
3140
  declare enum RewardType {
2745
3141
  VALIDATOR = "VALIDATOR",
2746
- DELEGATOR = "DELEGATOR"
3142
+ DELEGATOR = "DELEGATOR",
3143
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2747
3144
  }
2748
3145
 
2749
3146
  type HistoricalReward = {
@@ -2762,7 +3159,7 @@ type HistoricalReward = {
2762
3159
  /**
2763
3160
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2764
3161
  */
2765
- reward: PChainAsset;
3162
+ reward: Asset;
2766
3163
  rewardTxHash: string;
2767
3164
  };
2768
3165
 
@@ -2789,7 +3186,7 @@ type PendingReward = {
2789
3186
  /**
2790
3187
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2791
3188
  */
2792
- estimatedReward: PChainAsset;
3189
+ estimatedReward: Asset;
2793
3190
  };
2794
3191
 
2795
3192
  type ListPendingRewardsResponse = {
@@ -2809,7 +3206,7 @@ declare class PrimaryNetworkRewardsService {
2809
3206
  * @returns ListPendingRewardsResponse
2810
3207
  * @throws ApiError
2811
3208
  */
2812
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3209
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2813
3210
  /**
2814
3211
  * Either mainnet or a testnet.
2815
3212
  */
@@ -2826,6 +3223,10 @@ declare class PrimaryNetworkRewardsService {
2826
3223
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2827
3224
  */
2828
3225
  pageToken?: string;
3226
+ /**
3227
+ * A comma separated list of node ids to filter by.
3228
+ */
3229
+ nodeIds?: string;
2829
3230
  /**
2830
3231
  * 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.
2831
3232
  */
@@ -2837,7 +3238,7 @@ declare class PrimaryNetworkRewardsService {
2837
3238
  * @returns ListHistoricalRewardsResponse
2838
3239
  * @throws ApiError
2839
3240
  */
2840
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3241
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2841
3242
  /**
2842
3243
  * Either mainnet or a testnet.
2843
3244
  */
@@ -2854,6 +3255,10 @@ declare class PrimaryNetworkRewardsService {
2854
3255
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2855
3256
  */
2856
3257
  pageToken?: string;
3258
+ /**
3259
+ * A comma separated list of node ids to filter by.
3260
+ */
3261
+ nodeIds?: string;
2857
3262
  /**
2858
3263
  * 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.
2859
3264
  */
@@ -2861,40 +3266,13 @@ declare class PrimaryNetworkRewardsService {
2861
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2862
3267
  }
2863
3268
 
2864
- type Asset = {
2865
- /**
2866
- * Unique ID for an asset.
2867
- */
2868
- assetId: string;
2869
- /**
2870
- * Name of this asset.
2871
- */
2872
- name: string;
2873
- /**
2874
- * Symbol for this asset (max 4 characters).
2875
- */
2876
- symbol: string;
2877
- /**
2878
- * Denomination of this asset to represent fungibility.
2879
- */
2880
- denomination: number;
2881
- /**
2882
- * Type of asset like SECP256K1 or NFT.
2883
- */
2884
- type: string;
2885
- /**
2886
- * Amount of the asset.
2887
- */
2888
- amount: string;
2889
- };
2890
-
2891
3269
  type UtxoCredential = {
2892
3270
  /**
2893
- * Signature provided to consume the output
3271
+ * Signature provided to consume the output.
2894
3272
  */
2895
3273
  signature?: string;
2896
3274
  /**
2897
- * Public key associated with the signature
3275
+ * Public key associated with the signature.
2898
3276
  */
2899
3277
  publicKey?: string;
2900
3278
  };
@@ -2916,66 +3294,66 @@ type EVMInput = {
2916
3294
 
2917
3295
  type Utxo = {
2918
3296
  /**
2919
- * UTXO ID for this output.
3297
+ * Addresses that are eligible to sign the consumption of this output.
2920
3298
  */
2921
- utxoId: string;
3299
+ addresses: Array<string>;
2922
3300
  asset: Asset;
2923
3301
  /**
2924
- * Type of output.
3302
+ * Blockchain ID on which this output is consumed on.
2925
3303
  */
2926
- utxoType: string;
3304
+ consumedOnChainId: string;
2927
3305
  /**
2928
- * Blockchain ID on which this output is created on.
3306
+ * Transaction ID that consumed this output.
2929
3307
  */
2930
- createdOnChainId: string;
3308
+ consumingTxHash?: string;
2931
3309
  /**
2932
- * Blockchain ID on which this output is consumed on.
3310
+ * Blockchain ID on which this output is created on.
2933
3311
  */
2934
- consumedOnChainId: string;
3312
+ createdOnChainId: string;
2935
3313
  /**
2936
- * Transaction ID that created this output.
3314
+ * UTXO ID for this output.
2937
3315
  */
2938
- creationTxHash: string;
3316
+ utxoId: string;
2939
3317
  /**
2940
- * Transaction ID that consumed this output.
3318
+ * Unix timestamp in seconds at which this output was consumed.
2941
3319
  */
2942
- consumingTxHash?: string;
3320
+ consumingTxTimestamp?: number;
2943
3321
  /**
2944
- * Timestamp in seconds this output is consumed.
3322
+ * Transaction ID that created this output.
2945
3323
  */
2946
- consumingTxTimestamp?: number;
3324
+ creationTxHash: string;
2947
3325
  /**
2948
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3326
+ * Credentials that signed the transaction to consume this utxo
2949
3327
  */
2950
- outputIndex: string;
3328
+ credentials?: Array<UtxoCredential>;
2951
3329
  /**
2952
- * Timestamp in seconds this outptut is created on.
3330
+ * Index representing the minting set for the NFT mint output.
2953
3331
  */
2954
- timestamp: number;
3332
+ groupId?: number;
2955
3333
  /**
2956
3334
  * Locktime in seconds after which this output can be consumed.
2957
3335
  */
2958
3336
  locktime: number;
2959
3337
  /**
2960
- * Minimum number of signatures required to consume this output.
3338
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2961
3339
  */
2962
- threshold: number;
3340
+ outputIndex: string;
2963
3341
  /**
2964
- * Addresses that are eligible to sign the consumption of this output.
3342
+ * Hex encoded data for NFT assets.
2965
3343
  */
2966
- addresses: Array<string>;
3344
+ payload?: string;
2967
3345
  /**
2968
- * Hex encoded data for NFT assets
3346
+ * Minimum number of signatures required to consume this output.
2969
3347
  */
2970
- payload?: string;
3348
+ threshold: number;
2971
3349
  /**
2972
- * Index representing the minting set for the NFT mint output
3350
+ * Unix timestamp in seconds at which this outptut was created.
2973
3351
  */
2974
- groupId?: number;
3352
+ timestamp: number;
2975
3353
  /**
2976
- * Credentials that signed the transaction to consume this utxo
3354
+ * Type of output.
2977
3355
  */
2978
- credentials?: Array<UtxoCredential>;
3356
+ utxoType: string;
2979
3357
  };
2980
3358
 
2981
3359
  type CChainExportTransaction = {
@@ -3106,16 +3484,18 @@ type ListCChainAtomicTransactionsResponse = {
3106
3484
 
3107
3485
  declare enum PChainTransactionType {
3108
3486
  ADD_VALIDATOR_TX = "AddValidatorTx",
3109
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3110
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3111
3487
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3112
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3113
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3488
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3114
3489
  CREATE_CHAIN_TX = "CreateChainTx",
3115
3490
  CREATE_SUBNET_TX = "CreateSubnetTx",
3116
3491
  IMPORT_TX = "ImportTx",
3117
3492
  EXPORT_TX = "ExportTx",
3118
3493
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3494
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3495
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3496
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3497
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3498
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3119
3499
  UNKNOWN = "UNKNOWN"
3120
3500
  }
3121
3501
 
@@ -3126,29 +3506,48 @@ declare enum UtxoType {
3126
3506
 
3127
3507
  type PChainUtxo = {
3128
3508
  /**
3129
- * An array of P-Chain wallet addresses.
3509
+ * Addresses that are eligible to sign the consumption of this output.
3130
3510
  */
3131
3511
  addresses: Array<string>;
3512
+ asset: Asset;
3513
+ /**
3514
+ * Blockchain ID on which this output is consumed on.
3515
+ */
3516
+ consumedOnChainId: string;
3517
+ /**
3518
+ * Transaction ID that consumed this output.
3519
+ */
3520
+ consumingTxHash?: string;
3521
+ /**
3522
+ * Blockchain ID on which this output is created on.
3523
+ */
3524
+ createdOnChainId: string;
3525
+ /**
3526
+ * UTXO ID for this output.
3527
+ */
3132
3528
  utxoId: string;
3133
- txHash: string;
3134
- outputIndex: number;
3529
+ /**
3530
+ * @deprecated
3531
+ */
3532
+ amount: string;
3533
+ /**
3534
+ * @deprecated
3535
+ */
3536
+ assetId: string;
3135
3537
  blockNumber: string;
3136
3538
  blockTimestamp: number;
3137
- consumingTxHash?: string;
3138
- consumingBlockTimestamp?: number;
3139
3539
  consumingBlockNumber?: string;
3140
- assetId: string;
3141
- utxoType: UtxoType;
3142
- amount: string;
3143
- stakeableLocktime?: number;
3540
+ consumingBlockTimestamp?: number;
3144
3541
  platformLocktime?: number;
3145
- threshold?: number;
3146
- createdOnChainId: string;
3147
- consumedOnChainId: string;
3542
+ outputIndex: number;
3543
+ rewardType?: RewardType;
3544
+ stakeableLocktime?: number;
3148
3545
  staked?: boolean;
3149
- utxoStartTimestamp?: number;
3546
+ threshold?: number;
3547
+ txHash: string;
3150
3548
  utxoEndTimestamp?: number;
3151
- rewardType?: RewardType;
3549
+ utxoStartTimestamp?: number;
3550
+ utxoType: UtxoType;
3152
3551
  };
3153
3552
 
3154
3553
  type PChainTransaction = {
@@ -3176,15 +3575,15 @@ type PChainTransaction = {
3176
3575
  /**
3177
3576
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3178
3577
  */
3179
- value: Array<PChainAsset>;
3578
+ value: Array<Asset>;
3180
3579
  /**
3181
3580
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3182
3581
  */
3183
- amountBurned: Array<PChainAsset>;
3582
+ amountBurned: Array<Asset>;
3184
3583
  /**
3185
3584
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3186
3585
  */
3187
- amountStaked: Array<PChainAsset>;
3586
+ amountStaked: Array<Asset>;
3188
3587
  /**
3189
3588
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3190
3589
  */
@@ -3210,6 +3609,7 @@ type PChainTransaction = {
3210
3609
  */
3211
3610
  estimatedReward?: string;
3212
3611
  rewardTxHash?: string;
3612
+ rewardAddresses?: Array<string>;
3213
3613
  memo?: string;
3214
3614
  /**
3215
3615
  * Present for RewardValidatorTx
@@ -3226,6 +3626,15 @@ type ListPChainTransactionsResponse = {
3226
3626
  chainInfo: PrimaryNetworkChainInfo;
3227
3627
  };
3228
3628
 
3629
+ declare enum XChainTransactionType {
3630
+ BASE_TX = "BaseTx",
3631
+ CREATE_ASSET_TX = "CreateAssetTx",
3632
+ OPERATION_TX = "OperationTx",
3633
+ IMPORT_TX = "ImportTx",
3634
+ EXPORT_TX = "ExportTx",
3635
+ UNKNOWN = "UNKNOWN"
3636
+ }
3637
+
3229
3638
  type XChainLinearTransaction = {
3230
3639
  /**
3231
3640
  * Unique ID for this transaction.
@@ -3242,7 +3651,7 @@ type XChainLinearTransaction = {
3242
3651
  /**
3243
3652
  * Type of transaction.
3244
3653
  */
3245
- txType: string;
3654
+ txType: XChainTransactionType;
3246
3655
  /**
3247
3656
  * Hex encoded memo bytes for this transaction.
3248
3657
  */
@@ -3319,7 +3728,7 @@ type XChainNonLinearTransaction = {
3319
3728
  /**
3320
3729
  * Type of transaction.
3321
3730
  */
3322
- txType: string;
3731
+ txType: XChainTransactionType;
3323
3732
  /**
3324
3733
  * Hex encoded memo bytes for this transaction.
3325
3734
  */
@@ -3377,16 +3786,18 @@ declare enum PChainId {
3377
3786
 
3378
3787
  declare enum PrimaryNetworkTxType {
3379
3788
  ADD_VALIDATOR_TX = "AddValidatorTx",
3380
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3381
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3382
3789
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3383
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3384
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3790
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3385
3791
  CREATE_CHAIN_TX = "CreateChainTx",
3386
3792
  CREATE_SUBNET_TX = "CreateSubnetTx",
3387
3793
  IMPORT_TX = "ImportTx",
3388
3794
  EXPORT_TX = "ExportTx",
3389
3795
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3796
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3797
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3798
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3799
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3800
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3390
3801
  UNKNOWN = "UNKNOWN",
3391
3802
  BASE_TX = "BaseTx",
3392
3803
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3716,6 +4127,7 @@ declare class PrimaryNetworkVerticesService {
3716
4127
 
3717
4128
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3718
4129
  declare class Glacier {
4130
+ readonly default: DefaultService;
3719
4131
  readonly evmBalances: EvmBalancesService;
3720
4132
  readonly evmBlocks: EvmBlocksService;
3721
4133
  readonly evmChains: EvmChainsService;
@@ -3752,4 +4164,4 @@ declare class ApiError extends Error {
3752
4164
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3753
4165
  }
3754
4166
 
3755
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, 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, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, 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, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
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 };