@avalabs/glacier-sdk 2.8.0-alpha.14 → 2.8.0-alpha.140

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 (274) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3939 -3
  3. package/dist/index.js +1944 -155
  4. package/esm/generated/Glacier.d.ts +42 -0
  5. package/esm/generated/Glacier.js +68 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +18 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +91 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +227 -0
  18. package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
  19. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  20. package/esm/generated/models/ActiveValidatorDetails.d.ts +27 -0
  21. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  22. package/esm/generated/models/Asset.d.ts +28 -0
  23. package/esm/generated/models/Blockchain.d.ts +10 -0
  24. package/esm/generated/models/BlockchainId.d.ts +12 -0
  25. package/esm/generated/models/BlockchainId.js +13 -0
  26. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  27. package/esm/generated/models/BlockchainIds.js +10 -0
  28. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  29. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  30. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  31. package/esm/generated/models/CChainExportTransaction.js +8 -0
  32. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  33. package/esm/generated/models/CChainImportTransaction.js +8 -0
  34. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  35. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  36. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  37. package/esm/generated/models/ChainInfo.d.ts +28 -0
  38. package/esm/generated/models/ChainStatus.d.ts +6 -0
  39. package/esm/generated/models/ChainStatus.js +7 -0
  40. package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
  41. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  42. package/esm/generated/models/CompletedValidatorDetails.d.ts +20 -0
  43. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  44. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  45. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  46. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  47. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  48. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  49. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  50. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  51. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  52. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  53. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  54. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  55. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  56. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  57. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  58. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  59. package/esm/generated/models/CurrencyCode.js +19 -0
  60. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  61. package/esm/generated/models/DelegationStatusType.js +8 -0
  62. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  63. package/esm/generated/models/EVMInput.d.ts +19 -0
  64. package/esm/generated/models/EVMOutput.d.ts +14 -0
  65. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  66. package/esm/generated/models/Erc1155Contract.js +8 -0
  67. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  68. package/esm/generated/models/Erc1155Token.js +8 -0
  69. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  70. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  71. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  72. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  73. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  74. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  75. package/esm/generated/models/Erc20Contract.js +8 -0
  76. package/esm/generated/models/Erc20Token.d.ts +36 -0
  77. package/esm/generated/models/Erc20Token.js +8 -0
  78. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  79. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  80. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  81. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  82. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  83. package/esm/generated/models/Erc721Contract.js +8 -0
  84. package/esm/generated/models/Erc721Token.d.ts +31 -0
  85. package/esm/generated/models/Erc721Token.js +8 -0
  86. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  87. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  88. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  89. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  90. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  91. package/esm/generated/models/EvmBlock.d.ts +45 -0
  92. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  93. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  94. package/esm/generated/models/GetChainResponse.d.ts +28 -0
  95. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  96. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  97. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  98. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  99. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  100. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  101. package/esm/generated/models/ImageAsset.d.ts +9 -0
  102. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  103. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  104. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  105. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  106. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  107. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  108. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  109. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  110. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  111. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  112. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  113. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  114. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  115. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  116. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  117. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  118. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  119. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  120. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  121. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  122. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  123. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  124. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  125. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  126. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  127. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  128. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  129. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  130. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  131. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  132. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  133. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  134. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  135. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  136. package/esm/generated/models/Method.d.ts +18 -0
  137. package/esm/generated/models/Money.d.ts +14 -0
  138. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  139. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  140. package/esm/generated/models/Network.d.ts +6 -0
  141. package/esm/generated/models/Network.js +7 -0
  142. package/esm/generated/models/NetworkToken.d.ts +21 -0
  143. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  144. package/esm/generated/models/NetworkType.d.ts +6 -0
  145. package/esm/generated/models/NetworkType.js +7 -0
  146. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  147. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  148. package/esm/generated/models/OperationStatus.d.ts +8 -0
  149. package/esm/generated/models/OperationStatus.js +9 -0
  150. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  151. package/esm/generated/models/OperationStatusCode.js +8 -0
  152. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  153. package/esm/generated/models/OperationType.d.ts +6 -0
  154. package/esm/generated/models/OperationType.js +7 -0
  155. package/esm/generated/models/PChainAsset.d.ts +6 -0
  156. package/esm/generated/models/PChainBalance.d.ts +39 -0
  157. package/esm/generated/models/PChainId.d.ts +6 -0
  158. package/esm/generated/models/PChainId.js +7 -0
  159. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  160. package/esm/generated/models/PChainTransaction.d.ts +72 -0
  161. package/esm/generated/models/PChainTransactionType.d.ts +17 -0
  162. package/esm/generated/models/PChainTransactionType.js +18 -0
  163. package/esm/generated/models/PChainUtxo.d.ts +31 -0
  164. package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
  165. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  166. package/esm/generated/models/PendingReward.d.ts +22 -0
  167. package/esm/generated/models/PendingValidatorDetails.d.ts +16 -0
  168. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  169. package/esm/generated/models/PricingProviders.d.ts +5 -0
  170. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  171. package/esm/generated/models/PrimaryNetwork.js +7 -0
  172. package/esm/generated/models/PrimaryNetworkBlock.d.ts +15 -0
  173. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  174. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  175. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  176. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  177. package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
  178. package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
  179. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  180. package/esm/generated/models/ResourceLink.d.ts +8 -0
  181. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  182. package/esm/generated/models/ResourceLinkType.js +23 -0
  183. package/esm/generated/models/RewardType.d.ts +7 -0
  184. package/esm/generated/models/RewardType.js +8 -0
  185. package/esm/generated/models/Rewards.d.ts +8 -0
  186. package/esm/generated/models/RichAddress.d.ts +24 -0
  187. package/esm/generated/models/SortOrder.d.ts +6 -0
  188. package/esm/generated/models/SortOrder.js +7 -0
  189. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  190. package/esm/generated/models/Subnet.d.ts +13 -0
  191. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  192. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  193. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  194. package/esm/generated/models/TransactionMethodType.js +8 -0
  195. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  196. package/esm/generated/models/TransactionStatus.js +7 -0
  197. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  198. package/esm/generated/models/UnknownContract.d.ts +31 -0
  199. package/esm/generated/models/UnknownContract.js +8 -0
  200. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  201. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  202. package/esm/generated/models/Utxo.d.ts +68 -0
  203. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  204. package/esm/generated/models/UtxoType.d.ts +6 -0
  205. package/esm/generated/models/UtxoType.js +7 -0
  206. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  207. package/esm/generated/models/ValidationStatusType.js +8 -0
  208. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  209. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  210. package/esm/generated/models/VmName.d.ts +7 -0
  211. package/esm/generated/models/VmName.js +8 -0
  212. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  213. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  214. package/esm/generated/models/XChainBalances.d.ts +17 -0
  215. package/esm/generated/models/XChainId.d.ts +7 -0
  216. package/esm/generated/models/XChainId.js +8 -0
  217. package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
  218. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  219. package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
  220. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  221. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  222. package/esm/generated/models/XChainVertex.d.ts +12 -0
  223. package/esm/generated/services/DefaultService.d.ts +14 -0
  224. package/esm/generated/services/DefaultService.js +13 -0
  225. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  226. package/esm/generated/services/EvmBalancesService.js +116 -0
  227. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  228. package/esm/generated/services/EvmBlocksService.js +37 -0
  229. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  230. package/esm/generated/services/EvmChainsService.js +29 -0
  231. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  232. package/esm/generated/services/EvmContractsService.js +36 -0
  233. package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
  234. package/esm/generated/services/EvmTransactionsService.js +251 -0
  235. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  236. package/esm/generated/services/HealthCheckService.js +16 -0
  237. package/esm/generated/services/NfTsService.d.ts +51 -0
  238. package/esm/generated/services/NfTsService.js +37 -0
  239. package/esm/generated/services/OperationsService.d.ts +35 -0
  240. package/esm/generated/services/OperationsService.js +28 -0
  241. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  242. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  243. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  244. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  245. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
  246. package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
  247. package/esm/generated/services/PrimaryNetworkService.d.ts +245 -0
  248. package/esm/generated/services/PrimaryNetworkService.js +171 -0
  249. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  250. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  251. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  252. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  253. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  254. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  255. package/esm/index.d.ts +174 -0
  256. package/esm/index.js +73 -0
  257. package/package.json +11 -20
  258. package/CHANGELOG.md +0 -246
  259. package/__tests__/glacier-sdk.test.js +0 -7
  260. package/dist/index.d.ts.map +0 -1
  261. package/dist/index.js.map +0 -1
  262. package/dist/src/generated/models.d.ts +0 -385
  263. package/dist/src/generated/models.d.ts.map +0 -1
  264. package/dist/src/glacierClient.d.ts +0 -93
  265. package/dist/src/glacierClient.d.ts.map +0 -1
  266. package/dist/src/types.d.ts +0 -13
  267. package/dist/src/types.d.ts.map +0 -1
  268. package/index.ts +0 -2
  269. package/rollup.config.js +0 -33
  270. package/src/generated/models.ts +0 -460
  271. package/src/glacierClient.ts +0 -190
  272. package/src/types.ts +0 -6
  273. package/swagger/generateModels.js +0 -40
  274. package/tsconfig.json +0 -7
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3939 @@
1
- export * from './src/generated/models';
2
- export * from './src/glacierClient';
3
- //# sourceMappingURL=index.d.ts.map
1
+ type ApiRequestOptions = {
2
+ readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
+ readonly url: string;
4
+ readonly path?: Record<string, any>;
5
+ readonly cookies?: Record<string, any>;
6
+ readonly headers?: Record<string, any>;
7
+ readonly query?: Record<string, any>;
8
+ readonly formData?: Record<string, any>;
9
+ readonly body?: any;
10
+ readonly mediaType?: string;
11
+ readonly responseHeader?: string;
12
+ readonly errors?: Record<number, string>;
13
+ };
14
+
15
+ declare class CancelError extends Error {
16
+ constructor(message: string);
17
+ get isCancelled(): boolean;
18
+ }
19
+ interface OnCancel {
20
+ readonly isResolved: boolean;
21
+ readonly isRejected: boolean;
22
+ readonly isCancelled: boolean;
23
+ (cancelHandler: () => void): void;
24
+ }
25
+ declare class CancelablePromise<T> implements Promise<T> {
26
+ readonly [Symbol.toStringTag]: string;
27
+ private _isResolved;
28
+ private _isRejected;
29
+ private _isCancelled;
30
+ private readonly _cancelHandlers;
31
+ private readonly _promise;
32
+ private _resolve?;
33
+ private _reject?;
34
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
35
+ then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
+ catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
+ finally(onFinally?: (() => void) | null): Promise<T>;
38
+ cancel(): void;
39
+ get isCancelled(): boolean;
40
+ }
41
+
42
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
43
+ type Headers = Record<string, string>;
44
+ type OpenAPIConfig = {
45
+ BASE: string;
46
+ VERSION: string;
47
+ WITH_CREDENTIALS: boolean;
48
+ CREDENTIALS: 'include' | 'omit' | 'same-origin';
49
+ TOKEN?: string | Resolver<string>;
50
+ USERNAME?: string | Resolver<string>;
51
+ PASSWORD?: string | Resolver<string>;
52
+ HEADERS?: Headers | Resolver<Headers>;
53
+ ENCODE_PATH?: (path: string) => string;
54
+ };
55
+ declare const OpenAPI: OpenAPIConfig;
56
+
57
+ declare abstract class BaseHttpRequest {
58
+ readonly config: OpenAPIConfig;
59
+ constructor(config: OpenAPIConfig);
60
+ abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
+ }
62
+
63
+ declare class DefaultService {
64
+ readonly httpRequest: BaseHttpRequest;
65
+ constructor(httpRequest: BaseHttpRequest);
66
+ /**
67
+ * @returns any
68
+ * @throws ApiError
69
+ */
70
+ mediaControllerUploadImage(): CancelablePromise<any>;
71
+ }
72
+
73
+ declare enum CurrencyCode {
74
+ USD = "usd",
75
+ EUR = "eur",
76
+ AUD = "aud",
77
+ CAD = "cad",
78
+ CHF = "chf",
79
+ CLP = "clp",
80
+ CNY = "cny",
81
+ CZK = "czk",
82
+ DKK = "dkk",
83
+ GBP = "gbp",
84
+ HKD = "hkd",
85
+ HUF = "huf",
86
+ JPY = "jpy",
87
+ NZD = "nzd"
88
+ }
89
+
90
+ type Money = {
91
+ /**
92
+ * ISO 4217 currency code.
93
+ */
94
+ currencyCode: CurrencyCode;
95
+ /**
96
+ * Monetary value in base 10 decimals.
97
+ */
98
+ value: number;
99
+ };
100
+
101
+ type NativeTokenBalance = {
102
+ /**
103
+ * The contract name.
104
+ */
105
+ name: string;
106
+ /**
107
+ * The contract symbol.
108
+ */
109
+ symbol: string;
110
+ /**
111
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
112
+ */
113
+ decimals: number;
114
+ /**
115
+ * The logo uri for the address.
116
+ */
117
+ logoUri?: string;
118
+ /**
119
+ * The evm chain id.
120
+ */
121
+ chainId: string;
122
+ /**
123
+ * The token price, if available.
124
+ */
125
+ price?: Money;
126
+ /**
127
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
128
+ */
129
+ balance: string;
130
+ /**
131
+ * The monetary value of the balance, if a price is available for the token.
132
+ */
133
+ balanceValue?: Money;
134
+ };
135
+
136
+ type GetNativeBalanceResponse = {
137
+ /**
138
+ * The native token balance for the address.
139
+ */
140
+ nativeTokenBalance: NativeTokenBalance;
141
+ };
142
+
143
+ declare enum NftTokenMetadataStatus {
144
+ UNKNOWN = "UNKNOWN",
145
+ MISSING_TOKEN = "MISSING_TOKEN",
146
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
147
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
148
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
149
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
150
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
151
+ INVALID_METADATA = "INVALID_METADATA",
152
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
153
+ INDEXED = "INDEXED",
154
+ UNINDEXED = "UNINDEXED"
155
+ }
156
+
157
+ type Erc1155TokenMetadata = {
158
+ /**
159
+ * The metadata indexing status of the nft.
160
+ */
161
+ indexStatus: NftTokenMetadataStatus;
162
+ metadataLastUpdatedTimestamp?: number;
163
+ name?: string;
164
+ symbol?: string;
165
+ imageUri?: string;
166
+ description?: string;
167
+ animationUri?: string;
168
+ externalUrl?: string;
169
+ background?: string;
170
+ decimals?: number;
171
+ properties?: string;
172
+ };
173
+
174
+ type Erc1155TokenBalance = {
175
+ /**
176
+ * A wallet or contract address in mixed-case checksum encoding.
177
+ */
178
+ address: string;
179
+ ercType: Erc1155TokenBalance.ercType;
180
+ tokenId: string;
181
+ tokenUri: string;
182
+ metadata: Erc1155TokenMetadata;
183
+ /**
184
+ * The evm chain id.
185
+ */
186
+ chainId: string;
187
+ /**
188
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
189
+ */
190
+ balance: string;
191
+ };
192
+ declare namespace Erc1155TokenBalance {
193
+ enum ercType {
194
+ ERC_1155 = "ERC-1155"
195
+ }
196
+ }
197
+
198
+ type Erc721TokenMetadata = {
199
+ /**
200
+ * The metadata indexing status of the nft.
201
+ */
202
+ indexStatus: NftTokenMetadataStatus;
203
+ metadataLastUpdatedTimestamp?: number;
204
+ name?: string;
205
+ symbol?: string;
206
+ imageUri?: string;
207
+ description?: string;
208
+ animationUri?: string;
209
+ externalUrl?: string;
210
+ background?: string;
211
+ attributes?: string;
212
+ };
213
+
214
+ type Erc721TokenBalance = {
215
+ /**
216
+ * A wallet or contract address in mixed-case checksum encoding.
217
+ */
218
+ address: string;
219
+ /**
220
+ * The contract name.
221
+ */
222
+ name: string;
223
+ /**
224
+ * The contract symbol.
225
+ */
226
+ symbol: string;
227
+ ercType: Erc721TokenBalance.ercType;
228
+ tokenId: string;
229
+ tokenUri: string;
230
+ metadata: Erc721TokenMetadata;
231
+ /**
232
+ * A wallet or contract address in mixed-case checksum encoding.
233
+ */
234
+ ownerAddress?: string;
235
+ /**
236
+ * The evm chain id.
237
+ */
238
+ chainId: string;
239
+ };
240
+ declare namespace Erc721TokenBalance {
241
+ enum ercType {
242
+ ERC_721 = "ERC-721"
243
+ }
244
+ }
245
+
246
+ type ListCollectibleBalancesResponse = {
247
+ /**
248
+ * 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.
249
+ */
250
+ nextPageToken?: string;
251
+ /**
252
+ * The list of ERC-721 and ERC-1155 token balances for the address.
253
+ */
254
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
255
+ };
256
+
257
+ type ListErc1155BalancesResponse = {
258
+ /**
259
+ * 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.
260
+ */
261
+ nextPageToken?: string;
262
+ /**
263
+ * The list of ERC-1155 token balances for the address.
264
+ */
265
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
266
+ };
267
+
268
+ type Erc20TokenBalance = {
269
+ /**
270
+ * A wallet or contract address in mixed-case checksum encoding.
271
+ */
272
+ address: string;
273
+ /**
274
+ * The contract name.
275
+ */
276
+ name: string;
277
+ /**
278
+ * The contract symbol.
279
+ */
280
+ symbol: string;
281
+ /**
282
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
283
+ */
284
+ decimals: number;
285
+ /**
286
+ * The logo uri for the address.
287
+ */
288
+ logoUri?: string;
289
+ ercType: Erc20TokenBalance.ercType;
290
+ /**
291
+ * The token price, if available.
292
+ */
293
+ price?: Money;
294
+ /**
295
+ * The evm chain id.
296
+ */
297
+ chainId: string;
298
+ /**
299
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
300
+ */
301
+ balance: string;
302
+ /**
303
+ * The monetary value of the balance, if a price is available for the token.
304
+ */
305
+ balanceValue?: Money;
306
+ };
307
+ declare namespace Erc20TokenBalance {
308
+ enum ercType {
309
+ ERC_20 = "ERC-20"
310
+ }
311
+ }
312
+
313
+ type ListErc20BalancesResponse = {
314
+ /**
315
+ * 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.
316
+ */
317
+ nextPageToken?: string;
318
+ /**
319
+ * The list of ERC-20 token balances for the address.
320
+ */
321
+ erc20TokenBalances: Array<Erc20TokenBalance>;
322
+ };
323
+
324
+ type ListErc721BalancesResponse = {
325
+ /**
326
+ * 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.
327
+ */
328
+ nextPageToken?: string;
329
+ /**
330
+ * The list of ERC-721 token balances for the address.
331
+ */
332
+ erc721TokenBalances: Array<Erc721TokenBalance>;
333
+ };
334
+
335
+ declare class EvmBalancesService {
336
+ readonly httpRequest: BaseHttpRequest;
337
+ constructor(httpRequest: BaseHttpRequest);
338
+ /**
339
+ * Get native token balance
340
+ * Gets native token balance of a wallet address.
341
+ *
342
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
343
+ * @returns GetNativeBalanceResponse
344
+ * @throws ApiError
345
+ */
346
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
347
+ /**
348
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
349
+ */
350
+ chainId: string;
351
+ /**
352
+ * A wallet address.
353
+ */
354
+ address: string;
355
+ /**
356
+ * The block number, if not defined the block number will be the latest block.
357
+ */
358
+ blockNumber?: string;
359
+ /**
360
+ * The currency that return values should use. Defaults to USD.
361
+ */
362
+ currency?: CurrencyCode;
363
+ }): CancelablePromise<GetNativeBalanceResponse>;
364
+ /**
365
+ * List ERC-20 balances
366
+ * Lists ERC-20 token balances of a wallet address.
367
+ *
368
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
369
+ *
370
+ * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
371
+ * @returns ListErc20BalancesResponse
372
+ * @throws ApiError
373
+ */
374
+ listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
375
+ /**
376
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
377
+ */
378
+ chainId: string;
379
+ /**
380
+ * A wallet address.
381
+ */
382
+ address: string;
383
+ /**
384
+ * The block number, if not defined the block number will be the latest block.
385
+ */
386
+ blockNumber?: string;
387
+ /**
388
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
389
+ */
390
+ pageSize?: number;
391
+ /**
392
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
393
+ */
394
+ pageToken?: string;
395
+ /**
396
+ * A comma separated list of contract addresses to filter by.
397
+ */
398
+ contractAddresses?: string;
399
+ /**
400
+ * The currency that return values should use. Defaults to USD.
401
+ */
402
+ currency?: CurrencyCode;
403
+ }): CancelablePromise<ListErc20BalancesResponse>;
404
+ /**
405
+ * List ERC-721 balances
406
+ * Lists ERC-721 token balances of a wallet address.
407
+ *
408
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
409
+ * @returns ListErc721BalancesResponse
410
+ * @throws ApiError
411
+ */
412
+ listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
413
+ /**
414
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
415
+ */
416
+ chainId: string;
417
+ /**
418
+ * A wallet address.
419
+ */
420
+ address: string;
421
+ /**
422
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
423
+ */
424
+ pageSize?: number;
425
+ /**
426
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
427
+ */
428
+ pageToken?: string;
429
+ /**
430
+ * A contract addresses to filter by.
431
+ */
432
+ contractAddress?: string;
433
+ }): CancelablePromise<ListErc721BalancesResponse>;
434
+ /**
435
+ * List ERC-1155 balances
436
+ * Lists ERC-1155 token balances of a wallet address.
437
+ *
438
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
439
+ *
440
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
441
+ * @returns ListErc1155BalancesResponse
442
+ * @throws ApiError
443
+ */
444
+ listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
445
+ /**
446
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
447
+ */
448
+ chainId: string;
449
+ /**
450
+ * A wallet address.
451
+ */
452
+ address: string;
453
+ /**
454
+ * The block number, if not defined the block number will be the latest block.
455
+ */
456
+ blockNumber?: string;
457
+ /**
458
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
459
+ */
460
+ pageSize?: number;
461
+ /**
462
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
463
+ */
464
+ pageToken?: string;
465
+ /**
466
+ * A contract addresses to filter by.
467
+ */
468
+ contractAddress?: string;
469
+ }): CancelablePromise<ListErc1155BalancesResponse>;
470
+ /**
471
+ * List collectible (ERC-721/ERC-1155) balances
472
+ * Lists ERC-721 and ERC-1155 token balances of a wallet address.
473
+ *
474
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
475
+ * @returns ListCollectibleBalancesResponse
476
+ * @throws ApiError
477
+ */
478
+ listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
479
+ /**
480
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
481
+ */
482
+ chainId: string;
483
+ /**
484
+ * A wallet address.
485
+ */
486
+ address: string;
487
+ /**
488
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
489
+ */
490
+ pageSize?: number;
491
+ /**
492
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
493
+ */
494
+ pageToken?: string;
495
+ /**
496
+ * A contract addresses to filter by.
497
+ */
498
+ contractAddress?: string;
499
+ }): CancelablePromise<ListCollectibleBalancesResponse>;
500
+ }
501
+
502
+ type GetEvmBlockResponse = {
503
+ /**
504
+ * The block number on the chain.
505
+ */
506
+ blockNumber: string;
507
+ /**
508
+ * The block finality timestamp.
509
+ */
510
+ blockTimestamp: number;
511
+ /**
512
+ * The block hash identifier.
513
+ */
514
+ blockHash: string;
515
+ /**
516
+ * The number of evm transactions in the block.
517
+ */
518
+ txCount: number;
519
+ /**
520
+ * The base gas fee for a transaction to be included in the block.
521
+ */
522
+ baseFee: string;
523
+ /**
524
+ * The gas used for transactions in the block.
525
+ */
526
+ gasUsed: string;
527
+ /**
528
+ * The total gas limit set for transactions in the block.
529
+ */
530
+ gasLimit: string;
531
+ gasCost: string;
532
+ /**
533
+ * The hash of the parent block.
534
+ */
535
+ parentHash: string;
536
+ /**
537
+ * The amount of fees spent/burned for transactions in the block.
538
+ */
539
+ feesSpent: string;
540
+ /**
541
+ * The cumulative number of transactions for the chain including this block.
542
+ */
543
+ cumulativeTransactions: string;
544
+ };
545
+
546
+ type EvmBlock = {
547
+ /**
548
+ * The block number on the chain.
549
+ */
550
+ blockNumber: string;
551
+ /**
552
+ * The block finality timestamp.
553
+ */
554
+ blockTimestamp: number;
555
+ /**
556
+ * The block hash identifier.
557
+ */
558
+ blockHash: string;
559
+ /**
560
+ * The number of evm transactions in the block.
561
+ */
562
+ txCount: number;
563
+ /**
564
+ * The base gas fee for a transaction to be included in the block.
565
+ */
566
+ baseFee: string;
567
+ /**
568
+ * The gas used for transactions in the block.
569
+ */
570
+ gasUsed: string;
571
+ /**
572
+ * The total gas limit set for transactions in the block.
573
+ */
574
+ gasLimit: string;
575
+ gasCost: string;
576
+ /**
577
+ * The hash of the parent block.
578
+ */
579
+ parentHash: string;
580
+ /**
581
+ * The amount of fees spent/burned for transactions in the block.
582
+ */
583
+ feesSpent: string;
584
+ /**
585
+ * The cumulative number of transactions for the chain including this block.
586
+ */
587
+ cumulativeTransactions: string;
588
+ };
589
+
590
+ type ListEvmBlocksResponse = {
591
+ /**
592
+ * 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.
593
+ */
594
+ nextPageToken?: string;
595
+ blocks: Array<EvmBlock>;
596
+ };
597
+
598
+ declare class EvmBlocksService {
599
+ readonly httpRequest: BaseHttpRequest;
600
+ constructor(httpRequest: BaseHttpRequest);
601
+ /**
602
+ * List latest blocks
603
+ * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
604
+ * @returns ListEvmBlocksResponse
605
+ * @throws ApiError
606
+ */
607
+ getLatestBlocks({ chainId, pageSize, pageToken, }: {
608
+ /**
609
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
610
+ */
611
+ chainId: string;
612
+ /**
613
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
614
+ */
615
+ pageSize?: number;
616
+ /**
617
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
618
+ */
619
+ pageToken?: string;
620
+ }): CancelablePromise<ListEvmBlocksResponse>;
621
+ /**
622
+ * Get block
623
+ * Gets the details of an individual block on the EVM-compatible chain.
624
+ * @returns GetEvmBlockResponse
625
+ * @throws ApiError
626
+ */
627
+ getBlock({ chainId, blockId, }: {
628
+ /**
629
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
630
+ */
631
+ chainId: string;
632
+ /**
633
+ * A block identifier which is either a block number or the block hash.
634
+ */
635
+ blockId: string;
636
+ }): CancelablePromise<GetEvmBlockResponse>;
637
+ }
638
+
639
+ declare enum ChainStatus {
640
+ OK = "OK",
641
+ UNAVAILABLE = "UNAVAILABLE"
642
+ }
643
+
644
+ type NetworkToken = {
645
+ /**
646
+ * The contract name.
647
+ */
648
+ name: string;
649
+ /**
650
+ * The contract symbol.
651
+ */
652
+ symbol: string;
653
+ /**
654
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
655
+ */
656
+ decimals: number;
657
+ /**
658
+ * The logo uri for the address.
659
+ */
660
+ logoUri?: string;
661
+ description?: string;
662
+ };
663
+
664
+ type UtilityAddresses = {
665
+ multicall?: string;
666
+ };
667
+
668
+ declare enum VmName {
669
+ EVM = "EVM",
670
+ BITCOIN = "BITCOIN",
671
+ ETHEREUM = "ETHEREUM"
672
+ }
673
+
674
+ type GetChainResponse = {
675
+ chainId: string;
676
+ /**
677
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
678
+ */
679
+ status: ChainStatus;
680
+ chainName: string;
681
+ description: string;
682
+ platformChainId?: string;
683
+ subnetId?: string;
684
+ vmId?: string;
685
+ vmName: VmName;
686
+ explorerUrl?: string;
687
+ rpcUrl: string;
688
+ wsUrl?: string;
689
+ isTestnet: boolean;
690
+ utilityAddresses?: UtilityAddresses;
691
+ networkToken: NetworkToken;
692
+ chainLogoUri?: string;
693
+ private?: boolean;
694
+ };
695
+
696
+ type ChainInfo = {
697
+ chainId: string;
698
+ /**
699
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
700
+ */
701
+ status: ChainStatus;
702
+ chainName: string;
703
+ description: string;
704
+ platformChainId?: string;
705
+ subnetId?: string;
706
+ vmId?: string;
707
+ vmName: VmName;
708
+ explorerUrl?: string;
709
+ rpcUrl: string;
710
+ wsUrl?: string;
711
+ isTestnet: boolean;
712
+ utilityAddresses?: UtilityAddresses;
713
+ networkToken: NetworkToken;
714
+ chainLogoUri?: string;
715
+ private?: boolean;
716
+ };
717
+
718
+ type ListChainsResponse = {
719
+ chains: Array<ChainInfo>;
720
+ };
721
+
722
+ declare enum NetworkType {
723
+ MAINNET = "mainnet",
724
+ TESTNET = "testnet"
725
+ }
726
+
727
+ declare class EvmChainsService {
728
+ readonly httpRequest: BaseHttpRequest;
729
+ constructor(httpRequest: BaseHttpRequest);
730
+ /**
731
+ * List chains
732
+ * Lists the supported EVM-compatible chains. Filterable by network.
733
+ * @returns ListChainsResponse
734
+ * @throws ApiError
735
+ */
736
+ supportedChains({ network, }: {
737
+ /**
738
+ * mainnet or testnet.
739
+ */
740
+ network?: NetworkType;
741
+ }): CancelablePromise<ListChainsResponse>;
742
+ /**
743
+ * Get chain information
744
+ * Gets chain information for the EVM-compatible chain if supported by the api.
745
+ * @returns GetChainResponse
746
+ * @throws ApiError
747
+ */
748
+ getChainInfo({ chainId, }: {
749
+ /**
750
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
751
+ */
752
+ chainId: string;
753
+ }): CancelablePromise<GetChainResponse>;
754
+ }
755
+
756
+ type ImageAsset = {
757
+ assetId?: string;
758
+ /**
759
+ * OUTPUT ONLY
760
+ */
761
+ imageUri?: string;
762
+ };
763
+
764
+ type PricingProviders = {
765
+ coingeckoCoinId?: string;
766
+ };
767
+
768
+ declare enum ResourceLinkType {
769
+ BLOG = "Blog",
770
+ COIN_GECKO = "CoinGecko",
771
+ COIN_MARKET_CAP = "CoinMarketCap",
772
+ DISCORD = "Discord",
773
+ DOCUMENTATION = "Documentation",
774
+ FACEBOOK = "Facebook",
775
+ GITHUB = "Github",
776
+ INSTAGRAM = "Instagram",
777
+ LINKED_IN = "LinkedIn",
778
+ MEDIUM = "Medium",
779
+ REDDIT = "Reddit",
780
+ SUPPORT = "Support",
781
+ TELEGRAM = "Telegram",
782
+ TIK_TOK = "TikTok",
783
+ TWITTER = "Twitter",
784
+ WEBSITE = "Website",
785
+ WHITEPAPER = "Whitepaper",
786
+ YOUTUBE = "Youtube"
787
+ }
788
+
789
+ type ResourceLink = {
790
+ type: ResourceLinkType;
791
+ url: string;
792
+ };
793
+
794
+ type ContractSubmissionErc1155 = {
795
+ description?: string;
796
+ officialSite?: string;
797
+ email?: string;
798
+ logoAsset?: ImageAsset;
799
+ bannerAsset?: ImageAsset;
800
+ color?: string;
801
+ resourceLinks?: Array<ResourceLink>;
802
+ tags?: Array<string>;
803
+ /**
804
+ * The contract name.
805
+ */
806
+ name: string;
807
+ ercType: ContractSubmissionErc1155.ercType;
808
+ /**
809
+ * The contract symbol.
810
+ */
811
+ symbol: string;
812
+ pricingProviders?: PricingProviders;
813
+ };
814
+ declare namespace ContractSubmissionErc1155 {
815
+ enum ercType {
816
+ ERC_1155 = "ERC-1155"
817
+ }
818
+ }
819
+
820
+ type ContractSubmissionErc20 = {
821
+ description?: string;
822
+ officialSite?: string;
823
+ email?: string;
824
+ logoAsset?: ImageAsset;
825
+ bannerAsset?: ImageAsset;
826
+ color?: string;
827
+ resourceLinks?: Array<ResourceLink>;
828
+ tags?: Array<string>;
829
+ /**
830
+ * The contract name.
831
+ */
832
+ name: string;
833
+ ercType: ContractSubmissionErc20.ercType;
834
+ /**
835
+ * The contract symbol.
836
+ */
837
+ symbol: string;
838
+ pricingProviders?: PricingProviders;
839
+ };
840
+ declare namespace ContractSubmissionErc20 {
841
+ enum ercType {
842
+ ERC_20 = "ERC-20"
843
+ }
844
+ }
845
+
846
+ type ContractSubmissionErc721 = {
847
+ description?: string;
848
+ officialSite?: string;
849
+ email?: string;
850
+ logoAsset?: ImageAsset;
851
+ bannerAsset?: ImageAsset;
852
+ color?: string;
853
+ resourceLinks?: Array<ResourceLink>;
854
+ tags?: Array<string>;
855
+ /**
856
+ * The contract name.
857
+ */
858
+ name: string;
859
+ ercType: ContractSubmissionErc721.ercType;
860
+ /**
861
+ * The contract symbol.
862
+ */
863
+ symbol: string;
864
+ };
865
+ declare namespace ContractSubmissionErc721 {
866
+ enum ercType {
867
+ ERC_721 = "ERC-721"
868
+ }
869
+ }
870
+
871
+ type ContractSubmissionUnknown = {
872
+ description?: string;
873
+ officialSite?: string;
874
+ email?: string;
875
+ logoAsset?: ImageAsset;
876
+ bannerAsset?: ImageAsset;
877
+ color?: string;
878
+ resourceLinks?: Array<ResourceLink>;
879
+ tags?: Array<string>;
880
+ /**
881
+ * The contract name.
882
+ */
883
+ name: string;
884
+ ercType: ContractSubmissionUnknown.ercType;
885
+ };
886
+ declare namespace ContractSubmissionUnknown {
887
+ enum ercType {
888
+ UNKNOWN = "UNKNOWN"
889
+ }
890
+ }
891
+
892
+ type ContractSubmissionBody = {
893
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
894
+ };
895
+
896
+ type ContractDeploymentDetails = {
897
+ txHash: string;
898
+ /**
899
+ * The address that initiated the transaction which deployed this contract.
900
+ */
901
+ deployerAddress: string;
902
+ /**
903
+ * 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.
904
+ */
905
+ deployerContractAddress?: string;
906
+ };
907
+
908
+ type Erc1155Contract = {
909
+ /**
910
+ * The contract name.
911
+ */
912
+ name?: string;
913
+ description?: string;
914
+ officialSite?: string;
915
+ email?: string;
916
+ logoAsset?: ImageAsset;
917
+ bannerAsset?: ImageAsset;
918
+ color?: string;
919
+ resourceLinks?: Array<ResourceLink>;
920
+ tags?: Array<string>;
921
+ /**
922
+ * A wallet or contract address in mixed-case checksum encoding.
923
+ */
924
+ address: string;
925
+ deploymentDetails: ContractDeploymentDetails;
926
+ ercType: Erc1155Contract.ercType;
927
+ /**
928
+ * The contract symbol.
929
+ */
930
+ symbol?: string;
931
+ pricingProviders?: PricingProviders;
932
+ };
933
+ declare namespace Erc1155Contract {
934
+ enum ercType {
935
+ ERC_1155 = "ERC-1155"
936
+ }
937
+ }
938
+
939
+ type Erc20Contract = {
940
+ /**
941
+ * The contract name.
942
+ */
943
+ name?: string;
944
+ description?: string;
945
+ officialSite?: string;
946
+ email?: string;
947
+ logoAsset?: ImageAsset;
948
+ bannerAsset?: ImageAsset;
949
+ color?: string;
950
+ resourceLinks?: Array<ResourceLink>;
951
+ tags?: Array<string>;
952
+ /**
953
+ * A wallet or contract address in mixed-case checksum encoding.
954
+ */
955
+ address: string;
956
+ deploymentDetails: ContractDeploymentDetails;
957
+ ercType: Erc20Contract.ercType;
958
+ /**
959
+ * The contract symbol.
960
+ */
961
+ symbol?: string;
962
+ /**
963
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
964
+ */
965
+ decimals: number;
966
+ pricingProviders?: PricingProviders;
967
+ };
968
+ declare namespace Erc20Contract {
969
+ enum ercType {
970
+ ERC_20 = "ERC-20"
971
+ }
972
+ }
973
+
974
+ type Erc721Contract = {
975
+ /**
976
+ * The contract name.
977
+ */
978
+ name?: string;
979
+ description?: string;
980
+ officialSite?: string;
981
+ email?: string;
982
+ logoAsset?: ImageAsset;
983
+ bannerAsset?: ImageAsset;
984
+ color?: string;
985
+ resourceLinks?: Array<ResourceLink>;
986
+ tags?: Array<string>;
987
+ /**
988
+ * A wallet or contract address in mixed-case checksum encoding.
989
+ */
990
+ address: string;
991
+ deploymentDetails: ContractDeploymentDetails;
992
+ ercType: Erc721Contract.ercType;
993
+ /**
994
+ * The contract symbol.
995
+ */
996
+ symbol?: string;
997
+ };
998
+ declare namespace Erc721Contract {
999
+ enum ercType {
1000
+ ERC_721 = "ERC-721"
1001
+ }
1002
+ }
1003
+
1004
+ type UnknownContract = {
1005
+ /**
1006
+ * The contract name.
1007
+ */
1008
+ name?: string;
1009
+ description?: string;
1010
+ officialSite?: string;
1011
+ email?: string;
1012
+ logoAsset?: ImageAsset;
1013
+ bannerAsset?: ImageAsset;
1014
+ color?: string;
1015
+ resourceLinks?: Array<ResourceLink>;
1016
+ tags?: Array<string>;
1017
+ /**
1018
+ * A wallet or contract address in mixed-case checksum encoding.
1019
+ */
1020
+ address: string;
1021
+ deploymentDetails: ContractDeploymentDetails;
1022
+ ercType: UnknownContract.ercType;
1023
+ };
1024
+ declare namespace UnknownContract {
1025
+ enum ercType {
1026
+ UNKNOWN = "UNKNOWN"
1027
+ }
1028
+ }
1029
+
1030
+ type UpdateContractResponse = {
1031
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1032
+ };
1033
+
1034
+ declare class EvmContractsService {
1035
+ readonly httpRequest: BaseHttpRequest;
1036
+ constructor(httpRequest: BaseHttpRequest);
1037
+ /**
1038
+ * Get contract metadata
1039
+ * Gets metadata about the contract at the given address.
1040
+ * @returns any
1041
+ * @throws ApiError
1042
+ */
1043
+ getContractMetadata({ chainId, address, }: {
1044
+ /**
1045
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1046
+ */
1047
+ chainId: string;
1048
+ /**
1049
+ * Contract address on the relevant chain.
1050
+ */
1051
+ address: string;
1052
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1053
+ /**
1054
+ * Update contract information
1055
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1056
+ * @returns UpdateContractResponse
1057
+ * @throws ApiError
1058
+ */
1059
+ updateContractInfo({ chainId, address, requestBody, }: {
1060
+ /**
1061
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1062
+ */
1063
+ chainId: string;
1064
+ /**
1065
+ * Contract address on the relevant chain.
1066
+ */
1067
+ address: string;
1068
+ requestBody: ContractSubmissionBody;
1069
+ }): CancelablePromise<UpdateContractResponse>;
1070
+ }
1071
+
1072
+ type Erc1155Token = {
1073
+ /**
1074
+ * A wallet or contract address in mixed-case checksum encoding.
1075
+ */
1076
+ address: string;
1077
+ ercType: Erc1155Token.ercType;
1078
+ tokenId: string;
1079
+ tokenUri: string;
1080
+ metadata: Erc1155TokenMetadata;
1081
+ };
1082
+ declare namespace Erc1155Token {
1083
+ enum ercType {
1084
+ ERC_1155 = "ERC-1155"
1085
+ }
1086
+ }
1087
+
1088
+ type RichAddress = {
1089
+ /**
1090
+ * The contract name.
1091
+ */
1092
+ name?: string;
1093
+ /**
1094
+ * The contract symbol.
1095
+ */
1096
+ symbol?: string;
1097
+ /**
1098
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1099
+ */
1100
+ decimals?: number;
1101
+ /**
1102
+ * The logo uri for the address.
1103
+ */
1104
+ logoUri?: string;
1105
+ /**
1106
+ * A wallet or contract address in mixed-case checksum encoding.
1107
+ */
1108
+ address: string;
1109
+ };
1110
+
1111
+ type Erc1155TransferDetails = {
1112
+ from: RichAddress;
1113
+ to: RichAddress;
1114
+ logIndex: number;
1115
+ value: string;
1116
+ erc1155Token: Erc1155Token;
1117
+ };
1118
+
1119
+ type Erc20Token = {
1120
+ /**
1121
+ * A wallet or contract address in mixed-case checksum encoding.
1122
+ */
1123
+ address: string;
1124
+ /**
1125
+ * The contract name.
1126
+ */
1127
+ name: string;
1128
+ /**
1129
+ * The contract symbol.
1130
+ */
1131
+ symbol: string;
1132
+ /**
1133
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1134
+ */
1135
+ decimals: number;
1136
+ /**
1137
+ * The logo uri for the address.
1138
+ */
1139
+ logoUri?: string;
1140
+ ercType: Erc20Token.ercType;
1141
+ /**
1142
+ * The token price, if available.
1143
+ */
1144
+ price?: Money;
1145
+ };
1146
+ declare namespace Erc20Token {
1147
+ enum ercType {
1148
+ ERC_20 = "ERC-20"
1149
+ }
1150
+ }
1151
+
1152
+ type Erc20TransferDetails = {
1153
+ from: RichAddress;
1154
+ to: RichAddress;
1155
+ logIndex: number;
1156
+ value: string;
1157
+ erc20Token: Erc20Token;
1158
+ };
1159
+
1160
+ type Erc721Token = {
1161
+ /**
1162
+ * A wallet or contract address in mixed-case checksum encoding.
1163
+ */
1164
+ address: string;
1165
+ /**
1166
+ * The contract name.
1167
+ */
1168
+ name: string;
1169
+ /**
1170
+ * The contract symbol.
1171
+ */
1172
+ symbol: string;
1173
+ ercType: Erc721Token.ercType;
1174
+ tokenId: string;
1175
+ tokenUri: string;
1176
+ metadata: Erc721TokenMetadata;
1177
+ /**
1178
+ * A wallet or contract address in mixed-case checksum encoding.
1179
+ */
1180
+ ownerAddress?: string;
1181
+ };
1182
+ declare namespace Erc721Token {
1183
+ enum ercType {
1184
+ ERC_721 = "ERC-721"
1185
+ }
1186
+ }
1187
+
1188
+ type Erc721TransferDetails = {
1189
+ from: RichAddress;
1190
+ to: RichAddress;
1191
+ logIndex: number;
1192
+ erc721Token: Erc721Token;
1193
+ };
1194
+
1195
+ declare enum TransactionMethodType {
1196
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1197
+ CONTRACT_CALL = "CONTRACT_CALL",
1198
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1199
+ }
1200
+
1201
+ type Method = {
1202
+ /**
1203
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1204
+ */
1205
+ callType: TransactionMethodType;
1206
+ /**
1207
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1208
+ */
1209
+ methodHash: string;
1210
+ /**
1211
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1212
+ */
1213
+ methodName?: string;
1214
+ };
1215
+
1216
+ type FullNativeTransactionDetails = {
1217
+ /**
1218
+ * The block number on the chain.
1219
+ */
1220
+ blockNumber: string;
1221
+ /**
1222
+ * The block finality timestamp.
1223
+ */
1224
+ blockTimestamp: number;
1225
+ /**
1226
+ * The block hash identifier.
1227
+ */
1228
+ blockHash: string;
1229
+ /**
1230
+ * The index at which the transaction occured in the block (0-indexed).
1231
+ */
1232
+ blockIndex: number;
1233
+ /**
1234
+ * The transaction hash identifier.
1235
+ */
1236
+ txHash: string;
1237
+ /**
1238
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1239
+ */
1240
+ txStatus: string;
1241
+ /**
1242
+ * The transaction type.
1243
+ */
1244
+ txType: number;
1245
+ /**
1246
+ * The gas limit set for the transaction.
1247
+ */
1248
+ gasLimit: string;
1249
+ /**
1250
+ * The amount of gas used.
1251
+ */
1252
+ gasUsed: string;
1253
+ /**
1254
+ * The gas price denominated by the number of decimals of the native token.
1255
+ */
1256
+ gasPrice: string;
1257
+ /**
1258
+ * The nonce used by the sender of the transaction.
1259
+ */
1260
+ nonce: string;
1261
+ from: RichAddress;
1262
+ to: RichAddress;
1263
+ method?: Method;
1264
+ value: string;
1265
+ /**
1266
+ * The data sent for the transaction.
1267
+ */
1268
+ input: string;
1269
+ baseFeePerGas: string;
1270
+ maxFeePerGas?: string;
1271
+ maxPriorityFeePerGas?: string;
1272
+ };
1273
+
1274
+ declare enum InternalTransactionOpCall {
1275
+ UNKNOWN = "UNKNOWN",
1276
+ CALL = "CALL",
1277
+ CREATE = "CREATE",
1278
+ CREATE2 = "CREATE2",
1279
+ CALLCODE = "CALLCODE",
1280
+ DELEGATECALL = "DELEGATECALL",
1281
+ STATICCALL = "STATICCALL"
1282
+ }
1283
+
1284
+ type InternalTransactionDetails = {
1285
+ from: RichAddress;
1286
+ to: RichAddress;
1287
+ internalTxType: InternalTransactionOpCall;
1288
+ value: string;
1289
+ /**
1290
+ * True if the internal transaction was reverted.
1291
+ */
1292
+ isReverted: boolean;
1293
+ gasUsed: string;
1294
+ gasLimit: string;
1295
+ };
1296
+
1297
+ type NetworkTokenDetails = {
1298
+ networkToken: NetworkToken;
1299
+ /**
1300
+ * The current token price, if available.
1301
+ */
1302
+ currentPrice?: Money;
1303
+ /**
1304
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1305
+ */
1306
+ historicalPrice?: Money;
1307
+ };
1308
+
1309
+ type GetTransactionResponse = {
1310
+ /**
1311
+ * The list of ERC-20 transfers.
1312
+ */
1313
+ erc20Transfers?: Array<Erc20TransferDetails>;
1314
+ /**
1315
+ * The list of ERC-721 transfers.
1316
+ */
1317
+ erc721Transfers?: Array<Erc721TransferDetails>;
1318
+ /**
1319
+ * The list of ERC-1155 transfers.
1320
+ */
1321
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1322
+ /**
1323
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1324
+ */
1325
+ internalTransactions?: Array<InternalTransactionDetails>;
1326
+ networkTokenDetails: NetworkTokenDetails;
1327
+ nativeTransaction: FullNativeTransactionDetails;
1328
+ };
1329
+
1330
+ type ListContractsResponse = {
1331
+ /**
1332
+ * 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.
1333
+ */
1334
+ nextPageToken?: string;
1335
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1336
+ };
1337
+
1338
+ type Erc1155Transfer = {
1339
+ /**
1340
+ * The block number on the chain.
1341
+ */
1342
+ blockNumber: string;
1343
+ /**
1344
+ * The block finality timestamp.
1345
+ */
1346
+ blockTimestamp: number;
1347
+ /**
1348
+ * The block hash identifier.
1349
+ */
1350
+ blockHash: string;
1351
+ /**
1352
+ * The transaction hash identifier.
1353
+ */
1354
+ txHash: string;
1355
+ from: RichAddress;
1356
+ to: RichAddress;
1357
+ logIndex: number;
1358
+ value: string;
1359
+ erc1155Token: Erc1155Token;
1360
+ };
1361
+
1362
+ type ListErc1155TransactionsResponse = {
1363
+ /**
1364
+ * 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.
1365
+ */
1366
+ nextPageToken?: string;
1367
+ transactions: Array<Erc1155Transfer>;
1368
+ };
1369
+
1370
+ type Erc20Transfer = {
1371
+ /**
1372
+ * The block number on the chain.
1373
+ */
1374
+ blockNumber: string;
1375
+ /**
1376
+ * The block finality timestamp.
1377
+ */
1378
+ blockTimestamp: number;
1379
+ /**
1380
+ * The block hash identifier.
1381
+ */
1382
+ blockHash: string;
1383
+ /**
1384
+ * The transaction hash identifier.
1385
+ */
1386
+ txHash: string;
1387
+ from: RichAddress;
1388
+ to: RichAddress;
1389
+ logIndex: number;
1390
+ value: string;
1391
+ erc20Token: Erc20Token;
1392
+ };
1393
+
1394
+ type ListErc20TransactionsResponse = {
1395
+ /**
1396
+ * 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.
1397
+ */
1398
+ nextPageToken?: string;
1399
+ transactions: Array<Erc20Transfer>;
1400
+ };
1401
+
1402
+ type Erc721Transfer = {
1403
+ /**
1404
+ * The block number on the chain.
1405
+ */
1406
+ blockNumber: string;
1407
+ /**
1408
+ * The block finality timestamp.
1409
+ */
1410
+ blockTimestamp: number;
1411
+ /**
1412
+ * The block hash identifier.
1413
+ */
1414
+ blockHash: string;
1415
+ /**
1416
+ * The transaction hash identifier.
1417
+ */
1418
+ txHash: string;
1419
+ from: RichAddress;
1420
+ to: RichAddress;
1421
+ logIndex: number;
1422
+ erc721Token: Erc721Token;
1423
+ };
1424
+
1425
+ type ListErc721TransactionsResponse = {
1426
+ /**
1427
+ * 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.
1428
+ */
1429
+ nextPageToken?: string;
1430
+ transactions: Array<Erc721Transfer>;
1431
+ };
1432
+
1433
+ type InternalTransaction = {
1434
+ /**
1435
+ * The block number on the chain.
1436
+ */
1437
+ blockNumber: string;
1438
+ /**
1439
+ * The block finality timestamp.
1440
+ */
1441
+ blockTimestamp: number;
1442
+ /**
1443
+ * The block hash identifier.
1444
+ */
1445
+ blockHash: string;
1446
+ /**
1447
+ * The transaction hash identifier.
1448
+ */
1449
+ txHash: string;
1450
+ from: RichAddress;
1451
+ to: RichAddress;
1452
+ internalTxType: InternalTransactionOpCall;
1453
+ value: string;
1454
+ /**
1455
+ * True if the internal transaction was reverted.
1456
+ */
1457
+ isReverted: boolean;
1458
+ gasUsed: string;
1459
+ gasLimit: string;
1460
+ };
1461
+
1462
+ type ListInternalTransactionsResponse = {
1463
+ /**
1464
+ * 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.
1465
+ */
1466
+ nextPageToken?: string;
1467
+ transactions: Array<InternalTransaction>;
1468
+ };
1469
+
1470
+ type NativeTransaction = {
1471
+ /**
1472
+ * The block number on the chain.
1473
+ */
1474
+ blockNumber: string;
1475
+ /**
1476
+ * The block finality timestamp.
1477
+ */
1478
+ blockTimestamp: number;
1479
+ /**
1480
+ * The block hash identifier.
1481
+ */
1482
+ blockHash: string;
1483
+ /**
1484
+ * The index at which the transaction occured in the block (0-indexed).
1485
+ */
1486
+ blockIndex: number;
1487
+ /**
1488
+ * The transaction hash identifier.
1489
+ */
1490
+ txHash: string;
1491
+ /**
1492
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1493
+ */
1494
+ txStatus: string;
1495
+ /**
1496
+ * The transaction type.
1497
+ */
1498
+ txType: number;
1499
+ /**
1500
+ * The gas limit set for the transaction.
1501
+ */
1502
+ gasLimit: string;
1503
+ /**
1504
+ * The amount of gas used.
1505
+ */
1506
+ gasUsed: string;
1507
+ /**
1508
+ * The gas price denominated by the number of decimals of the native token.
1509
+ */
1510
+ gasPrice: string;
1511
+ /**
1512
+ * The nonce used by the sender of the transaction.
1513
+ */
1514
+ nonce: string;
1515
+ from: RichAddress;
1516
+ to: RichAddress;
1517
+ method?: Method;
1518
+ value: string;
1519
+ };
1520
+
1521
+ type ListNativeTransactionsResponse = {
1522
+ /**
1523
+ * 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.
1524
+ */
1525
+ nextPageToken?: string;
1526
+ transactions: Array<NativeTransaction>;
1527
+ };
1528
+
1529
+ type TransactionDetails = {
1530
+ /**
1531
+ * The native (top-level) transaction details.
1532
+ */
1533
+ nativeTransaction: NativeTransaction;
1534
+ /**
1535
+ * The list of ERC-20 transfers.
1536
+ */
1537
+ erc20Transfers?: Array<Erc20TransferDetails>;
1538
+ /**
1539
+ * The list of ERC-721 transfers.
1540
+ */
1541
+ erc721Transfers?: Array<Erc721TransferDetails>;
1542
+ /**
1543
+ * The list of ERC-1155 transfers.
1544
+ */
1545
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1546
+ /**
1547
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1548
+ */
1549
+ internalTransactions?: Array<InternalTransactionDetails>;
1550
+ };
1551
+
1552
+ type ListTransactionDetailsResponse = {
1553
+ /**
1554
+ * 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.
1555
+ */
1556
+ nextPageToken?: string;
1557
+ transactions: Array<TransactionDetails>;
1558
+ };
1559
+
1560
+ type ListTransfersResponse = {
1561
+ /**
1562
+ * 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.
1563
+ */
1564
+ nextPageToken?: string;
1565
+ transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1566
+ };
1567
+
1568
+ declare enum SortOrder {
1569
+ ASC = "asc",
1570
+ DESC = "desc"
1571
+ }
1572
+
1573
+ declare enum TransactionStatus {
1574
+ FAILED = "failed",
1575
+ SUCCESS = "success"
1576
+ }
1577
+
1578
+ declare class EvmTransactionsService {
1579
+ readonly httpRequest: BaseHttpRequest;
1580
+ constructor(httpRequest: BaseHttpRequest);
1581
+ /**
1582
+ * Get deployment transaction
1583
+ * If the address is a smart contract, returns the transaction in which it was deployed.
1584
+ * @returns GetTransactionResponse
1585
+ * @throws ApiError
1586
+ */
1587
+ getDeploymentTransaction({ chainId, address, currency, }: {
1588
+ /**
1589
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1590
+ */
1591
+ chainId: string;
1592
+ /**
1593
+ * Contract address on the relevant chain.
1594
+ */
1595
+ address: string;
1596
+ /**
1597
+ * The currency that return values should use. Defaults to USD.
1598
+ */
1599
+ currency?: CurrencyCode;
1600
+ }): CancelablePromise<GetTransactionResponse>;
1601
+ /**
1602
+ * List deployed contracts
1603
+ * Lists all contracts deployed by the given address.
1604
+ * @returns ListContractsResponse
1605
+ * @throws ApiError
1606
+ */
1607
+ listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1608
+ /**
1609
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1610
+ */
1611
+ chainId: string;
1612
+ /**
1613
+ * A wallet address.
1614
+ */
1615
+ address: string;
1616
+ /**
1617
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1618
+ */
1619
+ pageSize?: number;
1620
+ /**
1621
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1622
+ */
1623
+ pageToken?: string;
1624
+ }): CancelablePromise<ListContractsResponse>;
1625
+ /**
1626
+ * List ERC transfers
1627
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1628
+ * @returns ListTransfersResponse
1629
+ * @throws ApiError
1630
+ */
1631
+ listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1632
+ /**
1633
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1634
+ */
1635
+ chainId: string;
1636
+ /**
1637
+ * A wallet address.
1638
+ */
1639
+ address: string;
1640
+ startBlock?: number;
1641
+ endBlock?: number;
1642
+ /**
1643
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1644
+ */
1645
+ pageSize?: number;
1646
+ /**
1647
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1648
+ */
1649
+ pageToken?: string;
1650
+ }): CancelablePromise<ListTransfersResponse>;
1651
+ /**
1652
+ * List transactions
1653
+ * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1654
+ *
1655
+ * Filterable by block ranges.
1656
+ * @returns ListTransactionDetailsResponse
1657
+ * @throws ApiError
1658
+ */
1659
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1660
+ /**
1661
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1662
+ */
1663
+ chainId: string;
1664
+ /**
1665
+ * A wallet address.
1666
+ */
1667
+ address: string;
1668
+ /**
1669
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1670
+ */
1671
+ pageSize?: number;
1672
+ /**
1673
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1674
+ */
1675
+ pageToken?: string;
1676
+ startBlock?: number;
1677
+ endBlock?: number;
1678
+ /**
1679
+ * 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.
1680
+ */
1681
+ sortOrder?: SortOrder;
1682
+ }): CancelablePromise<ListTransactionDetailsResponse>;
1683
+ /**
1684
+ * List native transactions
1685
+ * Lists native transactions for an address. Filterable by block range.
1686
+ * @returns ListNativeTransactionsResponse
1687
+ * @throws ApiError
1688
+ */
1689
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1690
+ /**
1691
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1692
+ */
1693
+ chainId: string;
1694
+ /**
1695
+ * A wallet address.
1696
+ */
1697
+ address: string;
1698
+ startBlock?: number;
1699
+ endBlock?: number;
1700
+ /**
1701
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1702
+ */
1703
+ pageSize?: number;
1704
+ /**
1705
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1706
+ */
1707
+ pageToken?: string;
1708
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1709
+ /**
1710
+ * List ERC-20 transfers
1711
+ * Lists ERC-20 transfers for an address. Filterable by block range.
1712
+ * @returns ListErc20TransactionsResponse
1713
+ * @throws ApiError
1714
+ */
1715
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1716
+ /**
1717
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1718
+ */
1719
+ chainId: string;
1720
+ /**
1721
+ * A wallet address.
1722
+ */
1723
+ address: string;
1724
+ startBlock?: number;
1725
+ endBlock?: number;
1726
+ /**
1727
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1728
+ */
1729
+ pageSize?: number;
1730
+ /**
1731
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1732
+ */
1733
+ pageToken?: string;
1734
+ }): CancelablePromise<ListErc20TransactionsResponse>;
1735
+ /**
1736
+ * List ERC-721 transfers
1737
+ * Lists ERC-721 transfers for an address. Filterable by block range.
1738
+ * @returns ListErc721TransactionsResponse
1739
+ * @throws ApiError
1740
+ */
1741
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1742
+ /**
1743
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1744
+ */
1745
+ chainId: string;
1746
+ /**
1747
+ * A wallet address.
1748
+ */
1749
+ address: string;
1750
+ startBlock?: number;
1751
+ endBlock?: number;
1752
+ /**
1753
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1754
+ */
1755
+ pageSize?: number;
1756
+ /**
1757
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1758
+ */
1759
+ pageToken?: string;
1760
+ }): CancelablePromise<ListErc721TransactionsResponse>;
1761
+ /**
1762
+ * List ERC-1155 transfers
1763
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
1764
+ * @returns ListErc1155TransactionsResponse
1765
+ * @throws ApiError
1766
+ */
1767
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ /**
1769
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
+ */
1771
+ chainId: string;
1772
+ /**
1773
+ * A wallet address.
1774
+ */
1775
+ address: string;
1776
+ startBlock?: number;
1777
+ endBlock?: number;
1778
+ /**
1779
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1780
+ */
1781
+ pageSize?: number;
1782
+ /**
1783
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1784
+ */
1785
+ pageToken?: string;
1786
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
1787
+ /**
1788
+ * List internal transactions
1789
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
1790
+ *
1791
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1792
+ * @returns ListInternalTransactionsResponse
1793
+ * @throws ApiError
1794
+ */
1795
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1796
+ /**
1797
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1798
+ */
1799
+ chainId: string;
1800
+ /**
1801
+ * A wallet address.
1802
+ */
1803
+ address: string;
1804
+ startBlock?: number;
1805
+ endBlock?: number;
1806
+ /**
1807
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1808
+ */
1809
+ pageSize?: number;
1810
+ /**
1811
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1812
+ */
1813
+ pageToken?: string;
1814
+ }): CancelablePromise<ListInternalTransactionsResponse>;
1815
+ /**
1816
+ * Get transaction
1817
+ * Gets the details of a single transaction.
1818
+ * @returns GetTransactionResponse
1819
+ * @throws ApiError
1820
+ */
1821
+ getTransaction({ chainId, txHash, }: {
1822
+ /**
1823
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1824
+ */
1825
+ chainId: string;
1826
+ /**
1827
+ * A transaction hash.
1828
+ */
1829
+ txHash: string;
1830
+ }): CancelablePromise<GetTransactionResponse>;
1831
+ /**
1832
+ * List transactions for a block
1833
+ * Lists the transactions that occured in a given block.
1834
+ * @returns ListNativeTransactionsResponse
1835
+ * @throws ApiError
1836
+ */
1837
+ getTransactionsForBlock({ chainId, blockId, }: {
1838
+ /**
1839
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1840
+ */
1841
+ chainId: string;
1842
+ /**
1843
+ * A block identifier which is either a block number or the block hash.
1844
+ */
1845
+ blockId: string;
1846
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1847
+ /**
1848
+ * List latest transactions
1849
+ * Lists the latest transactions. Filterable by status.
1850
+ * @returns ListNativeTransactionsResponse
1851
+ * @throws ApiError
1852
+ */
1853
+ listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1854
+ /**
1855
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1856
+ */
1857
+ chainId: string;
1858
+ /**
1859
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1860
+ */
1861
+ pageSize?: number;
1862
+ /**
1863
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1864
+ */
1865
+ pageToken?: string;
1866
+ /**
1867
+ * A status filter for listed transactions.
1868
+ */
1869
+ status?: TransactionStatus;
1870
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1871
+ }
1872
+
1873
+ declare class HealthCheckService {
1874
+ readonly httpRequest: BaseHttpRequest;
1875
+ constructor(httpRequest: BaseHttpRequest);
1876
+ /**
1877
+ * Get the health of the service
1878
+ * @returns any The Health Check is successful
1879
+ * @throws ApiError
1880
+ */
1881
+ healthCheck(): CancelablePromise<{
1882
+ status?: string;
1883
+ info?: Record<string, Record<string, string>> | null;
1884
+ error?: Record<string, Record<string, string>> | null;
1885
+ details?: Record<string, Record<string, string>>;
1886
+ }>;
1887
+ }
1888
+
1889
+ declare class NfTsService {
1890
+ readonly httpRequest: BaseHttpRequest;
1891
+ constructor(httpRequest: BaseHttpRequest);
1892
+ /**
1893
+ * Reindex NFT metadata
1894
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1895
+ * @returns any
1896
+ * @throws ApiError
1897
+ */
1898
+ reindexNft({ chainId, address, tokenId, }: {
1899
+ /**
1900
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1901
+ */
1902
+ chainId: string;
1903
+ /**
1904
+ * Contract address on the relevant chain.
1905
+ */
1906
+ address: string;
1907
+ /**
1908
+ * TokenId on the contract
1909
+ */
1910
+ tokenId: string;
1911
+ }): CancelablePromise<any>;
1912
+ /**
1913
+ * Get token details
1914
+ * Gets token details for a specific token of an NFT contract.
1915
+ * @returns any
1916
+ * @throws ApiError
1917
+ */
1918
+ getTokenDetails({ chainId, address, tokenId, }: {
1919
+ /**
1920
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1921
+ */
1922
+ chainId: string;
1923
+ /**
1924
+ * Contract address on the relevant chain.
1925
+ */
1926
+ address: string;
1927
+ /**
1928
+ * TokenId on the contract
1929
+ */
1930
+ tokenId: string;
1931
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1932
+ }
1933
+
1934
+ type EvmNetworkOptions = {
1935
+ addresses: Array<string>;
1936
+ includeChains: Array<string>;
1937
+ };
1938
+
1939
+ type CreateEvmTransactionExportRequest = {
1940
+ type: CreateEvmTransactionExportRequest.type;
1941
+ firstDate: string;
1942
+ lastDate: string;
1943
+ /**
1944
+ * @deprecated
1945
+ */
1946
+ startDate: string;
1947
+ /**
1948
+ * @deprecated
1949
+ */
1950
+ endDate: string;
1951
+ options: EvmNetworkOptions;
1952
+ };
1953
+ declare namespace CreateEvmTransactionExportRequest {
1954
+ enum type {
1955
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1956
+ }
1957
+ }
1958
+
1959
+ type PrimaryNetworkOptions = {
1960
+ addresses: Array<string>;
1961
+ cChainEvmAddresses?: Array<string>;
1962
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
1963
+ };
1964
+
1965
+ type CreatePrimaryNetworkTransactionExportRequest = {
1966
+ type: CreatePrimaryNetworkTransactionExportRequest.type;
1967
+ firstDate: string;
1968
+ lastDate: string;
1969
+ /**
1970
+ * @deprecated
1971
+ */
1972
+ startDate: string;
1973
+ /**
1974
+ * @deprecated
1975
+ */
1976
+ endDate: string;
1977
+ options: PrimaryNetworkOptions;
1978
+ };
1979
+ declare namespace CreatePrimaryNetworkTransactionExportRequest {
1980
+ enum type {
1981
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1982
+ }
1983
+ }
1984
+
1985
+ declare enum OperationStatus {
1986
+ RUNNING = "RUNNING",
1987
+ COMPLETED = "COMPLETED",
1988
+ COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
1989
+ FAILED = "FAILED"
1990
+ }
1991
+
1992
+ declare enum OperationType {
1993
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1994
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1995
+ }
1996
+
1997
+ declare enum OperationStatusCode {
1998
+ ERR_INVALID_REQUEST = "ErrInvalidRequest",
1999
+ ERR_INTERNAL = "ErrInternal",
2000
+ WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
2001
+ }
2002
+
2003
+ type TransactionExportMetadata = {
2004
+ code?: OperationStatusCode;
2005
+ /**
2006
+ * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
2007
+ */
2008
+ downloadUrl?: string;
2009
+ /**
2010
+ * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
2011
+ */
2012
+ nextDate?: string;
2013
+ };
2014
+
2015
+ type OperationStatusResponse = {
2016
+ operationId: string;
2017
+ operationType: OperationType;
2018
+ operationStatus: OperationStatus;
2019
+ message?: string;
2020
+ metadata: TransactionExportMetadata;
2021
+ createdAtTimestamp: number;
2022
+ updatedAtTimestamp: number;
2023
+ };
2024
+
2025
+ declare class OperationsService {
2026
+ readonly httpRequest: BaseHttpRequest;
2027
+ constructor(httpRequest: BaseHttpRequest);
2028
+ /**
2029
+ * Create transaction export operation
2030
+ * Trigger a transaction export operation with given parameters.
2031
+ *
2032
+ * 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.
2033
+ * @returns OperationStatusResponse
2034
+ * @throws ApiError
2035
+ */
2036
+ postTransactionExportJob({ requestBody, }: {
2037
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2038
+ }): CancelablePromise<OperationStatusResponse>;
2039
+ /**
2040
+ * Get operation
2041
+ * Gets operation details for the given operation id.
2042
+ * @returns OperationStatusResponse
2043
+ * @throws ApiError
2044
+ */
2045
+ getOperationResult({ operationId, }: {
2046
+ /**
2047
+ * UUID of given operation
2048
+ */
2049
+ operationId: string;
2050
+ }): CancelablePromise<OperationStatusResponse>;
2051
+ }
2052
+
2053
+ declare enum BlockchainIds {
2054
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2055
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2056
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2057
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2058
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2059
+ }
2060
+
2061
+ type ChainAddressChainIdMap = {
2062
+ address: string;
2063
+ blockchainIds: Array<BlockchainIds>;
2064
+ };
2065
+
2066
+ type ChainAddressChainIdMapListResponse = {
2067
+ addresses: Array<ChainAddressChainIdMap>;
2068
+ };
2069
+
2070
+ declare enum DelegationStatusType {
2071
+ COMPLETED = "completed",
2072
+ ACTIVE = "active",
2073
+ PENDING = "pending"
2074
+ }
2075
+
2076
+ type DelegatorsDetails = {
2077
+ delegatorCount: number;
2078
+ totalAmountStaked: string;
2079
+ };
2080
+
2081
+ type StakingDistribution = {
2082
+ version: string;
2083
+ amountStaked: string;
2084
+ validatorCount: number;
2085
+ };
2086
+
2087
+ type ValidatorsDetails = {
2088
+ validatorCount: number;
2089
+ totalAmountStaked: string;
2090
+ estimatedAnnualStakingReward: string;
2091
+ stakingDistributionByVersion: Array<StakingDistribution>;
2092
+ stakingRatio: string;
2093
+ };
2094
+
2095
+ type GetNetworkDetailsResponse = {
2096
+ validatorDetails: ValidatorsDetails;
2097
+ delegatorDetails: DelegatorsDetails;
2098
+ };
2099
+
2100
+ type Blockchain = {
2101
+ createBlockTimestamp: number;
2102
+ createBlockNumber: string;
2103
+ blockchainId: string;
2104
+ vmId: string;
2105
+ subnetId: string;
2106
+ blockchainName: string;
2107
+ };
2108
+
2109
+ type ListBlockchainsResponse = {
2110
+ /**
2111
+ * 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.
2112
+ */
2113
+ nextPageToken?: string;
2114
+ blockchains: Array<Blockchain>;
2115
+ };
2116
+
2117
+ type ActiveDelegatorDetails = {
2118
+ txHash: string;
2119
+ nodeId: string;
2120
+ rewardAddresses: Array<string>;
2121
+ amountDelegated: string;
2122
+ delegationFee: string;
2123
+ startTimestamp: number;
2124
+ endTimestamp: number;
2125
+ estimatedGrossReward: string;
2126
+ estimatedNetReward: string;
2127
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
2128
+ };
2129
+ declare namespace ActiveDelegatorDetails {
2130
+ enum delegationStatus {
2131
+ ACTIVE = "active"
2132
+ }
2133
+ }
2134
+
2135
+ type CompletedDelegatorDetails = {
2136
+ txHash: string;
2137
+ nodeId: string;
2138
+ rewardAddresses: Array<string>;
2139
+ amountDelegated: string;
2140
+ delegationFee: string;
2141
+ startTimestamp: number;
2142
+ endTimestamp: number;
2143
+ grossReward: string;
2144
+ netReward: string;
2145
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
2146
+ };
2147
+ declare namespace CompletedDelegatorDetails {
2148
+ enum delegationStatus {
2149
+ COMPLETED = "completed"
2150
+ }
2151
+ }
2152
+
2153
+ type PendingDelegatorDetails = {
2154
+ txHash: string;
2155
+ nodeId: string;
2156
+ rewardAddresses: Array<string>;
2157
+ amountDelegated: string;
2158
+ delegationFee: string;
2159
+ startTimestamp: number;
2160
+ endTimestamp: number;
2161
+ estimatedGrossReward: string;
2162
+ estimatedNetReward: string;
2163
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
2164
+ };
2165
+ declare namespace PendingDelegatorDetails {
2166
+ enum delegationStatus {
2167
+ PENDING = "pending"
2168
+ }
2169
+ }
2170
+
2171
+ type ListDelegatorDetailsResponse = {
2172
+ /**
2173
+ * 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.
2174
+ */
2175
+ nextPageToken?: string;
2176
+ /**
2177
+ * The list of Delegator Details.
2178
+ */
2179
+ delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2180
+ };
2181
+
2182
+ type BlockchainInfo = {
2183
+ blockchainId: string;
2184
+ };
2185
+
2186
+ type Subnet = {
2187
+ createBlockTimestamp: number;
2188
+ createBlockIndex: string;
2189
+ subnetId: string;
2190
+ ownerAddresses: Array<string>;
2191
+ threshold: number;
2192
+ locktime: number;
2193
+ blockchains: Array<BlockchainInfo>;
2194
+ };
2195
+
2196
+ type ListSubnetsResponse = {
2197
+ /**
2198
+ * 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.
2199
+ */
2200
+ nextPageToken?: string;
2201
+ subnets: Array<Subnet>;
2202
+ };
2203
+
2204
+ type Rewards = {
2205
+ validationRewardAmount: string;
2206
+ delegationRewardAmount: string;
2207
+ rewardAddresses?: Array<string>;
2208
+ rewardTxHash?: string;
2209
+ };
2210
+
2211
+ type ValidatorHealthDetails = {
2212
+ /**
2213
+ * Percent of requests responded to in last polling.
2214
+ */
2215
+ reachabilityPercent: number;
2216
+ /**
2217
+ * Percent of requests benched on the P-Chain in last polling.
2218
+ */
2219
+ benchedPChainRequestsPercent: number;
2220
+ /**
2221
+ * Percentage of requests benched on the X-Chain in last polling.
2222
+ */
2223
+ benchedXChainRequestsPercent: number;
2224
+ /**
2225
+ * Percentage of requests benched on the C-Chain in last polling.
2226
+ */
2227
+ benchedCChainRequestsPercent: number;
2228
+ };
2229
+
2230
+ type ActiveValidatorDetails = {
2231
+ nodeId: string;
2232
+ subnetId: string;
2233
+ amountStaked: string;
2234
+ delegationFee?: string;
2235
+ startTimestamp: number;
2236
+ endTimestamp: number;
2237
+ stakePercentage: number;
2238
+ delegatorCount: number;
2239
+ amountDelegated?: string;
2240
+ uptimePerformance: number;
2241
+ avalancheGoVersion?: string;
2242
+ delegationCapacity?: string;
2243
+ potentialRewards: Rewards;
2244
+ validationStatus: ActiveValidatorDetails.validationStatus;
2245
+ validatorHealth: ValidatorHealthDetails;
2246
+ };
2247
+ declare namespace ActiveValidatorDetails {
2248
+ enum validationStatus {
2249
+ ACTIVE = "active"
2250
+ }
2251
+ }
2252
+
2253
+ type CompletedValidatorDetails = {
2254
+ nodeId: string;
2255
+ subnetId: string;
2256
+ amountStaked: string;
2257
+ delegationFee?: string;
2258
+ startTimestamp: number;
2259
+ endTimestamp: number;
2260
+ delegatorCount: number;
2261
+ rewards: Rewards;
2262
+ validationStatus: CompletedValidatorDetails.validationStatus;
2263
+ };
2264
+ declare namespace CompletedValidatorDetails {
2265
+ enum validationStatus {
2266
+ COMPLETED = "completed"
2267
+ }
2268
+ }
2269
+
2270
+ type PendingValidatorDetails = {
2271
+ nodeId: string;
2272
+ subnetId: string;
2273
+ amountStaked: string;
2274
+ delegationFee?: string;
2275
+ startTimestamp: number;
2276
+ endTimestamp: number;
2277
+ validationStatus: PendingValidatorDetails.validationStatus;
2278
+ };
2279
+ declare namespace PendingValidatorDetails {
2280
+ enum validationStatus {
2281
+ PENDING = "pending"
2282
+ }
2283
+ }
2284
+
2285
+ type ListValidatorDetailsResponse = {
2286
+ /**
2287
+ * 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.
2288
+ */
2289
+ nextPageToken?: string;
2290
+ /**
2291
+ * The list of validator Details.
2292
+ */
2293
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2294
+ };
2295
+
2296
+ declare enum Network {
2297
+ MAINNET = "mainnet",
2298
+ FUJI = "fuji"
2299
+ }
2300
+
2301
+ declare enum ValidationStatusType {
2302
+ COMPLETED = "completed",
2303
+ ACTIVE = "active",
2304
+ PENDING = "pending"
2305
+ }
2306
+
2307
+ type XChainAssetDetails = {
2308
+ /**
2309
+ * Unique ID for an asset.
2310
+ */
2311
+ assetId: string;
2312
+ /**
2313
+ * Name of this asset.
2314
+ */
2315
+ name: string;
2316
+ /**
2317
+ * Symbol for this asset (max 4 characters).
2318
+ */
2319
+ symbol: string;
2320
+ /**
2321
+ * Denomination of this asset to represent fungibility.
2322
+ */
2323
+ denomination: number;
2324
+ /**
2325
+ * Type of asset like SECP256K1 or NFT.
2326
+ */
2327
+ type: string;
2328
+ /**
2329
+ * Timestamp in seconds this asset was created on.
2330
+ */
2331
+ createdAtTimestamp: number;
2332
+ /**
2333
+ * Cap represents if an asset can be or is fixed cap.
2334
+ */
2335
+ cap: string;
2336
+ };
2337
+
2338
+ declare enum XChainId {
2339
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2340
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2341
+ X_CHAIN = "x-chain"
2342
+ }
2343
+
2344
+ declare class PrimaryNetworkService {
2345
+ readonly httpRequest: BaseHttpRequest;
2346
+ constructor(httpRequest: BaseHttpRequest);
2347
+ /**
2348
+ * Get asset details
2349
+ * Gets asset details corresponding to the given asset id on the X-Chain.
2350
+ * @returns XChainAssetDetails
2351
+ * @throws ApiError
2352
+ */
2353
+ getAssetDetails({ blockchainId, network, assetId, }: {
2354
+ /**
2355
+ * A primary network blockchain id or alias.
2356
+ */
2357
+ blockchainId: XChainId;
2358
+ /**
2359
+ * Either mainnet or a testnet.
2360
+ */
2361
+ network: Network;
2362
+ /**
2363
+ * Asset ID for any asset on X-Chain
2364
+ */
2365
+ assetId: string;
2366
+ }): CancelablePromise<XChainAssetDetails>;
2367
+ /**
2368
+ * Get chain interactions for addresses
2369
+ * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
2370
+ * @returns ChainAddressChainIdMapListResponse
2371
+ * @throws ApiError
2372
+ */
2373
+ getChainIdsForAddresses({ addresses, network, }: {
2374
+ /**
2375
+ * 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".
2376
+ */
2377
+ addresses: string;
2378
+ /**
2379
+ * Either mainnet or a testnet.
2380
+ */
2381
+ network: Network;
2382
+ }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2383
+ /**
2384
+ * Get network details
2385
+ * Gets network details such as validator and delegator stats.
2386
+ * @returns GetNetworkDetailsResponse
2387
+ * @throws ApiError
2388
+ */
2389
+ getNetworkDetails({ network, }: {
2390
+ /**
2391
+ * Either mainnet or a testnet.
2392
+ */
2393
+ network: Network;
2394
+ }): CancelablePromise<GetNetworkDetailsResponse>;
2395
+ /**
2396
+ * List blockchains
2397
+ * Lists all blockchains registered on the network.
2398
+ * @returns ListBlockchainsResponse
2399
+ * @throws ApiError
2400
+ */
2401
+ listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2402
+ /**
2403
+ * Either mainnet or a testnet.
2404
+ */
2405
+ network: Network;
2406
+ /**
2407
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2408
+ */
2409
+ pageSize?: number;
2410
+ /**
2411
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2412
+ */
2413
+ pageToken?: string;
2414
+ /**
2415
+ * 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.
2416
+ */
2417
+ sortOrder?: SortOrder;
2418
+ }): CancelablePromise<ListBlockchainsResponse>;
2419
+ /**
2420
+ * List subnets
2421
+ * Lists all subnets registered on the network.
2422
+ * @returns ListSubnetsResponse
2423
+ * @throws ApiError
2424
+ */
2425
+ listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2426
+ /**
2427
+ * Either mainnet or a testnet.
2428
+ */
2429
+ network: Network;
2430
+ /**
2431
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2432
+ */
2433
+ pageSize?: number;
2434
+ /**
2435
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2436
+ */
2437
+ pageToken?: string;
2438
+ /**
2439
+ * 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.
2440
+ */
2441
+ sortOrder?: SortOrder;
2442
+ }): CancelablePromise<ListSubnetsResponse>;
2443
+ /**
2444
+ * List validators
2445
+ * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2446
+ * @returns ListValidatorDetailsResponse
2447
+ * @throws ApiError
2448
+ */
2449
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2450
+ /**
2451
+ * Either mainnet or a testnet.
2452
+ */
2453
+ network: Network;
2454
+ /**
2455
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2456
+ */
2457
+ pageSize?: number;
2458
+ /**
2459
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2460
+ */
2461
+ pageToken?: string;
2462
+ /**
2463
+ * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2464
+ */
2465
+ minTimeRemaining?: any;
2466
+ /**
2467
+ * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2468
+ */
2469
+ maxTimeRemaining?: any;
2470
+ /**
2471
+ * 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
2472
+ */
2473
+ minDelegationCapacity?: number;
2474
+ /**
2475
+ * 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.
2476
+ */
2477
+ maxDelegationCapacity?: number;
2478
+ /**
2479
+ * 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.
2480
+ */
2481
+ minFeePercentage?: any;
2482
+ /**
2483
+ * 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.
2484
+ */
2485
+ maxFeePercentage?: any;
2486
+ /**
2487
+ * A comma separated list of node ids to filter by.
2488
+ */
2489
+ nodeIds?: string;
2490
+ /**
2491
+ * 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.
2492
+ */
2493
+ sortOrder?: SortOrder;
2494
+ /**
2495
+ * Validation status of the node.
2496
+ */
2497
+ validationStatus?: ValidationStatusType;
2498
+ /**
2499
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2500
+ */
2501
+ subnetId?: string;
2502
+ }): CancelablePromise<ListValidatorDetailsResponse>;
2503
+ /**
2504
+ * Get single validator details
2505
+ * List validator details for a single validator. Filterable by validation status.
2506
+ * @returns ListValidatorDetailsResponse
2507
+ * @throws ApiError
2508
+ */
2509
+ getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2510
+ /**
2511
+ * Either mainnet or a testnet.
2512
+ */
2513
+ network: Network;
2514
+ /**
2515
+ * A primary network (P or X chain) nodeId.
2516
+ */
2517
+ nodeId: string;
2518
+ /**
2519
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2520
+ */
2521
+ pageSize?: number;
2522
+ /**
2523
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2524
+ */
2525
+ pageToken?: string;
2526
+ /**
2527
+ * 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.
2528
+ */
2529
+ sortOrder?: SortOrder;
2530
+ /**
2531
+ * Validation status of the node.
2532
+ */
2533
+ validationStatus?: ValidationStatusType;
2534
+ }): CancelablePromise<ListValidatorDetailsResponse>;
2535
+ /**
2536
+ * List delegators
2537
+ * Lists details for delegators.
2538
+ * @returns ListDelegatorDetailsResponse
2539
+ * @throws ApiError
2540
+ */
2541
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2542
+ /**
2543
+ * Either mainnet or a testnet.
2544
+ */
2545
+ network: Network;
2546
+ /**
2547
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2548
+ */
2549
+ pageSize?: number;
2550
+ /**
2551
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2552
+ */
2553
+ pageToken?: string;
2554
+ /**
2555
+ * A comma separated list of reward addresses to filter by.
2556
+ */
2557
+ rewardAddresses?: string;
2558
+ /**
2559
+ * 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.
2560
+ */
2561
+ sortOrder?: SortOrder;
2562
+ /**
2563
+ * Delegation status of the node.
2564
+ */
2565
+ delegationStatus?: DelegationStatusType;
2566
+ /**
2567
+ * A comma separated list of node ids to filter by.
2568
+ */
2569
+ nodeIds?: string;
2570
+ }): CancelablePromise<ListDelegatorDetailsResponse>;
2571
+ }
2572
+
2573
+ declare enum BlockchainId {
2574
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2575
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2576
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2577
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2578
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2579
+ P_CHAIN = "p-chain",
2580
+ X_CHAIN = "x-chain",
2581
+ C_CHAIN = "c-chain"
2582
+ }
2583
+
2584
+ type CChainSharedAssetBalance = {
2585
+ /**
2586
+ * Unique ID for an asset.
2587
+ */
2588
+ assetId: string;
2589
+ /**
2590
+ * Name of this asset.
2591
+ */
2592
+ name: string;
2593
+ /**
2594
+ * Symbol for this asset (max 4 characters).
2595
+ */
2596
+ symbol: string;
2597
+ /**
2598
+ * Denomination of this asset to represent fungibility.
2599
+ */
2600
+ denomination: number;
2601
+ /**
2602
+ * Type of asset like SECP256K1 or NFT.
2603
+ */
2604
+ type: string;
2605
+ /**
2606
+ * Amount of the asset.
2607
+ */
2608
+ amount: string;
2609
+ utxoCount: number;
2610
+ sharedWithChainId: string;
2611
+ };
2612
+
2613
+ type CChainAtomicBalances = {
2614
+ atomicMemoryUnlocked: Array<CChainSharedAssetBalance>;
2615
+ atomicMemoryLocked: Array<CChainSharedAssetBalance>;
2616
+ };
2617
+
2618
+ declare enum PrimaryNetwork {
2619
+ MAINNET = "mainnet",
2620
+ FUJI = "fuji"
2621
+ }
2622
+
2623
+ declare enum PrimaryNetworkChainName {
2624
+ P_CHAIN = "p-chain",
2625
+ X_CHAIN = "x-chain",
2626
+ C_CHAIN = "c-chain"
2627
+ }
2628
+
2629
+ type PrimaryNetworkChainInfo = {
2630
+ chainName: PrimaryNetworkChainName;
2631
+ network: PrimaryNetwork;
2632
+ };
2633
+
2634
+ type ListCChainAtomicBalancesResponse = {
2635
+ balances: CChainAtomicBalances;
2636
+ chainInfo: PrimaryNetworkChainInfo;
2637
+ };
2638
+
2639
+ type PChainAsset = {
2640
+ assetId: string;
2641
+ amount: string;
2642
+ };
2643
+
2644
+ type PChainSharedAsset = {
2645
+ assetId: string;
2646
+ amount: string;
2647
+ sharedWithChainId: string;
2648
+ status: string;
2649
+ };
2650
+
2651
+ type PChainBalance = {
2652
+ /**
2653
+ * 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.
2654
+ */
2655
+ unlockedUnstaked: Array<PChainAsset>;
2656
+ /**
2657
+ * 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.
2658
+ */
2659
+ unlockedStaked: Array<PChainAsset>;
2660
+ /**
2661
+ * 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.
2662
+ */
2663
+ lockedPlatform: Array<PChainAsset>;
2664
+ /**
2665
+ * 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.
2666
+ */
2667
+ lockedStakeable: Array<PChainAsset>;
2668
+ /**
2669
+ * 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.
2670
+ */
2671
+ lockedStaked: Array<PChainAsset>;
2672
+ /**
2673
+ * 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.
2674
+ */
2675
+ pendingStaked: Array<PChainAsset>;
2676
+ /**
2677
+ * 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.
2678
+ */
2679
+ atomicMemoryUnlocked: Array<PChainSharedAsset>;
2680
+ /**
2681
+ * 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.
2682
+ */
2683
+ atomicMemoryLocked: Array<PChainSharedAsset>;
2684
+ };
2685
+
2686
+ type ListPChainBalancesResponse = {
2687
+ balances: PChainBalance;
2688
+ chainInfo: PrimaryNetworkChainInfo;
2689
+ };
2690
+
2691
+ type XChainAssetBalance = {
2692
+ /**
2693
+ * Unique ID for an asset.
2694
+ */
2695
+ assetId: string;
2696
+ /**
2697
+ * Name of this asset.
2698
+ */
2699
+ name: string;
2700
+ /**
2701
+ * Symbol for this asset (max 4 characters).
2702
+ */
2703
+ symbol: string;
2704
+ /**
2705
+ * Denomination of this asset to represent fungibility.
2706
+ */
2707
+ denomination: number;
2708
+ /**
2709
+ * Type of asset like SECP256K1 or NFT.
2710
+ */
2711
+ type: string;
2712
+ /**
2713
+ * Amount of the asset.
2714
+ */
2715
+ amount: string;
2716
+ utxoCount: number;
2717
+ };
2718
+
2719
+ type XChainSharedAssetBalance = {
2720
+ /**
2721
+ * Unique ID for an asset.
2722
+ */
2723
+ assetId: string;
2724
+ /**
2725
+ * Name of this asset.
2726
+ */
2727
+ name: string;
2728
+ /**
2729
+ * Symbol for this asset (max 4 characters).
2730
+ */
2731
+ symbol: string;
2732
+ /**
2733
+ * Denomination of this asset to represent fungibility.
2734
+ */
2735
+ denomination: number;
2736
+ /**
2737
+ * Type of asset like SECP256K1 or NFT.
2738
+ */
2739
+ type: string;
2740
+ /**
2741
+ * Amount of the asset.
2742
+ */
2743
+ amount: string;
2744
+ utxoCount: number;
2745
+ sharedWithChainId: string;
2746
+ };
2747
+
2748
+ type XChainBalances = {
2749
+ /**
2750
+ * A list of objects containing X-chain Asset balance information.
2751
+ */
2752
+ locked: Array<XChainAssetBalance>;
2753
+ /**
2754
+ * A list of objects containing X-chain Asset balance information.
2755
+ */
2756
+ unlocked: Array<XChainAssetBalance>;
2757
+ atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2758
+ atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2759
+ };
2760
+
2761
+ type ListXChainBalancesResponse = {
2762
+ balances: XChainBalances;
2763
+ chainInfo: PrimaryNetworkChainInfo;
2764
+ };
2765
+
2766
+ declare class PrimaryNetworkBalancesService {
2767
+ readonly httpRequest: BaseHttpRequest;
2768
+ constructor(httpRequest: BaseHttpRequest);
2769
+ /**
2770
+ * Get balances
2771
+ * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
2772
+ *
2773
+ * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
2774
+ * @returns any
2775
+ * @throws ApiError
2776
+ */
2777
+ getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
2778
+ /**
2779
+ * A primary network blockchain id or alias.
2780
+ */
2781
+ blockchainId: BlockchainId;
2782
+ /**
2783
+ * Either mainnet or a testnet.
2784
+ */
2785
+ network: Network;
2786
+ /**
2787
+ * An epoch timestamp in seconds. Balance will be calculated at this timestamp.
2788
+ */
2789
+ blockTimestamp?: number;
2790
+ /**
2791
+ * 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".
2792
+ */
2793
+ addresses?: string;
2794
+ }): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
2795
+ }
2796
+
2797
+ type ProposerDetails = {
2798
+ proposerId?: string;
2799
+ proposerParentId?: string;
2800
+ proposerNodeId?: string;
2801
+ proposerPChainHeight?: number;
2802
+ proposerTimestamp?: number;
2803
+ };
2804
+
2805
+ type GetPrimaryNetworkBlockResponse = {
2806
+ blockNumber: string;
2807
+ blockHash: string;
2808
+ parentHash: string;
2809
+ blockTimestamp: number;
2810
+ blockType: string;
2811
+ txCount: number;
2812
+ transactions: Array<string>;
2813
+ blockSizeBytes: number;
2814
+ proposerDetails?: ProposerDetails;
2815
+ };
2816
+
2817
+ type PrimaryNetworkBlock = {
2818
+ blockNumber: string;
2819
+ blockHash: string;
2820
+ parentHash: string;
2821
+ blockTimestamp: number;
2822
+ blockType: string;
2823
+ txCount: number;
2824
+ transactions: Array<string>;
2825
+ blockSizeBytes: number;
2826
+ proposerDetails?: ProposerDetails;
2827
+ };
2828
+
2829
+ type ListPrimaryNetworkBlocksResponse = {
2830
+ /**
2831
+ * 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.
2832
+ */
2833
+ nextPageToken?: string;
2834
+ blocks: Array<PrimaryNetworkBlock>;
2835
+ chainInfo: PrimaryNetworkChainInfo;
2836
+ };
2837
+
2838
+ declare class PrimaryNetworkBlocksService {
2839
+ readonly httpRequest: BaseHttpRequest;
2840
+ constructor(httpRequest: BaseHttpRequest);
2841
+ /**
2842
+ * Get block
2843
+ * Gets a block by block height or block hash on one of the Primary Network chains.
2844
+ * @returns GetPrimaryNetworkBlockResponse
2845
+ * @throws ApiError
2846
+ */
2847
+ getBlockById({ blockchainId, network, blockId, }: {
2848
+ /**
2849
+ * A primary network blockchain id or alias.
2850
+ */
2851
+ blockchainId: BlockchainId;
2852
+ /**
2853
+ * Either mainnet or a testnet.
2854
+ */
2855
+ network: Network;
2856
+ /**
2857
+ * A block identifier which is either a block number or the block hash.
2858
+ */
2859
+ blockId: string;
2860
+ }): CancelablePromise<GetPrimaryNetworkBlockResponse>;
2861
+ /**
2862
+ * List blocks proposed by node
2863
+ * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
2864
+ * @returns ListPrimaryNetworkBlocksResponse
2865
+ * @throws ApiError
2866
+ */
2867
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
2868
+ /**
2869
+ * A primary network blockchain id or alias.
2870
+ */
2871
+ blockchainId: BlockchainId;
2872
+ /**
2873
+ * Either mainnet or a testnet.
2874
+ */
2875
+ network: Network;
2876
+ /**
2877
+ * A primary network (P or X chain) nodeId.
2878
+ */
2879
+ nodeId: string;
2880
+ /**
2881
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2882
+ */
2883
+ pageSize?: number;
2884
+ /**
2885
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2886
+ */
2887
+ pageToken?: string;
2888
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2889
+ /**
2890
+ * List latest blocks
2891
+ * Lists latest blocks on one of the Primary Network chains.
2892
+ * @returns ListPrimaryNetworkBlocksResponse
2893
+ * @throws ApiError
2894
+ */
2895
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
2896
+ /**
2897
+ * A primary network blockchain id or alias.
2898
+ */
2899
+ blockchainId: BlockchainId;
2900
+ /**
2901
+ * Either mainnet or a testnet.
2902
+ */
2903
+ network: Network;
2904
+ /**
2905
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2906
+ */
2907
+ pageSize?: number;
2908
+ /**
2909
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2910
+ */
2911
+ pageToken?: string;
2912
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2913
+ }
2914
+
2915
+ declare enum RewardType {
2916
+ VALIDATOR = "VALIDATOR",
2917
+ DELEGATOR = "DELEGATOR",
2918
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2919
+ }
2920
+
2921
+ type HistoricalReward = {
2922
+ /**
2923
+ * An array of P-Chain wallet addresses.
2924
+ */
2925
+ addresses: Array<string>;
2926
+ txHash: string;
2927
+ amountStaked: string;
2928
+ nodeId: string;
2929
+ startTimestamp: number;
2930
+ endTimestamp: number;
2931
+ rewardType: RewardType;
2932
+ utxoId: string;
2933
+ outputIndex: number;
2934
+ /**
2935
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
2936
+ */
2937
+ reward: PChainAsset;
2938
+ rewardTxHash: string;
2939
+ };
2940
+
2941
+ type ListHistoricalRewardsResponse = {
2942
+ /**
2943
+ * 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.
2944
+ */
2945
+ nextPageToken?: string;
2946
+ historicalRewards: Array<HistoricalReward>;
2947
+ };
2948
+
2949
+ type PendingReward = {
2950
+ /**
2951
+ * An array of P-Chain wallet addresses.
2952
+ */
2953
+ addresses: Array<string>;
2954
+ txHash: string;
2955
+ amountStaked: string;
2956
+ nodeId: string;
2957
+ startTimestamp: number;
2958
+ endTimestamp: number;
2959
+ rewardType: RewardType;
2960
+ progress: number;
2961
+ /**
2962
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
2963
+ */
2964
+ estimatedReward: PChainAsset;
2965
+ };
2966
+
2967
+ type ListPendingRewardsResponse = {
2968
+ /**
2969
+ * 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.
2970
+ */
2971
+ nextPageToken?: string;
2972
+ pendingRewards: Array<PendingReward>;
2973
+ };
2974
+
2975
+ declare class PrimaryNetworkRewardsService {
2976
+ readonly httpRequest: BaseHttpRequest;
2977
+ constructor(httpRequest: BaseHttpRequest);
2978
+ /**
2979
+ * List pending rewards
2980
+ * Lists pending rewards on the Primary Network for the supplied addresses.
2981
+ * @returns ListPendingRewardsResponse
2982
+ * @throws ApiError
2983
+ */
2984
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2985
+ /**
2986
+ * Either mainnet or a testnet.
2987
+ */
2988
+ network: Network;
2989
+ /**
2990
+ * 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".
2991
+ */
2992
+ addresses?: string;
2993
+ /**
2994
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2995
+ */
2996
+ pageSize?: number;
2997
+ /**
2998
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2999
+ */
3000
+ pageToken?: string;
3001
+ /**
3002
+ * A comma separated list of node ids to filter by.
3003
+ */
3004
+ nodeIds?: string;
3005
+ /**
3006
+ * 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.
3007
+ */
3008
+ sortOrder?: SortOrder;
3009
+ }): CancelablePromise<ListPendingRewardsResponse>;
3010
+ /**
3011
+ * List historical rewards
3012
+ * Lists historical rewards on the Primary Network for the supplied addresses.
3013
+ * @returns ListHistoricalRewardsResponse
3014
+ * @throws ApiError
3015
+ */
3016
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3017
+ /**
3018
+ * Either mainnet or a testnet.
3019
+ */
3020
+ network: Network;
3021
+ /**
3022
+ * 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".
3023
+ */
3024
+ addresses?: string;
3025
+ /**
3026
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3027
+ */
3028
+ pageSize?: number;
3029
+ /**
3030
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3031
+ */
3032
+ pageToken?: string;
3033
+ /**
3034
+ * A comma separated list of node ids to filter by.
3035
+ */
3036
+ nodeIds?: string;
3037
+ /**
3038
+ * 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.
3039
+ */
3040
+ sortOrder?: SortOrder;
3041
+ }): CancelablePromise<ListHistoricalRewardsResponse>;
3042
+ }
3043
+
3044
+ type Asset = {
3045
+ /**
3046
+ * Unique ID for an asset.
3047
+ */
3048
+ assetId: string;
3049
+ /**
3050
+ * Name of this asset.
3051
+ */
3052
+ name: string;
3053
+ /**
3054
+ * Symbol for this asset (max 4 characters).
3055
+ */
3056
+ symbol: string;
3057
+ /**
3058
+ * Denomination of this asset to represent fungibility.
3059
+ */
3060
+ denomination: number;
3061
+ /**
3062
+ * Type of asset like SECP256K1 or NFT.
3063
+ */
3064
+ type: string;
3065
+ /**
3066
+ * Amount of the asset.
3067
+ */
3068
+ amount: string;
3069
+ };
3070
+
3071
+ type UtxoCredential = {
3072
+ /**
3073
+ * Signature provided to consume the output
3074
+ */
3075
+ signature?: string;
3076
+ /**
3077
+ * Public key associated with the signature
3078
+ */
3079
+ publicKey?: string;
3080
+ };
3081
+
3082
+ type EVMInput = {
3083
+ /**
3084
+ * EVM address from which the asset is exported in ExportTx.
3085
+ */
3086
+ fromAddress: string;
3087
+ /**
3088
+ * Asset details for the asset being transferred.
3089
+ */
3090
+ asset: Asset;
3091
+ /**
3092
+ * Credentials that signed this transaction.
3093
+ */
3094
+ credentials: Array<UtxoCredential>;
3095
+ };
3096
+
3097
+ type Utxo = {
3098
+ /**
3099
+ * UTXO ID for this output.
3100
+ */
3101
+ utxoId: string;
3102
+ asset: Asset;
3103
+ /**
3104
+ * Type of output.
3105
+ */
3106
+ utxoType: string;
3107
+ /**
3108
+ * Blockchain ID on which this output is created on.
3109
+ */
3110
+ createdOnChainId: string;
3111
+ /**
3112
+ * Blockchain ID on which this output is consumed on.
3113
+ */
3114
+ consumedOnChainId: string;
3115
+ /**
3116
+ * Transaction ID that created this output.
3117
+ */
3118
+ creationTxHash: string;
3119
+ /**
3120
+ * Transaction ID that consumed this output.
3121
+ */
3122
+ consumingTxHash?: string;
3123
+ /**
3124
+ * Timestamp in seconds this output is consumed.
3125
+ */
3126
+ consumingTxTimestamp?: number;
3127
+ /**
3128
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3129
+ */
3130
+ outputIndex: string;
3131
+ /**
3132
+ * Timestamp in seconds this outptut is created on.
3133
+ */
3134
+ timestamp: number;
3135
+ /**
3136
+ * Locktime in seconds after which this output can be consumed.
3137
+ */
3138
+ locktime: number;
3139
+ /**
3140
+ * Minimum number of signatures required to consume this output.
3141
+ */
3142
+ threshold: number;
3143
+ /**
3144
+ * Addresses that are eligible to sign the consumption of this output.
3145
+ */
3146
+ addresses: Array<string>;
3147
+ /**
3148
+ * Hex encoded data for NFT assets
3149
+ */
3150
+ payload?: string;
3151
+ /**
3152
+ * Index representing the minting set for the NFT mint output
3153
+ */
3154
+ groupId?: number;
3155
+ /**
3156
+ * Credentials that signed the transaction to consume this utxo
3157
+ */
3158
+ credentials?: Array<UtxoCredential>;
3159
+ };
3160
+
3161
+ type CChainExportTransaction = {
3162
+ /**
3163
+ * Unique ID for this transaction.
3164
+ */
3165
+ txHash: string;
3166
+ /**
3167
+ * Height of the block this transaction belongs to.
3168
+ */
3169
+ blockHeight: number;
3170
+ /**
3171
+ * Hash of the block this transaction belongs to.
3172
+ */
3173
+ blockHash: string;
3174
+ /**
3175
+ * Latest timestamp in seconds this transaction was accepted.
3176
+ */
3177
+ timestamp: number;
3178
+ /**
3179
+ * Hex encoded memo bytes for this transaction.
3180
+ */
3181
+ memo: string;
3182
+ /**
3183
+ * Assets unlocked by inputs of this transaction.
3184
+ */
3185
+ amountUnlocked: Array<Asset>;
3186
+ /**
3187
+ * Assets created by outputs of this transaction.
3188
+ */
3189
+ amountCreated: Array<Asset>;
3190
+ /**
3191
+ * Source chain for an atomic transaction.
3192
+ */
3193
+ sourceChain: string;
3194
+ /**
3195
+ * Destination chain for an atomic transaction.
3196
+ */
3197
+ destinationChain: string;
3198
+ /**
3199
+ * Type of transaction.
3200
+ */
3201
+ txType: CChainExportTransaction.txType;
3202
+ evmInputs: Array<EVMInput>;
3203
+ emittedUtxos: Array<Utxo>;
3204
+ };
3205
+ declare namespace CChainExportTransaction {
3206
+ /**
3207
+ * Type of transaction.
3208
+ */
3209
+ enum txType {
3210
+ EXPORT_TX = "ExportTx"
3211
+ }
3212
+ }
3213
+
3214
+ type EVMOutput = {
3215
+ /**
3216
+ * EVM address to which the asset is imported in ImportTx
3217
+ */
3218
+ toAddress: string;
3219
+ /**
3220
+ * Asset details for the asset being transferred.
3221
+ */
3222
+ asset: Asset;
3223
+ };
3224
+
3225
+ type CChainImportTransaction = {
3226
+ /**
3227
+ * Unique ID for this transaction.
3228
+ */
3229
+ txHash: string;
3230
+ /**
3231
+ * Height of the block this transaction belongs to.
3232
+ */
3233
+ blockHeight: number;
3234
+ /**
3235
+ * Hash of the block this transaction belongs to.
3236
+ */
3237
+ blockHash: string;
3238
+ /**
3239
+ * Latest timestamp in seconds this transaction was accepted.
3240
+ */
3241
+ timestamp: number;
3242
+ /**
3243
+ * Hex encoded memo bytes for this transaction.
3244
+ */
3245
+ memo: string;
3246
+ /**
3247
+ * Assets unlocked by inputs of this transaction.
3248
+ */
3249
+ amountUnlocked: Array<Asset>;
3250
+ /**
3251
+ * Assets created by outputs of this transaction.
3252
+ */
3253
+ amountCreated: Array<Asset>;
3254
+ /**
3255
+ * Source chain for an atomic transaction.
3256
+ */
3257
+ sourceChain: string;
3258
+ /**
3259
+ * Destination chain for an atomic transaction.
3260
+ */
3261
+ destinationChain: string;
3262
+ /**
3263
+ * Type of transaction.
3264
+ */
3265
+ txType: CChainImportTransaction.txType;
3266
+ evmOutputs: Array<EVMOutput>;
3267
+ consumedUtxos: Array<Utxo>;
3268
+ };
3269
+ declare namespace CChainImportTransaction {
3270
+ /**
3271
+ * Type of transaction.
3272
+ */
3273
+ enum txType {
3274
+ IMPORT_TX = "ImportTx"
3275
+ }
3276
+ }
3277
+
3278
+ type ListCChainAtomicTransactionsResponse = {
3279
+ /**
3280
+ * 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.
3281
+ */
3282
+ nextPageToken?: string;
3283
+ transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
3284
+ chainInfo: PrimaryNetworkChainInfo;
3285
+ };
3286
+
3287
+ declare enum PChainTransactionType {
3288
+ ADD_VALIDATOR_TX = "AddValidatorTx",
3289
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3290
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3291
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3292
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3293
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3294
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3295
+ CREATE_CHAIN_TX = "CreateChainTx",
3296
+ CREATE_SUBNET_TX = "CreateSubnetTx",
3297
+ IMPORT_TX = "ImportTx",
3298
+ EXPORT_TX = "ExportTx",
3299
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
3300
+ UNKNOWN = "UNKNOWN"
3301
+ }
3302
+
3303
+ declare enum UtxoType {
3304
+ STAKE = "STAKE",
3305
+ TRANSFER = "TRANSFER"
3306
+ }
3307
+
3308
+ type PChainUtxo = {
3309
+ /**
3310
+ * An array of P-Chain wallet addresses.
3311
+ */
3312
+ addresses: Array<string>;
3313
+ utxoId: string;
3314
+ txHash: string;
3315
+ outputIndex: number;
3316
+ blockNumber: string;
3317
+ blockTimestamp: number;
3318
+ consumingTxHash?: string;
3319
+ consumingBlockTimestamp?: number;
3320
+ consumingBlockNumber?: string;
3321
+ assetId: string;
3322
+ utxoType: UtxoType;
3323
+ amount: string;
3324
+ stakeableLocktime?: number;
3325
+ platformLocktime?: number;
3326
+ threshold?: number;
3327
+ createdOnChainId: string;
3328
+ consumedOnChainId: string;
3329
+ staked?: boolean;
3330
+ utxoStartTimestamp?: number;
3331
+ utxoEndTimestamp?: number;
3332
+ rewardType?: RewardType;
3333
+ };
3334
+
3335
+ type PChainTransaction = {
3336
+ /**
3337
+ * A P-Chain transaction hash.
3338
+ */
3339
+ txHash: string;
3340
+ txType: PChainTransactionType;
3341
+ /**
3342
+ * The block finality timestamp.
3343
+ */
3344
+ blockTimestamp: number;
3345
+ blockNumber: string;
3346
+ blockHash: string;
3347
+ consumedUtxos: Array<PChainUtxo>;
3348
+ emittedUtxos: Array<PChainUtxo>;
3349
+ /**
3350
+ * Source chain for an atomic transaction.
3351
+ */
3352
+ sourceChain?: string;
3353
+ /**
3354
+ * Destination chain for an atomic transaction.
3355
+ */
3356
+ destinationChain?: string;
3357
+ /**
3358
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3359
+ */
3360
+ value: Array<PChainAsset>;
3361
+ /**
3362
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3363
+ */
3364
+ amountBurned: Array<PChainAsset>;
3365
+ /**
3366
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3367
+ */
3368
+ amountStaked: Array<PChainAsset>;
3369
+ /**
3370
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3371
+ */
3372
+ startTimestamp?: number;
3373
+ /**
3374
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3375
+ */
3376
+ endTimestamp?: number;
3377
+ /**
3378
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx
3379
+ */
3380
+ delegationFeePercent?: string;
3381
+ /**
3382
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3383
+ */
3384
+ nodeId?: string;
3385
+ /**
3386
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
3387
+ */
3388
+ subnetId?: string;
3389
+ /**
3390
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3391
+ */
3392
+ estimatedReward?: string;
3393
+ rewardTxHash?: string;
3394
+ rewardAddresses?: Array<string>;
3395
+ memo?: string;
3396
+ /**
3397
+ * Present for RewardValidatorTx
3398
+ */
3399
+ stakingTxHash?: string;
3400
+ };
3401
+
3402
+ type ListPChainTransactionsResponse = {
3403
+ /**
3404
+ * 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.
3405
+ */
3406
+ nextPageToken?: string;
3407
+ transactions: Array<PChainTransaction>;
3408
+ chainInfo: PrimaryNetworkChainInfo;
3409
+ };
3410
+
3411
+ type XChainLinearTransaction = {
3412
+ /**
3413
+ * Unique ID for this transaction.
3414
+ */
3415
+ txHash: string;
3416
+ /**
3417
+ * Represents chain format this transaction is included in.
3418
+ */
3419
+ chainFormat: XChainLinearTransaction.chainFormat;
3420
+ /**
3421
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3422
+ */
3423
+ timestamp: number;
3424
+ /**
3425
+ * Type of transaction.
3426
+ */
3427
+ txType: string;
3428
+ /**
3429
+ * Hex encoded memo bytes for this transaction.
3430
+ */
3431
+ memo: string;
3432
+ consumedUtxos: Array<Utxo>;
3433
+ emittedUtxos: Array<Utxo>;
3434
+ /**
3435
+ * Assets unlocked by inputs of this transaction.
3436
+ */
3437
+ amountUnlocked: Array<Asset>;
3438
+ /**
3439
+ * Assets created by outputs of this transaction.
3440
+ */
3441
+ amountCreated: Array<Asset>;
3442
+ /**
3443
+ * Source chain for an atomic transaction.
3444
+ */
3445
+ sourceChain?: string;
3446
+ /**
3447
+ * Destination chain for an atomic transaction.
3448
+ */
3449
+ destinationChain?: string;
3450
+ /**
3451
+ * Asset details of the asset created in CreateAssetTx
3452
+ */
3453
+ assetCreated?: XChainAssetDetails;
3454
+ /**
3455
+ * Height of the block this transaction belongs to.
3456
+ */
3457
+ blockHeight: number;
3458
+ /**
3459
+ * Hash of the block this transaction belongs to.
3460
+ */
3461
+ blockHash: string;
3462
+ };
3463
+ declare namespace XChainLinearTransaction {
3464
+ /**
3465
+ * Represents chain format this transaction is included in.
3466
+ */
3467
+ enum chainFormat {
3468
+ NON_LINEAR = "non-linear",
3469
+ LINEAR = "linear"
3470
+ }
3471
+ }
3472
+
3473
+ type TransactionVertexDetail = {
3474
+ /**
3475
+ * Vertex ID of the vertex this transaction belongs to.
3476
+ */
3477
+ hash: string;
3478
+ /**
3479
+ * Vertex height of the vertex this transaction belongs to.
3480
+ */
3481
+ height: number;
3482
+ /**
3483
+ * Timestamp in seconds this vertex was accepted.
3484
+ */
3485
+ timestamp: number;
3486
+ };
3487
+
3488
+ type XChainNonLinearTransaction = {
3489
+ /**
3490
+ * Unique ID for this transaction.
3491
+ */
3492
+ txHash: string;
3493
+ /**
3494
+ * Represents chain format this transaction is included in.
3495
+ */
3496
+ chainFormat: XChainNonLinearTransaction.chainFormat;
3497
+ /**
3498
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3499
+ */
3500
+ timestamp: number;
3501
+ /**
3502
+ * Type of transaction.
3503
+ */
3504
+ txType: string;
3505
+ /**
3506
+ * Hex encoded memo bytes for this transaction.
3507
+ */
3508
+ memo: string;
3509
+ consumedUtxos: Array<Utxo>;
3510
+ emittedUtxos: Array<Utxo>;
3511
+ /**
3512
+ * Assets unlocked by inputs of this transaction.
3513
+ */
3514
+ amountUnlocked: Array<Asset>;
3515
+ /**
3516
+ * Assets created by outputs of this transaction.
3517
+ */
3518
+ amountCreated: Array<Asset>;
3519
+ /**
3520
+ * Source chain for an atomic transaction.
3521
+ */
3522
+ sourceChain?: string;
3523
+ /**
3524
+ * Destination chain for an atomic transaction.
3525
+ */
3526
+ destinationChain?: string;
3527
+ /**
3528
+ * Asset details of the asset created in CreateAssetTx
3529
+ */
3530
+ assetCreated?: XChainAssetDetails;
3531
+ /**
3532
+ * A transaction on X-Chain can be accepted over multiple vertices.
3533
+ */
3534
+ vertices: Array<TransactionVertexDetail>;
3535
+ };
3536
+ declare namespace XChainNonLinearTransaction {
3537
+ /**
3538
+ * Represents chain format this transaction is included in.
3539
+ */
3540
+ enum chainFormat {
3541
+ NON_LINEAR = "non-linear",
3542
+ LINEAR = "linear"
3543
+ }
3544
+ }
3545
+
3546
+ type ListXChainTransactionsResponse = {
3547
+ /**
3548
+ * 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.
3549
+ */
3550
+ nextPageToken?: string;
3551
+ transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
3552
+ chainInfo: PrimaryNetworkChainInfo;
3553
+ };
3554
+
3555
+ declare enum PChainId {
3556
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3557
+ P_CHAIN = "p-chain"
3558
+ }
3559
+
3560
+ declare enum PrimaryNetworkTxType {
3561
+ ADD_VALIDATOR_TX = "AddValidatorTx",
3562
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3563
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3564
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3565
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3566
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3567
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3568
+ CREATE_CHAIN_TX = "CreateChainTx",
3569
+ CREATE_SUBNET_TX = "CreateSubnetTx",
3570
+ IMPORT_TX = "ImportTx",
3571
+ EXPORT_TX = "ExportTx",
3572
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
3573
+ UNKNOWN = "UNKNOWN",
3574
+ BASE_TX = "BaseTx",
3575
+ CREATE_ASSET_TX = "CreateAssetTx",
3576
+ OPERATION_TX = "OperationTx"
3577
+ }
3578
+
3579
+ declare class PrimaryNetworkTransactionsService {
3580
+ readonly httpRequest: BaseHttpRequest;
3581
+ constructor(httpRequest: BaseHttpRequest);
3582
+ /**
3583
+ * Get transaction
3584
+ * Gets the details of a single transaction on one of the Primary Network chains.
3585
+ * @returns any
3586
+ * @throws ApiError
3587
+ */
3588
+ getTxByHash({ blockchainId, network, txHash, }: {
3589
+ /**
3590
+ * A primary network blockchain id or alias.
3591
+ */
3592
+ blockchainId: BlockchainId;
3593
+ /**
3594
+ * Either mainnet or a testnet.
3595
+ */
3596
+ network: Network;
3597
+ /**
3598
+ * A primary network (P or X chain) transaction hash.
3599
+ */
3600
+ txHash: string;
3601
+ }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3602
+ /**
3603
+ * List latest transactions
3604
+ * Lists the latest transactions on one of the Primary Network chains.
3605
+ *
3606
+ * Transactions are filterable by addresses.
3607
+ *
3608
+ * 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.
3609
+ * @returns any
3610
+ * @throws ApiError
3611
+ */
3612
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3613
+ /**
3614
+ * A primary network blockchain id or alias.
3615
+ */
3616
+ blockchainId: BlockchainId;
3617
+ /**
3618
+ * Either mainnet or a testnet.
3619
+ */
3620
+ network: Network;
3621
+ /**
3622
+ * 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".
3623
+ */
3624
+ addresses?: string;
3625
+ /**
3626
+ * Query param for filtering items based on transaction types.
3627
+ */
3628
+ txTypes?: Array<PrimaryNetworkTxType>;
3629
+ /**
3630
+ * Query param for retrieving items after a specific timestamp.
3631
+ */
3632
+ startTimestamp?: number;
3633
+ /**
3634
+ * Query param for retrieving items before a specific timestamp.
3635
+ */
3636
+ endTimestamp?: number;
3637
+ /**
3638
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3639
+ */
3640
+ pageSize?: number;
3641
+ /**
3642
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3643
+ */
3644
+ pageToken?: string;
3645
+ /**
3646
+ * 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.
3647
+ */
3648
+ sortOrder?: SortOrder;
3649
+ }): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
3650
+ /**
3651
+ * List staking transactions
3652
+ * Lists active staking transactions on the P-Chain for the supplied addresses.
3653
+ * @returns ListPChainTransactionsResponse
3654
+ * @throws ApiError
3655
+ */
3656
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3657
+ /**
3658
+ * A primary network blockchain id or alias.
3659
+ */
3660
+ blockchainId: PChainId;
3661
+ /**
3662
+ * Either mainnet or a testnet.
3663
+ */
3664
+ network: Network;
3665
+ /**
3666
+ * 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".
3667
+ */
3668
+ addresses?: string;
3669
+ /**
3670
+ * Query param for filtering items based on transaction types.
3671
+ */
3672
+ txTypes?: Array<PrimaryNetworkTxType>;
3673
+ /**
3674
+ * Query param for retrieving items after a specific timestamp.
3675
+ */
3676
+ startTimestamp?: number;
3677
+ /**
3678
+ * Query param for retrieving items before a specific timestamp.
3679
+ */
3680
+ endTimestamp?: number;
3681
+ /**
3682
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3683
+ */
3684
+ pageSize?: number;
3685
+ /**
3686
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3687
+ */
3688
+ pageToken?: string;
3689
+ /**
3690
+ * 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.
3691
+ */
3692
+ sortOrder?: SortOrder;
3693
+ }): CancelablePromise<ListPChainTransactionsResponse>;
3694
+ /**
3695
+ * List asset transactions
3696
+ * Lists asset transactions corresponding to the given asset id on the X-Chain.
3697
+ * @returns ListXChainTransactionsResponse
3698
+ * @throws ApiError
3699
+ */
3700
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3701
+ /**
3702
+ * A primary network blockchain id or alias.
3703
+ */
3704
+ blockchainId: XChainId;
3705
+ /**
3706
+ * Either mainnet or a testnet.
3707
+ */
3708
+ network: Network;
3709
+ /**
3710
+ * Asset ID for any asset on X-Chain
3711
+ */
3712
+ assetId: string;
3713
+ /**
3714
+ * Query param for filtering items based on transaction types.
3715
+ */
3716
+ txTypes?: Array<PrimaryNetworkTxType>;
3717
+ /**
3718
+ * Query param for retrieving items after a specific timestamp.
3719
+ */
3720
+ startTimestamp?: number;
3721
+ /**
3722
+ * Query param for retrieving items before a specific timestamp.
3723
+ */
3724
+ endTimestamp?: number;
3725
+ /**
3726
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3727
+ */
3728
+ pageSize?: number;
3729
+ /**
3730
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3731
+ */
3732
+ pageToken?: string;
3733
+ }): CancelablePromise<ListXChainTransactionsResponse>;
3734
+ }
3735
+
3736
+ type ListPChainUtxosResponse = {
3737
+ /**
3738
+ * 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.
3739
+ */
3740
+ nextPageToken?: string;
3741
+ utxos: Array<PChainUtxo>;
3742
+ chainInfo: PrimaryNetworkChainInfo;
3743
+ };
3744
+
3745
+ type ListUtxosResponse = {
3746
+ /**
3747
+ * 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.
3748
+ */
3749
+ nextPageToken?: string;
3750
+ utxos: Array<Utxo>;
3751
+ chainInfo: PrimaryNetworkChainInfo;
3752
+ };
3753
+
3754
+ declare class PrimaryNetworkUtxOsService {
3755
+ readonly httpRequest: BaseHttpRequest;
3756
+ constructor(httpRequest: BaseHttpRequest);
3757
+ /**
3758
+ * List UTXOs
3759
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
3760
+ * @returns any
3761
+ * @throws ApiError
3762
+ */
3763
+ getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3764
+ /**
3765
+ * A primary network blockchain id or alias.
3766
+ */
3767
+ blockchainId: BlockchainId;
3768
+ /**
3769
+ * Either mainnet or a testnet.
3770
+ */
3771
+ network: Network;
3772
+ /**
3773
+ * 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".
3774
+ */
3775
+ addresses?: string;
3776
+ /**
3777
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3778
+ */
3779
+ pageSize?: number;
3780
+ /**
3781
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3782
+ */
3783
+ pageToken?: string;
3784
+ /**
3785
+ * Asset ID for any asset (only applicable X-Chain)
3786
+ */
3787
+ assetId?: string;
3788
+ /**
3789
+ * Boolean filter to include spent UTXOs.
3790
+ */
3791
+ includeSpent?: boolean;
3792
+ /**
3793
+ * 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.
3794
+ */
3795
+ sortOrder?: SortOrder;
3796
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
3797
+ }
3798
+
3799
+ type XChainVertex = {
3800
+ vertexHash: string;
3801
+ parentHashes: Array<string>;
3802
+ vertexHeight: number;
3803
+ vertexIndex: number;
3804
+ vertexTimestamp: number;
3805
+ txCount: number;
3806
+ transactions: Array<string>;
3807
+ vertexSizeBytes: number;
3808
+ };
3809
+
3810
+ type ListXChainVerticesResponse = {
3811
+ /**
3812
+ * 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.
3813
+ */
3814
+ nextPageToken?: string;
3815
+ vertices: Array<XChainVertex>;
3816
+ chainInfo: PrimaryNetworkChainInfo;
3817
+ };
3818
+
3819
+ declare class PrimaryNetworkVerticesService {
3820
+ readonly httpRequest: BaseHttpRequest;
3821
+ constructor(httpRequest: BaseHttpRequest);
3822
+ /**
3823
+ * List vertices
3824
+ * Lists latest vertices on the X-Chain.
3825
+ * @returns ListXChainVerticesResponse
3826
+ * @throws ApiError
3827
+ */
3828
+ listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
3829
+ /**
3830
+ * A primary network blockchain id or alias.
3831
+ */
3832
+ blockchainId: XChainId;
3833
+ /**
3834
+ * Either mainnet or a testnet.
3835
+ */
3836
+ network: Network;
3837
+ /**
3838
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3839
+ */
3840
+ pageSize?: number;
3841
+ /**
3842
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3843
+ */
3844
+ pageToken?: string;
3845
+ }): CancelablePromise<ListXChainVerticesResponse>;
3846
+ /**
3847
+ * Get vertex
3848
+ * Gets a single vertex on the X-Chain.
3849
+ * @returns XChainVertex
3850
+ * @throws ApiError
3851
+ */
3852
+ getVertexByHash({ vertexHash, blockchainId, network, }: {
3853
+ /**
3854
+ * A vertex hash string.
3855
+ */
3856
+ vertexHash: string;
3857
+ /**
3858
+ * A primary network blockchain id or alias.
3859
+ */
3860
+ blockchainId: XChainId;
3861
+ /**
3862
+ * Either mainnet or a testnet.
3863
+ */
3864
+ network: Network;
3865
+ }): CancelablePromise<XChainVertex>;
3866
+ /**
3867
+ * List vertices by height
3868
+ * Lists vertices at the given vertex height on the X-Chain.
3869
+ * @returns ListXChainVerticesResponse
3870
+ * @throws ApiError
3871
+ */
3872
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
3873
+ /**
3874
+ * The height of a vertex.
3875
+ */
3876
+ vertexHeight: number;
3877
+ /**
3878
+ * A primary network blockchain id or alias.
3879
+ */
3880
+ blockchainId: XChainId;
3881
+ /**
3882
+ * Either mainnet or a testnet.
3883
+ */
3884
+ network: Network;
3885
+ /**
3886
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3887
+ */
3888
+ pageSize?: number;
3889
+ /**
3890
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3891
+ */
3892
+ pageToken?: string;
3893
+ /**
3894
+ * 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.
3895
+ */
3896
+ sortOrder?: SortOrder;
3897
+ }): CancelablePromise<ListXChainVerticesResponse>;
3898
+ }
3899
+
3900
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3901
+ declare class Glacier {
3902
+ readonly default: DefaultService;
3903
+ readonly evmBalances: EvmBalancesService;
3904
+ readonly evmBlocks: EvmBlocksService;
3905
+ readonly evmChains: EvmChainsService;
3906
+ readonly evmContracts: EvmContractsService;
3907
+ readonly evmTransactions: EvmTransactionsService;
3908
+ readonly healthCheck: HealthCheckService;
3909
+ readonly nfTs: NfTsService;
3910
+ readonly operations: OperationsService;
3911
+ readonly primaryNetwork: PrimaryNetworkService;
3912
+ readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
3913
+ readonly primaryNetworkBlocks: PrimaryNetworkBlocksService;
3914
+ readonly primaryNetworkRewards: PrimaryNetworkRewardsService;
3915
+ readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3916
+ readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3917
+ readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
3918
+ readonly request: BaseHttpRequest;
3919
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3920
+ }
3921
+
3922
+ type ApiResult = {
3923
+ readonly url: string;
3924
+ readonly ok: boolean;
3925
+ readonly status: number;
3926
+ readonly statusText: string;
3927
+ readonly body: any;
3928
+ };
3929
+
3930
+ declare class ApiError extends Error {
3931
+ readonly url: string;
3932
+ readonly status: number;
3933
+ readonly statusText: string;
3934
+ readonly body: any;
3935
+ readonly request: ApiRequestOptions;
3936
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3937
+ }
3938
+
3939
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, 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, 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, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };