@nktkas/hyperliquid 0.25.0-beta.4 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1615) hide show
  1. package/README.md +511 -432
  2. package/esm/bin/_utils.d.ts.map +1 -1
  3. package/esm/bin/_utils.js +2 -6
  4. package/esm/bin/_utils.js.map +1 -1
  5. package/esm/bin/cli.js +20 -64
  6. package/esm/bin/cli.js.map +1 -1
  7. package/esm/src/_base.d.ts +5 -0
  8. package/esm/src/_base.d.ts.map +1 -0
  9. package/esm/src/_base.js +8 -0
  10. package/esm/src/_base.js.map +1 -0
  11. package/esm/src/api/_common.d.ts +50 -0
  12. package/esm/src/api/_common.d.ts.map +1 -0
  13. package/esm/src/api/_common.js +62 -0
  14. package/esm/src/api/_common.js.map +1 -0
  15. package/esm/src/api/exchange/_common.d.ts +163 -0
  16. package/esm/src/api/exchange/_common.d.ts.map +1 -0
  17. package/esm/src/api/exchange/_common.js +236 -0
  18. package/esm/src/api/exchange/_common.js.map +1 -0
  19. package/esm/src/api/exchange/approveAgent.d.ts +104 -0
  20. package/esm/src/api/exchange/approveAgent.d.ts.map +1 -0
  21. package/esm/src/api/exchange/approveAgent.js +79 -0
  22. package/esm/src/api/exchange/approveAgent.js.map +1 -0
  23. package/esm/src/api/exchange/approveBuilderFee.d.ts +104 -0
  24. package/esm/src/api/exchange/approveBuilderFee.d.ts.map +1 -0
  25. package/esm/src/api/exchange/approveBuilderFee.js +79 -0
  26. package/esm/src/api/exchange/approveBuilderFee.js.map +1 -0
  27. package/esm/src/api/exchange/batchModify.d.ts +241 -0
  28. package/esm/src/api/exchange/batchModify.d.ts.map +1 -0
  29. package/esm/src/api/exchange/batchModify.js +141 -0
  30. package/esm/src/api/exchange/batchModify.js.map +1 -0
  31. package/esm/src/api/exchange/cDeposit.d.ts +100 -0
  32. package/esm/src/api/exchange/cDeposit.d.ts.map +1 -0
  33. package/esm/src/api/exchange/cDeposit.js +76 -0
  34. package/esm/src/api/exchange/cDeposit.js.map +1 -0
  35. package/esm/src/api/exchange/cSignerAction.d.ts +102 -0
  36. package/esm/src/api/exchange/cSignerAction.d.ts.map +1 -0
  37. package/esm/src/api/exchange/cSignerAction.js +79 -0
  38. package/esm/src/api/exchange/cSignerAction.js.map +1 -0
  39. package/esm/src/api/exchange/cValidatorAction.d.ts +265 -0
  40. package/esm/src/api/exchange/cValidatorAction.d.ts.map +1 -0
  41. package/esm/src/api/exchange/cValidatorAction.js +158 -0
  42. package/esm/src/api/exchange/cValidatorAction.js.map +1 -0
  43. package/esm/src/api/exchange/cWithdraw.d.ts +100 -0
  44. package/esm/src/api/exchange/cWithdraw.d.ts.map +1 -0
  45. package/esm/src/api/exchange/cWithdraw.js +76 -0
  46. package/esm/src/api/exchange/cWithdraw.js.map +1 -0
  47. package/esm/src/api/exchange/cancel.d.ts +176 -0
  48. package/esm/src/api/exchange/cancel.d.ts.map +1 -0
  49. package/esm/src/api/exchange/cancel.js +114 -0
  50. package/esm/src/api/exchange/cancel.js.map +1 -0
  51. package/esm/src/api/exchange/cancelByCloid.d.ts +105 -0
  52. package/esm/src/api/exchange/cancelByCloid.d.ts.map +1 -0
  53. package/esm/src/api/exchange/cancelByCloid.js +76 -0
  54. package/esm/src/api/exchange/cancelByCloid.js.map +1 -0
  55. package/esm/src/api/exchange/claimRewards.d.ts +72 -0
  56. package/esm/src/api/exchange/claimRewards.d.ts.map +1 -0
  57. package/esm/src/api/exchange/claimRewards.js +56 -0
  58. package/esm/src/api/exchange/claimRewards.js.map +1 -0
  59. package/esm/src/api/exchange/convertToMultiSigUser.d.ts +149 -0
  60. package/esm/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -0
  61. package/esm/src/api/exchange/convertToMultiSigUser.js +109 -0
  62. package/esm/src/api/exchange/convertToMultiSigUser.js.map +1 -0
  63. package/esm/src/api/exchange/createSubAccount.d.ts +104 -0
  64. package/esm/src/api/exchange/createSubAccount.d.ts.map +1 -0
  65. package/esm/src/api/exchange/createSubAccount.js +76 -0
  66. package/esm/src/api/exchange/createSubAccount.js.map +1 -0
  67. package/esm/src/api/exchange/createVault.d.ts +120 -0
  68. package/esm/src/api/exchange/createVault.d.ts.map +1 -0
  69. package/esm/src/api/exchange/createVault.js +88 -0
  70. package/esm/src/api/exchange/createVault.js.map +1 -0
  71. package/esm/src/api/exchange/evmUserModify.d.ts +84 -0
  72. package/esm/src/api/exchange/evmUserModify.d.ts.map +1 -0
  73. package/esm/src/api/exchange/evmUserModify.js +64 -0
  74. package/esm/src/api/exchange/evmUserModify.js.map +1 -0
  75. package/esm/src/api/exchange/modify.d.ts +210 -0
  76. package/esm/src/api/exchange/modify.d.ts.map +1 -0
  77. package/esm/src/api/exchange/modify.js +135 -0
  78. package/esm/src/api/exchange/modify.js.map +1 -0
  79. package/esm/src/api/exchange/multiSig.d.ts +2711 -0
  80. package/esm/src/api/exchange/multiSig.d.ts.map +1 -0
  81. package/esm/src/api/exchange/multiSig.js +215 -0
  82. package/esm/src/api/exchange/multiSig.js.map +1 -0
  83. package/esm/src/api/exchange/noop.d.ts +74 -0
  84. package/esm/src/api/exchange/noop.d.ts.map +1 -0
  85. package/esm/src/api/exchange/noop.js +58 -0
  86. package/esm/src/api/exchange/noop.js.map +1 -0
  87. package/esm/src/api/exchange/order.d.ts +476 -0
  88. package/esm/src/api/exchange/order.d.ts.map +1 -0
  89. package/esm/src/api/exchange/order.js +233 -0
  90. package/esm/src/api/exchange/order.js.map +1 -0
  91. package/esm/src/api/exchange/perpDeploy.d.ts +240 -0
  92. package/esm/src/api/exchange/perpDeploy.d.ts.map +1 -0
  93. package/esm/src/api/exchange/perpDeploy.js +121 -0
  94. package/esm/src/api/exchange/perpDeploy.js.map +1 -0
  95. package/esm/src/api/exchange/registerReferrer.d.ts +84 -0
  96. package/esm/src/api/exchange/registerReferrer.d.ts.map +1 -0
  97. package/esm/src/api/exchange/registerReferrer.js +64 -0
  98. package/esm/src/api/exchange/registerReferrer.js.map +1 -0
  99. package/esm/src/api/exchange/reserveRequestWeight.d.ts +84 -0
  100. package/esm/src/api/exchange/reserveRequestWeight.d.ts.map +1 -0
  101. package/esm/src/api/exchange/reserveRequestWeight.js +64 -0
  102. package/esm/src/api/exchange/reserveRequestWeight.js.map +1 -0
  103. package/esm/src/api/exchange/scheduleCancel.d.ts +93 -0
  104. package/esm/src/api/exchange/scheduleCancel.d.ts.map +1 -0
  105. package/esm/src/api/exchange/scheduleCancel.js +51 -0
  106. package/esm/src/api/exchange/scheduleCancel.js.map +1 -0
  107. package/esm/src/api/exchange/sendAsset.d.ts +126 -0
  108. package/esm/src/api/exchange/sendAsset.d.ts.map +1 -0
  109. package/esm/src/api/exchange/sendAsset.js +97 -0
  110. package/esm/src/api/exchange/sendAsset.js.map +1 -0
  111. package/esm/src/api/exchange/setDisplayName.d.ts +88 -0
  112. package/esm/src/api/exchange/setDisplayName.d.ts.map +1 -0
  113. package/esm/src/api/exchange/setDisplayName.js +69 -0
  114. package/esm/src/api/exchange/setDisplayName.js.map +1 -0
  115. package/esm/src/api/exchange/setReferrer.d.ts +84 -0
  116. package/esm/src/api/exchange/setReferrer.d.ts.map +1 -0
  117. package/esm/src/api/exchange/setReferrer.js +64 -0
  118. package/esm/src/api/exchange/setReferrer.js.map +1 -0
  119. package/esm/src/api/exchange/spotDeploy.d.ts +332 -0
  120. package/esm/src/api/exchange/spotDeploy.d.ts.map +1 -0
  121. package/esm/src/api/exchange/spotDeploy.js +167 -0
  122. package/esm/src/api/exchange/spotDeploy.js.map +1 -0
  123. package/esm/src/api/exchange/spotSend.d.ts +112 -0
  124. package/esm/src/api/exchange/spotSend.d.ts.map +1 -0
  125. package/esm/src/api/exchange/spotSend.js +86 -0
  126. package/esm/src/api/exchange/spotSend.js.map +1 -0
  127. package/esm/src/api/exchange/spotUser.d.ts +93 -0
  128. package/esm/src/api/exchange/spotUser.d.ts.map +1 -0
  129. package/esm/src/api/exchange/spotUser.js +67 -0
  130. package/esm/src/api/exchange/spotUser.js.map +1 -0
  131. package/esm/src/api/exchange/subAccountModify.d.ts +88 -0
  132. package/esm/src/api/exchange/subAccountModify.d.ts.map +1 -0
  133. package/esm/src/api/exchange/subAccountModify.js +66 -0
  134. package/esm/src/api/exchange/subAccountModify.js.map +1 -0
  135. package/esm/src/api/exchange/subAccountSpotTransfer.d.ts +101 -0
  136. package/esm/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -0
  137. package/esm/src/api/exchange/subAccountSpotTransfer.js +75 -0
  138. package/esm/src/api/exchange/subAccountSpotTransfer.js.map +1 -0
  139. package/esm/src/api/exchange/subAccountTransfer.d.ts +92 -0
  140. package/esm/src/api/exchange/subAccountTransfer.d.ts.map +1 -0
  141. package/esm/src/api/exchange/subAccountTransfer.js +68 -0
  142. package/esm/src/api/exchange/subAccountTransfer.js.map +1 -0
  143. package/esm/src/api/exchange/tokenDelegate.d.ts +108 -0
  144. package/esm/src/api/exchange/tokenDelegate.d.ts.map +1 -0
  145. package/esm/src/api/exchange/tokenDelegate.js +82 -0
  146. package/esm/src/api/exchange/tokenDelegate.js.map +1 -0
  147. package/esm/src/api/exchange/twapCancel.d.ts +162 -0
  148. package/esm/src/api/exchange/twapCancel.d.ts.map +1 -0
  149. package/esm/src/api/exchange/twapCancel.js +107 -0
  150. package/esm/src/api/exchange/twapCancel.js.map +1 -0
  151. package/esm/src/api/exchange/twapOrder.d.ts +249 -0
  152. package/esm/src/api/exchange/twapOrder.d.ts.map +1 -0
  153. package/esm/src/api/exchange/twapOrder.js +139 -0
  154. package/esm/src/api/exchange/twapOrder.js.map +1 -0
  155. package/esm/src/api/exchange/updateIsolatedMargin.d.ts +95 -0
  156. package/esm/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -0
  157. package/esm/src/api/exchange/updateIsolatedMargin.js +71 -0
  158. package/esm/src/api/exchange/updateIsolatedMargin.js.map +1 -0
  159. package/esm/src/api/exchange/updateLeverage.d.ts +95 -0
  160. package/esm/src/api/exchange/updateLeverage.d.ts.map +1 -0
  161. package/esm/src/api/exchange/updateLeverage.js +71 -0
  162. package/esm/src/api/exchange/updateLeverage.js.map +1 -0
  163. package/esm/src/api/exchange/usdClassTransfer.d.ts +104 -0
  164. package/esm/src/api/exchange/usdClassTransfer.d.ts.map +1 -0
  165. package/esm/src/api/exchange/usdClassTransfer.js +79 -0
  166. package/esm/src/api/exchange/usdClassTransfer.js.map +1 -0
  167. package/esm/src/api/exchange/usdSend.d.ts +104 -0
  168. package/esm/src/api/exchange/usdSend.d.ts.map +1 -0
  169. package/esm/src/api/exchange/usdSend.js +79 -0
  170. package/esm/src/api/exchange/usdSend.js.map +1 -0
  171. package/esm/src/api/exchange/vaultDistribute.d.ts +92 -0
  172. package/esm/src/api/exchange/vaultDistribute.d.ts.map +1 -0
  173. package/esm/src/api/exchange/vaultDistribute.js +71 -0
  174. package/esm/src/api/exchange/vaultDistribute.js.map +1 -0
  175. package/esm/src/api/exchange/vaultModify.d.ts +96 -0
  176. package/esm/src/api/exchange/vaultModify.d.ts.map +1 -0
  177. package/esm/src/api/exchange/vaultModify.js +72 -0
  178. package/esm/src/api/exchange/vaultModify.js.map +1 -0
  179. package/esm/src/api/exchange/vaultTransfer.d.ts +92 -0
  180. package/esm/src/api/exchange/vaultTransfer.d.ts.map +1 -0
  181. package/esm/src/api/exchange/vaultTransfer.js +68 -0
  182. package/esm/src/api/exchange/vaultTransfer.js.map +1 -0
  183. package/esm/src/api/exchange/withdraw3.d.ts +104 -0
  184. package/esm/src/api/exchange/withdraw3.d.ts.map +1 -0
  185. package/esm/src/api/exchange/withdraw3.js +79 -0
  186. package/esm/src/api/exchange/withdraw3.js.map +1 -0
  187. package/esm/src/api/exchange/~client.d.ts +1623 -0
  188. package/esm/src/api/exchange/~client.d.ts.map +1 -0
  189. package/esm/src/api/exchange/~client.js +1360 -0
  190. package/esm/src/api/exchange/~client.js.map +1 -0
  191. package/esm/src/api/exchange/~mod.d.ts +45 -0
  192. package/esm/src/api/exchange/~mod.d.ts.map +1 -0
  193. package/esm/src/api/exchange/~mod.js +44 -0
  194. package/esm/src/api/exchange/~mod.js.map +1 -0
  195. package/esm/src/api/info/_common.d.ts +7 -0
  196. package/esm/src/api/info/_common.d.ts.map +1 -0
  197. package/esm/src/api/info/_common.js +2 -0
  198. package/esm/src/api/info/_common.js.map +1 -0
  199. package/esm/src/api/info/activeAssetData.d.ts +98 -0
  200. package/esm/src/api/info/activeAssetData.d.ts.map +1 -0
  201. package/esm/src/api/info/activeAssetData.js +82 -0
  202. package/esm/src/api/info/activeAssetData.js.map +1 -0
  203. package/esm/src/api/info/allMids.d.ts +49 -0
  204. package/esm/src/api/info/allMids.d.ts.map +1 -0
  205. package/esm/src/api/info/allMids.js +32 -0
  206. package/esm/src/api/info/allMids.js.map +1 -0
  207. package/esm/src/api/info/blockDetails.d.ts +151 -0
  208. package/esm/src/api/info/blockDetails.d.ts.map +1 -0
  209. package/esm/src/api/info/blockDetails.js +88 -0
  210. package/esm/src/api/info/blockDetails.js.map +1 -0
  211. package/esm/src/api/info/candleSnapshot.d.ts +111 -0
  212. package/esm/src/api/info/candleSnapshot.d.ts.map +1 -0
  213. package/esm/src/api/info/candleSnapshot.js +114 -0
  214. package/esm/src/api/info/candleSnapshot.js.map +1 -0
  215. package/esm/src/api/info/clearinghouseState.d.ts +269 -0
  216. package/esm/src/api/info/clearinghouseState.d.ts.map +1 -0
  217. package/esm/src/api/info/clearinghouseState.js +137 -0
  218. package/esm/src/api/info/clearinghouseState.js.map +1 -0
  219. package/esm/src/api/info/delegations.d.ts +64 -0
  220. package/esm/src/api/info/delegations.d.ts.map +1 -0
  221. package/esm/src/api/info/delegations.js +61 -0
  222. package/esm/src/api/info/delegations.js.map +1 -0
  223. package/esm/src/api/info/delegatorHistory.d.ts +142 -0
  224. package/esm/src/api/info/delegatorHistory.d.ts.map +1 -0
  225. package/esm/src/api/info/delegatorHistory.js +89 -0
  226. package/esm/src/api/info/delegatorHistory.js.map +1 -0
  227. package/esm/src/api/info/delegatorRewards.d.ts +64 -0
  228. package/esm/src/api/info/delegatorRewards.d.ts.map +1 -0
  229. package/esm/src/api/info/delegatorRewards.js +61 -0
  230. package/esm/src/api/info/delegatorRewards.js.map +1 -0
  231. package/esm/src/api/info/delegatorSummary.d.ts +63 -0
  232. package/esm/src/api/info/delegatorSummary.d.ts.map +1 -0
  233. package/esm/src/api/info/delegatorSummary.js +61 -0
  234. package/esm/src/api/info/delegatorSummary.js.map +1 -0
  235. package/esm/src/api/info/exchangeStatus.d.ts +46 -0
  236. package/esm/src/api/info/exchangeStatus.d.ts.map +1 -0
  237. package/esm/src/api/info/exchangeStatus.js +50 -0
  238. package/esm/src/api/info/exchangeStatus.js.map +1 -0
  239. package/esm/src/api/info/extraAgents.d.ts +64 -0
  240. package/esm/src/api/info/extraAgents.d.ts.map +1 -0
  241. package/esm/src/api/info/extraAgents.js +61 -0
  242. package/esm/src/api/info/extraAgents.js.map +1 -0
  243. package/esm/src/api/info/frontendOpenOrders.d.ts +135 -0
  244. package/esm/src/api/info/frontendOpenOrders.d.ts.map +1 -0
  245. package/esm/src/api/info/frontendOpenOrders.js +134 -0
  246. package/esm/src/api/info/frontendOpenOrders.js.map +1 -0
  247. package/esm/src/api/info/fundingHistory.d.ts +74 -0
  248. package/esm/src/api/info/fundingHistory.d.ts.map +1 -0
  249. package/esm/src/api/info/fundingHistory.js +67 -0
  250. package/esm/src/api/info/fundingHistory.js.map +1 -0
  251. package/esm/src/api/info/gossipRootIps.d.ts +39 -0
  252. package/esm/src/api/info/gossipRootIps.d.ts.map +1 -0
  253. package/esm/src/api/info/gossipRootIps.js +46 -0
  254. package/esm/src/api/info/gossipRootIps.js.map +1 -0
  255. package/esm/src/api/info/historicalOrders.d.ts +180 -0
  256. package/esm/src/api/info/historicalOrders.d.ts.map +1 -0
  257. package/esm/src/api/info/historicalOrders.js +185 -0
  258. package/esm/src/api/info/historicalOrders.js.map +1 -0
  259. package/esm/src/api/info/isVip.d.ts +49 -0
  260. package/esm/src/api/info/isVip.d.ts.map +1 -0
  261. package/esm/src/api/info/isVip.js +52 -0
  262. package/esm/src/api/info/isVip.js.map +1 -0
  263. package/esm/src/api/info/l2Book.d.ts +104 -0
  264. package/esm/src/api/info/l2Book.d.ts.map +1 -0
  265. package/esm/src/api/info/l2Book.js +74 -0
  266. package/esm/src/api/info/l2Book.js.map +1 -0
  267. package/esm/src/api/info/leadingVaults.d.ts +60 -0
  268. package/esm/src/api/info/leadingVaults.d.ts.map +1 -0
  269. package/esm/src/api/info/leadingVaults.js +59 -0
  270. package/esm/src/api/info/leadingVaults.js.map +1 -0
  271. package/esm/src/api/info/legalCheck.d.ts +60 -0
  272. package/esm/src/api/info/legalCheck.d.ts.map +1 -0
  273. package/esm/src/api/info/legalCheck.js +59 -0
  274. package/esm/src/api/info/legalCheck.js.map +1 -0
  275. package/esm/src/api/info/liquidatable.d.ts +38 -0
  276. package/esm/src/api/info/liquidatable.d.ts.map +1 -0
  277. package/esm/src/api/info/liquidatable.js +45 -0
  278. package/esm/src/api/info/liquidatable.js.map +1 -0
  279. package/esm/src/api/info/marginTable.d.ts +71 -0
  280. package/esm/src/api/info/marginTable.d.ts.map +1 -0
  281. package/esm/src/api/info/marginTable.js +64 -0
  282. package/esm/src/api/info/marginTable.js.map +1 -0
  283. package/esm/src/api/info/maxBuilderFee.d.ts +52 -0
  284. package/esm/src/api/info/maxBuilderFee.d.ts.map +1 -0
  285. package/esm/src/api/info/maxBuilderFee.js +54 -0
  286. package/esm/src/api/info/maxBuilderFee.js.map +1 -0
  287. package/esm/src/api/info/maxMarketOrderNtls.d.ts +41 -0
  288. package/esm/src/api/info/maxMarketOrderNtls.d.ts.map +1 -0
  289. package/esm/src/api/info/maxMarketOrderNtls.js +47 -0
  290. package/esm/src/api/info/maxMarketOrderNtls.js.map +1 -0
  291. package/esm/src/api/info/meta.d.ts +123 -0
  292. package/esm/src/api/info/meta.d.ts.map +1 -0
  293. package/esm/src/api/info/meta.js +69 -0
  294. package/esm/src/api/info/meta.js.map +1 -0
  295. package/esm/src/api/info/metaAndAssetCtxs.d.ts +192 -0
  296. package/esm/src/api/info/metaAndAssetCtxs.d.ts.map +1 -0
  297. package/esm/src/api/info/metaAndAssetCtxs.js +97 -0
  298. package/esm/src/api/info/metaAndAssetCtxs.js.map +1 -0
  299. package/esm/src/api/info/openOrders.d.ts +91 -0
  300. package/esm/src/api/info/openOrders.d.ts.map +1 -0
  301. package/esm/src/api/info/openOrders.js +75 -0
  302. package/esm/src/api/info/openOrders.js.map +1 -0
  303. package/esm/src/api/info/orderStatus.d.ts +198 -0
  304. package/esm/src/api/info/orderStatus.d.ts.map +1 -0
  305. package/esm/src/api/info/orderStatus.js +200 -0
  306. package/esm/src/api/info/orderStatus.js.map +1 -0
  307. package/esm/src/api/info/perpDeployAuctionStatus.d.ts +56 -0
  308. package/esm/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -0
  309. package/esm/src/api/info/perpDeployAuctionStatus.js +57 -0
  310. package/esm/src/api/info/perpDeployAuctionStatus.js.map +1 -0
  311. package/esm/src/api/info/perpDexLimits.d.ts +63 -0
  312. package/esm/src/api/info/perpDexLimits.d.ts.map +1 -0
  313. package/esm/src/api/info/perpDexLimits.js +61 -0
  314. package/esm/src/api/info/perpDexLimits.js.map +1 -0
  315. package/esm/src/api/info/perpDexs.d.ts +58 -0
  316. package/esm/src/api/info/perpDexs.d.ts.map +1 -0
  317. package/esm/src/api/info/perpDexs.js +57 -0
  318. package/esm/src/api/info/perpDexs.js.map +1 -0
  319. package/esm/src/api/info/perpsAtOpenInterestCap.d.ts +47 -0
  320. package/esm/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -0
  321. package/esm/src/api/info/perpsAtOpenInterestCap.js +32 -0
  322. package/esm/src/api/info/perpsAtOpenInterestCap.js.map +1 -0
  323. package/esm/src/api/info/portfolio.d.ts +169 -0
  324. package/esm/src/api/info/portfolio.d.ts.map +1 -0
  325. package/esm/src/api/info/portfolio.js +72 -0
  326. package/esm/src/api/info/portfolio.js.map +1 -0
  327. package/esm/src/api/info/preTransferCheck.d.ts +66 -0
  328. package/esm/src/api/info/preTransferCheck.d.ts.map +1 -0
  329. package/esm/src/api/info/preTransferCheck.js +63 -0
  330. package/esm/src/api/info/preTransferCheck.js.map +1 -0
  331. package/esm/src/api/info/predictedFundings.d.ts +66 -0
  332. package/esm/src/api/info/predictedFundings.d.ts.map +1 -0
  333. package/esm/src/api/info/predictedFundings.js +67 -0
  334. package/esm/src/api/info/predictedFundings.js.map +1 -0
  335. package/esm/src/api/info/recentTrades.d.ts +84 -0
  336. package/esm/src/api/info/recentTrades.d.ts.map +1 -0
  337. package/esm/src/api/info/recentTrades.js +71 -0
  338. package/esm/src/api/info/recentTrades.js.map +1 -0
  339. package/esm/src/api/info/referral.d.ts +274 -0
  340. package/esm/src/api/info/referral.d.ts.map +1 -0
  341. package/esm/src/api/info/referral.js +156 -0
  342. package/esm/src/api/info/referral.js.map +1 -0
  343. package/esm/src/api/info/spotClearinghouseState.d.ts +108 -0
  344. package/esm/src/api/info/spotClearinghouseState.d.ts.map +1 -0
  345. package/esm/src/api/info/spotClearinghouseState.js +81 -0
  346. package/esm/src/api/info/spotClearinghouseState.js.map +1 -0
  347. package/esm/src/api/info/spotDeployState.d.ts +162 -0
  348. package/esm/src/api/info/spotDeployState.d.ts.map +1 -0
  349. package/esm/src/api/info/spotDeployState.js +100 -0
  350. package/esm/src/api/info/spotDeployState.js.map +1 -0
  351. package/esm/src/api/info/spotMeta.d.ts +137 -0
  352. package/esm/src/api/info/spotMeta.d.ts.map +1 -0
  353. package/esm/src/api/info/spotMeta.js +88 -0
  354. package/esm/src/api/info/spotMeta.js.map +1 -0
  355. package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts +202 -0
  356. package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -0
  357. package/esm/src/api/info/spotMetaAndAssetCtxs.js +112 -0
  358. package/esm/src/api/info/spotMetaAndAssetCtxs.js.map +1 -0
  359. package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts +56 -0
  360. package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -0
  361. package/esm/src/api/info/spotPairDeployAuctionStatus.js +57 -0
  362. package/esm/src/api/info/spotPairDeployAuctionStatus.js.map +1 -0
  363. package/esm/src/api/info/subAccounts.d.ts +457 -0
  364. package/esm/src/api/info/subAccounts.d.ts.map +1 -0
  365. package/esm/src/api/info/subAccounts.js +175 -0
  366. package/esm/src/api/info/subAccounts.js.map +1 -0
  367. package/esm/src/api/info/tokenDetails.d.ts +114 -0
  368. package/esm/src/api/info/tokenDetails.d.ts.map +1 -0
  369. package/esm/src/api/info/tokenDetails.js +92 -0
  370. package/esm/src/api/info/tokenDetails.js.map +1 -0
  371. package/esm/src/api/info/twapHistory.d.ts +147 -0
  372. package/esm/src/api/info/twapHistory.d.ts.map +1 -0
  373. package/esm/src/api/info/twapHistory.js +107 -0
  374. package/esm/src/api/info/twapHistory.js.map +1 -0
  375. package/esm/src/api/info/txDetails.d.ts +102 -0
  376. package/esm/src/api/info/txDetails.d.ts.map +1 -0
  377. package/esm/src/api/info/txDetails.js +73 -0
  378. package/esm/src/api/info/txDetails.js.map +1 -0
  379. package/esm/src/api/info/userDetails.d.ts +113 -0
  380. package/esm/src/api/info/userDetails.d.ts.map +1 -0
  381. package/esm/src/api/info/userDetails.js +75 -0
  382. package/esm/src/api/info/userDetails.js.map +1 -0
  383. package/esm/src/api/info/userFees.d.ts +244 -0
  384. package/esm/src/api/info/userFees.d.ts.map +1 -0
  385. package/esm/src/api/info/userFees.js +139 -0
  386. package/esm/src/api/info/userFees.js.map +1 -0
  387. package/esm/src/api/info/userFills.d.ts +142 -0
  388. package/esm/src/api/info/userFills.d.ts.map +1 -0
  389. package/esm/src/api/info/userFills.js +98 -0
  390. package/esm/src/api/info/userFills.js.map +1 -0
  391. package/esm/src/api/info/userFillsByTime.d.ts +148 -0
  392. package/esm/src/api/info/userFillsByTime.d.ts.map +1 -0
  393. package/esm/src/api/info/userFillsByTime.js +102 -0
  394. package/esm/src/api/info/userFillsByTime.js.map +1 -0
  395. package/esm/src/api/info/userFunding.d.ts +104 -0
  396. package/esm/src/api/info/userFunding.d.ts.map +1 -0
  397. package/esm/src/api/info/userFunding.js +78 -0
  398. package/esm/src/api/info/userFunding.js.map +1 -0
  399. package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts +711 -0
  400. package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -0
  401. package/esm/src/api/info/userNonFundingLedgerUpdates.js +252 -0
  402. package/esm/src/api/info/userNonFundingLedgerUpdates.js.map +1 -0
  403. package/esm/src/api/info/userRateLimit.d.ts +60 -0
  404. package/esm/src/api/info/userRateLimit.d.ts.map +1 -0
  405. package/esm/src/api/info/userRateLimit.js +59 -0
  406. package/esm/src/api/info/userRateLimit.js.map +1 -0
  407. package/esm/src/api/info/userRole.d.ts +84 -0
  408. package/esm/src/api/info/userRole.d.ts.map +1 -0
  409. package/esm/src/api/info/userRole.js +75 -0
  410. package/esm/src/api/info/userRole.js.map +1 -0
  411. package/esm/src/api/info/userToMultiSigSigners.d.ts +57 -0
  412. package/esm/src/api/info/userToMultiSigSigners.d.ts.map +1 -0
  413. package/esm/src/api/info/userToMultiSigSigners.js +57 -0
  414. package/esm/src/api/info/userToMultiSigSigners.js.map +1 -0
  415. package/esm/src/api/info/userTwapSliceFills.d.ts +139 -0
  416. package/esm/src/api/info/userTwapSliceFills.d.ts.map +1 -0
  417. package/esm/src/api/info/userTwapSliceFills.js +90 -0
  418. package/esm/src/api/info/userTwapSliceFills.js.map +1 -0
  419. package/esm/src/api/info/userTwapSliceFillsByTime.d.ts +148 -0
  420. package/esm/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -0
  421. package/esm/src/api/info/userTwapSliceFillsByTime.js +96 -0
  422. package/esm/src/api/info/userTwapSliceFillsByTime.js.map +1 -0
  423. package/esm/src/api/info/userVaultEquities.d.ts +64 -0
  424. package/esm/src/api/info/userVaultEquities.d.ts.map +1 -0
  425. package/esm/src/api/info/userVaultEquities.js +61 -0
  426. package/esm/src/api/info/userVaultEquities.js.map +1 -0
  427. package/esm/src/api/info/validatorL1Votes.d.ts +60 -0
  428. package/esm/src/api/info/validatorL1Votes.d.ts.map +1 -0
  429. package/esm/src/api/info/validatorL1Votes.js +57 -0
  430. package/esm/src/api/info/validatorL1Votes.js.map +1 -0
  431. package/esm/src/api/info/validatorSummaries.d.ts +155 -0
  432. package/esm/src/api/info/validatorSummaries.d.ts.map +1 -0
  433. package/esm/src/api/info/validatorSummaries.js +86 -0
  434. package/esm/src/api/info/validatorSummaries.js.map +1 -0
  435. package/esm/src/api/info/vaultDetails.d.ts +359 -0
  436. package/esm/src/api/info/vaultDetails.d.ts.map +1 -0
  437. package/esm/src/api/info/vaultDetails.js +134 -0
  438. package/esm/src/api/info/vaultDetails.js.map +1 -0
  439. package/esm/src/api/info/vaultSummaries.d.ts +104 -0
  440. package/esm/src/api/info/vaultSummaries.d.ts.map +1 -0
  441. package/esm/src/api/info/vaultSummaries.js +77 -0
  442. package/esm/src/api/info/vaultSummaries.js.map +1 -0
  443. package/esm/src/api/info/webData2.d.ts +789 -0
  444. package/esm/src/api/info/webData2.d.ts.map +1 -0
  445. package/esm/src/api/info/webData2.js +389 -0
  446. package/esm/src/api/info/webData2.js.map +1 -0
  447. package/esm/src/api/info/~client.d.ts +2506 -0
  448. package/esm/src/api/info/~client.d.ts.map +1 -0
  449. package/esm/src/api/info/~client.js +1462 -0
  450. package/esm/src/api/info/~client.js.map +1 -0
  451. package/esm/src/api/info/~mod.d.ts +65 -0
  452. package/esm/src/api/info/~mod.d.ts.map +1 -0
  453. package/esm/src/api/info/~mod.js +64 -0
  454. package/esm/src/api/info/~mod.js.map +1 -0
  455. package/esm/src/api/subscription/_common.d.ts +7 -0
  456. package/esm/src/api/subscription/_common.d.ts.map +1 -0
  457. package/esm/src/api/subscription/_common.js +2 -0
  458. package/esm/src/api/subscription/_common.js.map +1 -0
  459. package/esm/src/api/subscription/activeAssetCtx.d.ts +97 -0
  460. package/esm/src/api/subscription/activeAssetCtx.d.ts.map +1 -0
  461. package/esm/src/api/subscription/activeAssetCtx.js +75 -0
  462. package/esm/src/api/subscription/activeAssetCtx.js.map +1 -0
  463. package/esm/src/api/subscription/activeAssetData.d.ts +95 -0
  464. package/esm/src/api/subscription/activeAssetData.d.ts.map +1 -0
  465. package/esm/src/api/subscription/activeAssetData.js +79 -0
  466. package/esm/src/api/subscription/activeAssetData.js.map +1 -0
  467. package/esm/src/api/subscription/activeSpotAssetCtx.d.ts +89 -0
  468. package/esm/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -0
  469. package/esm/src/api/subscription/activeSpotAssetCtx.js +71 -0
  470. package/esm/src/api/subscription/activeSpotAssetCtx.js.map +1 -0
  471. package/esm/src/api/subscription/allMids.d.ts +55 -0
  472. package/esm/src/api/subscription/allMids.d.ts.map +1 -0
  473. package/esm/src/api/subscription/allMids.js +28 -0
  474. package/esm/src/api/subscription/allMids.js.map +1 -0
  475. package/esm/src/api/subscription/assetCtxs.d.ts +108 -0
  476. package/esm/src/api/subscription/assetCtxs.d.ts.map +1 -0
  477. package/esm/src/api/subscription/assetCtxs.js +59 -0
  478. package/esm/src/api/subscription/assetCtxs.js.map +1 -0
  479. package/esm/src/api/subscription/bbo.d.ts +95 -0
  480. package/esm/src/api/subscription/bbo.d.ts.map +1 -0
  481. package/esm/src/api/subscription/bbo.js +67 -0
  482. package/esm/src/api/subscription/bbo.js.map +1 -0
  483. package/esm/src/api/subscription/candle.d.ts +81 -0
  484. package/esm/src/api/subscription/candle.d.ts.map +1 -0
  485. package/esm/src/api/subscription/candle.js +102 -0
  486. package/esm/src/api/subscription/candle.js.map +1 -0
  487. package/esm/src/api/subscription/clearinghouseState.d.ts +320 -0
  488. package/esm/src/api/subscription/clearinghouseState.d.ts.map +1 -0
  489. package/esm/src/api/subscription/clearinghouseState.js +145 -0
  490. package/esm/src/api/subscription/clearinghouseState.js.map +1 -0
  491. package/esm/src/api/subscription/explorerBlock.d.ts +64 -0
  492. package/esm/src/api/subscription/explorerBlock.d.ts.map +1 -0
  493. package/esm/src/api/subscription/explorerBlock.js +57 -0
  494. package/esm/src/api/subscription/explorerBlock.js.map +1 -0
  495. package/esm/src/api/subscription/explorerTxs.d.ts +83 -0
  496. package/esm/src/api/subscription/explorerTxs.d.ts.map +1 -0
  497. package/esm/src/api/subscription/explorerTxs.js +62 -0
  498. package/esm/src/api/subscription/explorerTxs.js.map +1 -0
  499. package/esm/src/api/subscription/l2Book.d.ts +101 -0
  500. package/esm/src/api/subscription/l2Book.d.ts.map +1 -0
  501. package/esm/src/api/subscription/l2Book.js +76 -0
  502. package/esm/src/api/subscription/l2Book.js.map +1 -0
  503. package/esm/src/api/subscription/notification.d.ts +51 -0
  504. package/esm/src/api/subscription/notification.d.ts.map +1 -0
  505. package/esm/src/api/subscription/notification.js +50 -0
  506. package/esm/src/api/subscription/notification.js.map +1 -0
  507. package/esm/src/api/subscription/openOrders.d.ts +160 -0
  508. package/esm/src/api/subscription/openOrders.d.ts.map +1 -0
  509. package/esm/src/api/subscription/openOrders.js +142 -0
  510. package/esm/src/api/subscription/openOrders.js.map +1 -0
  511. package/esm/src/api/subscription/orderUpdates.d.ts +126 -0
  512. package/esm/src/api/subscription/orderUpdates.d.ts.map +1 -0
  513. package/esm/src/api/subscription/orderUpdates.js +121 -0
  514. package/esm/src/api/subscription/orderUpdates.js.map +1 -0
  515. package/esm/src/api/subscription/trades.d.ts +81 -0
  516. package/esm/src/api/subscription/trades.d.ts.map +1 -0
  517. package/esm/src/api/subscription/trades.js +68 -0
  518. package/esm/src/api/subscription/trades.js.map +1 -0
  519. package/esm/src/api/subscription/userEvents.d.ts +948 -0
  520. package/esm/src/api/subscription/userEvents.d.ts.map +1 -0
  521. package/esm/src/api/subscription/userEvents.js +258 -0
  522. package/esm/src/api/subscription/userEvents.js.map +1 -0
  523. package/esm/src/api/subscription/userFills.d.ts +172 -0
  524. package/esm/src/api/subscription/userFills.d.ts.map +1 -0
  525. package/esm/src/api/subscription/userFills.js +106 -0
  526. package/esm/src/api/subscription/userFills.js.map +1 -0
  527. package/esm/src/api/subscription/userFundings.d.ts +91 -0
  528. package/esm/src/api/subscription/userFundings.d.ts.map +1 -0
  529. package/esm/src/api/subscription/userFundings.js +71 -0
  530. package/esm/src/api/subscription/userFundings.js.map +1 -0
  531. package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts +786 -0
  532. package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -0
  533. package/esm/src/api/subscription/userNonFundingLedgerUpdates.js +252 -0
  534. package/esm/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -0
  535. package/esm/src/api/subscription/userTwapHistory.d.ts +175 -0
  536. package/esm/src/api/subscription/userTwapHistory.d.ts.map +1 -0
  537. package/esm/src/api/subscription/userTwapHistory.js +111 -0
  538. package/esm/src/api/subscription/userTwapHistory.js.map +1 -0
  539. package/esm/src/api/subscription/userTwapSliceFills.d.ts +147 -0
  540. package/esm/src/api/subscription/userTwapSliceFills.d.ts.map +1 -0
  541. package/esm/src/api/subscription/userTwapSliceFills.js +92 -0
  542. package/esm/src/api/subscription/userTwapSliceFills.js.map +1 -0
  543. package/esm/src/api/subscription/webData2.d.ts +786 -0
  544. package/esm/src/api/subscription/webData2.d.ts.map +1 -0
  545. package/esm/src/api/subscription/webData2.js +386 -0
  546. package/esm/src/api/subscription/webData2.js.map +1 -0
  547. package/esm/src/api/subscription/~client.d.ts +509 -0
  548. package/esm/src/api/subscription/~client.d.ts.map +1 -0
  549. package/esm/src/api/subscription/~client.js +534 -0
  550. package/esm/src/api/subscription/~client.js.map +1 -0
  551. package/esm/src/api/subscription/~mod.d.ts +25 -0
  552. package/esm/src/api/subscription/~mod.d.ts.map +1 -0
  553. package/esm/src/api/subscription/~mod.js +24 -0
  554. package/esm/src/api/subscription/~mod.js.map +1 -0
  555. package/esm/src/mod.d.ts +8 -20
  556. package/esm/src/mod.d.ts.map +1 -1
  557. package/esm/src/mod.js +8 -13
  558. package/esm/src/mod.js.map +1 -1
  559. package/esm/src/signing/_signTypedData.d.ts +118 -0
  560. package/esm/src/signing/_signTypedData.d.ts.map +1 -0
  561. package/esm/src/signing/_signTypedData.js +102 -0
  562. package/esm/src/signing/_signTypedData.js.map +1 -0
  563. package/esm/src/signing/mod.d.ts +34 -112
  564. package/esm/src/signing/mod.d.ts.map +1 -1
  565. package/esm/src/signing/mod.js +46 -145
  566. package/esm/src/signing/mod.js.map +1 -1
  567. package/esm/src/transport/_polyfills.d.ts.map +1 -0
  568. package/esm/src/transport/_polyfills.js.map +1 -0
  569. package/esm/src/transport/base.d.ts +48 -0
  570. package/esm/src/transport/base.d.ts.map +1 -0
  571. package/esm/src/transport/base.js +9 -0
  572. package/esm/src/transport/base.js.map +1 -0
  573. package/esm/src/transport/http/mod.d.ts +94 -0
  574. package/esm/src/transport/http/mod.d.ts.map +1 -0
  575. package/esm/src/transport/http/mod.js +152 -0
  576. package/esm/src/transport/http/mod.js.map +1 -0
  577. package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts +80 -0
  578. package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -0
  579. package/esm/src/transport/websocket/_hyperliquid_event_target.js +55 -0
  580. package/esm/src/transport/websocket/_hyperliquid_event_target.js.map +1 -0
  581. package/esm/src/transport/websocket/_reconnecting_websocket.d.ts.map +1 -0
  582. package/esm/src/transport/websocket/_reconnecting_websocket.js.map +1 -0
  583. package/esm/src/transport/websocket/_websocket_async_request.d.ts.map +1 -0
  584. package/esm/src/transport/websocket/_websocket_async_request.js +186 -0
  585. package/esm/src/transport/websocket/_websocket_async_request.js.map +1 -0
  586. package/esm/src/transport/websocket/mod.d.ts +123 -0
  587. package/esm/src/transport/websocket/mod.d.ts.map +1 -0
  588. package/esm/src/transport/websocket/mod.js +250 -0
  589. package/esm/src/transport/websocket/mod.js.map +1 -0
  590. package/esm/src/utils/minimalEIP712Signer.d.ts +27 -0
  591. package/esm/src/utils/minimalEIP712Signer.d.ts.map +1 -0
  592. package/esm/src/utils/minimalEIP712Signer.js +172 -0
  593. package/esm/src/utils/minimalEIP712Signer.js.map +1 -0
  594. package/package.json +13 -5
  595. package/script/bin/_utils.d.ts.map +1 -1
  596. package/script/bin/_utils.js +2 -6
  597. package/script/bin/_utils.js.map +1 -1
  598. package/script/bin/cli.js +20 -64
  599. package/script/bin/cli.js.map +1 -1
  600. package/script/src/_base.d.ts +5 -0
  601. package/script/src/_base.d.ts.map +1 -0
  602. package/script/src/_base.js +12 -0
  603. package/script/src/_base.js.map +1 -0
  604. package/script/src/api/_common.d.ts +50 -0
  605. package/script/src/api/_common.d.ts.map +1 -0
  606. package/script/src/api/_common.js +100 -0
  607. package/script/src/api/_common.js.map +1 -0
  608. package/script/src/api/exchange/_common.d.ts +163 -0
  609. package/script/src/api/exchange/_common.d.ts.map +1 -0
  610. package/script/src/api/exchange/_common.js +278 -0
  611. package/script/src/api/exchange/_common.js.map +1 -0
  612. package/script/src/api/exchange/approveAgent.d.ts +104 -0
  613. package/script/src/api/exchange/approveAgent.d.ts.map +1 -0
  614. package/script/src/api/exchange/approveAgent.js +116 -0
  615. package/script/src/api/exchange/approveAgent.js.map +1 -0
  616. package/script/src/api/exchange/approveBuilderFee.d.ts +104 -0
  617. package/script/src/api/exchange/approveBuilderFee.d.ts.map +1 -0
  618. package/script/src/api/exchange/approveBuilderFee.js +116 -0
  619. package/script/src/api/exchange/approveBuilderFee.js.map +1 -0
  620. package/script/src/api/exchange/batchModify.d.ts +241 -0
  621. package/script/src/api/exchange/batchModify.d.ts.map +1 -0
  622. package/script/src/api/exchange/batchModify.js +178 -0
  623. package/script/src/api/exchange/batchModify.js.map +1 -0
  624. package/script/src/api/exchange/cDeposit.d.ts +100 -0
  625. package/script/src/api/exchange/cDeposit.d.ts.map +1 -0
  626. package/script/src/api/exchange/cDeposit.js +113 -0
  627. package/script/src/api/exchange/cDeposit.js.map +1 -0
  628. package/script/src/api/exchange/cSignerAction.d.ts +102 -0
  629. package/script/src/api/exchange/cSignerAction.d.ts.map +1 -0
  630. package/script/src/api/exchange/cSignerAction.js +116 -0
  631. package/script/src/api/exchange/cSignerAction.js.map +1 -0
  632. package/script/src/api/exchange/cValidatorAction.d.ts +265 -0
  633. package/script/src/api/exchange/cValidatorAction.d.ts.map +1 -0
  634. package/script/src/api/exchange/cValidatorAction.js +195 -0
  635. package/script/src/api/exchange/cValidatorAction.js.map +1 -0
  636. package/script/src/api/exchange/cWithdraw.d.ts +100 -0
  637. package/script/src/api/exchange/cWithdraw.d.ts.map +1 -0
  638. package/script/src/api/exchange/cWithdraw.js +113 -0
  639. package/script/src/api/exchange/cWithdraw.js.map +1 -0
  640. package/script/src/api/exchange/cancel.d.ts +176 -0
  641. package/script/src/api/exchange/cancel.d.ts.map +1 -0
  642. package/script/src/api/exchange/cancel.js +151 -0
  643. package/script/src/api/exchange/cancel.js.map +1 -0
  644. package/script/src/api/exchange/cancelByCloid.d.ts +105 -0
  645. package/script/src/api/exchange/cancelByCloid.d.ts.map +1 -0
  646. package/script/src/api/exchange/cancelByCloid.js +113 -0
  647. package/script/src/api/exchange/cancelByCloid.js.map +1 -0
  648. package/script/src/api/exchange/claimRewards.d.ts +72 -0
  649. package/script/src/api/exchange/claimRewards.d.ts.map +1 -0
  650. package/script/src/api/exchange/claimRewards.js +93 -0
  651. package/script/src/api/exchange/claimRewards.js.map +1 -0
  652. package/script/src/api/exchange/convertToMultiSigUser.d.ts +149 -0
  653. package/script/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -0
  654. package/script/src/api/exchange/convertToMultiSigUser.js +146 -0
  655. package/script/src/api/exchange/convertToMultiSigUser.js.map +1 -0
  656. package/script/src/api/exchange/createSubAccount.d.ts +104 -0
  657. package/script/src/api/exchange/createSubAccount.d.ts.map +1 -0
  658. package/script/src/api/exchange/createSubAccount.js +113 -0
  659. package/script/src/api/exchange/createSubAccount.js.map +1 -0
  660. package/script/src/api/exchange/createVault.d.ts +120 -0
  661. package/script/src/api/exchange/createVault.d.ts.map +1 -0
  662. package/script/src/api/exchange/createVault.js +125 -0
  663. package/script/src/api/exchange/createVault.js.map +1 -0
  664. package/script/src/api/exchange/evmUserModify.d.ts +84 -0
  665. package/script/src/api/exchange/evmUserModify.d.ts.map +1 -0
  666. package/script/src/api/exchange/evmUserModify.js +101 -0
  667. package/script/src/api/exchange/evmUserModify.js.map +1 -0
  668. package/script/src/api/exchange/modify.d.ts +210 -0
  669. package/script/src/api/exchange/modify.d.ts.map +1 -0
  670. package/script/src/api/exchange/modify.js +172 -0
  671. package/script/src/api/exchange/modify.js.map +1 -0
  672. package/script/src/api/exchange/multiSig.d.ts +2711 -0
  673. package/script/src/api/exchange/multiSig.d.ts.map +1 -0
  674. package/script/src/api/exchange/multiSig.js +258 -0
  675. package/script/src/api/exchange/multiSig.js.map +1 -0
  676. package/script/src/api/exchange/noop.d.ts +74 -0
  677. package/script/src/api/exchange/noop.d.ts.map +1 -0
  678. package/script/src/api/exchange/noop.js +95 -0
  679. package/script/src/api/exchange/noop.js.map +1 -0
  680. package/script/src/api/exchange/order.d.ts +476 -0
  681. package/script/src/api/exchange/order.d.ts.map +1 -0
  682. package/script/src/api/exchange/order.js +270 -0
  683. package/script/src/api/exchange/order.js.map +1 -0
  684. package/script/src/api/exchange/perpDeploy.d.ts +240 -0
  685. package/script/src/api/exchange/perpDeploy.d.ts.map +1 -0
  686. package/script/src/api/exchange/perpDeploy.js +158 -0
  687. package/script/src/api/exchange/perpDeploy.js.map +1 -0
  688. package/script/src/api/exchange/registerReferrer.d.ts +84 -0
  689. package/script/src/api/exchange/registerReferrer.d.ts.map +1 -0
  690. package/script/src/api/exchange/registerReferrer.js +101 -0
  691. package/script/src/api/exchange/registerReferrer.js.map +1 -0
  692. package/script/src/api/exchange/reserveRequestWeight.d.ts +84 -0
  693. package/script/src/api/exchange/reserveRequestWeight.d.ts.map +1 -0
  694. package/script/src/api/exchange/reserveRequestWeight.js +101 -0
  695. package/script/src/api/exchange/reserveRequestWeight.js.map +1 -0
  696. package/script/src/api/exchange/scheduleCancel.d.ts +93 -0
  697. package/script/src/api/exchange/scheduleCancel.d.ts.map +1 -0
  698. package/script/src/api/exchange/scheduleCancel.js +88 -0
  699. package/script/src/api/exchange/scheduleCancel.js.map +1 -0
  700. package/script/src/api/exchange/sendAsset.d.ts +126 -0
  701. package/script/src/api/exchange/sendAsset.d.ts.map +1 -0
  702. package/script/src/api/exchange/sendAsset.js +134 -0
  703. package/script/src/api/exchange/sendAsset.js.map +1 -0
  704. package/script/src/api/exchange/setDisplayName.d.ts +88 -0
  705. package/script/src/api/exchange/setDisplayName.d.ts.map +1 -0
  706. package/script/src/api/exchange/setDisplayName.js +106 -0
  707. package/script/src/api/exchange/setDisplayName.js.map +1 -0
  708. package/script/src/api/exchange/setReferrer.d.ts +84 -0
  709. package/script/src/api/exchange/setReferrer.d.ts.map +1 -0
  710. package/script/src/api/exchange/setReferrer.js +101 -0
  711. package/script/src/api/exchange/setReferrer.js.map +1 -0
  712. package/script/src/api/exchange/spotDeploy.d.ts +332 -0
  713. package/script/src/api/exchange/spotDeploy.d.ts.map +1 -0
  714. package/script/src/api/exchange/spotDeploy.js +204 -0
  715. package/script/src/api/exchange/spotDeploy.js.map +1 -0
  716. package/script/src/api/exchange/spotSend.d.ts +112 -0
  717. package/script/src/api/exchange/spotSend.d.ts.map +1 -0
  718. package/script/src/api/exchange/spotSend.js +123 -0
  719. package/script/src/api/exchange/spotSend.js.map +1 -0
  720. package/script/src/api/exchange/spotUser.d.ts +93 -0
  721. package/script/src/api/exchange/spotUser.d.ts.map +1 -0
  722. package/script/src/api/exchange/spotUser.js +104 -0
  723. package/script/src/api/exchange/spotUser.js.map +1 -0
  724. package/script/src/api/exchange/subAccountModify.d.ts +88 -0
  725. package/script/src/api/exchange/subAccountModify.d.ts.map +1 -0
  726. package/script/src/api/exchange/subAccountModify.js +103 -0
  727. package/script/src/api/exchange/subAccountModify.js.map +1 -0
  728. package/script/src/api/exchange/subAccountSpotTransfer.d.ts +101 -0
  729. package/script/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -0
  730. package/script/src/api/exchange/subAccountSpotTransfer.js +112 -0
  731. package/script/src/api/exchange/subAccountSpotTransfer.js.map +1 -0
  732. package/script/src/api/exchange/subAccountTransfer.d.ts +92 -0
  733. package/script/src/api/exchange/subAccountTransfer.d.ts.map +1 -0
  734. package/script/src/api/exchange/subAccountTransfer.js +105 -0
  735. package/script/src/api/exchange/subAccountTransfer.js.map +1 -0
  736. package/script/src/api/exchange/tokenDelegate.d.ts +108 -0
  737. package/script/src/api/exchange/tokenDelegate.d.ts.map +1 -0
  738. package/script/src/api/exchange/tokenDelegate.js +119 -0
  739. package/script/src/api/exchange/tokenDelegate.js.map +1 -0
  740. package/script/src/api/exchange/twapCancel.d.ts +162 -0
  741. package/script/src/api/exchange/twapCancel.d.ts.map +1 -0
  742. package/script/src/api/exchange/twapCancel.js +144 -0
  743. package/script/src/api/exchange/twapCancel.js.map +1 -0
  744. package/script/src/api/exchange/twapOrder.d.ts +249 -0
  745. package/script/src/api/exchange/twapOrder.d.ts.map +1 -0
  746. package/script/src/api/exchange/twapOrder.js +176 -0
  747. package/script/src/api/exchange/twapOrder.js.map +1 -0
  748. package/script/src/api/exchange/updateIsolatedMargin.d.ts +95 -0
  749. package/script/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -0
  750. package/script/src/api/exchange/updateIsolatedMargin.js +108 -0
  751. package/script/src/api/exchange/updateIsolatedMargin.js.map +1 -0
  752. package/script/src/api/exchange/updateLeverage.d.ts +95 -0
  753. package/script/src/api/exchange/updateLeverage.d.ts.map +1 -0
  754. package/script/src/api/exchange/updateLeverage.js +108 -0
  755. package/script/src/api/exchange/updateLeverage.js.map +1 -0
  756. package/script/src/api/exchange/usdClassTransfer.d.ts +104 -0
  757. package/script/src/api/exchange/usdClassTransfer.d.ts.map +1 -0
  758. package/script/src/api/exchange/usdClassTransfer.js +116 -0
  759. package/script/src/api/exchange/usdClassTransfer.js.map +1 -0
  760. package/script/src/api/exchange/usdSend.d.ts +104 -0
  761. package/script/src/api/exchange/usdSend.d.ts.map +1 -0
  762. package/script/src/api/exchange/usdSend.js +116 -0
  763. package/script/src/api/exchange/usdSend.js.map +1 -0
  764. package/script/src/api/exchange/vaultDistribute.d.ts +92 -0
  765. package/script/src/api/exchange/vaultDistribute.d.ts.map +1 -0
  766. package/script/src/api/exchange/vaultDistribute.js +108 -0
  767. package/script/src/api/exchange/vaultDistribute.js.map +1 -0
  768. package/script/src/api/exchange/vaultModify.d.ts +96 -0
  769. package/script/src/api/exchange/vaultModify.d.ts.map +1 -0
  770. package/script/src/api/exchange/vaultModify.js +109 -0
  771. package/script/src/api/exchange/vaultModify.js.map +1 -0
  772. package/script/src/api/exchange/vaultTransfer.d.ts +92 -0
  773. package/script/src/api/exchange/vaultTransfer.d.ts.map +1 -0
  774. package/script/src/api/exchange/vaultTransfer.js +105 -0
  775. package/script/src/api/exchange/vaultTransfer.js.map +1 -0
  776. package/script/src/api/exchange/withdraw3.d.ts +104 -0
  777. package/script/src/api/exchange/withdraw3.d.ts.map +1 -0
  778. package/script/src/api/exchange/withdraw3.js +116 -0
  779. package/script/src/api/exchange/withdraw3.js.map +1 -0
  780. package/script/src/api/exchange/~client.d.ts +1623 -0
  781. package/script/src/api/exchange/~client.d.ts.map +1 -0
  782. package/script/src/api/exchange/~client.js +1366 -0
  783. package/script/src/api/exchange/~client.js.map +1 -0
  784. package/script/src/api/exchange/~mod.d.ts +45 -0
  785. package/script/src/api/exchange/~mod.d.ts.map +1 -0
  786. package/script/src/api/exchange/~mod.js +63 -0
  787. package/script/src/api/exchange/~mod.js.map +1 -0
  788. package/script/src/api/info/_common.d.ts +7 -0
  789. package/script/src/api/info/_common.d.ts.map +1 -0
  790. package/script/src/api/info/_common.js +3 -0
  791. package/script/src/api/info/_common.js.map +1 -0
  792. package/script/src/api/info/activeAssetData.d.ts +98 -0
  793. package/script/src/api/info/activeAssetData.d.ts.map +1 -0
  794. package/script/src/api/info/activeAssetData.js +119 -0
  795. package/script/src/api/info/activeAssetData.js.map +1 -0
  796. package/script/src/api/info/allMids.d.ts +49 -0
  797. package/script/src/api/info/allMids.d.ts.map +1 -0
  798. package/script/src/api/info/allMids.js +69 -0
  799. package/script/src/api/info/allMids.js.map +1 -0
  800. package/script/src/api/info/blockDetails.d.ts +151 -0
  801. package/script/src/api/info/blockDetails.d.ts.map +1 -0
  802. package/script/src/api/info/blockDetails.js +125 -0
  803. package/script/src/api/info/blockDetails.js.map +1 -0
  804. package/script/src/api/info/candleSnapshot.d.ts +111 -0
  805. package/script/src/api/info/candleSnapshot.d.ts.map +1 -0
  806. package/script/src/api/info/candleSnapshot.js +151 -0
  807. package/script/src/api/info/candleSnapshot.js.map +1 -0
  808. package/script/src/api/info/clearinghouseState.d.ts +269 -0
  809. package/script/src/api/info/clearinghouseState.d.ts.map +1 -0
  810. package/script/src/api/info/clearinghouseState.js +174 -0
  811. package/script/src/api/info/clearinghouseState.js.map +1 -0
  812. package/script/src/api/info/delegations.d.ts +64 -0
  813. package/script/src/api/info/delegations.d.ts.map +1 -0
  814. package/script/src/api/info/delegations.js +98 -0
  815. package/script/src/api/info/delegations.js.map +1 -0
  816. package/script/src/api/info/delegatorHistory.d.ts +142 -0
  817. package/script/src/api/info/delegatorHistory.d.ts.map +1 -0
  818. package/script/src/api/info/delegatorHistory.js +126 -0
  819. package/script/src/api/info/delegatorHistory.js.map +1 -0
  820. package/script/src/api/info/delegatorRewards.d.ts +64 -0
  821. package/script/src/api/info/delegatorRewards.d.ts.map +1 -0
  822. package/script/src/api/info/delegatorRewards.js +98 -0
  823. package/script/src/api/info/delegatorRewards.js.map +1 -0
  824. package/script/src/api/info/delegatorSummary.d.ts +63 -0
  825. package/script/src/api/info/delegatorSummary.d.ts.map +1 -0
  826. package/script/src/api/info/delegatorSummary.js +98 -0
  827. package/script/src/api/info/delegatorSummary.js.map +1 -0
  828. package/script/src/api/info/exchangeStatus.d.ts +46 -0
  829. package/script/src/api/info/exchangeStatus.d.ts.map +1 -0
  830. package/script/src/api/info/exchangeStatus.js +87 -0
  831. package/script/src/api/info/exchangeStatus.js.map +1 -0
  832. package/script/src/api/info/extraAgents.d.ts +64 -0
  833. package/script/src/api/info/extraAgents.d.ts.map +1 -0
  834. package/script/src/api/info/extraAgents.js +98 -0
  835. package/script/src/api/info/extraAgents.js.map +1 -0
  836. package/script/src/api/info/frontendOpenOrders.d.ts +135 -0
  837. package/script/src/api/info/frontendOpenOrders.d.ts.map +1 -0
  838. package/script/src/api/info/frontendOpenOrders.js +171 -0
  839. package/script/src/api/info/frontendOpenOrders.js.map +1 -0
  840. package/script/src/api/info/fundingHistory.d.ts +74 -0
  841. package/script/src/api/info/fundingHistory.d.ts.map +1 -0
  842. package/script/src/api/info/fundingHistory.js +104 -0
  843. package/script/src/api/info/fundingHistory.js.map +1 -0
  844. package/script/src/api/info/gossipRootIps.d.ts +39 -0
  845. package/script/src/api/info/gossipRootIps.d.ts.map +1 -0
  846. package/script/src/api/info/gossipRootIps.js +83 -0
  847. package/script/src/api/info/gossipRootIps.js.map +1 -0
  848. package/script/src/api/info/historicalOrders.d.ts +180 -0
  849. package/script/src/api/info/historicalOrders.d.ts.map +1 -0
  850. package/script/src/api/info/historicalOrders.js +222 -0
  851. package/script/src/api/info/historicalOrders.js.map +1 -0
  852. package/script/src/api/info/isVip.d.ts +49 -0
  853. package/script/src/api/info/isVip.d.ts.map +1 -0
  854. package/script/src/api/info/isVip.js +89 -0
  855. package/script/src/api/info/isVip.js.map +1 -0
  856. package/script/src/api/info/l2Book.d.ts +104 -0
  857. package/script/src/api/info/l2Book.d.ts.map +1 -0
  858. package/script/src/api/info/l2Book.js +111 -0
  859. package/script/src/api/info/l2Book.js.map +1 -0
  860. package/script/src/api/info/leadingVaults.d.ts +60 -0
  861. package/script/src/api/info/leadingVaults.d.ts.map +1 -0
  862. package/script/src/api/info/leadingVaults.js +96 -0
  863. package/script/src/api/info/leadingVaults.js.map +1 -0
  864. package/script/src/api/info/legalCheck.d.ts +60 -0
  865. package/script/src/api/info/legalCheck.d.ts.map +1 -0
  866. package/script/src/api/info/legalCheck.js +96 -0
  867. package/script/src/api/info/legalCheck.js.map +1 -0
  868. package/script/src/api/info/liquidatable.d.ts +38 -0
  869. package/script/src/api/info/liquidatable.d.ts.map +1 -0
  870. package/script/src/api/info/liquidatable.js +82 -0
  871. package/script/src/api/info/liquidatable.js.map +1 -0
  872. package/script/src/api/info/marginTable.d.ts +71 -0
  873. package/script/src/api/info/marginTable.d.ts.map +1 -0
  874. package/script/src/api/info/marginTable.js +101 -0
  875. package/script/src/api/info/marginTable.js.map +1 -0
  876. package/script/src/api/info/maxBuilderFee.d.ts +52 -0
  877. package/script/src/api/info/maxBuilderFee.d.ts.map +1 -0
  878. package/script/src/api/info/maxBuilderFee.js +91 -0
  879. package/script/src/api/info/maxBuilderFee.js.map +1 -0
  880. package/script/src/api/info/maxMarketOrderNtls.d.ts +41 -0
  881. package/script/src/api/info/maxMarketOrderNtls.d.ts.map +1 -0
  882. package/script/src/api/info/maxMarketOrderNtls.js +84 -0
  883. package/script/src/api/info/maxMarketOrderNtls.js.map +1 -0
  884. package/script/src/api/info/meta.d.ts +123 -0
  885. package/script/src/api/info/meta.d.ts.map +1 -0
  886. package/script/src/api/info/meta.js +106 -0
  887. package/script/src/api/info/meta.js.map +1 -0
  888. package/script/src/api/info/metaAndAssetCtxs.d.ts +192 -0
  889. package/script/src/api/info/metaAndAssetCtxs.d.ts.map +1 -0
  890. package/script/src/api/info/metaAndAssetCtxs.js +134 -0
  891. package/script/src/api/info/metaAndAssetCtxs.js.map +1 -0
  892. package/script/src/api/info/openOrders.d.ts +91 -0
  893. package/script/src/api/info/openOrders.d.ts.map +1 -0
  894. package/script/src/api/info/openOrders.js +112 -0
  895. package/script/src/api/info/openOrders.js.map +1 -0
  896. package/script/src/api/info/orderStatus.d.ts +198 -0
  897. package/script/src/api/info/orderStatus.d.ts.map +1 -0
  898. package/script/src/api/info/orderStatus.js +237 -0
  899. package/script/src/api/info/orderStatus.js.map +1 -0
  900. package/script/src/api/info/perpDeployAuctionStatus.d.ts +56 -0
  901. package/script/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -0
  902. package/script/src/api/info/perpDeployAuctionStatus.js +94 -0
  903. package/script/src/api/info/perpDeployAuctionStatus.js.map +1 -0
  904. package/script/src/api/info/perpDexLimits.d.ts +63 -0
  905. package/script/src/api/info/perpDexLimits.d.ts.map +1 -0
  906. package/script/src/api/info/perpDexLimits.js +98 -0
  907. package/script/src/api/info/perpDexLimits.js.map +1 -0
  908. package/script/src/api/info/perpDexs.d.ts +58 -0
  909. package/script/src/api/info/perpDexs.d.ts.map +1 -0
  910. package/script/src/api/info/perpDexs.js +94 -0
  911. package/script/src/api/info/perpDexs.js.map +1 -0
  912. package/script/src/api/info/perpsAtOpenInterestCap.d.ts +47 -0
  913. package/script/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -0
  914. package/script/src/api/info/perpsAtOpenInterestCap.js +69 -0
  915. package/script/src/api/info/perpsAtOpenInterestCap.js.map +1 -0
  916. package/script/src/api/info/portfolio.d.ts +169 -0
  917. package/script/src/api/info/portfolio.d.ts.map +1 -0
  918. package/script/src/api/info/portfolio.js +109 -0
  919. package/script/src/api/info/portfolio.js.map +1 -0
  920. package/script/src/api/info/preTransferCheck.d.ts +66 -0
  921. package/script/src/api/info/preTransferCheck.d.ts.map +1 -0
  922. package/script/src/api/info/preTransferCheck.js +100 -0
  923. package/script/src/api/info/preTransferCheck.js.map +1 -0
  924. package/script/src/api/info/predictedFundings.d.ts +66 -0
  925. package/script/src/api/info/predictedFundings.d.ts.map +1 -0
  926. package/script/src/api/info/predictedFundings.js +104 -0
  927. package/script/src/api/info/predictedFundings.js.map +1 -0
  928. package/script/src/api/info/recentTrades.d.ts +84 -0
  929. package/script/src/api/info/recentTrades.d.ts.map +1 -0
  930. package/script/src/api/info/recentTrades.js +108 -0
  931. package/script/src/api/info/recentTrades.js.map +1 -0
  932. package/script/src/api/info/referral.d.ts +274 -0
  933. package/script/src/api/info/referral.d.ts.map +1 -0
  934. package/script/src/api/info/referral.js +193 -0
  935. package/script/src/api/info/referral.js.map +1 -0
  936. package/script/src/api/info/spotClearinghouseState.d.ts +108 -0
  937. package/script/src/api/info/spotClearinghouseState.d.ts.map +1 -0
  938. package/script/src/api/info/spotClearinghouseState.js +118 -0
  939. package/script/src/api/info/spotClearinghouseState.js.map +1 -0
  940. package/script/src/api/info/spotDeployState.d.ts +162 -0
  941. package/script/src/api/info/spotDeployState.d.ts.map +1 -0
  942. package/script/src/api/info/spotDeployState.js +137 -0
  943. package/script/src/api/info/spotDeployState.js.map +1 -0
  944. package/script/src/api/info/spotMeta.d.ts +137 -0
  945. package/script/src/api/info/spotMeta.d.ts.map +1 -0
  946. package/script/src/api/info/spotMeta.js +125 -0
  947. package/script/src/api/info/spotMeta.js.map +1 -0
  948. package/script/src/api/info/spotMetaAndAssetCtxs.d.ts +202 -0
  949. package/script/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -0
  950. package/script/src/api/info/spotMetaAndAssetCtxs.js +149 -0
  951. package/script/src/api/info/spotMetaAndAssetCtxs.js.map +1 -0
  952. package/script/src/api/info/spotPairDeployAuctionStatus.d.ts +56 -0
  953. package/script/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -0
  954. package/script/src/api/info/spotPairDeployAuctionStatus.js +94 -0
  955. package/script/src/api/info/spotPairDeployAuctionStatus.js.map +1 -0
  956. package/script/src/api/info/subAccounts.d.ts +457 -0
  957. package/script/src/api/info/subAccounts.d.ts.map +1 -0
  958. package/script/src/api/info/subAccounts.js +212 -0
  959. package/script/src/api/info/subAccounts.js.map +1 -0
  960. package/script/src/api/info/tokenDetails.d.ts +114 -0
  961. package/script/src/api/info/tokenDetails.d.ts.map +1 -0
  962. package/script/src/api/info/tokenDetails.js +129 -0
  963. package/script/src/api/info/tokenDetails.js.map +1 -0
  964. package/script/src/api/info/twapHistory.d.ts +147 -0
  965. package/script/src/api/info/twapHistory.d.ts.map +1 -0
  966. package/script/src/api/info/twapHistory.js +144 -0
  967. package/script/src/api/info/twapHistory.js.map +1 -0
  968. package/script/src/api/info/txDetails.d.ts +102 -0
  969. package/script/src/api/info/txDetails.d.ts.map +1 -0
  970. package/script/src/api/info/txDetails.js +110 -0
  971. package/script/src/api/info/txDetails.js.map +1 -0
  972. package/script/src/api/info/userDetails.d.ts +113 -0
  973. package/script/src/api/info/userDetails.d.ts.map +1 -0
  974. package/script/src/api/info/userDetails.js +112 -0
  975. package/script/src/api/info/userDetails.js.map +1 -0
  976. package/script/src/api/info/userFees.d.ts +244 -0
  977. package/script/src/api/info/userFees.d.ts.map +1 -0
  978. package/script/src/api/info/userFees.js +176 -0
  979. package/script/src/api/info/userFees.js.map +1 -0
  980. package/script/src/api/info/userFills.d.ts +142 -0
  981. package/script/src/api/info/userFills.d.ts.map +1 -0
  982. package/script/src/api/info/userFills.js +135 -0
  983. package/script/src/api/info/userFills.js.map +1 -0
  984. package/script/src/api/info/userFillsByTime.d.ts +148 -0
  985. package/script/src/api/info/userFillsByTime.d.ts.map +1 -0
  986. package/script/src/api/info/userFillsByTime.js +139 -0
  987. package/script/src/api/info/userFillsByTime.js.map +1 -0
  988. package/script/src/api/info/userFunding.d.ts +104 -0
  989. package/script/src/api/info/userFunding.d.ts.map +1 -0
  990. package/script/src/api/info/userFunding.js +115 -0
  991. package/script/src/api/info/userFunding.js.map +1 -0
  992. package/script/src/api/info/userNonFundingLedgerUpdates.d.ts +711 -0
  993. package/script/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -0
  994. package/script/src/api/info/userNonFundingLedgerUpdates.js +289 -0
  995. package/script/src/api/info/userNonFundingLedgerUpdates.js.map +1 -0
  996. package/script/src/api/info/userRateLimit.d.ts +60 -0
  997. package/script/src/api/info/userRateLimit.d.ts.map +1 -0
  998. package/script/src/api/info/userRateLimit.js +96 -0
  999. package/script/src/api/info/userRateLimit.js.map +1 -0
  1000. package/script/src/api/info/userRole.d.ts +84 -0
  1001. package/script/src/api/info/userRole.d.ts.map +1 -0
  1002. package/script/src/api/info/userRole.js +112 -0
  1003. package/script/src/api/info/userRole.js.map +1 -0
  1004. package/script/src/api/info/userToMultiSigSigners.d.ts +57 -0
  1005. package/script/src/api/info/userToMultiSigSigners.d.ts.map +1 -0
  1006. package/script/src/api/info/userToMultiSigSigners.js +94 -0
  1007. package/script/src/api/info/userToMultiSigSigners.js.map +1 -0
  1008. package/script/src/api/info/userTwapSliceFills.d.ts +139 -0
  1009. package/script/src/api/info/userTwapSliceFills.d.ts.map +1 -0
  1010. package/script/src/api/info/userTwapSliceFills.js +127 -0
  1011. package/script/src/api/info/userTwapSliceFills.js.map +1 -0
  1012. package/script/src/api/info/userTwapSliceFillsByTime.d.ts +148 -0
  1013. package/script/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -0
  1014. package/script/src/api/info/userTwapSliceFillsByTime.js +133 -0
  1015. package/script/src/api/info/userTwapSliceFillsByTime.js.map +1 -0
  1016. package/script/src/api/info/userVaultEquities.d.ts +64 -0
  1017. package/script/src/api/info/userVaultEquities.d.ts.map +1 -0
  1018. package/script/src/api/info/userVaultEquities.js +98 -0
  1019. package/script/src/api/info/userVaultEquities.js.map +1 -0
  1020. package/script/src/api/info/validatorL1Votes.d.ts +60 -0
  1021. package/script/src/api/info/validatorL1Votes.d.ts.map +1 -0
  1022. package/script/src/api/info/validatorL1Votes.js +94 -0
  1023. package/script/src/api/info/validatorL1Votes.js.map +1 -0
  1024. package/script/src/api/info/validatorSummaries.d.ts +155 -0
  1025. package/script/src/api/info/validatorSummaries.d.ts.map +1 -0
  1026. package/script/src/api/info/validatorSummaries.js +123 -0
  1027. package/script/src/api/info/validatorSummaries.js.map +1 -0
  1028. package/script/src/api/info/vaultDetails.d.ts +359 -0
  1029. package/script/src/api/info/vaultDetails.d.ts.map +1 -0
  1030. package/script/src/api/info/vaultDetails.js +171 -0
  1031. package/script/src/api/info/vaultDetails.js.map +1 -0
  1032. package/script/src/api/info/vaultSummaries.d.ts +104 -0
  1033. package/script/src/api/info/vaultSummaries.d.ts.map +1 -0
  1034. package/script/src/api/info/vaultSummaries.js +114 -0
  1035. package/script/src/api/info/vaultSummaries.js.map +1 -0
  1036. package/script/src/api/info/webData2.d.ts +789 -0
  1037. package/script/src/api/info/webData2.d.ts.map +1 -0
  1038. package/script/src/api/info/webData2.js +426 -0
  1039. package/script/src/api/info/webData2.js.map +1 -0
  1040. package/script/src/api/info/~client.d.ts +2506 -0
  1041. package/script/src/api/info/~client.d.ts.map +1 -0
  1042. package/script/src/api/info/~client.js +1466 -0
  1043. package/script/src/api/info/~client.js.map +1 -0
  1044. package/script/src/api/info/~mod.d.ts +65 -0
  1045. package/script/src/api/info/~mod.d.ts.map +1 -0
  1046. package/script/src/api/info/~mod.js +83 -0
  1047. package/script/src/api/info/~mod.js.map +1 -0
  1048. package/script/src/api/subscription/_common.d.ts +7 -0
  1049. package/script/src/api/subscription/_common.d.ts.map +1 -0
  1050. package/script/src/api/subscription/_common.js +3 -0
  1051. package/script/src/api/subscription/_common.js.map +1 -0
  1052. package/script/src/api/subscription/activeAssetCtx.d.ts +97 -0
  1053. package/script/src/api/subscription/activeAssetCtx.d.ts.map +1 -0
  1054. package/script/src/api/subscription/activeAssetCtx.js +112 -0
  1055. package/script/src/api/subscription/activeAssetCtx.js.map +1 -0
  1056. package/script/src/api/subscription/activeAssetData.d.ts +95 -0
  1057. package/script/src/api/subscription/activeAssetData.d.ts.map +1 -0
  1058. package/script/src/api/subscription/activeAssetData.js +116 -0
  1059. package/script/src/api/subscription/activeAssetData.js.map +1 -0
  1060. package/script/src/api/subscription/activeSpotAssetCtx.d.ts +89 -0
  1061. package/script/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -0
  1062. package/script/src/api/subscription/activeSpotAssetCtx.js +108 -0
  1063. package/script/src/api/subscription/activeSpotAssetCtx.js.map +1 -0
  1064. package/script/src/api/subscription/allMids.d.ts +55 -0
  1065. package/script/src/api/subscription/allMids.d.ts.map +1 -0
  1066. package/script/src/api/subscription/allMids.js +65 -0
  1067. package/script/src/api/subscription/allMids.js.map +1 -0
  1068. package/script/src/api/subscription/assetCtxs.d.ts +108 -0
  1069. package/script/src/api/subscription/assetCtxs.d.ts.map +1 -0
  1070. package/script/src/api/subscription/assetCtxs.js +96 -0
  1071. package/script/src/api/subscription/assetCtxs.js.map +1 -0
  1072. package/script/src/api/subscription/bbo.d.ts +95 -0
  1073. package/script/src/api/subscription/bbo.d.ts.map +1 -0
  1074. package/script/src/api/subscription/bbo.js +104 -0
  1075. package/script/src/api/subscription/bbo.js.map +1 -0
  1076. package/script/src/api/subscription/candle.d.ts +81 -0
  1077. package/script/src/api/subscription/candle.d.ts.map +1 -0
  1078. package/script/src/api/subscription/candle.js +139 -0
  1079. package/script/src/api/subscription/candle.js.map +1 -0
  1080. package/script/src/api/subscription/clearinghouseState.d.ts +320 -0
  1081. package/script/src/api/subscription/clearinghouseState.d.ts.map +1 -0
  1082. package/script/src/api/subscription/clearinghouseState.js +182 -0
  1083. package/script/src/api/subscription/clearinghouseState.js.map +1 -0
  1084. package/script/src/api/subscription/explorerBlock.d.ts +64 -0
  1085. package/script/src/api/subscription/explorerBlock.d.ts.map +1 -0
  1086. package/script/src/api/subscription/explorerBlock.js +94 -0
  1087. package/script/src/api/subscription/explorerBlock.js.map +1 -0
  1088. package/script/src/api/subscription/explorerTxs.d.ts +83 -0
  1089. package/script/src/api/subscription/explorerTxs.d.ts.map +1 -0
  1090. package/script/src/api/subscription/explorerTxs.js +99 -0
  1091. package/script/src/api/subscription/explorerTxs.js.map +1 -0
  1092. package/script/src/api/subscription/l2Book.d.ts +101 -0
  1093. package/script/src/api/subscription/l2Book.d.ts.map +1 -0
  1094. package/script/src/api/subscription/l2Book.js +113 -0
  1095. package/script/src/api/subscription/l2Book.js.map +1 -0
  1096. package/script/src/api/subscription/notification.d.ts +51 -0
  1097. package/script/src/api/subscription/notification.d.ts.map +1 -0
  1098. package/script/src/api/subscription/notification.js +87 -0
  1099. package/script/src/api/subscription/notification.js.map +1 -0
  1100. package/script/src/api/subscription/openOrders.d.ts +160 -0
  1101. package/script/src/api/subscription/openOrders.d.ts.map +1 -0
  1102. package/script/src/api/subscription/openOrders.js +179 -0
  1103. package/script/src/api/subscription/openOrders.js.map +1 -0
  1104. package/script/src/api/subscription/orderUpdates.d.ts +126 -0
  1105. package/script/src/api/subscription/orderUpdates.d.ts.map +1 -0
  1106. package/script/src/api/subscription/orderUpdates.js +158 -0
  1107. package/script/src/api/subscription/orderUpdates.js.map +1 -0
  1108. package/script/src/api/subscription/trades.d.ts +81 -0
  1109. package/script/src/api/subscription/trades.d.ts.map +1 -0
  1110. package/script/src/api/subscription/trades.js +105 -0
  1111. package/script/src/api/subscription/trades.js.map +1 -0
  1112. package/script/src/api/subscription/userEvents.d.ts +948 -0
  1113. package/script/src/api/subscription/userEvents.d.ts.map +1 -0
  1114. package/script/src/api/subscription/userEvents.js +295 -0
  1115. package/script/src/api/subscription/userEvents.js.map +1 -0
  1116. package/script/src/api/subscription/userFills.d.ts +172 -0
  1117. package/script/src/api/subscription/userFills.d.ts.map +1 -0
  1118. package/script/src/api/subscription/userFills.js +143 -0
  1119. package/script/src/api/subscription/userFills.js.map +1 -0
  1120. package/script/src/api/subscription/userFundings.d.ts +91 -0
  1121. package/script/src/api/subscription/userFundings.d.ts.map +1 -0
  1122. package/script/src/api/subscription/userFundings.js +108 -0
  1123. package/script/src/api/subscription/userFundings.js.map +1 -0
  1124. package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts +786 -0
  1125. package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -0
  1126. package/script/src/api/subscription/userNonFundingLedgerUpdates.js +289 -0
  1127. package/script/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -0
  1128. package/script/src/api/subscription/userTwapHistory.d.ts +175 -0
  1129. package/script/src/api/subscription/userTwapHistory.d.ts.map +1 -0
  1130. package/script/src/api/subscription/userTwapHistory.js +148 -0
  1131. package/script/src/api/subscription/userTwapHistory.js.map +1 -0
  1132. package/script/src/api/subscription/userTwapSliceFills.d.ts +147 -0
  1133. package/script/src/api/subscription/userTwapSliceFills.d.ts.map +1 -0
  1134. package/script/src/api/subscription/userTwapSliceFills.js +129 -0
  1135. package/script/src/api/subscription/userTwapSliceFills.js.map +1 -0
  1136. package/script/src/api/subscription/webData2.d.ts +786 -0
  1137. package/script/src/api/subscription/webData2.d.ts.map +1 -0
  1138. package/script/src/api/subscription/webData2.js +423 -0
  1139. package/script/src/api/subscription/webData2.js.map +1 -0
  1140. package/script/src/api/subscription/~client.d.ts +509 -0
  1141. package/script/src/api/subscription/~client.d.ts.map +1 -0
  1142. package/script/src/api/subscription/~client.js +538 -0
  1143. package/script/src/api/subscription/~client.js.map +1 -0
  1144. package/script/src/api/subscription/~mod.d.ts +25 -0
  1145. package/script/src/api/subscription/~mod.d.ts.map +1 -0
  1146. package/script/src/api/subscription/~mod.js +43 -0
  1147. package/script/src/api/subscription/~mod.js.map +1 -0
  1148. package/script/src/mod.d.ts +8 -20
  1149. package/script/src/mod.d.ts.map +1 -1
  1150. package/script/src/mod.js +11 -15
  1151. package/script/src/mod.js.map +1 -1
  1152. package/script/src/signing/_signTypedData.d.ts +118 -0
  1153. package/script/src/signing/_signTypedData.d.ts.map +1 -0
  1154. package/script/src/signing/_signTypedData.js +107 -0
  1155. package/script/src/signing/_signTypedData.js.map +1 -0
  1156. package/script/src/signing/mod.d.ts +34 -112
  1157. package/script/src/signing/mod.d.ts.map +1 -1
  1158. package/script/src/signing/mod.js +52 -183
  1159. package/script/src/signing/mod.js.map +1 -1
  1160. package/script/src/transport/_polyfills.d.ts.map +1 -0
  1161. package/script/src/transport/_polyfills.js.map +1 -0
  1162. package/script/src/transport/base.d.ts +48 -0
  1163. package/script/src/transport/base.d.ts.map +1 -0
  1164. package/script/src/transport/base.js +13 -0
  1165. package/script/src/transport/base.js.map +1 -0
  1166. package/script/src/transport/http/mod.d.ts +94 -0
  1167. package/script/src/transport/http/mod.d.ts.map +1 -0
  1168. package/script/src/transport/http/mod.js +157 -0
  1169. package/script/src/transport/http/mod.js.map +1 -0
  1170. package/script/src/transport/websocket/_hyperliquid_event_target.d.ts +80 -0
  1171. package/script/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -0
  1172. package/script/src/transport/websocket/_hyperliquid_event_target.js +92 -0
  1173. package/script/src/transport/websocket/_hyperliquid_event_target.js.map +1 -0
  1174. package/script/src/transport/websocket/_reconnecting_websocket.d.ts.map +1 -0
  1175. package/script/src/transport/websocket/_reconnecting_websocket.js.map +1 -0
  1176. package/script/src/transport/websocket/_websocket_async_request.d.ts.map +1 -0
  1177. package/script/src/transport/websocket/_websocket_async_request.js +191 -0
  1178. package/script/src/transport/websocket/_websocket_async_request.js.map +1 -0
  1179. package/script/src/transport/websocket/mod.d.ts +123 -0
  1180. package/script/src/transport/websocket/mod.d.ts.map +1 -0
  1181. package/script/src/transport/websocket/mod.js +255 -0
  1182. package/script/src/transport/websocket/mod.js.map +1 -0
  1183. package/script/src/utils/minimalEIP712Signer.d.ts +27 -0
  1184. package/script/src/utils/minimalEIP712Signer.d.ts.map +1 -0
  1185. package/script/src/utils/minimalEIP712Signer.js +209 -0
  1186. package/script/src/utils/minimalEIP712Signer.js.map +1 -0
  1187. package/src/bin/_utils.ts +137 -141
  1188. package/src/bin/cli.ts +65 -112
  1189. package/src/src/_base.ts +7 -0
  1190. package/src/src/api/_common.ts +143 -0
  1191. package/src/src/api/exchange/_common.ts +510 -0
  1192. package/src/src/api/exchange/approveAgent.ts +138 -0
  1193. package/src/src/api/exchange/approveBuilderFee.ts +138 -0
  1194. package/src/src/api/exchange/batchModify.ts +234 -0
  1195. package/src/src/api/exchange/cDeposit.ts +132 -0
  1196. package/src/src/api/exchange/cSignerAction.ts +128 -0
  1197. package/src/src/api/exchange/cValidatorAction.ts +269 -0
  1198. package/src/src/api/exchange/cWithdraw.ts +132 -0
  1199. package/src/src/api/exchange/cancel.ts +210 -0
  1200. package/src/src/api/exchange/cancelByCloid.ts +128 -0
  1201. package/src/src/api/exchange/claimRewards.ts +92 -0
  1202. package/src/src/api/exchange/convertToMultiSigUser.ts +189 -0
  1203. package/src/src/api/exchange/createSubAccount.ts +136 -0
  1204. package/src/src/api/exchange/createVault.ts +157 -0
  1205. package/src/src/api/exchange/evmUserModify.ts +107 -0
  1206. package/src/src/api/exchange/modify.ts +225 -0
  1207. package/src/src/api/exchange/multiSig.ts +304 -0
  1208. package/src/src/api/exchange/noop.ts +94 -0
  1209. package/src/src/api/exchange/order.ts +432 -0
  1210. package/src/src/api/exchange/perpDeploy.ts +233 -0
  1211. package/src/src/api/exchange/registerReferrer.ts +108 -0
  1212. package/src/src/api/exchange/reserveRequestWeight.ts +107 -0
  1213. package/src/src/api/exchange/scheduleCancel.ts +137 -0
  1214. package/src/src/api/exchange/sendAsset.ts +168 -0
  1215. package/src/src/api/exchange/setDisplayName.ts +114 -0
  1216. package/src/src/api/exchange/setReferrer.ts +108 -0
  1217. package/src/src/api/exchange/spotDeploy.ts +329 -0
  1218. package/src/src/api/exchange/spotSend.ts +148 -0
  1219. package/src/src/api/exchange/spotUser.ts +113 -0
  1220. package/src/src/api/exchange/subAccountModify.ts +113 -0
  1221. package/src/src/api/exchange/subAccountSpotTransfer.ts +127 -0
  1222. package/src/src/api/exchange/subAccountTransfer.ts +117 -0
  1223. package/src/src/api/exchange/tokenDelegate.ts +144 -0
  1224. package/src/src/api/exchange/twapCancel.ts +198 -0
  1225. package/src/src/api/exchange/twapOrder.ts +257 -0
  1226. package/src/src/api/exchange/updateIsolatedMargin.ts +123 -0
  1227. package/src/src/api/exchange/updateLeverage.ts +123 -0
  1228. package/src/src/api/exchange/usdClassTransfer.ts +138 -0
  1229. package/src/src/api/exchange/usdSend.ts +138 -0
  1230. package/src/src/api/exchange/vaultDistribute.ts +119 -0
  1231. package/src/src/api/exchange/vaultModify.ts +121 -0
  1232. package/src/src/api/exchange/vaultTransfer.ts +117 -0
  1233. package/src/src/api/exchange/withdraw3.ts +138 -0
  1234. package/src/src/api/exchange/~client.ts +1486 -0
  1235. package/src/src/api/exchange/~mod.ts +45 -0
  1236. package/src/src/api/info/_common.ts +7 -0
  1237. package/src/src/api/info/activeAssetData.ts +147 -0
  1238. package/src/src/api/info/allMids.ts +88 -0
  1239. package/src/src/api/info/blockDetails.ts +165 -0
  1240. package/src/src/api/info/candleSnapshot.ts +187 -0
  1241. package/src/src/api/info/clearinghouseState.ts +279 -0
  1242. package/src/src/api/info/delegations.ts +101 -0
  1243. package/src/src/api/info/delegatorHistory.ts +156 -0
  1244. package/src/src/api/info/delegatorRewards.ts +101 -0
  1245. package/src/src/api/info/delegatorSummary.ts +100 -0
  1246. package/src/src/api/info/exchangeStatus.ts +74 -0
  1247. package/src/src/api/info/extraAgents.ts +102 -0
  1248. package/src/src/api/info/frontendOpenOrders.ts +219 -0
  1249. package/src/src/api/info/fundingHistory.ts +116 -0
  1250. package/src/src/api/info/gossipRootIps.ts +65 -0
  1251. package/src/src/api/info/historicalOrders.ts +278 -0
  1252. package/src/src/api/info/isVip.ts +79 -0
  1253. package/src/src/api/info/l2Book.ts +140 -0
  1254. package/src/src/api/info/leadingVaults.ts +96 -0
  1255. package/src/src/api/info/legalCheck.ts +95 -0
  1256. package/src/src/api/info/liquidatable.ts +63 -0
  1257. package/src/src/api/info/marginTable.ts +110 -0
  1258. package/src/src/api/info/maxBuilderFee.ts +86 -0
  1259. package/src/src/api/info/maxMarketOrderNtls.ts +74 -0
  1260. package/src/src/api/info/meta.ts +175 -0
  1261. package/src/src/api/info/metaAndAssetCtxs.ts +242 -0
  1262. package/src/src/api/info/openOrders.ts +136 -0
  1263. package/src/src/api/info/orderStatus.ts +303 -0
  1264. package/src/src/api/info/perpDeployAuctionStatus.ts +91 -0
  1265. package/src/src/api/info/perpDexLimits.ts +102 -0
  1266. package/src/src/api/info/perpDexs.ts +94 -0
  1267. package/src/src/api/info/perpsAtOpenInterestCap.ts +88 -0
  1268. package/src/src/api/info/portfolio.ts +113 -0
  1269. package/src/src/api/info/preTransferCheck.ts +105 -0
  1270. package/src/src/api/info/predictedFundings.ts +117 -0
  1271. package/src/src/api/info/recentTrades.ts +126 -0
  1272. package/src/src/api/info/referral.ts +315 -0
  1273. package/src/src/api/info/spotClearinghouseState.ts +151 -0
  1274. package/src/src/api/info/spotDeployState.ts +194 -0
  1275. package/src/src/api/info/spotMeta.ts +168 -0
  1276. package/src/src/api/info/spotMetaAndAssetCtxs.ts +226 -0
  1277. package/src/src/api/info/spotPairDeployAuctionStatus.ts +91 -0
  1278. package/src/src/api/info/subAccounts.ts +376 -0
  1279. package/src/src/api/info/tokenDetails.ts +178 -0
  1280. package/src/src/api/info/twapHistory.ts +188 -0
  1281. package/src/src/api/info/txDetails.ts +128 -0
  1282. package/src/src/api/info/userDetails.ts +134 -0
  1283. package/src/src/api/info/userFees.ts +288 -0
  1284. package/src/src/api/info/userFills.ts +194 -0
  1285. package/src/src/api/info/userFillsByTime.ts +204 -0
  1286. package/src/src/api/info/userFunding.ts +142 -0
  1287. package/src/src/api/info/userNonFundingLedgerUpdates.ts +530 -0
  1288. package/src/src/api/info/userRateLimit.ts +95 -0
  1289. package/src/src/api/info/userRole.ts +123 -0
  1290. package/src/src/api/info/userToMultiSigSigners.ts +94 -0
  1291. package/src/src/api/info/userTwapSliceFills.ts +172 -0
  1292. package/src/src/api/info/userTwapSliceFillsByTime.ts +187 -0
  1293. package/src/src/api/info/userVaultEquities.ts +101 -0
  1294. package/src/src/api/info/validatorL1Votes.ts +89 -0
  1295. package/src/src/api/info/validatorSummaries.ts +156 -0
  1296. package/src/src/api/info/vaultDetails.ts +274 -0
  1297. package/src/src/api/info/vaultSummaries.ts +133 -0
  1298. package/src/src/api/info/webData2.ts +832 -0
  1299. package/src/src/api/info/~client.ts +1615 -0
  1300. package/src/src/api/info/~mod.ts +65 -0
  1301. package/src/src/api/subscription/_common.ts +7 -0
  1302. package/src/src/api/subscription/activeAssetCtx.ts +139 -0
  1303. package/src/src/api/subscription/activeAssetData.ts +145 -0
  1304. package/src/src/api/subscription/activeSpotAssetCtx.ts +129 -0
  1305. package/src/src/api/subscription/allMids.ts +92 -0
  1306. package/src/src/api/subscription/assetCtxs.ts +160 -0
  1307. package/src/src/api/subscription/bbo.ts +117 -0
  1308. package/src/src/api/subscription/candle.ts +163 -0
  1309. package/src/src/api/subscription/clearinghouseState.ts +297 -0
  1310. package/src/src/api/subscription/explorerBlock.ts +100 -0
  1311. package/src/src/api/subscription/explorerTxs.ts +111 -0
  1312. package/src/src/api/subscription/l2Book.ts +142 -0
  1313. package/src/src/api/subscription/notification.ts +81 -0
  1314. package/src/src/api/subscription/openOrders.ts +237 -0
  1315. package/src/src/api/subscription/orderUpdates.ts +191 -0
  1316. package/src/src/api/subscription/trades.ts +124 -0
  1317. package/src/src/api/subscription/userEvents.ts +543 -0
  1318. package/src/src/api/subscription/userFills.ts +212 -0
  1319. package/src/src/api/subscription/userFundings.ts +130 -0
  1320. package/src/src/api/subscription/userNonFundingLedgerUpdates.ts +534 -0
  1321. package/src/src/api/subscription/userTwapHistory.ts +202 -0
  1322. package/src/src/api/subscription/userTwapSliceFills.ts +182 -0
  1323. package/src/src/api/subscription/webData2.ts +830 -0
  1324. package/src/src/api/subscription/~client.ts +632 -0
  1325. package/src/src/api/subscription/~mod.ts +25 -0
  1326. package/src/src/mod.ts +8 -27
  1327. package/src/src/signing/_signTypedData.ts +236 -0
  1328. package/src/src/signing/mod.ts +213 -311
  1329. package/src/src/transport/_polyfills.ts +41 -0
  1330. package/src/src/transport/base.ts +54 -0
  1331. package/src/src/transport/http/mod.ts +218 -0
  1332. package/src/src/transport/websocket/_hyperliquid_event_target.ts +117 -0
  1333. package/src/src/transport/websocket/_reconnecting_websocket.ts +390 -0
  1334. package/src/src/transport/websocket/_websocket_async_request.ts +233 -0
  1335. package/src/src/transport/websocket/mod.ts +353 -0
  1336. package/src/src/utils/minimalEIP712Signer.ts +250 -0
  1337. package/esm/src/_errors.d.ts +0 -5
  1338. package/esm/src/_errors.d.ts.map +0 -1
  1339. package/esm/src/_errors.js +0 -8
  1340. package/esm/src/_errors.js.map +0 -1
  1341. package/esm/src/clients/exchange.d.ts +0 -1424
  1342. package/esm/src/clients/exchange.d.ts.map +0 -1
  1343. package/esm/src/clients/exchange.js +0 -1627
  1344. package/esm/src/clients/exchange.js.map +0 -1
  1345. package/esm/src/clients/info.d.ts +0 -1385
  1346. package/esm/src/clients/info.d.ts.map +0 -1
  1347. package/esm/src/clients/info.js +0 -1563
  1348. package/esm/src/clients/info.js.map +0 -1
  1349. package/esm/src/clients/multiSign.d.ts +0 -55
  1350. package/esm/src/clients/multiSign.d.ts.map +0 -1
  1351. package/esm/src/clients/multiSign.js +0 -99
  1352. package/esm/src/clients/multiSign.js.map +0 -1
  1353. package/esm/src/clients/subscription.d.ts +0 -537
  1354. package/esm/src/clients/subscription.d.ts.map +0 -1
  1355. package/esm/src/clients/subscription.js +0 -609
  1356. package/esm/src/clients/subscription.js.map +0 -1
  1357. package/esm/src/schemas/_base.d.ts +0 -16
  1358. package/esm/src/schemas/_base.d.ts.map +0 -1
  1359. package/esm/src/schemas/_base.js +0 -17
  1360. package/esm/src/schemas/_base.js.map +0 -1
  1361. package/esm/src/schemas/exchange/requests.d.ts +0 -8972
  1362. package/esm/src/schemas/exchange/requests.d.ts.map +0 -1
  1363. package/esm/src/schemas/exchange/requests.js +0 -1405
  1364. package/esm/src/schemas/exchange/requests.js.map +0 -1
  1365. package/esm/src/schemas/exchange/responses.d.ts +0 -567
  1366. package/esm/src/schemas/exchange/responses.d.ts.map +0 -1
  1367. package/esm/src/schemas/exchange/responses.js +0 -244
  1368. package/esm/src/schemas/exchange/responses.js.map +0 -1
  1369. package/esm/src/schemas/explorer/requests.d.ts +0 -44
  1370. package/esm/src/schemas/explorer/requests.d.ts.map +0 -1
  1371. package/esm/src/schemas/explorer/requests.js +0 -33
  1372. package/esm/src/schemas/explorer/requests.js.map +0 -1
  1373. package/esm/src/schemas/explorer/responses.d.ts +0 -360
  1374. package/esm/src/schemas/explorer/responses.d.ts.map +0 -1
  1375. package/esm/src/schemas/explorer/responses.js +0 -57
  1376. package/esm/src/schemas/explorer/responses.js.map +0 -1
  1377. package/esm/src/schemas/info/accounts.d.ts +0 -2905
  1378. package/esm/src/schemas/info/accounts.d.ts.map +0 -1
  1379. package/esm/src/schemas/info/accounts.js +0 -667
  1380. package/esm/src/schemas/info/accounts.js.map +0 -1
  1381. package/esm/src/schemas/info/assets.d.ts +0 -974
  1382. package/esm/src/schemas/info/assets.d.ts.map +0 -1
  1383. package/esm/src/schemas/info/assets.js +0 -285
  1384. package/esm/src/schemas/info/assets.js.map +0 -1
  1385. package/esm/src/schemas/info/markets.d.ts +0 -155
  1386. package/esm/src/schemas/info/markets.d.ts.map +0 -1
  1387. package/esm/src/schemas/info/markets.js +0 -70
  1388. package/esm/src/schemas/info/markets.js.map +0 -1
  1389. package/esm/src/schemas/info/orders.d.ts +0 -957
  1390. package/esm/src/schemas/info/orders.d.ts.map +0 -1
  1391. package/esm/src/schemas/info/orders.js +0 -298
  1392. package/esm/src/schemas/info/orders.js.map +0 -1
  1393. package/esm/src/schemas/info/requests.d.ts +0 -939
  1394. package/esm/src/schemas/info/requests.d.ts.map +0 -1
  1395. package/esm/src/schemas/info/requests.js +0 -698
  1396. package/esm/src/schemas/info/requests.js.map +0 -1
  1397. package/esm/src/schemas/info/validators.d.ts +0 -326
  1398. package/esm/src/schemas/info/validators.d.ts.map +0 -1
  1399. package/esm/src/schemas/info/validators.js +0 -126
  1400. package/esm/src/schemas/info/validators.js.map +0 -1
  1401. package/esm/src/schemas/info/vaults.d.ts +0 -447
  1402. package/esm/src/schemas/info/vaults.d.ts.map +0 -1
  1403. package/esm/src/schemas/info/vaults.js +0 -111
  1404. package/esm/src/schemas/info/vaults.js.map +0 -1
  1405. package/esm/src/schemas/mod.d.ts +0 -101
  1406. package/esm/src/schemas/mod.d.ts.map +0 -1
  1407. package/esm/src/schemas/mod.js +0 -115
  1408. package/esm/src/schemas/mod.js.map +0 -1
  1409. package/esm/src/schemas/subscriptions/requests.d.ts +0 -332
  1410. package/esm/src/schemas/subscriptions/requests.d.ts.map +0 -1
  1411. package/esm/src/schemas/subscriptions/requests.js +0 -259
  1412. package/esm/src/schemas/subscriptions/requests.js.map +0 -1
  1413. package/esm/src/schemas/subscriptions/responses.d.ts +0 -3643
  1414. package/esm/src/schemas/subscriptions/responses.d.ts.map +0 -1
  1415. package/esm/src/schemas/subscriptions/responses.js +0 -234
  1416. package/esm/src/schemas/subscriptions/responses.js.map +0 -1
  1417. package/esm/src/signing/signTypedData/ethers.d.ts +0 -45
  1418. package/esm/src/signing/signTypedData/ethers.d.ts.map +0 -1
  1419. package/esm/src/signing/signTypedData/ethers.js +0 -13
  1420. package/esm/src/signing/signTypedData/ethers.js.map +0 -1
  1421. package/esm/src/signing/signTypedData/mod.d.ts +0 -35
  1422. package/esm/src/signing/signTypedData/mod.d.ts.map +0 -1
  1423. package/esm/src/signing/signTypedData/mod.js +0 -88
  1424. package/esm/src/signing/signTypedData/mod.js.map +0 -1
  1425. package/esm/src/signing/signTypedData/private_key.d.ts +0 -27
  1426. package/esm/src/signing/signTypedData/private_key.d.ts.map +0 -1
  1427. package/esm/src/signing/signTypedData/private_key.js +0 -167
  1428. package/esm/src/signing/signTypedData/private_key.js.map +0 -1
  1429. package/esm/src/signing/signTypedData/viem.d.ts +0 -44
  1430. package/esm/src/signing/signTypedData/viem.d.ts.map +0 -1
  1431. package/esm/src/signing/signTypedData/viem.js +0 -7
  1432. package/esm/src/signing/signTypedData/viem.js.map +0 -1
  1433. package/esm/src/transports/_polyfills.d.ts.map +0 -1
  1434. package/esm/src/transports/_polyfills.js.map +0 -1
  1435. package/esm/src/transports/base.d.ts +0 -48
  1436. package/esm/src/transports/base.d.ts.map +0 -1
  1437. package/esm/src/transports/base.js +0 -9
  1438. package/esm/src/transports/base.js.map +0 -1
  1439. package/esm/src/transports/http/http_transport.d.ts +0 -95
  1440. package/esm/src/transports/http/http_transport.d.ts.map +0 -1
  1441. package/esm/src/transports/http/http_transport.js +0 -152
  1442. package/esm/src/transports/http/http_transport.js.map +0 -1
  1443. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +0 -61
  1444. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +0 -1
  1445. package/esm/src/transports/websocket/_hyperliquid_event_target.js +0 -31
  1446. package/esm/src/transports/websocket/_hyperliquid_event_target.js.map +0 -1
  1447. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts.map +0 -1
  1448. package/esm/src/transports/websocket/_reconnecting_websocket.js.map +0 -1
  1449. package/esm/src/transports/websocket/_websocket_async_request.d.ts.map +0 -1
  1450. package/esm/src/transports/websocket/_websocket_async_request.js +0 -180
  1451. package/esm/src/transports/websocket/_websocket_async_request.js.map +0 -1
  1452. package/esm/src/transports/websocket/websocket_transport.d.ts +0 -123
  1453. package/esm/src/transports/websocket/websocket_transport.d.ts.map +0 -1
  1454. package/esm/src/transports/websocket/websocket_transport.js +0 -250
  1455. package/esm/src/transports/websocket/websocket_transport.js.map +0 -1
  1456. package/script/src/_errors.d.ts +0 -5
  1457. package/script/src/_errors.d.ts.map +0 -1
  1458. package/script/src/_errors.js +0 -12
  1459. package/script/src/_errors.js.map +0 -1
  1460. package/script/src/clients/exchange.d.ts +0 -1424
  1461. package/script/src/clients/exchange.d.ts.map +0 -1
  1462. package/script/src/clients/exchange.js +0 -1632
  1463. package/script/src/clients/exchange.js.map +0 -1
  1464. package/script/src/clients/info.d.ts +0 -1385
  1465. package/script/src/clients/info.d.ts.map +0 -1
  1466. package/script/src/clients/info.js +0 -1567
  1467. package/script/src/clients/info.js.map +0 -1
  1468. package/script/src/clients/multiSign.d.ts +0 -55
  1469. package/script/src/clients/multiSign.d.ts.map +0 -1
  1470. package/script/src/clients/multiSign.js +0 -103
  1471. package/script/src/clients/multiSign.js.map +0 -1
  1472. package/script/src/clients/subscription.d.ts +0 -537
  1473. package/script/src/clients/subscription.d.ts.map +0 -1
  1474. package/script/src/clients/subscription.js +0 -613
  1475. package/script/src/clients/subscription.js.map +0 -1
  1476. package/script/src/schemas/_base.d.ts +0 -16
  1477. package/script/src/schemas/_base.d.ts.map +0 -1
  1478. package/script/src/schemas/_base.js +0 -53
  1479. package/script/src/schemas/_base.js.map +0 -1
  1480. package/script/src/schemas/exchange/requests.d.ts +0 -8972
  1481. package/script/src/schemas/exchange/requests.d.ts.map +0 -1
  1482. package/script/src/schemas/exchange/requests.js +0 -1441
  1483. package/script/src/schemas/exchange/requests.js.map +0 -1
  1484. package/script/src/schemas/exchange/responses.d.ts +0 -567
  1485. package/script/src/schemas/exchange/responses.d.ts.map +0 -1
  1486. package/script/src/schemas/exchange/responses.js +0 -280
  1487. package/script/src/schemas/exchange/responses.js.map +0 -1
  1488. package/script/src/schemas/explorer/requests.d.ts +0 -44
  1489. package/script/src/schemas/explorer/requests.d.ts.map +0 -1
  1490. package/script/src/schemas/explorer/requests.js +0 -69
  1491. package/script/src/schemas/explorer/requests.js.map +0 -1
  1492. package/script/src/schemas/explorer/responses.d.ts +0 -360
  1493. package/script/src/schemas/explorer/responses.d.ts.map +0 -1
  1494. package/script/src/schemas/explorer/responses.js +0 -93
  1495. package/script/src/schemas/explorer/responses.js.map +0 -1
  1496. package/script/src/schemas/info/accounts.d.ts +0 -2905
  1497. package/script/src/schemas/info/accounts.d.ts.map +0 -1
  1498. package/script/src/schemas/info/accounts.js +0 -703
  1499. package/script/src/schemas/info/accounts.js.map +0 -1
  1500. package/script/src/schemas/info/assets.d.ts +0 -974
  1501. package/script/src/schemas/info/assets.d.ts.map +0 -1
  1502. package/script/src/schemas/info/assets.js +0 -321
  1503. package/script/src/schemas/info/assets.js.map +0 -1
  1504. package/script/src/schemas/info/markets.d.ts +0 -155
  1505. package/script/src/schemas/info/markets.d.ts.map +0 -1
  1506. package/script/src/schemas/info/markets.js +0 -106
  1507. package/script/src/schemas/info/markets.js.map +0 -1
  1508. package/script/src/schemas/info/orders.d.ts +0 -957
  1509. package/script/src/schemas/info/orders.d.ts.map +0 -1
  1510. package/script/src/schemas/info/orders.js +0 -334
  1511. package/script/src/schemas/info/orders.js.map +0 -1
  1512. package/script/src/schemas/info/requests.d.ts +0 -939
  1513. package/script/src/schemas/info/requests.d.ts.map +0 -1
  1514. package/script/src/schemas/info/requests.js +0 -735
  1515. package/script/src/schemas/info/requests.js.map +0 -1
  1516. package/script/src/schemas/info/validators.d.ts +0 -326
  1517. package/script/src/schemas/info/validators.d.ts.map +0 -1
  1518. package/script/src/schemas/info/validators.js +0 -162
  1519. package/script/src/schemas/info/validators.js.map +0 -1
  1520. package/script/src/schemas/info/vaults.d.ts +0 -447
  1521. package/script/src/schemas/info/vaults.d.ts.map +0 -1
  1522. package/script/src/schemas/info/vaults.js +0 -147
  1523. package/script/src/schemas/info/vaults.js.map +0 -1
  1524. package/script/src/schemas/mod.d.ts +0 -101
  1525. package/script/src/schemas/mod.d.ts.map +0 -1
  1526. package/script/src/schemas/mod.js +0 -157
  1527. package/script/src/schemas/mod.js.map +0 -1
  1528. package/script/src/schemas/subscriptions/requests.d.ts +0 -332
  1529. package/script/src/schemas/subscriptions/requests.d.ts.map +0 -1
  1530. package/script/src/schemas/subscriptions/requests.js +0 -295
  1531. package/script/src/schemas/subscriptions/requests.js.map +0 -1
  1532. package/script/src/schemas/subscriptions/responses.d.ts +0 -3643
  1533. package/script/src/schemas/subscriptions/responses.d.ts.map +0 -1
  1534. package/script/src/schemas/subscriptions/responses.js +0 -270
  1535. package/script/src/schemas/subscriptions/responses.js.map +0 -1
  1536. package/script/src/signing/signTypedData/ethers.d.ts +0 -45
  1537. package/script/src/signing/signTypedData/ethers.d.ts.map +0 -1
  1538. package/script/src/signing/signTypedData/ethers.js +0 -17
  1539. package/script/src/signing/signTypedData/ethers.js.map +0 -1
  1540. package/script/src/signing/signTypedData/mod.d.ts +0 -35
  1541. package/script/src/signing/signTypedData/mod.d.ts.map +0 -1
  1542. package/script/src/signing/signTypedData/mod.js +0 -93
  1543. package/script/src/signing/signTypedData/mod.js.map +0 -1
  1544. package/script/src/signing/signTypedData/private_key.d.ts +0 -27
  1545. package/script/src/signing/signTypedData/private_key.d.ts.map +0 -1
  1546. package/script/src/signing/signTypedData/private_key.js +0 -205
  1547. package/script/src/signing/signTypedData/private_key.js.map +0 -1
  1548. package/script/src/signing/signTypedData/viem.d.ts +0 -44
  1549. package/script/src/signing/signTypedData/viem.d.ts.map +0 -1
  1550. package/script/src/signing/signTypedData/viem.js +0 -10
  1551. package/script/src/signing/signTypedData/viem.js.map +0 -1
  1552. package/script/src/transports/_polyfills.d.ts.map +0 -1
  1553. package/script/src/transports/_polyfills.js.map +0 -1
  1554. package/script/src/transports/base.d.ts +0 -48
  1555. package/script/src/transports/base.d.ts.map +0 -1
  1556. package/script/src/transports/base.js +0 -13
  1557. package/script/src/transports/base.js.map +0 -1
  1558. package/script/src/transports/http/http_transport.d.ts +0 -95
  1559. package/script/src/transports/http/http_transport.d.ts.map +0 -1
  1560. package/script/src/transports/http/http_transport.js +0 -157
  1561. package/script/src/transports/http/http_transport.js.map +0 -1
  1562. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +0 -61
  1563. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +0 -1
  1564. package/script/src/transports/websocket/_hyperliquid_event_target.js +0 -68
  1565. package/script/src/transports/websocket/_hyperliquid_event_target.js.map +0 -1
  1566. package/script/src/transports/websocket/_reconnecting_websocket.d.ts.map +0 -1
  1567. package/script/src/transports/websocket/_reconnecting_websocket.js.map +0 -1
  1568. package/script/src/transports/websocket/_websocket_async_request.d.ts.map +0 -1
  1569. package/script/src/transports/websocket/_websocket_async_request.js +0 -185
  1570. package/script/src/transports/websocket/_websocket_async_request.js.map +0 -1
  1571. package/script/src/transports/websocket/websocket_transport.d.ts +0 -123
  1572. package/script/src/transports/websocket/websocket_transport.d.ts.map +0 -1
  1573. package/script/src/transports/websocket/websocket_transport.js +0 -255
  1574. package/script/src/transports/websocket/websocket_transport.js.map +0 -1
  1575. package/src/src/_errors.ts +0 -7
  1576. package/src/src/clients/exchange.ts +0 -2257
  1577. package/src/src/clients/info.ts +0 -2110
  1578. package/src/src/clients/multiSign.ts +0 -185
  1579. package/src/src/clients/subscription.ts +0 -841
  1580. package/src/src/schemas/_base.ts +0 -60
  1581. package/src/src/schemas/exchange/requests.ts +0 -3055
  1582. package/src/src/schemas/exchange/responses.ts +0 -540
  1583. package/src/src/schemas/explorer/requests.ts +0 -65
  1584. package/src/src/schemas/explorer/responses.ts +0 -138
  1585. package/src/src/schemas/info/accounts.ts +0 -1598
  1586. package/src/src/schemas/info/assets.ts +0 -693
  1587. package/src/src/schemas/info/markets.ts +0 -171
  1588. package/src/src/schemas/info/orders.ts +0 -597
  1589. package/src/src/schemas/info/requests.ts +0 -1401
  1590. package/src/src/schemas/info/validators.ts +0 -297
  1591. package/src/src/schemas/info/vaults.ts +0 -262
  1592. package/src/src/schemas/mod.ts +0 -121
  1593. package/src/src/schemas/subscriptions/requests.ts +0 -514
  1594. package/src/src/schemas/subscriptions/responses.ts +0 -576
  1595. package/src/src/signing/signTypedData/ethers.ts +0 -59
  1596. package/src/src/signing/signTypedData/mod.ts +0 -121
  1597. package/src/src/signing/signTypedData/private_key.ts +0 -234
  1598. package/src/src/signing/signTypedData/viem.ts +0 -55
  1599. package/src/src/transports/_polyfills.ts +0 -41
  1600. package/src/src/transports/base.ts +0 -54
  1601. package/src/src/transports/http/http_transport.ts +0 -219
  1602. package/src/src/transports/websocket/_hyperliquid_event_target.ts +0 -91
  1603. package/src/src/transports/websocket/_reconnecting_websocket.ts +0 -392
  1604. package/src/src/transports/websocket/_websocket_async_request.ts +0 -227
  1605. package/src/src/transports/websocket/websocket_transport.ts +0 -353
  1606. /package/esm/src/{transports → transport}/_polyfills.d.ts +0 -0
  1607. /package/esm/src/{transports → transport}/_polyfills.js +0 -0
  1608. /package/esm/src/{transports → transport}/websocket/_reconnecting_websocket.d.ts +0 -0
  1609. /package/esm/src/{transports → transport}/websocket/_reconnecting_websocket.js +0 -0
  1610. /package/esm/src/{transports → transport}/websocket/_websocket_async_request.d.ts +0 -0
  1611. /package/script/src/{transports → transport}/_polyfills.d.ts +0 -0
  1612. /package/script/src/{transports → transport}/_polyfills.js +0 -0
  1613. /package/script/src/{transports → transport}/websocket/_reconnecting_websocket.d.ts +0 -0
  1614. /package/script/src/{transports → transport}/websocket/_reconnecting_websocket.js +0 -0
  1615. /package/script/src/{transports → transport}/websocket/_websocket_async_request.d.ts +0 -0
