@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.122008d.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 (211) hide show
  1. package/dist/index.d.ts +2418 -1684
  2. package/dist/index.js +749 -317
  3. package/esm/generated/Glacier.d.ts +26 -2
  4. package/esm/generated/Glacier.js +52 -12
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.js +11 -6
  7. package/esm/generated/core/OpenAPI.js +1 -1
  8. package/esm/generated/core/request.js +14 -31
  9. package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
  10. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  11. package/esm/generated/models/ActiveValidatorDetails.d.ts +27 -0
  12. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  13. package/esm/generated/models/Blockchain.d.ts +10 -0
  14. package/esm/generated/models/BlockchainId.d.ts +6 -3
  15. package/esm/generated/models/BlockchainId.js +5 -2
  16. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  17. package/esm/generated/models/BlockchainIds.js +10 -0
  18. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  19. package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
  20. package/esm/generated/models/ChainInfo.d.ts +2 -4
  21. package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
  22. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  23. package/esm/generated/models/CompletedValidatorDetails.d.ts +20 -0
  24. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  25. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  26. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  27. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  28. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  29. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  30. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  31. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  32. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  33. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  34. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  35. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  36. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  37. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  38. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  39. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  40. package/esm/generated/models/DelegationStatusType.js +8 -0
  41. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  42. package/esm/generated/models/EVMInput.d.ts +5 -0
  43. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  44. package/esm/generated/models/Erc1155Contract.js +8 -0
  45. package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
  46. package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
  47. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
  48. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  49. package/esm/generated/models/Erc20Contract.js +8 -0
  50. package/esm/generated/models/Erc20Token.d.ts +1 -3
  51. package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
  52. package/esm/generated/models/Erc20Transfer.d.ts +1 -0
  53. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
  54. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  55. package/esm/generated/models/Erc721Contract.js +8 -0
  56. package/esm/generated/models/Erc721Transfer.d.ts +1 -0
  57. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
  58. package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
  59. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  60. package/esm/generated/models/GetChainResponse.d.ts +2 -4
  61. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  62. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  63. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  64. package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
  65. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  66. package/esm/generated/models/ImageAsset.d.ts +9 -0
  67. package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
  68. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
  69. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
  70. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
  71. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  72. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  73. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  74. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  75. package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
  76. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
  77. package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
  78. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  79. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  80. package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
  81. package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
  82. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  83. package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
  84. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
  85. package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
  86. package/esm/generated/models/Method.d.ts +1 -7
  87. package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
  88. package/esm/generated/models/NetworkToken.d.ts +1 -3
  89. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
  90. package/esm/generated/models/NetworkType.d.ts +6 -0
  91. package/esm/generated/models/NetworkType.js +7 -0
  92. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  93. package/esm/generated/models/OperationType.d.ts +2 -1
  94. package/esm/generated/models/OperationType.js +2 -1
  95. package/esm/generated/models/PChainBalance.d.ts +16 -7
  96. package/esm/generated/models/PChainId.d.ts +2 -2
  97. package/esm/generated/models/PChainId.js +1 -1
  98. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  99. package/esm/generated/models/PChainTransaction.d.ts +10 -15
  100. package/esm/generated/models/PChainTransactionType.d.ts +17 -0
  101. package/esm/generated/models/PChainTransactionType.js +18 -0
  102. package/esm/generated/models/PChainUtxo.d.ts +10 -1
  103. package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
  104. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  105. package/esm/generated/models/PendingReward.d.ts +22 -0
  106. package/esm/generated/models/PendingValidatorDetails.d.ts +16 -0
  107. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  108. package/esm/generated/models/PricingProviders.d.ts +5 -0
  109. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  110. package/esm/generated/models/PrimaryNetwork.js +7 -0
  111. package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
  112. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  113. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  114. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  115. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -1
  116. package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
  117. package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
  118. package/esm/generated/models/RewardType.d.ts +7 -0
  119. package/esm/generated/models/RewardType.js +8 -0
  120. package/esm/generated/models/Rewards.d.ts +8 -0
  121. package/esm/generated/models/RichAddress.d.ts +1 -3
  122. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  123. package/esm/generated/models/Subnet.d.ts +13 -0
  124. package/esm/generated/models/TransactionDetails.d.ts +1 -7
  125. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  126. package/esm/generated/models/UnknownContract.d.ts +31 -0
  127. package/esm/generated/models/UnknownContract.js +8 -0
  128. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  129. package/esm/generated/models/Utxo.d.ts +9 -1
  130. package/esm/generated/models/UtxoType.d.ts +6 -0
  131. package/esm/generated/models/UtxoType.js +7 -0
  132. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  133. package/esm/generated/models/ValidationStatusType.js +8 -0
  134. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  135. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  136. package/esm/generated/models/XChainBalances.d.ts +2 -2
  137. package/esm/generated/models/XChainId.d.ts +3 -2
  138. package/esm/generated/models/XChainId.js +2 -1
  139. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
  140. package/esm/generated/models/XChainLinearTransaction.js +1 -1
  141. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
  142. package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
  143. package/esm/generated/services/DefaultService.d.ts +14 -0
  144. package/esm/generated/services/DefaultService.js +13 -0
  145. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  146. package/esm/generated/services/EvmBalancesService.js +116 -0
  147. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  148. package/esm/generated/services/EvmBlocksService.js +37 -0
  149. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  150. package/esm/generated/services/EvmChainsService.js +29 -0
  151. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  152. package/esm/generated/services/EvmContractsService.js +36 -0
  153. package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
  154. package/esm/generated/services/EvmTransactionsService.js +251 -0
  155. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  156. package/esm/generated/services/NfTsService.d.ts +51 -0
  157. package/esm/generated/services/NfTsService.js +37 -0
  158. package/esm/generated/services/OperationsService.d.ts +8 -3
  159. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  160. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  161. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  162. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  163. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
  164. package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
  165. package/esm/generated/services/PrimaryNetworkService.d.ts +103 -245
  166. package/esm/generated/services/PrimaryNetworkService.js +65 -167
  167. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  168. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  169. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  170. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  171. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  172. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  173. package/esm/index.d.ts +71 -31
  174. package/esm/index.js +39 -9
  175. package/package.json +2 -5
  176. package/esm/generated/models/Address.d.ts +0 -8
  177. package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
  178. package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
  179. package/esm/generated/models/CollectionMetrics.d.ts +0 -40
  180. package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
  181. package/esm/generated/models/CollectionSortByOption.js +0 -9
  182. package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
  183. package/esm/generated/models/ErcType.d.ts +0 -8
  184. package/esm/generated/models/ErcType.js +0 -9
  185. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  186. package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
  187. package/esm/generated/models/ListingCurrencyType.js +0 -7
  188. package/esm/generated/models/ListingEventType.d.ts +0 -8
  189. package/esm/generated/models/ListingEventType.js +0 -9
  190. package/esm/generated/models/ListingResponse.d.ts +0 -19
  191. package/esm/generated/models/ListingType.d.ts +0 -6
  192. package/esm/generated/models/ListingType.js +0 -7
  193. package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
  194. package/esm/generated/models/ListingsSortByOption.js +0 -6
  195. package/esm/generated/models/NftCollection.d.ts +0 -24
  196. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  197. package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
  198. package/esm/generated/models/NftSearchBody.d.ts +0 -10
  199. package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
  200. package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
  201. package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
  202. package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
  203. package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
  204. package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
  205. package/esm/generated/models/PaginationParams.d.ts +0 -13
  206. package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
  207. package/esm/generated/models/TokenWithPrice.d.ts +0 -28
  208. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  209. package/esm/generated/models/TrendingTimeframe.js +0 -8
  210. package/esm/generated/services/EvmService.d.ts +0 -724
  211. package/esm/generated/services/EvmService.js +0 -509
