@nktkas/hyperliquid 0.25.0-beta.4 → 0.25.1

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