@@ -0,0 +1,2506 @@
1
+ import type { OmitFirst, OverloadedParameters } from "../_common.js";
2
+ import type { IRequestTransport } from "../../transport/base.js";
3
+ import type { InfoRequestConfig } from "./_common.js";
4
+ import { activeAssetData } from "./activeAssetData.js";
5
+ import { allMids } from "./allMids.js";
6
+ import { blockDetails } from "./blockDetails.js";
7
+ import { candleSnapshot } from "./candleSnapshot.js";
8
+ import { clearinghouseState } from "./clearinghouseState.js";
9
+ import { delegations } from "./delegations.js";
10
+ import { delegatorHistory } from "./delegatorHistory.js";
11
+ import { delegatorRewards } from "./delegatorRewards.js";
12
+ import { delegatorSummary } from "./delegatorSummary.js";
13
+ import { exchangeStatus } from "./exchangeStatus.js";
14
+ import { extraAgents } from "./extraAgents.js";
15
+ import { frontendOpenOrders } from "./frontendOpenOrders.js";
16
+ import { fundingHistory } from "./fundingHistory.js";
17
+ import { gossipRootIps } from "./gossipRootIps.js";
18
+ import { historicalOrders } from "./historicalOrders.js";
19
+ import { isVip } from "./isVip.js";
20
+ import { l2Book } from "./l2Book.js";
21
+ import { leadingVaults } from "./leadingVaults.js";
22
+ import { legalCheck } from "./legalCheck.js";
23
+ import { liquidatable } from "./liquidatable.js";
24
+ import { marginTable } from "./marginTable.js";
25
+ import { maxBuilderFee } from "./maxBuilderFee.js";
26
+ import { maxMarketOrderNtls } from "./maxMarketOrderNtls.js";
27
+ import { meta } from "./meta.js";
28
+ import { metaAndAssetCtxs } from "./metaAndAssetCtxs.js";
29
+ import { openOrders } from "./openOrders.js";
30
+ import { orderStatus } from "./orderStatus.js";
31
+ import { perpDeployAuctionStatus } from "./perpDeployAuctionStatus.js";
32
+ import { perpDexLimits } from "./perpDexLimits.js";
33
+ import { perpDexs } from "./perpDexs.js";
34
+ import { perpsAtOpenInterestCap } from "./perpsAtOpenInterestCap.js";
35
+ import { portfolio } from "./portfolio.js";
36
+ import { predictedFundings } from "./predictedFundings.js";
37
+ import { preTransferCheck } from "./preTransferCheck.js";
38
+ import { recentTrades } from "./recentTrades.js";
39
+ import { referral } from "./referral.js";
40
+ import { spotClearinghouseState } from "./spotClearinghouseState.js";
41
+ import { spotDeployState } from "./spotDeployState.js";
42
+ import { spotMeta } from "./spotMeta.js";
43
+ import { spotMetaAndAssetCtxs } from "./spotMetaAndAssetCtxs.js";
44
+ import { spotPairDeployAuctionStatus } from "./spotPairDeployAuctionStatus.js";
45
+ import { subAccounts } from "./subAccounts.js";
46
+ import { tokenDetails } from "./tokenDetails.js";
47
+ import { twapHistory } from "./twapHistory.js";
48
+ import { txDetails } from "./txDetails.js";
49
+ import { userDetails } from "./userDetails.js";
50
+ import { userFees } from "./userFees.js";
51
+ import { userFills } from "./userFills.js";
52
+ import { userFillsByTime } from "./userFillsByTime.js";
53
+ import { userFunding } from "./userFunding.js";
54
+ import { userNonFundingLedgerUpdates } from "./userNonFundingLedgerUpdates.js";
55
+ import { userRateLimit } from "./userRateLimit.js";
56
+ import { userRole } from "./userRole.js";
57
+ import { userToMultiSigSigners } from "./userToMultiSigSigners.js";
58
+ import { userTwapSliceFills } from "./userTwapSliceFills.js";
59
+ import { userTwapSliceFillsByTime } from "./userTwapSliceFillsByTime.js";
60
+ import { userVaultEquities } from "./userVaultEquities.js";
61
+ import { validatorL1Votes } from "./validatorL1Votes.js";
62
+ import { validatorSummaries } from "./validatorSummaries.js";
63
+ import { vaultDetails } from "./vaultDetails.js";
64
+ import { vaultSummaries } from "./vaultSummaries.js";
65
+ import { webData2 } from "./webData2.js";
66
+ export type { ActiveAssetDataParameters, ActiveAssetDataResponse } from "./activeAssetData.js";
67
+ export type { AllMidsParameters, AllMidsResponse } from "./allMids.js";
68
+ export type { BlockDetailsParameters, BlockDetailsResponse } from "./blockDetails.js";
69
+ export type { CandleSnapshotParameters, CandleSnapshotResponse } from "./candleSnapshot.js";
70
+ export type { ClearinghouseStateParameters, ClearinghouseStateResponse } from "./clearinghouseState.js";
71
+ export type { DelegationsParameters, DelegationsResponse } from "./delegations.js";
72
+ export type { DelegatorHistoryParameters, DelegatorHistoryResponse } from "./delegatorHistory.js";
73
+ export type { DelegatorRewardsParameters, DelegatorRewardsResponse } from "./delegatorRewards.js";
74
+ export type { DelegatorSummaryParameters, DelegatorSummaryResponse } from "./delegatorSummary.js";
75
+ export type { ExchangeStatusResponse } from "./exchangeStatus.js";
76
+ export type { ExtraAgentsParameters, ExtraAgentsResponse } from "./extraAgents.js";
77
+ export type { FrontendOpenOrdersParameters, FrontendOpenOrdersResponse } from "./frontendOpenOrders.js";
78
+ export type { FundingHistoryParameters, FundingHistoryResponse } from "./fundingHistory.js";
79
+ export type { GossipRootIpsResponse } from "./gossipRootIps.js";
80
+ export type { HistoricalOrdersParameters, HistoricalOrdersResponse } from "./historicalOrders.js";
81
+ export type { IsVipParameters, IsVipResponse } from "./isVip.js";
82
+ export type { L2BookParameters, L2BookResponse } from "./l2Book.js";
83
+ export type { LeadingVaultsParameters, LeadingVaultsResponse } from "./leadingVaults.js";
84
+ export type { LegalCheckParameters, LegalCheckResponse } from "./legalCheck.js";
85
+ export type { LiquidatableResponse } from "./liquidatable.js";
86
+ export type { MarginTableParameters, MarginTableResponse } from "./marginTable.js";
87
+ export type { MaxBuilderFeeParameters, MaxBuilderFeeResponse } from "./maxBuilderFee.js";
88
+ export type { MaxMarketOrderNtlsParameters, MaxMarketOrderNtlsResponse } from "./maxMarketOrderNtls.js";
89
+ export type { MetaParameters, MetaResponse } from "./meta.js";
90
+ export type { MetaAndAssetCtxsParameters, MetaAndAssetCtxsResponse } from "./metaAndAssetCtxs.js";
91
+ export type { OpenOrdersParameters, OpenOrdersResponse } from "./openOrders.js";
92
+ export type { OrderStatusParameters, OrderStatusResponse } from "./orderStatus.js";
93
+ export type { PerpDeployAuctionStatusResponse } from "./perpDeployAuctionStatus.js";
94
+ export type { PerpDexLimitsParameters, PerpDexLimitsResponse } from "./perpDexLimits.js";
95
+ export type { PerpDexsResponse } from "./perpDexs.js";
96
+ export type { PerpsAtOpenInterestCapParameters, PerpsAtOpenInterestCapResponse } from "./perpsAtOpenInterestCap.js";
97
+ export type { PortfolioParameters, PortfolioResponse } from "./portfolio.js";
98
+ export type { PredictedFundingsResponse } from "./predictedFundings.js";
99
+ export type { PreTransferCheckParameters, PreTransferCheckResponse } from "./preTransferCheck.js";
100
+ export type { RecentTradesParameters, RecentTradesResponse } from "./recentTrades.js";
101
+ export type { ReferralParameters, ReferralResponse } from "./referral.js";
102
+ export type { SpotClearinghouseStateParameters, SpotClearinghouseStateResponse } from "./spotClearinghouseState.js";
103
+ export type { SpotDeployStateParameters, SpotDeployStateResponse } from "./spotDeployState.js";
104
+ export type { SpotMetaResponse } from "./spotMeta.js";
105
+ export type { SpotMetaAndAssetCtxsResponse } from "./spotMetaAndAssetCtxs.js";
106
+ export type { SpotPairDeployAuctionStatusResponse } from "./spotPairDeployAuctionStatus.js";
107
+ export type { SubAccountsParameters, SubAccountsResponse } from "./subAccounts.js";
108
+ export type { TokenDetailsParameters, TokenDetailsResponse } from "./tokenDetails.js";
109
+ export type { TwapHistoryParameters, TwapHistoryResponse } from "./twapHistory.js";
110
+ export type { TxDetailsParameters, TxDetailsResponse } from "./txDetails.js";
111
+ export type { UserDetailsParameters, UserDetailsResponse } from "./userDetails.js";
112
+ export type { UserFeesParameters, UserFeesResponse } from "./userFees.js";
113
+ export type { UserFillsParameters, UserFillsResponse } from "./userFills.js";
114
+ export type { UserFillsByTimeParameters, UserFillsByTimeResponse } from "./userFillsByTime.js";
115
+ export type { UserFundingParameters, UserFundingResponse } from "./userFunding.js";
116
+ export type { UserNonFundingLedgerUpdatesParameters, UserNonFundingLedgerUpdatesResponse, } from "./userNonFundingLedgerUpdates.js";
117
+ export type { UserRateLimitParameters, UserRateLimitResponse } from "./userRateLimit.js";
118
+ export type { UserRoleParameters, UserRoleResponse } from "./userRole.js";
119
+ export type { UserToMultiSigSignersParameters, UserToMultiSigSignersResponse } from "./userToMultiSigSigners.js";
120
+ export type { UserTwapSliceFillsParameters, UserTwapSliceFillsResponse } from "./userTwapSliceFills.js";
121
+ export type { UserTwapSliceFillsByTimeParameters, UserTwapSliceFillsByTimeResponse, } from "./userTwapSliceFillsByTime.js";
122
+ export type { UserVaultEquitiesParameters, UserVaultEquitiesResponse } from "./userVaultEquities.js";
123
+ export type { ValidatorL1VotesResponse } from "./validatorL1Votes.js";
124
+ export type { ValidatorSummariesResponse } from "./validatorSummaries.js";
125
+ export type { VaultDetailsParameters, VaultDetailsResponse } from "./vaultDetails.js";
126
+ export type { VaultSummariesResponse } from "./vaultSummaries.js";
127
+ export type { WebData2Parameters, WebData2Response } from "./webData2.js";
128
+ /**
129
+ * A client for interacting with the Hyperliquid Info API.
130
+ * @typeParam T - The transport (extends {@linkcode IRequestTransport}) used to connect to the Hyperliquid API.
131
+ */
132
+ export declare class InfoClient<T extends IRequestTransport = IRequestTransport> implements InfoRequestConfig<T> {
133
+ transport: T;
134
+ /**
135
+ * Initialises a new instance.
136
+ * @param args - The arguments for initialisation.
137
+ *
138
+ * @example
139
+ * ```ts
140
+ * import * as hl from "@nktkas/hyperliquid";
141
+ *
142
+ * const transport = new hl.HttpTransport();
143
+ * const infoClient = new hl.InfoClient({ transport });
144
+ * ```
145
+ */
146
+ constructor(args: InfoRequestConfig<T>);
147
+ /**
148
+ * Request user active asset data.
149
+ * @param params - Parameters specific to the API request.
150
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
151
+ * @returns User active asset data.
152
+ *
153
+ * @throws {TransportError} When the transport layer throws an error.
154
+ *
155
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-users-active-asset-data
156
+ * @example
157
+ * ```ts
158
+ * import * as hl from "@nktkas/hyperliquid";
159
+ *
160
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
161
+ *
162
+ * const client = new hl.InfoClient({ transport });
163
+ * const data = await client.activeAssetData({ user: "0x...", coin: "ETH" });
164
+ * ```
165
+ */
166
+ activeAssetData(...args: OmitFirst<OverloadedParameters<typeof activeAssetData>>): Promise<{
167
+ user: `0x${string}`;
168
+ coin: string;
169
+ leverage: {
170
+ type: "isolated";
171
+ value: number;
172
+ rawUsd: string;
173
+ } | {
174
+ type: "cross";
175
+ value: number;
176
+ };
177
+ maxTradeSzs: [string, string];
178
+ availableToTrade: [string, string];
179
+ markPx: string;
180
+ }>;
181
+ /**
182
+ * Request mid coin prices.
183
+ * @param params - Parameters specific to the API request.
184
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
185
+ * @returns Mapping of coin symbols to mid prices.
186
+ *
187
+ * @throws {TransportError} When the transport layer throws an error.
188
+ *
189
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-mids-for-all-coins
190
+ * @example
191
+ * ```ts
192
+ * import * as hl from "@nktkas/hyperliquid";
193
+ *
194
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
195
+ *
196
+ * const client = new hl.InfoClient({ transport });
197
+ * const data = await client.allMids();
198
+ * ```
199
+ */
200
+ allMids(...args: OmitFirst<OverloadedParameters<typeof allMids>>): Promise<{
201
+ [x: string]: string;
202
+ }>;
203
+ /**
204
+ * Request block details by block height.
205
+ * @param params - Parameters specific to the API request.
206
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
207
+ * @returns Response containing block information.
208
+ *
209
+ * @throws {TransportError} When the transport layer throws an error.
210
+ *
211
+ * @see null
212
+ * @example
213
+ * ```ts
214
+ * import * as hl from "@nktkas/hyperliquid";
215
+ *
216
+ * const transport = new hl.HttpTransport(); // only `HttpTransport` supports this API
217
+ *
218
+ * const client = new hl.InfoClient({ transport });
219
+ * const data = await client.blockDetails({ height: 123 });
220
+ * ```
221
+ */
222
+ blockDetails(this: T extends {
223
+ request(endpoint: "explorer", ...args: unknown[]): unknown;
224
+ } ? InfoRequestConfig<T> : never, ...args: OmitFirst<OverloadedParameters<typeof blockDetails>>): Promise<{
225
+ type: "blockDetails";
226
+ blockDetails: {
227
+ blockTime: number;
228
+ hash: `0x${string}`;
229
+ height: number;
230
+ numTxs: number;
231
+ proposer: `0x${string}`;
232
+ txs: {
233
+ action: {
234
+ type: string;
235
+ } & {
236
+ [key: string]: unknown;
237
+ };
238
+ block: number;
239
+ error: string | null;
240
+ hash: `0x${string}`;
241
+ time: number;
242
+ user: `0x${string}`;
243
+ }[];
244
+ };
245
+ }>;
246
+ /**
247
+ * Request candlestick snapshots.
248
+ * @param params - Parameters specific to the API request.
249
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
250
+ * @returns Array of candlestick data points.
251
+ *
252
+ * @throws {TransportError} When the transport layer throws an error.
253
+ *
254
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#candle-snapshot
255
+ * @example
256
+ * ```ts
257
+ * import * as hl from "@nktkas/hyperliquid";
258
+ *
259
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
260
+ *
261
+ * const client = new hl.InfoClient({ transport });
262
+ * const data = await client.candleSnapshot({
263
+ * coin: "ETH",
264
+ * interval: "1h",
265
+ * startTime: Date.now() - 1000 * 60 * 60 * 24,
266
+ * });
267
+ * ```
268
+ */
269
+ candleSnapshot(...args: OmitFirst<OverloadedParameters<typeof candleSnapshot>>): Promise<{
270
+ t: number;
271
+ T: number;
272
+ s: string;
273
+ i: "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1M";
274
+ o: string;
275
+ c: string;
276
+ h: string;
277
+ l: string;
278
+ v: string;
279
+ n: number;
280
+ }[]>;
281
+ /**
282
+ * Request clearinghouse state.
283
+ * @param params - Parameters specific to the API request.
284
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
285
+ * @returns Account summary for perpetual trading.
286
+ *
287
+ * @throws {TransportError} When the transport layer throws an error.
288
+ *
289
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-users-perpetuals-account-summary
290
+ * @example
291
+ * ```ts
292
+ * import * as hl from "@nktkas/hyperliquid";
293
+ *
294
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
295
+ *
296
+ * const client = new hl.InfoClient({ transport });
297
+ * const data = await client.clearinghouseState({ user: "0x..." });
298
+ * ```
299
+ */
300
+ clearinghouseState(...args: OmitFirst<OverloadedParameters<typeof clearinghouseState>>): Promise<{
301
+ marginSummary: {
302
+ accountValue: string;
303
+ totalNtlPos: string;
304
+ totalRawUsd: string;
305
+ totalMarginUsed: string;
306
+ };
307
+ crossMarginSummary: {
308
+ accountValue: string;
309
+ totalNtlPos: string;
310
+ totalRawUsd: string;
311
+ totalMarginUsed: string;
312
+ };
313
+ crossMaintenanceMarginUsed: string;
314
+ withdrawable: string;
315
+ assetPositions: {
316
+ type: "oneWay";
317
+ position: {
318
+ coin: string;
319
+ szi: string;
320
+ leverage: {
321
+ type: "isolated";
322
+ value: number;
323
+ rawUsd: string;
324
+ } | {
325
+ type: "cross";
326
+ value: number;
327
+ };
328
+ entryPx: string;
329
+ positionValue: string;
330
+ unrealizedPnl: string;
331
+ returnOnEquity: string;
332
+ liquidationPx: string | null;
333
+ marginUsed: string;
334
+ maxLeverage: number;
335
+ cumFunding: {
336
+ allTime: string;
337
+ sinceOpen: string;
338
+ sinceChange: string;
339
+ };
340
+ };
341
+ }[];
342
+ time: number;
343
+ }>;
344
+ /**
345
+ * Request user staking delegations.
346
+ * @param params - Parameters specific to the API request.
347
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
348
+ * @returns Array of user's delegations to validators.
349
+ *
350
+ * @throws {TransportError} When the transport layer throws an error.
351
+ *
352
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-delegations
353
+ * @example
354
+ * ```ts
355
+ * import * as hl from "@nktkas/hyperliquid";
356
+ *
357
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
358
+ *
359
+ * const client = new hl.InfoClient({ transport });
360
+ * const data = await client.delegations({ user: "0x..." });
361
+ * ```
362
+ */
363
+ delegations(...args: OmitFirst<OverloadedParameters<typeof delegations>>): Promise<{
364
+ validator: `0x${string}`;
365
+ amount: string;
366
+ lockedUntilTimestamp: number;
367
+ }[]>;
368
+ /**
369
+ * Request user staking history.
370
+ * @param params - Parameters specific to the API request.
371
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
372
+ * @returns Array of records of staking events by a delegator.
373
+ *
374
+ * @throws {TransportError} When the transport layer throws an error.
375
+ *
376
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-history
377
+ * @example
378
+ * ```ts
379
+ * import * as hl from "@nktkas/hyperliquid";
380
+ *
381
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
382
+ *
383
+ * const client = new hl.InfoClient({ transport });
384
+ * const data = await client.delegatorHistory({ user: "0x..." });
385
+ * ```
386
+ */
387
+ delegatorHistory(...args: OmitFirst<OverloadedParameters<typeof delegatorHistory>>): Promise<{
388
+ time: number;
389
+ hash: `0x${string}`;
390
+ delta: {
391
+ delegate: {
392
+ validator: `0x${string}`;
393
+ amount: string;
394
+ isUndelegate: boolean;
395
+ };
396
+ } | {
397
+ cDeposit: {
398
+ amount: string;
399
+ };
400
+ } | {
401
+ withdrawal: {
402
+ amount: string;
403
+ phase: "initiated" | "finalized";
404
+ };
405
+ };
406
+ }[]>;
407
+ /**
408
+ * Request user staking rewards.
409
+ * @param params - Parameters specific to the API request.
410
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
411
+ * @returns Array of rewards received from staking activities.
412
+ *
413
+ * @throws {TransportError} When the transport layer throws an error.
414
+ *
415
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-rewards
416
+ * @example
417
+ * ```ts
418
+ * import * as hl from "@nktkas/hyperliquid";
419
+ *
420
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
421
+ *
422
+ * const client = new hl.InfoClient({ transport });
423
+ * const data = await client.delegatorRewards({ user: "0x..." });
424
+ * ```
425
+ */
426
+ delegatorRewards(...args: OmitFirst<OverloadedParameters<typeof delegatorRewards>>): Promise<{
427
+ time: number;
428
+ source: "delegation" | "commission";
429
+ totalAmount: string;
430
+ }[]>;
431
+ /**
432
+ * Request user's staking summary.
433
+ * @param params - Parameters specific to the API request.
434
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
435
+ * @returns User's staking summary.
436
+ *
437
+ * @throws {TransportError} When the transport layer throws an error.
438
+ *
439
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-summary
440
+ * @example
441
+ * ```ts
442
+ * import * as hl from "@nktkas/hyperliquid";
443
+ *
444
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
445
+ *
446
+ * const client = new hl.InfoClient({ transport });
447
+ * const data = await client.delegatorSummary({ user: "0x..." });
448
+ * ```
449
+ */
450
+ delegatorSummary(...args: OmitFirst<OverloadedParameters<typeof delegatorSummary>>): Promise<{
451
+ delegated: string;
452
+ undelegated: string;
453
+ totalPendingWithdrawal: string;
454
+ nPendingWithdrawals: number;
455
+ }>;
456
+ /**
457
+ * Request exchange system status information.
458
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
459
+ * @returns Exchange system status information.
460
+ *
461
+ * @throws {TransportError} When the transport layer throws an error.
462
+ *
463
+ * @see null
464
+ * @example
465
+ * ```ts
466
+ * import * as hl from "@nktkas/hyperliquid";
467
+ *
468
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
469
+ *
470
+ * const client = new hl.InfoClient({ transport });
471
+ * const data = await client.exchangeStatus();
472
+ * ```
473
+ */
474
+ exchangeStatus(...args: OmitFirst<OverloadedParameters<typeof exchangeStatus>>): Promise<{
475
+ time: number;
476
+ specialStatuses: unknown;
477
+ }>;
478
+ /**
479
+ * Request user extra agents.
480
+ * @param params - Parameters specific to the API request.
481
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
482
+ * @returns Array of extra agent details for a user.
483
+ *
484
+ * @throws {TransportError} When the transport layer throws an error.
485
+ *
486
+ * @see null
487
+ * @example
488
+ * ```ts
489
+ * import * as hl from "@nktkas/hyperliquid";
490
+ *
491
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
492
+ *
493
+ * const client = new hl.InfoClient({ transport });
494
+ * const data = await client.extraAgents({ user: "0x..." });
495
+ * ```
496
+ */
497
+ extraAgents(...args: OmitFirst<OverloadedParameters<typeof extraAgents>>): Promise<{
498
+ address: `0x${string}`;
499
+ name: string;
500
+ validUntil: number;
501
+ }[]>;
502
+ /**
503
+ * Request frontend open orders.
504
+ * @param params - Parameters specific to the API request.
505
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
506
+ * @returns Array of open orders with additional display information.
507
+ *
508
+ * @throws {TransportError} When the transport layer throws an error.
509
+ *
510
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-open-orders-with-additional-frontend-info
511
+ * @example
512
+ * ```ts
513
+ * import * as hl from "@nktkas/hyperliquid";
514
+ *
515
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
516
+ *
517
+ * const client = new hl.InfoClient({ transport });
518
+ * const data = await client.frontendOpenOrders({ user: "0x..." });
519
+ * ```
520
+ */
521
+ frontendOpenOrders(...args: OmitFirst<OverloadedParameters<typeof frontendOpenOrders>>): Promise<{
522
+ coin: string;
523
+ side: "B" | "A";
524
+ limitPx: string;
525
+ sz: string;
526
+ oid: number;
527
+ timestamp: number;
528
+ origSz: string;
529
+ triggerCondition: string;
530
+ isTrigger: boolean;
531
+ triggerPx: string;
532
+ children: any;
533
+ isPositionTpsl: boolean;
534
+ reduceOnly: boolean;
535
+ orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
536
+ tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
537
+ cloid: `0x${string}` | null;
538
+ }[]>;
539
+ /**
540
+ * Request funding history.
541
+ * @param params - Parameters specific to the API request.
542
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
543
+ * @returns Array of historical funding rate records for an asset.
544
+ *
545
+ * @throws {TransportError} When the transport layer throws an error.
546
+ *
547
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-historical-funding-rates
548
+ * @example
549
+ * ```ts
550
+ * import * as hl from "@nktkas/hyperliquid";
551
+ *
552
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
553
+ *
554
+ * const client = new hl.InfoClient({ transport });
555
+ * const data = await client.fundingHistory({
556
+ * coin: "ETH",
557
+ * startTime: Date.now() - 1000 * 60 * 60 * 24,
558
+ * });
559
+ * ```
560
+ */
561
+ fundingHistory(...args: OmitFirst<OverloadedParameters<typeof fundingHistory>>): Promise<{
562
+ coin: string;
563
+ fundingRate: string;
564
+ premium: string;
565
+ time: number;
566
+ }[]>;
567
+ /**
568
+ * Request gossip root IPs.
569
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
570
+ * @returns Array of gossip root IPs.
571
+ *
572
+ * @throws {TransportError} When the transport layer throws an error.
573
+ *
574
+ * @see null
575
+ * @example
576
+ * ```ts
577
+ * import * as hl from "@nktkas/hyperliquid";
578
+ *
579
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
580
+ *
581
+ * const client = new hl.InfoClient({ transport });
582
+ * const data = await client.gossipRootIps();
583
+ * ```
584
+ */
585
+ gossipRootIps(...args: OmitFirst<OverloadedParameters<typeof gossipRootIps>>): Promise<string[]>;
586
+ /**
587
+ * Request user historical orders.
588
+ * @param params - Parameters specific to the API request.
589
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
590
+ * @returns Array of frontend orders with current processing status.
591
+ *
592
+ * @throws {TransportError} When the transport layer throws an error.
593
+ *
594
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-historical-orders
595
+ * @example
596
+ * ```ts
597
+ * import * as hl from "@nktkas/hyperliquid";
598
+ *
599
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
600
+ *
601
+ * const client = new hl.InfoClient({ transport });
602
+ * const data = await client.historicalOrders({ user: "0x..." });
603
+ * ```
604
+ */
605
+ historicalOrders(...args: OmitFirst<OverloadedParameters<typeof historicalOrders>>): Promise<{
606
+ order: {
607
+ coin: string;
608
+ side: "B" | "A";
609
+ limitPx: string;
610
+ sz: string;
611
+ oid: number;
612
+ timestamp: number;
613
+ origSz: string;
614
+ triggerCondition: string;
615
+ isTrigger: boolean;
616
+ triggerPx: string;
617
+ children: any[];
618
+ isPositionTpsl: boolean;
619
+ reduceOnly: boolean;
620
+ orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
621
+ tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
622
+ cloid: `0x${string}` | null;
623
+ };
624
+ status: "open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected";
625
+ statusTimestamp: number;
626
+ }[]>;
627
+ /**
628
+ * Request to check if a user is a VIP.
629
+ * @param params - Parameters specific to the API request.
630
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
631
+ * @returns Boolean indicating user's VIP status.
632
+ *
633
+ * @throws {TransportError} When the transport layer throws an error.
634
+ *
635
+ * @see null
636
+ * @example
637
+ * ```ts
638
+ * import * as hl from "@nktkas/hyperliquid";
639
+ *
640
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
641
+ *
642
+ * const client = new hl.InfoClient({ transport });
643
+ * const data = await client.isVip({ user: "0x..." });
644
+ * ```
645
+ */
646
+ isVip(...args: OmitFirst<OverloadedParameters<typeof isVip>>): Promise<boolean | null>;
647
+ /**
648
+ * Request L2 order book.
649
+ * @param params - Parameters specific to the API request.
650
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
651
+ * @returns L2 order book snapshot.
652
+ *
653
+ * @throws {TransportError} When the transport layer throws an error.
654
+ *
655
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#l2-book-snapshot
656
+ * @example
657
+ * ```ts
658
+ * import * as hl from "@nktkas/hyperliquid";
659
+ *
660
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
661
+ *
662
+ * const client = new hl.InfoClient({ transport });
663
+ * const data = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
664
+ * ```
665
+ */
666
+ l2Book(...args: OmitFirst<OverloadedParameters<typeof l2Book>>): Promise<{
667
+ coin: string;
668
+ time: number;
669
+ levels: [{
670
+ px: string;
671
+ sz: string;
672
+ n: number;
673
+ }[], {
674
+ px: string;
675
+ sz: string;
676
+ n: number;
677
+ }[]];
678
+ }>;
679
+ /**
680
+ * Request leading vaults for a user.
681
+ * @param params - Parameters specific to the API request.
682
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
683
+ * @returns Array of leading vaults for a user.
684
+ *
685
+ * @throws {TransportError} When the transport layer throws an error.
686
+ *
687
+ * @see null
688
+ * @example
689
+ * ```ts
690
+ * import * as hl from "@nktkas/hyperliquid";
691
+ *
692
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
693
+ *
694
+ * const client = new hl.InfoClient({ transport });
695
+ * const data = await client.leadingVaults({ user: "0x..." });
696
+ * ```
697
+ */
698
+ leadingVaults(...args: OmitFirst<OverloadedParameters<typeof leadingVaults>>): Promise<{
699
+ address: `0x${string}`;
700
+ name: string;
701
+ }[]>;
702
+ /**
703
+ * Request legal verification status of a user.
704
+ * @param params - Parameters specific to the API request.
705
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
706
+ * @returns Legal verification status for a user.
707
+ *
708
+ * @throws {TransportError} When the transport layer throws an error.
709
+ *
710
+ * @see null
711
+ * @example
712
+ * ```ts
713
+ * import * as hl from "@nktkas/hyperliquid";
714
+ *
715
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
716
+ *
717
+ * const client = new hl.InfoClient({ transport });
718
+ * const data = await client.legalCheck({ user: "0x..." });
719
+ * ```
720
+ */
721
+ legalCheck(...args: OmitFirst<OverloadedParameters<typeof legalCheck>>): Promise<{
722
+ ipAllowed: boolean;
723
+ acceptedTerms: boolean;
724
+ userAllowed: boolean;
725
+ }>;
726
+ /**
727
+ * Request liquidatable.
728
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
729
+ * @returns
730
+ *
731
+ * @throws {TransportError} When the transport layer throws an error.
732
+ *
733
+ * @see null
734
+ * @example
735
+ * ```ts
736
+ * import * as hl from "@nktkas/hyperliquid";
737
+ *
738
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
739
+ *
740
+ * const client = new hl.InfoClient({ transport });
741
+ * const data = await client.liquidatable();
742
+ * ```
743
+ */
744
+ liquidatable(...args: OmitFirst<OverloadedParameters<typeof liquidatable>>): Promise<unknown[]>;
745
+ /**
746
+ * Request margin table data.
747
+ * @param params - Parameters specific to the API request.
748
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
749
+ * @returns Margin requirements table with multiple tiers.
750
+ *
751
+ * @throws {TransportError} When the transport layer throws an error.
752
+ *
753
+ * @see null
754
+ * @example
755
+ * ```ts
756
+ * import * as hl from "@nktkas/hyperliquid";
757
+ *
758
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
759
+ *
760
+ * const client = new hl.InfoClient({ transport });
761
+ * const data = await client.marginTable({ id: 1 });
762
+ * ```
763
+ */
764
+ marginTable(...args: OmitFirst<OverloadedParameters<typeof marginTable>>): Promise<{
765
+ description: string;
766
+ marginTiers: {
767
+ lowerBound: string;
768
+ maxLeverage: number;
769
+ }[];
770
+ }>;
771
+ /**
772
+ * Request builder fee approval.
773
+ * @param params - Parameters specific to the API request.
774
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
775
+ * @returns Maximum builder fee approval.
776
+ *
777
+ * @throws {TransportError} When the transport layer throws an error.
778
+ *
779
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#check-builder-fee-approval
780
+ * @example
781
+ * ```ts
782
+ * import * as hl from "@nktkas/hyperliquid";
783
+ *
784
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
785
+ *
786
+ * const client = new hl.InfoClient({ transport });
787
+ * const data = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
788
+ * ```
789
+ */
790
+ maxBuilderFee(...args: OmitFirst<OverloadedParameters<typeof maxBuilderFee>>): Promise<number>;
791
+ /**
792
+ * Request maximum market order notionals.
793
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
794
+ * @returns Maximum market order notionals.
795
+ *
796
+ * @throws {TransportError} When the transport layer throws an error.
797
+ *
798
+ * @see null
799
+ * @example
800
+ * ```ts
801
+ * import * as hl from "@nktkas/hyperliquid";
802
+ *
803
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
804
+ *
805
+ * const client = new hl.InfoClient({ transport });
806
+ * const data = await client.maxMarketOrderNtls();
807
+ * ```
808
+ */
809
+ maxMarketOrderNtls(...args: OmitFirst<OverloadedParameters<typeof maxMarketOrderNtls>>): Promise<[string, string][]>;
810
+ /**
811
+ * Request trading metadata.
812
+ * @param params - Parameters specific to the API request.
813
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
814
+ * @returns Metadata for perpetual assets.
815
+ *
816
+ * @throws {TransportError} When the transport layer throws an error.
817
+ *
818
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-perpetuals-metadata-universe-and-margin-tables
819
+ * @example
820
+ * ```ts
821
+ * import * as hl from "@nktkas/hyperliquid";
822
+ *
823
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
824
+ *
825
+ * const client = new hl.InfoClient({ transport });
826
+ * const data = await client.meta();
827
+ * ```
828
+ */
829
+ meta(...args: OmitFirst<OverloadedParameters<typeof meta>>): Promise<{
830
+ universe: {
831
+ szDecimals: number;
832
+ name: string;
833
+ maxLeverage: number;
834
+ marginTableId: number;
835
+ onlyIsolated?: true | undefined;
836
+ isDelisted?: true | undefined;
837
+ }[];
838
+ marginTables: [number, {
839
+ description: string;
840
+ marginTiers: {
841
+ lowerBound: string;
842
+ maxLeverage: number;
843
+ }[];
844
+ }][];
845
+ }>;
846
+ /**
847
+ * Request metadata and asset contexts.
848
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
849
+ * @returns Metadata and context for perpetual assets.
850
+ *
851
+ * @throws {TransportError} When the transport layer throws an error.
852
+ *
853
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest-etc
854
+ * @example
855
+ * ```ts
856
+ * import * as hl from "@nktkas/hyperliquid";
857
+ *
858
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
859
+ *
860
+ * const client = new hl.InfoClient({ transport });
861
+ * const data = await client.metaAndAssetCtxs();
862
+ * ```
863
+ */
864
+ metaAndAssetCtxs(...args: OmitFirst<OverloadedParameters<typeof metaAndAssetCtxs>>): Promise<[{
865
+ universe: {
866
+ szDecimals: number;
867
+ name: string;
868
+ maxLeverage: number;
869
+ marginTableId: number;
870
+ onlyIsolated?: true | undefined;
871
+ isDelisted?: true | undefined;
872
+ }[];
873
+ marginTables: [number, {
874
+ description: string;
875
+ marginTiers: {
876
+ lowerBound: string;
877
+ maxLeverage: number;
878
+ }[];
879
+ }][];
880
+ }, {
881
+ prevDayPx: string;
882
+ dayNtlVlm: string;
883
+ markPx: string;
884
+ midPx: string | null;
885
+ funding: string;
886
+ openInterest: string;
887
+ premium: string | null;
888
+ oraclePx: string;
889
+ impactPxs: string[] | null;
890
+ dayBaseVlm: string;
891
+ }[]]>;
892
+ /**
893
+ * Request open orders.
894
+ * @param params - Parameters specific to the API request.
895
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
896
+ * @returns Array of open orders.
897
+ *
898
+ * @throws {TransportError} When the transport layer throws an error.
899
+ *
900
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-open-orders
901
+ * @example
902
+ * ```ts
903
+ * import * as hl from "@nktkas/hyperliquid";
904
+ *
905
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
906
+ *
907
+ * const client = new hl.InfoClient({ transport });
908
+ * const data = await client.openOrders({ user: "0x..." });
909
+ * ```
910
+ */
911
+ openOrders(...args: OmitFirst<OverloadedParameters<typeof openOrders>>): Promise<{
912
+ coin: string;
913
+ side: "B" | "A";
914
+ limitPx: string;
915
+ sz: string;
916
+ oid: number;
917
+ timestamp: number;
918
+ origSz: string;
919
+ cloid?: `0x${string}` | undefined;
920
+ reduceOnly?: true | undefined;
921
+ }[]>;
922
+ /**
923
+ * Request order status.
924
+ * @param params - Parameters specific to the API request.
925
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
926
+ * @returns Order status response.
927
+ *
928
+ * @throws {TransportError} When the transport layer throws an error.
929
+ *
930
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-order-status-by-oid-or-cloid
931
+ * @example
932
+ * ```ts
933
+ * import * as hl from "@nktkas/hyperliquid";
934
+ *
935
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
936
+ *
937
+ * const client = new hl.InfoClient({ transport });
938
+ * const data = await client.orderStatus({ user: "0x...", oid: 12345 });
939
+ * ```
940
+ */
941
+ orderStatus(...args: OmitFirst<OverloadedParameters<typeof orderStatus>>): Promise<{
942
+ status: "order";
943
+ order: {
944
+ order: {
945
+ coin: string;
946
+ side: "B" | "A";
947
+ limitPx: string;
948
+ sz: string;
949
+ oid: number;
950
+ timestamp: number;
951
+ origSz: string;
952
+ triggerCondition: string;
953
+ isTrigger: boolean;
954
+ triggerPx: string;
955
+ children: any[];
956
+ isPositionTpsl: boolean;
957
+ reduceOnly: boolean;
958
+ orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
959
+ tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
960
+ cloid: `0x${string}` | null;
961
+ };
962
+ status: "open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected";
963
+ statusTimestamp: number;
964
+ };
965
+ } | {
966
+ status: "unknownOid";
967
+ }>;
968
+ /**
969
+ * Request for the status of the perpetual deploy auction.
970
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
971
+ * @returns Status of the perpetual deploy auction.
972
+ *
973
+ * @throws {TransportError} When the transport layer throws an error.
974
+ *
975
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-information-about-the-perp-deploy-auction
976
+ * @example
977
+ * ```ts
978
+ * import * as hl from "@nktkas/hyperliquid";
979
+ *
980
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
981
+ *
982
+ * const client = new hl.InfoClient({ transport });
983
+ * const data = await client.perpDeployAuctionStatus();
984
+ * ```
985
+ */
986
+ perpDeployAuctionStatus(...args: OmitFirst<OverloadedParameters<typeof perpDeployAuctionStatus>>): Promise<{
987
+ currentGas: string | null;
988
+ durationSeconds: number;
989
+ endGas: string | null;
990
+ startGas: string;
991
+ startTimeSeconds: number;
992
+ }>;
993
+ /**
994
+ * Request builder deployed perpetual market limits.
995
+ * @param params - Parameters specific to the API request.
996
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
997
+ * @returns Builder deployed perpetual market limits.
998
+ *
999
+ * @throws {TransportError} When the transport layer throws an error.
1000
+ *
1001
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-builder-deployed-perp-market-limits
1002
+ * @example
1003
+ * ```ts
1004
+ * import * as hl from "@nktkas/hyperliquid";
1005
+ *
1006
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1007
+ *
1008
+ * const client = new hl.InfoClient({ transport });
1009
+ * const data = await client.perpDexLimits({ dex: "test" });
1010
+ * ```
1011
+ */
1012
+ perpDexLimits(...args: OmitFirst<OverloadedParameters<typeof perpDexLimits>>): Promise<{
1013
+ totalOiCap: string;
1014
+ oiSzCapPerPerp: string;
1015
+ maxTransferNtl: string;
1016
+ coinToOiCap: [string, string][];
1017
+ } | null>;
1018
+ /**
1019
+ * Request all perpetual dexs.
1020
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1021
+ * @returns Array of perpetual dexes (null is main dex).
1022
+ *
1023
+ * @throws {TransportError} When the transport layer throws an error.
1024
+ *
1025
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-all-perpetual-dexs
1026
+ * @example
1027
+ * ```ts
1028
+ * import * as hl from "@nktkas/hyperliquid";
1029
+ *
1030
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1031
+ *
1032
+ * const client = new hl.InfoClient({ transport });
1033
+ * const data = await client.perpDexs();
1034
+ * ```
1035
+ */
1036
+ perpDexs(...args: OmitFirst<OverloadedParameters<typeof perpDexs>>): Promise<({
1037
+ name: string;
1038
+ full_name: string;
1039
+ deployer: `0x${string}`;
1040
+ oracle_updater: `0x${string}` | null;
1041
+ } | null)[]>;
1042
+ /**
1043
+ * Request perpetuals at open interest cap.
1044
+ * @param params - Parameters specific to the API request.
1045
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1046
+ * @returns Array of perpetuals at open interest caps.
1047
+ *
1048
+ * @throws {TransportError} When the transport layer throws an error.
1049
+ *
1050
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#query-perps-at-open-interest-caps
1051
+ * @example
1052
+ * ```ts
1053
+ * import * as hl from "@nktkas/hyperliquid";
1054
+ *
1055
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1056
+ *
1057
+ * const client = new hl.InfoClient({ transport });
1058
+ * const data = await client.perpsAtOpenInterestCap();
1059
+ * ```
1060
+ */
1061
+ perpsAtOpenInterestCap(...args: OmitFirst<OverloadedParameters<typeof perpsAtOpenInterestCap>>): Promise<string[]>;
1062
+ /**
1063
+ * Request user portfolio.
1064
+ * @param params - Parameters specific to the API request.
1065
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1066
+ * @returns Portfolio metrics grouped by time periods.
1067
+ *
1068
+ * @throws {TransportError} When the transport layer throws an error.
1069
+ *
1070
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-portfolio
1071
+ * @example
1072
+ * ```ts
1073
+ * import * as hl from "@nktkas/hyperliquid";
1074
+ *
1075
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1076
+ *
1077
+ * const client = new hl.InfoClient({ transport });
1078
+ * const data = await client.portfolio({ user: "0x..." });
1079
+ * ```
1080
+ */
1081
+ portfolio(...args: OmitFirst<OverloadedParameters<typeof portfolio>>): Promise<[["day", {
1082
+ accountValueHistory: [number, string][];
1083
+ pnlHistory: [number, string][];
1084
+ vlm: string;
1085
+ }], ["week", {
1086
+ accountValueHistory: [number, string][];
1087
+ pnlHistory: [number, string][];
1088
+ vlm: string;
1089
+ }], ["month", {
1090
+ accountValueHistory: [number, string][];
1091
+ pnlHistory: [number, string][];
1092
+ vlm: string;
1093
+ }], ["allTime", {
1094
+ accountValueHistory: [number, string][];
1095
+ pnlHistory: [number, string][];
1096
+ vlm: string;
1097
+ }], ["perpDay", {
1098
+ accountValueHistory: [number, string][];
1099
+ pnlHistory: [number, string][];
1100
+ vlm: string;
1101
+ }], ["perpWeek", {
1102
+ accountValueHistory: [number, string][];
1103
+ pnlHistory: [number, string][];
1104
+ vlm: string;
1105
+ }], ["perpMonth", {
1106
+ accountValueHistory: [number, string][];
1107
+ pnlHistory: [number, string][];
1108
+ vlm: string;
1109
+ }], ["perpAllTime", {
1110
+ accountValueHistory: [number, string][];
1111
+ pnlHistory: [number, string][];
1112
+ vlm: string;
1113
+ }]]>;
1114
+ /**
1115
+ * Request predicted funding rates.
1116
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1117
+ * @returns Array of predicted funding rates.
1118
+ *
1119
+ * @throws {TransportError} When the transport layer throws an error.
1120
+ *
1121
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-predicted-funding-rates-for-different-venues
1122
+ * @example
1123
+ * ```ts
1124
+ * import * as hl from "@nktkas/hyperliquid";
1125
+ *
1126
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1127
+ *
1128
+ * const client = new hl.InfoClient({ transport });
1129
+ * const data = await client.predictedFundings();
1130
+ * ```
1131
+ */
1132
+ predictedFundings(...args: OmitFirst<OverloadedParameters<typeof predictedFundings>>): Promise<[string, [string, {
1133
+ fundingRate: string;
1134
+ nextFundingTime: number;
1135
+ fundingIntervalHours?: number | undefined;
1136
+ } | null][]][]>;
1137
+ /**
1138
+ * Request user existence check before transfer.
1139
+ * @param params - Parameters specific to the API request.
1140
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1141
+ * @returns Pre-transfer user existence check result.
1142
+ *
1143
+ * @throws {TransportError} When the transport layer throws an error.
1144
+ *
1145
+ * @see null
1146
+ * @example
1147
+ * ```ts
1148
+ * import * as hl from "@nktkas/hyperliquid";
1149
+ *
1150
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1151
+ *
1152
+ * const client = new hl.InfoClient({ transport });
1153
+ * const data = await client.preTransferCheck({ user: "0x...", source: "0x..." });
1154
+ * ```
1155
+ */
1156
+ preTransferCheck(...args: OmitFirst<OverloadedParameters<typeof preTransferCheck>>): Promise<{
1157
+ fee: string;
1158
+ isSanctioned: boolean;
1159
+ userExists: boolean;
1160
+ userHasSentTx: boolean;
1161
+ }>;
1162
+ /**
1163
+ * Request recent trades.
1164
+ * @param params - Parameters specific to the API request.
1165
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1166
+ * @returns Array of recent trades.
1167
+ *
1168
+ * @throws {TransportError} When the transport layer throws an error.
1169
+ *
1170
+ * @see null
1171
+ * @example
1172
+ * ```ts
1173
+ * import * as hl from "@nktkas/hyperliquid";
1174
+ *
1175
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1176
+ *
1177
+ * const client = new hl.InfoClient({ transport });
1178
+ * const data = await client.recentTrades({ coin: "ETH" });
1179
+ * ```
1180
+ */
1181
+ recentTrades(...args: OmitFirst<OverloadedParameters<typeof recentTrades>>): Promise<{
1182
+ coin: string;
1183
+ side: "B" | "A";
1184
+ px: string;
1185
+ sz: string;
1186
+ time: number;
1187
+ hash: `0x${string}`;
1188
+ tid: number;
1189
+ users: [`0x${string}`, `0x${string}`];
1190
+ }[]>;
1191
+ /**
1192
+ * Request user referral.
1193
+ * @param params - Parameters specific to the API request.
1194
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1195
+ * @returns Referral details for a user.
1196
+ *
1197
+ * @throws {TransportError} When the transport layer throws an error.
1198
+ *
1199
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-referral-information
1200
+ * @example
1201
+ * ```ts
1202
+ * import * as hl from "@nktkas/hyperliquid";
1203
+ *
1204
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1205
+ *
1206
+ * const client = new hl.InfoClient({ transport });
1207
+ * const data = await client.referral({ user: "0x..." });
1208
+ * ```
1209
+ */
1210
+ referral(...args: OmitFirst<OverloadedParameters<typeof referral>>): Promise<{
1211
+ referredBy: {
1212
+ referrer: `0x${string}`;
1213
+ code: string;
1214
+ } | null;
1215
+ cumVlm: string;
1216
+ unclaimedRewards: string;
1217
+ claimedRewards: string;
1218
+ builderRewards: string;
1219
+ referrerState: {
1220
+ stage: "ready";
1221
+ data: {
1222
+ code: string;
1223
+ nReferrals: number;
1224
+ referralStates: {
1225
+ cumVlm: string;
1226
+ cumRewardedFeesSinceReferred: string;
1227
+ cumFeesRewardedToReferrer: string;
1228
+ timeJoined: number;
1229
+ user: `0x${string}`;
1230
+ tokenToState: [number, {
1231
+ cumVlm: string;
1232
+ cumRewardedFeesSinceReferred: string;
1233
+ cumFeesRewardedToReferrer: string;
1234
+ }][];
1235
+ }[];
1236
+ };
1237
+ } | {
1238
+ stage: "needToCreateCode";
1239
+ } | {
1240
+ stage: "needToTrade";
1241
+ data: {
1242
+ required: string;
1243
+ };
1244
+ };
1245
+ rewardHistory: {
1246
+ earned: string;
1247
+ vlm: string;
1248
+ referralVlm: string;
1249
+ time: number;
1250
+ }[];
1251
+ tokenToState: [number, {
1252
+ cumVlm: string;
1253
+ unclaimedRewards: string;
1254
+ claimedRewards: string;
1255
+ builderRewards: string;
1256
+ }][];
1257
+ }>;
1258
+ /**
1259
+ * Request spot clearinghouse state.
1260
+ * @param params - Parameters specific to the API request.
1261
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1262
+ * @returns Account summary for spot trading.
1263
+ *
1264
+ * @throws {TransportError} When the transport layer throws an error.
1265
+ *
1266
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-a-users-token-balances
1267
+ * @example
1268
+ * ```ts
1269
+ * import * as hl from "@nktkas/hyperliquid";
1270
+ *
1271
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1272
+ *
1273
+ * const client = new hl.InfoClient({ transport });
1274
+ * const data = await client.spotClearinghouseState({ user: "0x..." });
1275
+ * ```
1276
+ */
1277
+ spotClearinghouseState(...args: OmitFirst<OverloadedParameters<typeof spotClearinghouseState>>): Promise<{
1278
+ balances: {
1279
+ coin: string;
1280
+ token: number;
1281
+ total: string;
1282
+ hold: string;
1283
+ entryNtl: string;
1284
+ }[];
1285
+ evmEscrows?: {
1286
+ coin: string;
1287
+ token: number;
1288
+ total: string;
1289
+ }[] | undefined;
1290
+ }>;
1291
+ /**
1292
+ * Request spot deploy state.
1293
+ * @param params - Parameters specific to the API request.
1294
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1295
+ * @returns Deploy state for spot tokens.
1296
+ *
1297
+ * @throws {TransportError} When the transport layer throws an error.
1298
+ *
1299
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-the-spot-deploy-auction
1300
+ * @example
1301
+ * ```ts
1302
+ * import * as hl from "@nktkas/hyperliquid";
1303
+ *
1304
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1305
+ *
1306
+ * const client = new hl.InfoClient({ transport });
1307
+ * const data = await client.spotDeployState({ user: "0x..." });
1308
+ * ```
1309
+ */
1310
+ spotDeployState(...args: OmitFirst<OverloadedParameters<typeof spotDeployState>>): Promise<{
1311
+ states: {
1312
+ token: number;
1313
+ spec: {
1314
+ name: string;
1315
+ szDecimals: number;
1316
+ weiDecimals: number;
1317
+ };
1318
+ fullName: string | null;
1319
+ deployerTradingFeeShare: string;
1320
+ spots: number[];
1321
+ maxSupply: string | null;
1322
+ hyperliquidityGenesisBalance: string;
1323
+ totalGenesisBalanceWei: string;
1324
+ userGenesisBalances: [`0x${string}`, string][];
1325
+ existingTokenGenesisBalances: [number, string][];
1326
+ blacklistUsers: `0x${string}`[];
1327
+ }[];
1328
+ gasAuction: {
1329
+ currentGas: string | null;
1330
+ durationSeconds: number;
1331
+ endGas: string | null;
1332
+ startGas: string;
1333
+ startTimeSeconds: number;
1334
+ };
1335
+ }>;
1336
+ /**
1337
+ * Request spot trading metadata.
1338
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1339
+ * @returns Metadata for spot assets.
1340
+ *
1341
+ * @throws {TransportError} When the transport layer throws an error.
1342
+ *
1343
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-spot-metadata
1344
+ * @example
1345
+ * ```ts
1346
+ * import * as hl from "@nktkas/hyperliquid";
1347
+ *
1348
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1349
+ *
1350
+ * const client = new hl.InfoClient({ transport });
1351
+ * const data = await client.spotMeta();
1352
+ * ```
1353
+ */
1354
+ spotMeta(...args: OmitFirst<OverloadedParameters<typeof spotMeta>>): Promise<{
1355
+ universe: {
1356
+ tokens: number[];
1357
+ name: string;
1358
+ index: number;
1359
+ isCanonical: boolean;
1360
+ }[];
1361
+ tokens: {
1362
+ name: string;
1363
+ szDecimals: number;
1364
+ weiDecimals: number;
1365
+ index: number;
1366
+ tokenId: `0x${string}`;
1367
+ isCanonical: boolean;
1368
+ evmContract: {
1369
+ address: `0x${string}`;
1370
+ evm_extra_wei_decimals: number;
1371
+ } | null;
1372
+ fullName: string | null;
1373
+ deployerTradingFeeShare: string;
1374
+ }[];
1375
+ }>;
1376
+ /**
1377
+ * Request spot metadata and asset contexts.
1378
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1379
+ * @returns Metadata and context for spot assets.
1380
+ *
1381
+ * @throws {TransportError} When the transport layer throws an error.
1382
+ *
1383
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-spot-asset-contexts
1384
+ * @example
1385
+ * ```ts
1386
+ * import * as hl from "@nktkas/hyperliquid";
1387
+ *
1388
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1389
+ *
1390
+ * const client = new hl.InfoClient({ transport });
1391
+ * const data = await client.spotMetaAndAssetCtxs();
1392
+ * ```
1393
+ */
1394
+ spotMetaAndAssetCtxs(...args: OmitFirst<OverloadedParameters<typeof spotMetaAndAssetCtxs>>): Promise<[{
1395
+ universe: {
1396
+ tokens: number[];
1397
+ name: string;
1398
+ index: number;
1399
+ isCanonical: boolean;
1400
+ }[];
1401
+ tokens: {
1402
+ name: string;
1403
+ szDecimals: number;
1404
+ weiDecimals: number;
1405
+ index: number;
1406
+ tokenId: `0x${string}`;
1407
+ isCanonical: boolean;
1408
+ evmContract: {
1409
+ address: `0x${string}`;
1410
+ evm_extra_wei_decimals: number;
1411
+ } | null;
1412
+ fullName: string | null;
1413
+ deployerTradingFeeShare: string;
1414
+ }[];
1415
+ }, {
1416
+ prevDayPx: string;
1417
+ dayNtlVlm: string;
1418
+ markPx: string;
1419
+ midPx: string | null;
1420
+ circulatingSupply: string;
1421
+ coin: string;
1422
+ totalSupply: string;
1423
+ dayBaseVlm: string;
1424
+ }[]]>;
1425
+ /**
1426
+ * Request for the status of the spot deploy auction.
1427
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1428
+ * @returns Status of the spot deploy auction.
1429
+ *
1430
+ * @throws {TransportError} When the transport layer throws an error.
1431
+ *
1432
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-the-spot-pair-deploy-auction
1433
+ * @example
1434
+ * ```ts
1435
+ * import * as hl from "@nktkas/hyperliquid";
1436
+ *
1437
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1438
+ *
1439
+ * const client = new hl.InfoClient({ transport });
1440
+ * const data = await client.spotPairDeployAuctionStatus();
1441
+ * ```
1442
+ */
1443
+ spotPairDeployAuctionStatus(...args: OmitFirst<OverloadedParameters<typeof spotPairDeployAuctionStatus>>): Promise<{
1444
+ currentGas: string | null;
1445
+ durationSeconds: number;
1446
+ endGas: string | null;
1447
+ startGas: string;
1448
+ startTimeSeconds: number;
1449
+ }>;
1450
+ /**
1451
+ * Request user sub-accounts.
1452
+ * @param params - Parameters specific to the API request.
1453
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1454
+ * @returns Array of user sub-account or null if the user does not have any sub-accounts.
1455
+ *
1456
+ * @throws {TransportError} When the transport layer throws an error.
1457
+ *
1458
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-subaccounts
1459
+ * @example
1460
+ * ```ts
1461
+ * import * as hl from "@nktkas/hyperliquid";
1462
+ *
1463
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1464
+ *
1465
+ * const client = new hl.InfoClient({ transport });
1466
+ * const data = await client.subAccounts({ user: "0x..." });
1467
+ * ```
1468
+ */
1469
+ subAccounts(...args: OmitFirst<OverloadedParameters<typeof subAccounts>>): Promise<{
1470
+ name: string;
1471
+ subAccountUser: `0x${string}`;
1472
+ master: `0x${string}`;
1473
+ clearinghouseState: {
1474
+ marginSummary: {
1475
+ accountValue: string;
1476
+ totalNtlPos: string;
1477
+ totalRawUsd: string;
1478
+ totalMarginUsed: string;
1479
+ };
1480
+ crossMarginSummary: {
1481
+ accountValue: string;
1482
+ totalNtlPos: string;
1483
+ totalRawUsd: string;
1484
+ totalMarginUsed: string;
1485
+ };
1486
+ crossMaintenanceMarginUsed: string;
1487
+ withdrawable: string;
1488
+ assetPositions: {
1489
+ type: "oneWay";
1490
+ position: {
1491
+ coin: string;
1492
+ szi: string;
1493
+ leverage: {
1494
+ type: "isolated";
1495
+ value: number;
1496
+ rawUsd: string;
1497
+ } | {
1498
+ type: "cross";
1499
+ value: number;
1500
+ };
1501
+ entryPx: string;
1502
+ positionValue: string;
1503
+ unrealizedPnl: string;
1504
+ returnOnEquity: string;
1505
+ liquidationPx: string | null;
1506
+ marginUsed: string;
1507
+ maxLeverage: number;
1508
+ cumFunding: {
1509
+ allTime: string;
1510
+ sinceOpen: string;
1511
+ sinceChange: string;
1512
+ };
1513
+ };
1514
+ }[];
1515
+ time: number;
1516
+ };
1517
+ spotState: {
1518
+ balances: {
1519
+ coin: string;
1520
+ token: number;
1521
+ total: string;
1522
+ hold: string;
1523
+ entryNtl: string;
1524
+ }[];
1525
+ evmEscrows?: {
1526
+ coin: string;
1527
+ token: number;
1528
+ total: string;
1529
+ }[] | undefined;
1530
+ };
1531
+ }[] | null>;
1532
+ /**
1533
+ * Request token details.
1534
+ * @param params - Parameters specific to the API request.
1535
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1536
+ * @returns Details of a token.
1537
+ *
1538
+ * @throws {TransportError} When the transport layer throws an error.
1539
+ *
1540
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-a-token
1541
+ * @example
1542
+ * ```ts
1543
+ * import * as hl from "@nktkas/hyperliquid";
1544
+ *
1545
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1546
+ *
1547
+ * const client = new hl.InfoClient({ transport });
1548
+ * const data = await client.tokenDetails({ tokenId: "0x..." });
1549
+ * ```
1550
+ */
1551
+ tokenDetails(...args: OmitFirst<OverloadedParameters<typeof tokenDetails>>): Promise<{
1552
+ name: string;
1553
+ maxSupply: string;
1554
+ totalSupply: string;
1555
+ circulatingSupply: string;
1556
+ szDecimals: number;
1557
+ weiDecimals: number;
1558
+ midPx: string;
1559
+ markPx: string;
1560
+ prevDayPx: string;
1561
+ genesis: {
1562
+ userBalances: [`0x${string}`, string][];
1563
+ existingTokenBalances: [number, string][];
1564
+ blacklistUsers: `0x${string}`[];
1565
+ } | null;
1566
+ deployer: `0x${string}` | null;
1567
+ deployGas: string | null;
1568
+ deployTime: string | null;
1569
+ seededUsdc: string;
1570
+ nonCirculatingUserBalances: [`0x${string}`, string][];
1571
+ futureEmissions: string;
1572
+ }>;
1573
+ /**
1574
+ * Request twap history of a user.
1575
+ * @param params - Parameters specific to the API request.
1576
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1577
+ * @returns Array of user's TWAP history.
1578
+ *
1579
+ * @throws {TransportError} When the transport layer throws an error.
1580
+ *
1581
+ * @see null
1582
+ * @example
1583
+ * ```ts
1584
+ * import * as hl from "@nktkas/hyperliquid";
1585
+ *
1586
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1587
+ *
1588
+ * const client = new hl.InfoClient({ transport });
1589
+ * const data = await client.twapHistory({ user: "0x..." });
1590
+ * ```
1591
+ */
1592
+ twapHistory(...args: OmitFirst<OverloadedParameters<typeof twapHistory>>): Promise<{
1593
+ time: number;
1594
+ state: {
1595
+ coin: string;
1596
+ executedNtl: string;
1597
+ executedSz: string;
1598
+ minutes: number;
1599
+ randomize: boolean;
1600
+ reduceOnly: boolean;
1601
+ side: "B" | "A";
1602
+ sz: string;
1603
+ timestamp: number;
1604
+ user: `0x${string}`;
1605
+ };
1606
+ status: {
1607
+ status: "finished" | "activated" | "terminated";
1608
+ } | {
1609
+ status: "error";
1610
+ description: string;
1611
+ };
1612
+ }[]>;
1613
+ /**
1614
+ * Request transaction details by transaction hash.
1615
+ * @param params - Parameters specific to the API request.
1616
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1617
+ * @returns Transaction details.
1618
+ *
1619
+ * @throws {TransportError} When the transport layer throws an error.
1620
+ *
1621
+ * @see null
1622
+ * @example
1623
+ * ```ts
1624
+ * import * as hl from "@nktkas/hyperliquid";
1625
+ *
1626
+ * const transport = new hl.HttpTransport(); // only `HttpTransport` supports this API
1627
+ *
1628
+ * const client = new hl.InfoClient({ transport });
1629
+ * const data = await client.txDetails({ hash: "0x..." });
1630
+ * ```
1631
+ */
1632
+ txDetails(this: T extends {
1633
+ request(endpoint: "explorer", ...args: unknown[]): unknown;
1634
+ } ? InfoRequestConfig<T> : never, ...args: OmitFirst<OverloadedParameters<typeof txDetails>>): Promise<{
1635
+ type: "txDetails";
1636
+ tx: {
1637
+ action: {
1638
+ type: string;
1639
+ } & {
1640
+ [key: string]: unknown;
1641
+ };
1642
+ block: number;
1643
+ error: string | null;
1644
+ hash: `0x${string}`;
1645
+ time: number;
1646
+ user: `0x${string}`;
1647
+ };
1648
+ }>;
1649
+ /**
1650
+ * Request array of user transaction details.
1651
+ * @param params - Parameters specific to the API request.
1652
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1653
+ * @returns Array of user transaction details.
1654
+ *
1655
+ * @throws {TransportError} When the transport layer throws an error.
1656
+ *
1657
+ * @see null
1658
+ * @example
1659
+ * ```ts
1660
+ * import * as hl from "@nktkas/hyperliquid";
1661
+ *
1662
+ * const transport = new hl.HttpTransport(); // only `HttpTransport` supports this API
1663
+ *
1664
+ * const client = new hl.InfoClient({ transport });
1665
+ * const data = await client.userDetails({ user: "0x..." });
1666
+ * ```
1667
+ */
1668
+ userDetails(this: T extends {
1669
+ request(endpoint: "explorer", ...args: unknown[]): unknown;
1670
+ } ? InfoRequestConfig<T> : never, ...args: OmitFirst<OverloadedParameters<typeof userDetails>>): Promise<{
1671
+ type: "userDetails";
1672
+ txs: {
1673
+ action: {
1674
+ type: string;
1675
+ } & {
1676
+ [key: string]: unknown;
1677
+ };
1678
+ block: number;
1679
+ error: string | null;
1680
+ hash: `0x${string}`;
1681
+ time: number;
1682
+ user: `0x${string}`;
1683
+ }[];
1684
+ }>;
1685
+ /**
1686
+ * Request user fees.
1687
+ * @param params - Parameters specific to the API request.
1688
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1689
+ * @returns User fees.
1690
+ *
1691
+ * @throws {TransportError} When the transport layer throws an error.
1692
+ *
1693
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-fees
1694
+ * @example
1695
+ * ```ts
1696
+ * import * as hl from "@nktkas/hyperliquid";
1697
+ *
1698
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1699
+ *
1700
+ * const client = new hl.InfoClient({ transport });
1701
+ * const data = await client.userFees({ user: "0x..." });
1702
+ * ```
1703
+ */
1704
+ userFees(...args: OmitFirst<OverloadedParameters<typeof userFees>>): Promise<{
1705
+ dailyUserVlm: {
1706
+ date: string;
1707
+ userCross: string;
1708
+ userAdd: string;
1709
+ exchange: string;
1710
+ }[];
1711
+ feeSchedule: {
1712
+ cross: string;
1713
+ add: string;
1714
+ spotCross: string;
1715
+ spotAdd: string;
1716
+ tiers: {
1717
+ vip: {
1718
+ ntlCutoff: string;
1719
+ cross: string;
1720
+ add: string;
1721
+ spotCross: string;
1722
+ spotAdd: string;
1723
+ }[];
1724
+ mm: {
1725
+ makerFractionCutoff: string;
1726
+ add: string;
1727
+ }[];
1728
+ };
1729
+ referralDiscount: string;
1730
+ stakingDiscountTiers: {
1731
+ bpsOfMaxSupply: string;
1732
+ discount: string;
1733
+ }[];
1734
+ };
1735
+ userCrossRate: string;
1736
+ userAddRate: string;
1737
+ userSpotCrossRate: string;
1738
+ userSpotAddRate: string;
1739
+ activeReferralDiscount: string;
1740
+ trial: unknown;
1741
+ feeTrialReward: string;
1742
+ nextTrialAvailableTimestamp: unknown;
1743
+ stakingLink: unknown;
1744
+ activeStakingDiscount: {
1745
+ bpsOfMaxSupply: string;
1746
+ discount: string;
1747
+ };
1748
+ }>;
1749
+ /**
1750
+ * Request array of user fills.
1751
+ * @param params - Parameters specific to the API request.
1752
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1753
+ * @returns Array of user trade fills.
1754
+ *
1755
+ * @throws {TransportError} When the transport layer throws an error.
1756
+ *
1757
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-fills
1758
+ * @example
1759
+ * ```ts
1760
+ * import * as hl from "@nktkas/hyperliquid";
1761
+ *
1762
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1763
+ *
1764
+ * const client = new hl.InfoClient({ transport });
1765
+ * const data = await client.userFills({ user: "0x..." });
1766
+ * ```
1767
+ */
1768
+ userFills(...args: OmitFirst<OverloadedParameters<typeof userFills>>): Promise<{
1769
+ coin: string;
1770
+ px: string;
1771
+ sz: string;
1772
+ side: "B" | "A";
1773
+ time: number;
1774
+ startPosition: string;
1775
+ dir: string;
1776
+ closedPnl: string;
1777
+ hash: `0x${string}`;
1778
+ oid: number;
1779
+ crossed: boolean;
1780
+ fee: string;
1781
+ tid: number;
1782
+ cloid?: `0x${string}` | undefined;
1783
+ liquidation?: {
1784
+ liquidatedUser: `0x${string}`;
1785
+ markPx: string;
1786
+ method: "market" | "backstop";
1787
+ } | undefined;
1788
+ feeToken: string;
1789
+ twapId: number | null;
1790
+ }[]>;
1791
+ /**
1792
+ * Request array of user fills by time.
1793
+ * @param params - Parameters specific to the API request.
1794
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1795
+ * @returns Array of user trade fills by time.
1796
+ *
1797
+ * @throws {TransportError} When the transport layer throws an error.
1798
+ *
1799
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-fills-by-time
1800
+ * @example
1801
+ * ```ts
1802
+ * import * as hl from "@nktkas/hyperliquid";
1803
+ *
1804
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1805
+ *
1806
+ * const client = new hl.InfoClient({ transport });
1807
+ * const data = await client.userFillsByTime({
1808
+ * user: "0x...",
1809
+ * startTime: Date.now() - 1000 * 60 * 60 * 24,
1810
+ * });
1811
+ * ```
1812
+ */
1813
+ userFillsByTime(...args: OmitFirst<OverloadedParameters<typeof userFillsByTime>>): Promise<{
1814
+ coin: string;
1815
+ px: string;
1816
+ sz: string;
1817
+ side: "B" | "A";
1818
+ time: number;
1819
+ startPosition: string;
1820
+ dir: string;
1821
+ closedPnl: string;
1822
+ hash: `0x${string}`;
1823
+ oid: number;
1824
+ crossed: boolean;
1825
+ fee: string;
1826
+ tid: number;
1827
+ cloid?: `0x${string}` | undefined;
1828
+ liquidation?: {
1829
+ liquidatedUser: `0x${string}`;
1830
+ markPx: string;
1831
+ method: "market" | "backstop";
1832
+ } | undefined;
1833
+ feeToken: string;
1834
+ twapId: number | null;
1835
+ }[]>;
1836
+ /**
1837
+ * Request array of user funding ledger updates.
1838
+ * @param params - Parameters specific to the API request.
1839
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1840
+ * @returns Array of user funding ledger updates.
1841
+ *
1842
+ * @throws {TransportError} When the transport layer throws an error.
1843
+ *
1844
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-a-users-funding-history-or-non-funding-ledger-updates
1845
+ * @example
1846
+ * ```ts
1847
+ * import * as hl from "@nktkas/hyperliquid";
1848
+ *
1849
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1850
+ *
1851
+ * const client = new hl.InfoClient({ transport });
1852
+ * const data = await client.userFunding({
1853
+ * user: "0x...",
1854
+ * startTime: Date.now() - 1000 * 60 * 60 * 24,
1855
+ * });
1856
+ * ```
1857
+ */
1858
+ userFunding(...args: OmitFirst<OverloadedParameters<typeof userFunding>>): Promise<{
1859
+ time: number;
1860
+ hash: `0x${string}`;
1861
+ delta: {
1862
+ type: "funding";
1863
+ coin: string;
1864
+ usdc: string;
1865
+ szi: string;
1866
+ fundingRate: string;
1867
+ nSamples: number | null;
1868
+ };
1869
+ }[]>;
1870
+ /**
1871
+ * Request user non-funding ledger updates.
1872
+ * @param params - Parameters specific to the API request.
1873
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1874
+ * @returns Array of user's non-funding ledger update.
1875
+ *
1876
+ * @throws {TransportError} When the transport layer throws an error.
1877
+ *
1878
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-a-users-funding-history-or-non-funding-ledger-updates
1879
+ * @example
1880
+ * ```ts
1881
+ * import * as hl from "@nktkas/hyperliquid";
1882
+ *
1883
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1884
+ *
1885
+ * const client = new hl.InfoClient({ transport });
1886
+ * const data = await client.userNonFundingLedgerUpdates({
1887
+ * user: "0x...",
1888
+ * startTime: Date.now() - 1000 * 60 * 60 * 24,
1889
+ * });
1890
+ * ```
1891
+ */
1892
+ userNonFundingLedgerUpdates(...args: OmitFirst<OverloadedParameters<typeof userNonFundingLedgerUpdates>>): Promise<{
1893
+ time: number;
1894
+ hash: `0x${string}`;
1895
+ delta: {
1896
+ type: "accountClassTransfer";
1897
+ usdc: string;
1898
+ toPerp: boolean;
1899
+ } | {
1900
+ type: "deposit";
1901
+ usdc: string;
1902
+ } | {
1903
+ type: "internalTransfer";
1904
+ usdc: string;
1905
+ user: `0x${string}`;
1906
+ destination: `0x${string}`;
1907
+ fee: string;
1908
+ } | {
1909
+ type: "liquidation";
1910
+ liquidatedNtlPos: string;
1911
+ accountValue: string;
1912
+ leverageType: "Cross" | "Isolated";
1913
+ liquidatedPositions: {
1914
+ coin: string;
1915
+ szi: string;
1916
+ }[];
1917
+ } | {
1918
+ type: "rewardsClaim";
1919
+ amount: string;
1920
+ token: string;
1921
+ } | {
1922
+ type: "spotTransfer";
1923
+ token: string;
1924
+ amount: string;
1925
+ usdcValue: string;
1926
+ user: `0x${string}`;
1927
+ destination: `0x${string}`;
1928
+ fee: string;
1929
+ nativeTokenFee: string;
1930
+ nonce: null;
1931
+ feeToken: string;
1932
+ } | {
1933
+ type: "subAccountTransfer";
1934
+ usdc: string;
1935
+ user: `0x${string}`;
1936
+ destination: `0x${string}`;
1937
+ } | {
1938
+ type: "vaultCreate";
1939
+ vault: `0x${string}`;
1940
+ usdc: string;
1941
+ fee: string;
1942
+ } | {
1943
+ type: "vaultDeposit";
1944
+ vault: `0x${string}`;
1945
+ usdc: string;
1946
+ } | {
1947
+ type: "vaultDistribution";
1948
+ vault: `0x${string}`;
1949
+ usdc: string;
1950
+ } | {
1951
+ type: "vaultWithdraw";
1952
+ vault: `0x${string}`;
1953
+ user: `0x${string}`;
1954
+ requestedUsd: string;
1955
+ commission: string;
1956
+ closingCost: string;
1957
+ basis: string;
1958
+ netWithdrawnUsd: string;
1959
+ } | {
1960
+ type: "withdraw";
1961
+ usdc: string;
1962
+ nonce: number;
1963
+ fee: string;
1964
+ };
1965
+ }[]>;
1966
+ /**
1967
+ * Request user rate limits.
1968
+ * @param params - Parameters specific to the API request.
1969
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1970
+ * @returns User rate limits.
1971
+ *
1972
+ * @throws {TransportError} When the transport layer throws an error.
1973
+ *
1974
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-user-rate-limits
1975
+ * @example
1976
+ * ```ts
1977
+ * import * as hl from "@nktkas/hyperliquid";
1978
+ *
1979
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1980
+ *
1981
+ * const client = new hl.InfoClient({ transport });
1982
+ * const data = await client.userRateLimit({ user: "0x..." });
1983
+ * ```
1984
+ */
1985
+ userRateLimit(...args: OmitFirst<OverloadedParameters<typeof userRateLimit>>): Promise<{
1986
+ cumVlm: string;
1987
+ nRequestsUsed: number;
1988
+ nRequestsCap: number;
1989
+ }>;
1990
+ /**
1991
+ * Request user role.
1992
+ * @param params - Parameters specific to the API request.
1993
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1994
+ * @returns User role.
1995
+ *
1996
+ * @throws {TransportError} When the transport layer throws an error.
1997
+ *
1998
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-role
1999
+ * @example
2000
+ * ```ts
2001
+ * import * as hl from "@nktkas/hyperliquid";
2002
+ *
2003
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2004
+ *
2005
+ * const client = new hl.InfoClient({ transport });
2006
+ * const data = await client.userRole({ user: "0x..." });
2007
+ * ```
2008
+ */
2009
+ userRole(...args: OmitFirst<OverloadedParameters<typeof userRole>>): Promise<{
2010
+ role: "user" | "vault" | "missing";
2011
+ } | {
2012
+ role: "agent";
2013
+ data: {
2014
+ user: `0x${string}`;
2015
+ };
2016
+ } | {
2017
+ role: "subAccount";
2018
+ data: {
2019
+ master: `0x${string}`;
2020
+ };
2021
+ }>;
2022
+ /**
2023
+ * Request multi-sig signers for a user.
2024
+ * @param params - Parameters specific to the API request.
2025
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2026
+ * @returns Multi-sig signers for a user or null if the user does not have any multi-sig signers.
2027
+ *
2028
+ * @throws {TransportError} When the transport layer throws an error.
2029
+ *
2030
+ * @see null
2031
+ * @example
2032
+ * ```ts
2033
+ * import * as hl from "@nktkas/hyperliquid";
2034
+ *
2035
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2036
+ *
2037
+ * const client = new hl.InfoClient({ transport });
2038
+ * const data = await client.userToMultiSigSigners({ user: "0x..." });
2039
+ * ```
2040
+ */
2041
+ userToMultiSigSigners(...args: OmitFirst<OverloadedParameters<typeof userToMultiSigSigners>>): Promise<{
2042
+ authorizedUsers: `0x${string}`[];
2043
+ threshold: number;
2044
+ } | null>;
2045
+ /**
2046
+ * Request user TWAP slice fills.
2047
+ * @param params - Parameters specific to the API request.
2048
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2049
+ * @returns Array of user's twap slice fill.
2050
+ *
2051
+ * @throws {TransportError} When the transport layer throws an error.
2052
+ *
2053
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-twap-slice-fills
2054
+ * @example
2055
+ * ```ts
2056
+ * import * as hl from "@nktkas/hyperliquid";
2057
+ *
2058
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2059
+ *
2060
+ * const client = new hl.InfoClient({ transport });
2061
+ * const data = await client.userTwapSliceFills({ user: "0x..." });
2062
+ * ```
2063
+ */
2064
+ userTwapSliceFills(...args: OmitFirst<OverloadedParameters<typeof userTwapSliceFills>>): Promise<{
2065
+ fill: {
2066
+ coin: string;
2067
+ px: string;
2068
+ sz: string;
2069
+ side: "B" | "A";
2070
+ time: number;
2071
+ startPosition: string;
2072
+ dir: string;
2073
+ closedPnl: string;
2074
+ hash: `0x${string}`;
2075
+ oid: number;
2076
+ crossed: boolean;
2077
+ fee: string;
2078
+ tid: number;
2079
+ feeToken: string;
2080
+ twapId: number | null;
2081
+ };
2082
+ twapId: number;
2083
+ }[]>;
2084
+ /**
2085
+ * Request user TWAP slice fills by time.
2086
+ * @param params - Parameters specific to the API request.
2087
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2088
+ * @returns Array of user's twap slice fill by time.
2089
+ *
2090
+ * @throws {TransportError} When the transport layer throws an error.
2091
+ *
2092
+ * @see null
2093
+ * @example
2094
+ * ```ts
2095
+ * import * as hl from "@nktkas/hyperliquid";
2096
+ *
2097
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2098
+ *
2099
+ * const client = new hl.InfoClient({ transport });
2100
+ * const data = await client.userTwapSliceFillsByTime({
2101
+ * user: "0x...",
2102
+ * startTime: Date.now() - 1000 * 60 * 60 * 24,
2103
+ * });
2104
+ * ```
2105
+ */
2106
+ userTwapSliceFillsByTime(...args: OmitFirst<OverloadedParameters<typeof userTwapSliceFillsByTime>>): Promise<{
2107
+ fill: {
2108
+ coin: string;
2109
+ px: string;
2110
+ sz: string;
2111
+ side: "B" | "A";
2112
+ time: number;
2113
+ startPosition: string;
2114
+ dir: string;
2115
+ closedPnl: string;
2116
+ hash: `0x${string}`;
2117
+ oid: number;
2118
+ crossed: boolean;
2119
+ fee: string;
2120
+ tid: number;
2121
+ feeToken: string;
2122
+ twapId: number | null;
2123
+ };
2124
+ twapId: number;
2125
+ }[]>;
2126
+ /**
2127
+ * Request user vault deposits.
2128
+ * @param params - Parameters specific to the API request.
2129
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2130
+ * @returns Array of user's vault deposits.
2131
+ *
2132
+ * @throws {TransportError} When the transport layer throws an error.
2133
+ *
2134
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-vault-deposits
2135
+ * @example
2136
+ * ```ts
2137
+ * import * as hl from "@nktkas/hyperliquid";
2138
+ *
2139
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2140
+ *
2141
+ * const client = new hl.InfoClient({ transport });
2142
+ * const data = await client.userVaultEquities({ user: "0x..." });
2143
+ * ```
2144
+ */
2145
+ userVaultEquities(...args: OmitFirst<OverloadedParameters<typeof userVaultEquities>>): Promise<{
2146
+ vaultAddress: `0x${string}`;
2147
+ equity: string;
2148
+ lockedUntilTimestamp: number;
2149
+ }[]>;
2150
+ /**
2151
+ * Request validator L1 votes.
2152
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2153
+ * @returns Array of L1 governance votes cast by validators.
2154
+ *
2155
+ * @throws {TransportError} When the transport layer throws an error.
2156
+ *
2157
+ * @see null
2158
+ * @example
2159
+ * ```ts
2160
+ * import * as hl from "@nktkas/hyperliquid";
2161
+ *
2162
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2163
+ *
2164
+ * const client = new hl.InfoClient({ transport });
2165
+ * const data = await client.validatorL1Votes();
2166
+ * ```
2167
+ */
2168
+ validatorL1Votes(...args: OmitFirst<OverloadedParameters<typeof validatorL1Votes>>): Promise<{
2169
+ expireTime: number;
2170
+ action: {
2171
+ D: string;
2172
+ };
2173
+ votes: `0x${string}`[];
2174
+ }[]>;
2175
+ /**
2176
+ * Request validator summaries.
2177
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2178
+ * @returns Array of validator performance statistics.
2179
+ *
2180
+ * @throws {TransportError} When the transport layer throws an error.
2181
+ *
2182
+ * @see null
2183
+ * @example
2184
+ * ```ts
2185
+ * import * as hl from "@nktkas/hyperliquid";
2186
+ *
2187
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2188
+ *
2189
+ * const client = new hl.InfoClient({ transport });
2190
+ * const data = await client.validatorSummaries();
2191
+ * ```
2192
+ */
2193
+ validatorSummaries(...args: OmitFirst<OverloadedParameters<typeof validatorSummaries>>): Promise<{
2194
+ validator: `0x${string}`;
2195
+ signer: `0x${string}`;
2196
+ name: string;
2197
+ description: string;
2198
+ nRecentBlocks: number;
2199
+ stake: number;
2200
+ isJailed: boolean;
2201
+ unjailableAfter: number | null;
2202
+ isActive: boolean;
2203
+ commission: string;
2204
+ stats: [["day", {
2205
+ uptimeFraction: string;
2206
+ predictedApr: string;
2207
+ nSamples: number;
2208
+ }], ["week", {
2209
+ uptimeFraction: string;
2210
+ predictedApr: string;
2211
+ nSamples: number;
2212
+ }], ["month", {
2213
+ uptimeFraction: string;
2214
+ predictedApr: string;
2215
+ nSamples: number;
2216
+ }]];
2217
+ }[]>;
2218
+ /**
2219
+ * Request details of a vault.
2220
+ * @param params - Parameters specific to the API request.
2221
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2222
+ * @returns Details of a vault or null if the vault does not exist.
2223
+ *
2224
+ * @throws {TransportError} When the transport layer throws an error.
2225
+ *
2226
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-details-for-a-vault
2227
+ * @example
2228
+ * ```ts
2229
+ * import * as hl from "@nktkas/hyperliquid";
2230
+ *
2231
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2232
+ *
2233
+ * const client = new hl.InfoClient({ transport });
2234
+ * const data = await client.vaultDetails({ vaultAddress: "0x..." });
2235
+ * ```
2236
+ */
2237
+ vaultDetails(...args: OmitFirst<OverloadedParameters<typeof vaultDetails>>): Promise<{
2238
+ name: string;
2239
+ vaultAddress: `0x${string}`;
2240
+ leader: `0x${string}`;
2241
+ description: string;
2242
+ portfolio: [["day", {
2243
+ accountValueHistory: [number, string][];
2244
+ pnlHistory: [number, string][];
2245
+ vlm: string;
2246
+ }], ["week", {
2247
+ accountValueHistory: [number, string][];
2248
+ pnlHistory: [number, string][];
2249
+ vlm: string;
2250
+ }], ["month", {
2251
+ accountValueHistory: [number, string][];
2252
+ pnlHistory: [number, string][];
2253
+ vlm: string;
2254
+ }], ["allTime", {
2255
+ accountValueHistory: [number, string][];
2256
+ pnlHistory: [number, string][];
2257
+ vlm: string;
2258
+ }], ["perpDay", {
2259
+ accountValueHistory: [number, string][];
2260
+ pnlHistory: [number, string][];
2261
+ vlm: string;
2262
+ }], ["perpWeek", {
2263
+ accountValueHistory: [number, string][];
2264
+ pnlHistory: [number, string][];
2265
+ vlm: string;
2266
+ }], ["perpMonth", {
2267
+ accountValueHistory: [number, string][];
2268
+ pnlHistory: [number, string][];
2269
+ vlm: string;
2270
+ }], ["perpAllTime", {
2271
+ accountValueHistory: [number, string][];
2272
+ pnlHistory: [number, string][];
2273
+ vlm: string;
2274
+ }]];
2275
+ apr: number;
2276
+ followerState: {
2277
+ user: `0x${string}`;
2278
+ vaultEquity: string;
2279
+ pnl: string;
2280
+ allTimePnl: string;
2281
+ daysFollowing: number;
2282
+ vaultEntryTime: number;
2283
+ lockupUntil: number;
2284
+ } | null;
2285
+ leaderFraction: number;
2286
+ leaderCommission: number;
2287
+ followers: {
2288
+ user: `0x${string}` | "Leader";
2289
+ vaultEquity: string;
2290
+ pnl: string;
2291
+ allTimePnl: string;
2292
+ daysFollowing: number;
2293
+ vaultEntryTime: number;
2294
+ lockupUntil: number;
2295
+ }[];
2296
+ maxDistributable: number;
2297
+ maxWithdrawable: number;
2298
+ isClosed: boolean;
2299
+ relationship: {
2300
+ type: "normal" | "child";
2301
+ } | {
2302
+ type: "parent";
2303
+ data: {
2304
+ childAddresses: `0x${string}`[];
2305
+ };
2306
+ };
2307
+ allowDeposits: boolean;
2308
+ alwaysCloseOnWithdraw: boolean;
2309
+ } | null>;
2310
+ /**
2311
+ * Request a list of vaults less than 2 hours old.
2312
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2313
+ * @returns Array of vaults less than 2 hours old.
2314
+ *
2315
+ * @throws {TransportError} When the transport layer throws an error.
2316
+ *
2317
+ * @see null
2318
+ * @example
2319
+ * ```ts
2320
+ * import * as hl from "@nktkas/hyperliquid";
2321
+ *
2322
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2323
+ *
2324
+ * const client = new hl.InfoClient({ transport });
2325
+ * const data = await client.vaultSummaries();
2326
+ * ```
2327
+ */
2328
+ vaultSummaries(...args: OmitFirst<OverloadedParameters<typeof vaultSummaries>>): Promise<{
2329
+ name: string;
2330
+ vaultAddress: `0x${string}`;
2331
+ leader: `0x${string}`;
2332
+ tvl: string;
2333
+ isClosed: boolean;
2334
+ relationship: {
2335
+ type: "normal" | "child";
2336
+ } | {
2337
+ type: "parent";
2338
+ data: {
2339
+ childAddresses: `0x${string}`[];
2340
+ };
2341
+ };
2342
+ createTimeMillis: number;
2343
+ }[]>;
2344
+ /**
2345
+ * Request comprehensive user and market data.
2346
+ * @param params - Parameters specific to the API request.
2347
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
2348
+ * @returns Comprehensive user and market data.
2349
+ *
2350
+ * @throws {TransportError} When the transport layer throws an error.
2351
+ *
2352
+ * @see null
2353
+ * @example
2354
+ * ```ts
2355
+ * import * as hl from "@nktkas/hyperliquid";
2356
+ *
2357
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2358
+ *
2359
+ * const client = new hl.InfoClient({ transport });
2360
+ * const data = await client.webData2({ user: "0x..." });
2361
+ * ```
2362
+ */
2363
+ webData2(...args: OmitFirst<OverloadedParameters<typeof webData2>>): Promise<{
2364
+ clearinghouseState: {
2365
+ marginSummary: {
2366
+ accountValue: string;
2367
+ totalNtlPos: string;
2368
+ totalRawUsd: string;
2369
+ totalMarginUsed: string;
2370
+ };
2371
+ crossMarginSummary: {
2372
+ accountValue: string;
2373
+ totalNtlPos: string;
2374
+ totalRawUsd: string;
2375
+ totalMarginUsed: string;
2376
+ };
2377
+ crossMaintenanceMarginUsed: string;
2378
+ withdrawable: string;
2379
+ assetPositions: {
2380
+ type: "oneWay";
2381
+ position: {
2382
+ coin: string;
2383
+ szi: string;
2384
+ leverage: {
2385
+ type: "isolated";
2386
+ value: number;
2387
+ rawUsd: string;
2388
+ } | {
2389
+ type: "cross";
2390
+ value: number;
2391
+ };
2392
+ entryPx: string;
2393
+ positionValue: string;
2394
+ unrealizedPnl: string;
2395
+ returnOnEquity: string;
2396
+ liquidationPx: string | null;
2397
+ marginUsed: string;
2398
+ maxLeverage: number;
2399
+ cumFunding: {
2400
+ allTime: string;
2401
+ sinceOpen: string;
2402
+ sinceChange: string;
2403
+ };
2404
+ };
2405
+ }[];
2406
+ time: number;
2407
+ };
2408
+ leadingVaults: {
2409
+ address: `0x${string}`;
2410
+ name: string;
2411
+ }[];
2412
+ totalVaultEquity: string;
2413
+ openOrders: {
2414
+ coin: string;
2415
+ side: "B" | "A";
2416
+ limitPx: string;
2417
+ sz: string;
2418
+ oid: number;
2419
+ timestamp: number;
2420
+ origSz: string;
2421
+ triggerCondition: string;
2422
+ isTrigger: boolean;
2423
+ triggerPx: string;
2424
+ children: any;
2425
+ isPositionTpsl: boolean;
2426
+ reduceOnly: boolean;
2427
+ orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
2428
+ tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
2429
+ cloid: `0x${string}` | null;
2430
+ }[];
2431
+ agentAddress: `0x${string}` | null;
2432
+ agentValidUntil: number | null;
2433
+ cumLedger: string;
2434
+ meta: {
2435
+ universe: {
2436
+ szDecimals: number;
2437
+ name: string;
2438
+ maxLeverage: number;
2439
+ marginTableId: number;
2440
+ onlyIsolated?: true | undefined;
2441
+ isDelisted?: true | undefined;
2442
+ }[];
2443
+ marginTables: [number, {
2444
+ description: string;
2445
+ marginTiers: {
2446
+ lowerBound: string;
2447
+ maxLeverage: number;
2448
+ }[];
2449
+ }][];
2450
+ };
2451
+ assetCtxs: {
2452
+ prevDayPx: string;
2453
+ dayNtlVlm: string;
2454
+ markPx: string;
2455
+ midPx: string | null;
2456
+ funding: string;
2457
+ openInterest: string;
2458
+ premium: string | null;
2459
+ oraclePx: string;
2460
+ impactPxs: string[] | null;
2461
+ dayBaseVlm: string;
2462
+ }[];
2463
+ serverTime: number;
2464
+ isVault: boolean;
2465
+ user: `0x${string}`;
2466
+ twapStates: [number, {
2467
+ coin: string;
2468
+ executedNtl: string;
2469
+ executedSz: string;
2470
+ minutes: number;
2471
+ randomize: boolean;
2472
+ reduceOnly: boolean;
2473
+ side: "B" | "A";
2474
+ sz: string;
2475
+ timestamp: number;
2476
+ user: `0x${string}`;
2477
+ }][];
2478
+ spotState?: {
2479
+ balances: {
2480
+ coin: string;
2481
+ token: number;
2482
+ total: string;
2483
+ hold: string;
2484
+ entryNtl: string;
2485
+ }[];
2486
+ evmEscrows?: {
2487
+ coin: string;
2488
+ token: number;
2489
+ total: string;
2490
+ }[] | undefined;
2491
+ } | undefined;
2492
+ spotAssetCtxs: {
2493
+ prevDayPx: string;
2494
+ dayNtlVlm: string;
2495
+ markPx: string;
2496
+ midPx: string | null;
2497
+ circulatingSupply: string;
2498
+ coin: string;
2499
+ totalSupply: string;
2500
+ dayBaseVlm: string;
2501
+ }[];
2502
+ optOutOfSpotDusting?: true | undefined;
2503
+ perpsAtOpenInterestCap?: string[] | undefined;
2504
+ }>;
2505
+ }
2506
+ //# sourceMappingURL=~client.d.ts.map