@@ -0,0 +1,251 @@
1
+ class EvmTransactionsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getDeploymentTransaction({
6
+ chainId,
7
+ address,
8
+ currency
9
+ }) {
10
+ return this.httpRequest.request({
11
+ method: "GET",
12
+ url: "/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",
13
+ path: {
14
+ "chainId": chainId,
15
+ "address": address
16
+ },
17
+ query: {
18
+ "currency": currency
19
+ }
20
+ });
21
+ }
22
+ listContractDeployments({
23
+ chainId,
24
+ address,
25
+ pageSize = 10,
26
+ pageToken
27
+ }) {
28
+ return this.httpRequest.request({
29
+ method: "GET",
30
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
31
+ path: {
32
+ "chainId": chainId,
33
+ "address": address
34
+ },
35
+ query: {
36
+ "pageSize": pageSize,
37
+ "pageToken": pageToken
38
+ }
39
+ });
40
+ }
41
+ listTransfers({
42
+ chainId,
43
+ address,
44
+ startBlock,
45
+ endBlock,
46
+ pageSize = 10,
47
+ pageToken
48
+ }) {
49
+ return this.httpRequest.request({
50
+ method: "GET",
51
+ url: "/v1/chains/{chainId}/tokens/{address}/transfers",
52
+ path: {
53
+ "chainId": chainId,
54
+ "address": address
55
+ },
56
+ query: {
57
+ "startBlock": startBlock,
58
+ "endBlock": endBlock,
59
+ "pageSize": pageSize,
60
+ "pageToken": pageToken
61
+ }
62
+ });
63
+ }
64
+ listTransactions({
65
+ chainId,
66
+ address,
67
+ pageSize = 10,
68
+ pageToken,
69
+ startBlock,
70
+ endBlock,
71
+ sortOrder
72
+ }) {
73
+ return this.httpRequest.request({
74
+ method: "GET",
75
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions",
76
+ path: {
77
+ "chainId": chainId,
78
+ "address": address
79
+ },
80
+ query: {
81
+ "pageSize": pageSize,
82
+ "pageToken": pageToken,
83
+ "startBlock": startBlock,
84
+ "endBlock": endBlock,
85
+ "sortOrder": sortOrder
86
+ }
87
+ });
88
+ }
89
+ listNativeTransactions({
90
+ chainId,
91
+ address,
92
+ startBlock,
93
+ endBlock,
94
+ pageSize = 10,
95
+ pageToken
96
+ }) {
97
+ return this.httpRequest.request({
98
+ method: "GET",
99
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listNative",
100
+ path: {
101
+ "chainId": chainId,
102
+ "address": address
103
+ },
104
+ query: {
105
+ "startBlock": startBlock,
106
+ "endBlock": endBlock,
107
+ "pageSize": pageSize,
108
+ "pageToken": pageToken
109
+ }
110
+ });
111
+ }
112
+ listErc20Transactions({
113
+ chainId,
114
+ address,
115
+ startBlock,
116
+ endBlock,
117
+ pageSize = 10,
118
+ pageToken
119
+ }) {
120
+ return this.httpRequest.request({
121
+ method: "GET",
122
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",
123
+ path: {
124
+ "chainId": chainId,
125
+ "address": address
126
+ },
127
+ query: {
128
+ "startBlock": startBlock,
129
+ "endBlock": endBlock,
130
+ "pageSize": pageSize,
131
+ "pageToken": pageToken
132
+ }
133
+ });
134
+ }
135
+ listErc721Transactions({
136
+ chainId,
137
+ address,
138
+ startBlock,
139
+ endBlock,
140
+ pageSize = 10,
141
+ pageToken
142
+ }) {
143
+ return this.httpRequest.request({
144
+ method: "GET",
145
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",
146
+ path: {
147
+ "chainId": chainId,
148
+ "address": address
149
+ },
150
+ query: {
151
+ "startBlock": startBlock,
152
+ "endBlock": endBlock,
153
+ "pageSize": pageSize,
154
+ "pageToken": pageToken
155
+ }
156
+ });
157
+ }
158
+ listErc1155Transactions({
159
+ chainId,
160
+ address,
161
+ startBlock,
162
+ endBlock,
163
+ pageSize = 10,
164
+ pageToken
165
+ }) {
166
+ return this.httpRequest.request({
167
+ method: "GET",
168
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",
169
+ path: {
170
+ "chainId": chainId,
171
+ "address": address
172
+ },
173
+ query: {
174
+ "startBlock": startBlock,
175
+ "endBlock": endBlock,
176
+ "pageSize": pageSize,
177
+ "pageToken": pageToken
178
+ }
179
+ });
180
+ }
181
+ listInternalTransactions({
182
+ chainId,
183
+ address,
184
+ startBlock,
185
+ endBlock,
186
+ pageSize = 10,
187
+ pageToken
188
+ }) {
189
+ return this.httpRequest.request({
190
+ method: "GET",
191
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",
192
+ path: {
193
+ "chainId": chainId,
194
+ "address": address
195
+ },
196
+ query: {
197
+ "startBlock": startBlock,
198
+ "endBlock": endBlock,
199
+ "pageSize": pageSize,
200
+ "pageToken": pageToken
201
+ }
202
+ });
203
+ }
204
+ getTransaction({
205
+ chainId,
206
+ txHash
207
+ }) {
208
+ return this.httpRequest.request({
209
+ method: "GET",
210
+ url: "/v1/chains/{chainId}/transactions/{txHash}",
211
+ path: {
212
+ "chainId": chainId,
213
+ "txHash": txHash
214
+ }
215
+ });
216
+ }
217
+ getTransactionsForBlock({
218
+ chainId,
219
+ blockId
220
+ }) {
221
+ return this.httpRequest.request({
222
+ method: "GET",
223
+ url: "/v1/chains/{chainId}/blocks/{blockId}/transactions",
224
+ path: {
225
+ "chainId": chainId,
226
+ "blockId": blockId
227
+ }
228
+ });
229
+ }
230
+ listLatestTransactions({
231
+ chainId,
232
+ pageSize = 10,
233
+ pageToken,
234
+ status
235
+ }) {
236
+ return this.httpRequest.request({
237
+ method: "GET",
238
+ url: "/v1/chains/{chainId}/transactions",
239
+ path: {
240
+ "chainId": chainId
241
+ },
242
+ query: {
243
+ "pageSize": pageSize,
244
+ "pageToken": pageToken,
245
+ "status": status
246
+ }
247
+ });
248
+ }
249
+ }
250
+
251
+ export { EvmTransactionsService };
@@ -5,7 +5,7 @@ declare class HealthCheckService {
5
5
  readonly httpRequest: BaseHttpRequest;
6
6
  constructor(httpRequest: BaseHttpRequest);
7
7
  /**
8
- * Get the health of the service.
8
+ * Get the health of the service
9
9
  * @returns any The Health Check is successful
10
10
  * @throws ApiError
11
11
  */
@@ -0,0 +1,51 @@
1
+ import { Erc1155Token } from '../models/Erc1155Token.js';
2
+ import { Erc721Token } from '../models/Erc721Token.js';
3
+ import { CancelablePromise } from '../core/CancelablePromise.js';
4
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
+
6
+ declare class NfTsService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Reindex NFT metadata
11
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
12
+ * @returns any
13
+ * @throws ApiError
14
+ */
15
+ reindexNft({ chainId, address, tokenId, }: {
16
+ /**
17
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
18
+ */
19
+ chainId: string;
20
+ /**
21
+ * Contract address on the relevant chain.
22
+ */
23
+ address: string;
24
+ /**
25
+ * TokenId on the contract
26
+ */
27
+ tokenId: string;
28
+ }): CancelablePromise<any>;
29
+ /**
30
+ * Get token details
31
+ * Gets token details for a specific token of an NFT contract.
32
+ * @returns any
33
+ * @throws ApiError
34
+ */
35
+ getTokenDetails({ chainId, address, tokenId, }: {
36
+ /**
37
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
+ */
39
+ chainId: string;
40
+ /**
41
+ * Contract address on the relevant chain.
42
+ */
43
+ address: string;
44
+ /**
45
+ * TokenId on the contract
46
+ */
47
+ tokenId: string;
48
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
49
+ }
50
+
51
+ export { NfTsService };
@@ -0,0 +1,37 @@
1
+ class NfTsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ reindexNft({
6
+ chainId,
7
+ address,
8
+ tokenId
9
+ }) {
10
+ return this.httpRequest.request({
11
+ method: "POST",
12
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
13
+ path: {
14
+ "chainId": chainId,
15
+ "address": address,
16
+ "tokenId": tokenId
17
+ }
18
+ });
19
+ }
20
+ getTokenDetails({
21
+ chainId,
22
+ address,
23
+ tokenId
24
+ }) {
25
+ return this.httpRequest.request({
26
+ method: "GET",
27
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
28
+ path: {
29
+ "chainId": chainId,
30
+ "address": address,
31
+ "tokenId": tokenId
32
+ }
33
+ });
34
+ }
35
+ }
36
+
37
+ export { NfTsService };
@@ -1,4 +1,5 @@
1
- import { CreateTransactionExportRequest } from '../models/CreateTransactionExportRequest.js';
1
+ import { CreateEvmTransactionExportRequest } from '../models/CreateEvmTransactionExportRequest.js';
2
+ import { CreatePrimaryNetworkTransactionExportRequest } from '../models/CreatePrimaryNetworkTransactionExportRequest.js';
2
3
  import { OperationStatusResponse } from '../models/OperationStatusResponse.js';
3
4
  import { CancelablePromise } from '../core/CancelablePromise.js';
4
5
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
@@ -7,15 +8,19 @@ declare class OperationsService {
7
8
  readonly httpRequest: BaseHttpRequest;
8
9
  constructor(httpRequest: BaseHttpRequest);
9
10
  /**
11
+ * Create transaction export operation
10
12
  * Trigger a transaction export operation with given parameters.
13
+ *
14
+ * 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.
11
15
  * @returns OperationStatusResponse
12
16
  * @throws ApiError
13
17
  */
14
18
  postTransactionExportJob({ requestBody, }: {
15
- requestBody: CreateTransactionExportRequest;
19
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
16
20
  }): CancelablePromise<OperationStatusResponse>;
17
21
  /**
18
- * Retrieve operation result with given operation id
22
+ * Get operation
23
+ * Gets operation details for the given operation id.
19
24
  * @returns OperationStatusResponse
20
25
  * @throws ApiError
21
26
  */
@@ -0,0 +1,40 @@
1
+ import { BlockchainId } from '../models/BlockchainId.js';
2
+ import { ListCChainAtomicBalancesResponse } from '../models/ListCChainAtomicBalancesResponse.js';
3
+ import { ListPChainBalancesResponse } from '../models/ListPChainBalancesResponse.js';
4
+ import { ListXChainBalancesResponse } from '../models/ListXChainBalancesResponse.js';
5
+ import { Network } from '../models/Network.js';
6
+ import { CancelablePromise } from '../core/CancelablePromise.js';
7
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
+
9
+ declare class PrimaryNetworkBalancesService {
10
+ readonly httpRequest: BaseHttpRequest;
11
+ constructor(httpRequest: BaseHttpRequest);
12
+ /**
13
+ * Get balances
14
+ * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
15
+ *
16
+ * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
17
+ * @returns any
18
+ * @throws ApiError
19
+ */
20
+ getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
21
+ /**
22
+ * A primary network blockchain id or alias.
23
+ */
24
+ blockchainId: BlockchainId;
25
+ /**
26
+ * Either mainnet or a testnet.
27
+ */
28
+ network: Network;
29
+ /**
30
+ * An epoch timestamp in seconds. Balance will be calculated at this timestamp.
31
+ */
32
+ blockTimestamp?: number;
33
+ /**
34
+ * 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".
35
+ */
36
+ addresses?: string;
37
+ }): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
38
+ }
39
+
40
+ export { PrimaryNetworkBalancesService };
@@ -0,0 +1,26 @@
1
+ class PrimaryNetworkBalancesService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getBalancesByAddresses({
6
+ blockchainId,
7
+ network,
8
+ blockTimestamp,
9
+ addresses
10
+ }) {
11
+ return this.httpRequest.request({
12
+ method: "GET",
13
+ url: "/v1/networks/{network}/blockchains/{blockchainId}/balances",
14
+ path: {
15
+ "blockchainId": blockchainId,
16
+ "network": network
17
+ },
18
+ query: {
19
+ "blockTimestamp": blockTimestamp,
20
+ "addresses": addresses
21
+ }
22
+ });
23
+ }
24
+ }
25
+
26
+ export { PrimaryNetworkBalancesService };
@@ -0,0 +1,85 @@
1
+ import { BlockchainId } from '../models/BlockchainId.js';
2
+ import { GetPrimaryNetworkBlockResponse } from '../models/GetPrimaryNetworkBlockResponse.js';
3
+ import { ListPrimaryNetworkBlocksResponse } from '../models/ListPrimaryNetworkBlocksResponse.js';
4
+ import { Network } from '../models/Network.js';
5
+ import { CancelablePromise } from '../core/CancelablePromise.js';
6
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
+
8
+ declare class PrimaryNetworkBlocksService {
9
+ readonly httpRequest: BaseHttpRequest;
10
+ constructor(httpRequest: BaseHttpRequest);
11
+ /**
12
+ * Get block
13
+ * Gets a block by block height or block hash on one of the Primary Network chains.
14
+ * @returns GetPrimaryNetworkBlockResponse
15
+ * @throws ApiError
16
+ */
17
+ getBlockById({ blockchainId, network, blockId, }: {
18
+ /**
19
+ * A primary network blockchain id or alias.
20
+ */
21
+ blockchainId: BlockchainId;
22
+ /**
23
+ * Either mainnet or a testnet.
24
+ */
25
+ network: Network;
26
+ /**
27
+ * A block identifier which is either a block number or the block hash.
28
+ */
29
+ blockId: string;
30
+ }): CancelablePromise<GetPrimaryNetworkBlockResponse>;
31
+ /**
32
+ * List blocks proposed by node
33
+ * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
34
+ * @returns ListPrimaryNetworkBlocksResponse
35
+ * @throws ApiError
36
+ */
37
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
38
+ /**
39
+ * A primary network blockchain id or alias.
40
+ */
41
+ blockchainId: BlockchainId;
42
+ /**
43
+ * Either mainnet or a testnet.
44
+ */
45
+ network: Network;
46
+ /**
47
+ * A primary network (P or X chain) nodeId.
48
+ */
49
+ nodeId: string;
50
+ /**
51
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
52
+ */
53
+ pageSize?: number;
54
+ /**
55
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
56
+ */
57
+ pageToken?: string;
58
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
59
+ /**
60
+ * List latest blocks
61
+ * Lists latest blocks on one of the Primary Network chains.
62
+ * @returns ListPrimaryNetworkBlocksResponse
63
+ * @throws ApiError
64
+ */
65
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
66
+ /**
67
+ * A primary network blockchain id or alias.
68
+ */
69
+ blockchainId: BlockchainId;
70
+ /**
71
+ * Either mainnet or a testnet.
72
+ */
73
+ network: Network;
74
+ /**
75
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
76
+ */
77
+ pageSize?: number;
78
+ /**
79
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
80
+ */
81
+ pageToken?: string;
82
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
83
+ }
84
+
85
+ export { PrimaryNetworkBlocksService };
@@ -0,0 +1,62 @@
1
+ class PrimaryNetworkBlocksService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getBlockById({
6
+ blockchainId,
7
+ network,
8
+ blockId
9
+ }) {
10
+ return this.httpRequest.request({
11
+ method: "GET",
12
+ url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",
13
+ path: {
14
+ "blockchainId": blockchainId,
15
+ "network": network,
16
+ "blockId": blockId
17
+ }
18
+ });
19
+ }
20
+ listPrimaryNetworkBlocksByNodeId({
21
+ blockchainId,
22
+ network,
23
+ nodeId,
24
+ pageSize = 10,
25
+ pageToken
26
+ }) {
27
+ return this.httpRequest.request({
28
+ method: "GET",
29
+ url: "/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",
30
+ path: {
31
+ "blockchainId": blockchainId,
32
+ "network": network,
33
+ "nodeId": nodeId
34
+ },
35
+ query: {
36
+ "pageSize": pageSize,
37
+ "pageToken": pageToken
38
+ }
39
+ });
40
+ }
41
+ listLatestPrimaryNetworkBlocks({
42
+ blockchainId,
43
+ network,
44
+ pageSize = 10,
45
+ pageToken
46
+ }) {
47
+ return this.httpRequest.request({
48
+ method: "GET",
49
+ url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks",
50
+ path: {
51
+ "blockchainId": blockchainId,
52
+ "network": network
53
+ },
54
+ query: {
55
+ "pageSize": pageSize,
56
+ "pageToken": pageToken
57
+ }
58
+ });
59
+ }
60
+ }
61
+
62
+ export { PrimaryNetworkBlocksService };
@@ -0,0 +1,77 @@
1
+ import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
2
+ import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
3
+ import { Network } from '../models/Network.js';
4
+ import { SortOrder } from '../models/SortOrder.js';
5
+ import { CancelablePromise } from '../core/CancelablePromise.js';
6
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
+
8
+ declare class PrimaryNetworkRewardsService {
9
+ readonly httpRequest: BaseHttpRequest;
10
+ constructor(httpRequest: BaseHttpRequest);
11
+ /**
12
+ * List pending rewards
13
+ * Lists pending rewards on the Primary Network for the supplied addresses.
14
+ * @returns ListPendingRewardsResponse
15
+ * @throws ApiError
16
+ */
17
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
18
+ /**
19
+ * Either mainnet or a testnet.
20
+ */
21
+ network: Network;
22
+ /**
23
+ * 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".
24
+ */
25
+ addresses?: string;
26
+ /**
27
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
28
+ */
29
+ pageSize?: number;
30
+ /**
31
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
32
+ */
33
+ pageToken?: string;
34
+ /**
35
+ * A comma separated list of node ids to filter by.
36
+ */
37
+ nodeIds?: string;
38
+ /**
39
+ * 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.
40
+ */
41
+ sortOrder?: SortOrder;
42
+ }): CancelablePromise<ListPendingRewardsResponse>;
43
+ /**
44
+ * List historical rewards
45
+ * Lists historical rewards on the Primary Network for the supplied addresses.
46
+ * @returns ListHistoricalRewardsResponse
47
+ * @throws ApiError
48
+ */
49
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
50
+ /**
51
+ * Either mainnet or a testnet.
52
+ */
53
+ network: Network;
54
+ /**
55
+ * 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".
56
+ */
57
+ addresses?: string;
58
+ /**
59
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
60
+ */
61
+ pageSize?: number;
62
+ /**
63
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
64
+ */
65
+ pageToken?: string;
66
+ /**
67
+ * A comma separated list of node ids to filter by.
68
+ */
69
+ nodeIds?: string;
70
+ /**
71
+ * 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.
72
+ */
73
+ sortOrder?: SortOrder;
74
+ }): CancelablePromise<ListHistoricalRewardsResponse>;
75
+ }
76
+
77
+ export { PrimaryNetworkRewardsService };