@nktkas/hyperliquid 0.19.2 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/README.md +61 -79
  2. package/esm/mod.d.ts +5 -3
  3. package/esm/mod.d.ts.map +1 -1
  4. package/esm/mod.js +4 -3
  5. package/esm/src/base.d.ts +1 -47
  6. package/esm/src/base.d.ts.map +1 -1
  7. package/esm/src/base.js +1 -8
  8. package/{script/src/clients/wallet.d.ts → esm/src/clients/exchange.d.ts} +111 -112
  9. package/esm/src/clients/exchange.d.ts.map +1 -0
  10. package/esm/src/clients/{wallet.js → exchange.js} +96 -306
  11. package/esm/src/clients/{public.d.ts → info.d.ts} +121 -102
  12. package/esm/src/clients/info.d.ts.map +1 -0
  13. package/esm/src/clients/{public.js → info.js} +73 -57
  14. package/{script/src/clients/event.d.ts → esm/src/clients/subscription.d.ts} +61 -80
  15. package/esm/src/clients/subscription.d.ts.map +1 -0
  16. package/esm/src/clients/{event.js → subscription.js} +106 -136
  17. package/esm/src/signing.d.ts +4 -0
  18. package/esm/src/signing.d.ts.map +1 -1
  19. package/esm/src/signing.js +23 -5
  20. package/esm/src/transports/base.d.ts +47 -0
  21. package/esm/src/transports/base.d.ts.map +1 -0
  22. package/esm/src/transports/base.js +8 -0
  23. package/esm/src/transports/http/http_transport.d.ts +8 -5
  24. package/esm/src/transports/http/http_transport.d.ts.map +1 -1
  25. package/esm/src/transports/http/http_transport.js +15 -62
  26. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +36 -39
  27. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
  28. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts +21 -27
  29. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
  30. package/esm/src/transports/websocket/_reconnecting_websocket.js +89 -182
  31. package/{script/src/transports/websocket/_websocket_request_dispatcher.d.ts → esm/src/transports/websocket/_websocket_async_request.d.ts} +17 -19
  32. package/esm/src/transports/websocket/_websocket_async_request.d.ts.map +1 -0
  33. package/esm/src/transports/websocket/_websocket_async_request.js +177 -0
  34. package/esm/src/transports/websocket/websocket_transport.d.ts +54 -41
  35. package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  36. package/esm/src/transports/websocket/websocket_transport.js +101 -113
  37. package/esm/src/types/info/accounts.d.ts +1 -0
  38. package/esm/src/types/info/accounts.d.ts.map +1 -1
  39. package/esm/src/types/info/assets.d.ts +0 -48
  40. package/esm/src/types/info/assets.d.ts.map +1 -1
  41. package/esm/src/types/info/markets.d.ts +52 -0
  42. package/esm/src/types/info/markets.d.ts.map +1 -0
  43. package/esm/src/types/info/markets.js +1 -0
  44. package/esm/src/types/info/requests.d.ts +9 -0
  45. package/esm/src/types/info/requests.d.ts.map +1 -1
  46. package/esm/src/types/mod.d.ts +3 -0
  47. package/esm/src/types/mod.d.ts.map +1 -1
  48. package/esm/src/types/mod.js +2 -0
  49. package/package.json +12 -9
  50. package/script/mod.d.ts +5 -3
  51. package/script/mod.d.ts.map +1 -1
  52. package/script/mod.js +5 -4
  53. package/script/src/base.d.ts +1 -47
  54. package/script/src/base.d.ts.map +1 -1
  55. package/script/src/base.js +2 -10
  56. package/{esm/src/clients/wallet.d.ts → script/src/clients/exchange.d.ts} +111 -112
  57. package/script/src/clients/exchange.d.ts.map +1 -0
  58. package/script/src/clients/{wallet.js → exchange.js} +98 -308
  59. package/script/src/clients/{public.d.ts → info.d.ts} +121 -102
  60. package/script/src/clients/info.d.ts.map +1 -0
  61. package/script/src/clients/{public.js → info.js} +75 -59
  62. package/{esm/src/clients/event.d.ts → script/src/clients/subscription.d.ts} +61 -80
  63. package/script/src/clients/subscription.d.ts.map +1 -0
  64. package/script/src/clients/{event.js → subscription.js} +108 -138
  65. package/script/src/signing.d.ts +4 -0
  66. package/script/src/signing.d.ts.map +1 -1
  67. package/script/src/signing.js +25 -7
  68. package/script/src/transports/base.d.ts +47 -0
  69. package/script/src/transports/base.d.ts.map +1 -0
  70. package/script/src/transports/base.js +22 -0
  71. package/script/src/transports/http/http_transport.d.ts +8 -5
  72. package/script/src/transports/http/http_transport.d.ts.map +1 -1
  73. package/script/src/transports/http/http_transport.js +16 -63
  74. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +36 -39
  75. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
  76. package/script/src/transports/websocket/_reconnecting_websocket.d.ts +21 -27
  77. package/script/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
  78. package/script/src/transports/websocket/_reconnecting_websocket.js +90 -183
  79. package/{esm/src/transports/websocket/_websocket_request_dispatcher.d.ts → script/src/transports/websocket/_websocket_async_request.d.ts} +17 -19
  80. package/script/src/transports/websocket/_websocket_async_request.d.ts.map +1 -0
  81. package/script/src/transports/websocket/_websocket_async_request.js +192 -0
  82. package/script/src/transports/websocket/websocket_transport.d.ts +54 -41
  83. package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  84. package/script/src/transports/websocket/websocket_transport.js +103 -115
  85. package/script/src/types/info/accounts.d.ts +1 -0
  86. package/script/src/types/info/accounts.d.ts.map +1 -1
  87. package/script/src/types/info/assets.d.ts +0 -48
  88. package/script/src/types/info/assets.d.ts.map +1 -1
  89. package/script/src/types/info/markets.d.ts +52 -0
  90. package/script/src/types/info/markets.d.ts.map +1 -0
  91. package/script/{deps/jsr.io/@noble/hashes/1.8.0/src/crypto.js → src/types/info/markets.js} +0 -2
  92. package/script/src/types/info/requests.d.ts +9 -0
  93. package/script/src/types/info/requests.d.ts.map +1 -1
  94. package/script/src/types/mod.d.ts +3 -0
  95. package/script/src/types/mod.d.ts.map +1 -1
  96. package/script/src/types/mod.js +2 -0
  97. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts +0 -55
  98. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts.map +0 -1
  99. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.js +0 -66
  100. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts +0 -2
  101. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts.map +0 -1
  102. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.js +0 -1
  103. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts +0 -53
  104. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts.map +0 -1
  105. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.js +0 -294
  106. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts +0 -161
  107. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts.map +0 -1
  108. package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/utils.js +0 -280
  109. package/esm/src/clients/event.d.ts.map +0 -1
  110. package/esm/src/clients/public.d.ts.map +0 -1
  111. package/esm/src/clients/wallet.d.ts.map +0 -1
  112. package/esm/src/transports/websocket/_websocket_request_dispatcher.d.ts.map +0 -1
  113. package/esm/src/transports/websocket/_websocket_request_dispatcher.js +0 -191
  114. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts +0 -55
  115. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts.map +0 -1
  116. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.js +0 -99
  117. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts +0 -2
  118. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts.map +0 -1
  119. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts +0 -53
  120. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts.map +0 -1
  121. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.js +0 -309
  122. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts +0 -161
  123. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts.map +0 -1
  124. package/script/deps/jsr.io/@noble/hashes/1.8.0/src/utils.js +0 -322
  125. package/script/src/clients/event.d.ts.map +0 -1
  126. package/script/src/clients/public.d.ts.map +0 -1
  127. package/script/src/clients/wallet.d.ts.map +0 -1
  128. package/script/src/transports/websocket/_websocket_request_dispatcher.d.ts.map +0 -1
  129. package/script/src/transports/websocket/_websocket_request_dispatcher.js +0 -206
@@ -1,107 +1,109 @@
1
- import type { IRequestTransport } from "../base.js";
1
+ import type { IRequestTransport } from "../transports/base.js";
2
2
  import type { BlockDetailsRequest, TxDetailsRequest, UserDetailsRequest } from "../types/explorer/requests.js";
3
3
  import type { BlockDetailsResponse, TxDetailsResponse, UserDetailsResponse } from "../types/explorer/responses.js";
4
4
  import type { ExtraAgent, LegalCheck, MultiSigSigners, PerpsClearinghouseState, PortfolioPeriods, PreTransferCheck, Referral, SpotClearinghouseState, SubAccount, UserFees, UserFundingUpdate, UserNonFundingLedgerUpdate, UserRateLimit, UserRole } from "../types/info/accounts.js";
5
- import type { AllMids, Candle, FundingHistory, PerpDex, PerpsMeta, PerpsMetaAndAssetCtxs, PredictedFunding, SpotDeployState, SpotMeta, SpotMetaAndAssetCtxs, TokenDetails } from "../types/info/assets.js";
5
+ import type { AllMids, Candle, FundingHistory, PerpDex, PerpsMeta, PerpsMetaAndAssetCtxs, PredictedFunding, SpotMeta, SpotMetaAndAssetCtxs, TokenDetails } from "../types/info/assets.js";
6
6
  import type { Delegation, DelegatorReward, DelegatorSummary, DelegatorUpdate, ValidatorSummary } from "../types/info/delegations.js";
7
+ import type { DeployAuctionStatus, SpotDeployState } from "../types/info/markets.js";
7
8
  import type { Book, Fill, FrontendOrder, Order, OrderLookup, OrderStatus, TwapHistory, TwapSliceFill } from "../types/info/orders.js";
8
- import type { AllMidsRequest, CandleSnapshotRequest, ClearinghouseStateRequest, DelegationsRequest, DelegatorHistoryRequest, DelegatorRewardsRequest, DelegatorSummaryRequest, ExtraAgentsRequest, FrontendOpenOrdersRequest, FundingHistoryRequest, HistoricalOrdersRequest, IsVipRequest, L2BookRequest, LegalCheckRequest, MaxBuilderFeeRequest, MetaRequest, OpenOrdersRequest, OrderStatusRequest, PerpDexsRequest, PortfolioRequest, PreTransferCheckRequest, ReferralRequest, SpotClearinghouseStateRequest, SpotDeployStateRequest, SubAccountsRequest, TokenDetailsRequest, TwapHistoryRequest, UserFeesRequest, UserFillsByTimeRequest, UserFillsRequest, UserFundingRequest, UserNonFundingLedgerUpdatesRequest, UserRateLimitRequest, UserRoleRequest, UserToMultiSigSignersRequest, UserTwapSliceFillsByTimeRequest, UserTwapSliceFillsRequest, UserVaultEquitiesRequest, VaultDetailsRequest } from "../types/info/requests.js";
9
+ import type { AllMidsRequest, CandleSnapshotRequest, ClearinghouseStateRequest, DelegationsRequest, DelegatorHistoryRequest, DelegatorRewardsRequest, DelegatorSummaryRequest, ExtraAgentsRequest, FrontendOpenOrdersRequest, FundingHistoryRequest, HistoricalOrdersRequest, IsVipRequest, L2BookRequest, LegalCheckRequest, MaxBuilderFeeRequest, MetaRequest, OpenOrdersRequest, OrderStatusRequest, PerpDeployAuctionStatusRequest, PerpDexsRequest, PortfolioRequest, PreTransferCheckRequest, ReferralRequest, SpotClearinghouseStateRequest, SpotDeployStateRequest, SubAccountsRequest, TokenDetailsRequest, TwapHistoryRequest, UserFeesRequest, UserFillsByTimeRequest, UserFillsRequest, UserFundingRequest, UserNonFundingLedgerUpdatesRequest, UserRateLimitRequest, UserRoleRequest, UserToMultiSigSignersRequest, UserTwapSliceFillsByTimeRequest, UserTwapSliceFillsRequest, UserVaultEquitiesRequest, VaultDetailsRequest } from "../types/info/requests.js";
9
10
  import type { VaultDetails, VaultEquity, VaultSummary } from "../types/info/vaults.js";
10
- /** Parameters for the {@linkcode PublicClient} constructor. */
11
- export interface PublicClientParameters<T extends IRequestTransport = IRequestTransport> {
11
+ /** Parameters for the {@linkcode InfoClient} constructor. */
12
+ export interface InfoClientParameters<T extends IRequestTransport = IRequestTransport> {
12
13
  /** The transport used to connect to the Hyperliquid API. */
13
14
  transport: T;
14
15
  }
15
- /** Parameters for the {@linkcode PublicClient.allMids} method. */
16
+ /** Parameters for the {@linkcode InfoClient.allMids} method. */
16
17
  export type AllMidsParameters = Omit<AllMidsRequest, "type">;
17
- /** Parameters for the {@linkcode PublicClient.candleSnapshot} method. */
18
+ /** Parameters for the {@linkcode InfoClient.candleSnapshot} method. */
18
19
  export type CandleSnapshotParameters = CandleSnapshotRequest["req"];
19
- /** Parameters for the {@linkcode PublicClient.clearinghouseState} method. */
20
+ /** Parameters for the {@linkcode InfoClient.clearinghouseState} method. */
20
21
  export type ClearinghouseStateParameters = Omit<ClearinghouseStateRequest, "type">;
21
- /** Parameters for the {@linkcode PublicClient.delegations} method. */
22
+ /** Parameters for the {@linkcode InfoClient.delegations} method. */
22
23
  export type DelegationsParameters = Omit<DelegationsRequest, "type">;
23
- /** Parameters for the {@linkcode PublicClient.delegatorHistory} method. */
24
+ /** Parameters for the {@linkcode InfoClient.delegatorHistory} method. */
24
25
  export type DelegatorHistoryParameters = Omit<DelegatorHistoryRequest, "type">;
25
- /** Parameters for the {@linkcode PublicClient.delegatorRewards} method. */
26
+ /** Parameters for the {@linkcode InfoClient.delegatorRewards} method. */
26
27
  export type DelegatorRewardsParameters = Omit<DelegatorRewardsRequest, "type">;
27
- /** Parameters for the {@linkcode PublicClient.delegatorSummary} method. */
28
+ /** Parameters for the {@linkcode InfoClient.delegatorSummary} method. */
28
29
  export type DelegatorSummaryParameters = Omit<DelegatorSummaryRequest, "type">;
29
- /** Parameters for the {@linkcode PublicClient.extraAgents} method. */
30
+ /** Parameters for the {@linkcode InfoClient.extraAgents} method. */
30
31
  export type ExtraAgentsParameters = Omit<ExtraAgentsRequest, "type">;
31
- /** Parameters for the {@linkcode PublicClient.frontendOpenOrders} method. */
32
+ /** Parameters for the {@linkcode InfoClient.frontendOpenOrders} method. */
32
33
  export type FrontendOpenOrdersParameters = Omit<FrontendOpenOrdersRequest, "type">;
33
- /** Parameters for the {@linkcode PublicClient.fundingHistory} method. */
34
+ /** Parameters for the {@linkcode InfoClient.fundingHistory} method. */
34
35
  export type FundingHistoryParameters = Omit<FundingHistoryRequest, "type">;
35
- /** Parameters for the {@linkcode PublicClient.historicalOrders} method. */
36
+ /** Parameters for the {@linkcode InfoClient.historicalOrders} method. */
36
37
  export type HistoricalOrdersParameters = Omit<HistoricalOrdersRequest, "type">;
37
- /** Parameters for the {@linkcode PublicClient.isVip} method. */
38
+ /** Parameters for the {@linkcode InfoClient.isVip} method. */
38
39
  export type IsVipParameters = Omit<IsVipRequest, "type">;
39
- /** Parameters for the {@linkcode PublicClient.l2Book} method. */
40
+ /** Parameters for the {@linkcode InfoClient.l2Book} method. */
40
41
  export type L2BookParameters = Omit<L2BookRequest, "type">;
41
- /** Parameters for the {@linkcode PublicClient.legalCheck} method. */
42
+ /** Parameters for the {@linkcode InfoClient.legalCheck} method. */
42
43
  export type LegalCheckParameters = Omit<LegalCheckRequest, "type">;
43
- /** Parameters for the {@linkcode PublicClient.maxBuilderFee} method. */
44
+ /** Parameters for the {@linkcode InfoClient.maxBuilderFee} method. */
44
45
  export type MaxBuilderFeeParameters = Omit<MaxBuilderFeeRequest, "type">;
45
- /** Parameters for the {@linkcode PublicClient.meta} method. */
46
+ /** Parameters for the {@linkcode InfoClient.meta} method. */
46
47
  export type MetaParameters = Omit<MetaRequest, "type">;
47
- /** Parameters for the {@linkcode PublicClient.openOrders} method. */
48
+ /** Parameters for the {@linkcode InfoClient.openOrders} method. */
48
49
  export type OpenOrdersParameters = Omit<OpenOrdersRequest, "type">;
49
- /** Parameters for the {@linkcode PublicClient.orderStatus} method. */
50
+ /** Parameters for the {@linkcode InfoClient.orderStatus} method. */
50
51
  export type OrderStatusParameters = Omit<OrderStatusRequest, "type">;
51
- /** Parameters for the {@linkcode PublicClient.perpDexs} method. */
52
+ /** Parameters for the {@linkcode InfoClient.perpDeployAuctionStatus} method. */
53
+ export type PerpDeployAuctionStatusParameters = Omit<PerpDeployAuctionStatusRequest, "type">;
54
+ /** Parameters for the {@linkcode InfoClient.perpDexs} method. */
52
55
  export type PerpDexsParameters = Omit<PerpDexsRequest, "type">;
53
- /** Parameters for the {@linkcode PublicClient.portfolio} method. */
56
+ /** Parameters for the {@linkcode InfoClient.portfolio} method. */
54
57
  export type PortfolioParameters = Omit<PortfolioRequest, "type">;
55
- /** Parameters for the {@linkcode PublicClient.preTransferCheck} method. */
58
+ /** Parameters for the {@linkcode InfoClient.preTransferCheck} method. */
56
59
  export type PreTransferCheckParameters = Omit<PreTransferCheckRequest, "type">;
57
- /** Parameters for the {@linkcode PublicClient.referral} method. */
60
+ /** Parameters for the {@linkcode InfoClient.referral} method. */
58
61
  export type ReferralParameters = Omit<ReferralRequest, "type">;
59
- /** Parameters for the {@linkcode PublicClient.spotClearinghouseState} method. */
62
+ /** Parameters for the {@linkcode InfoClient.spotClearinghouseState} method. */
60
63
  export type SpotClearinghouseStateParameters = Omit<SpotClearinghouseStateRequest, "type">;
61
- /** Parameters for the {@linkcode PublicClient.spotDeployState} method. */
64
+ /** Parameters for the {@linkcode InfoClient.spotDeployState} method. */
62
65
  export type SpotDeployStateParameters = Omit<SpotDeployStateRequest, "type">;
63
- /** Parameters for the {@linkcode PublicClient.subAccounts} method. */
66
+ /** Parameters for the {@linkcode InfoClient.subAccounts} method. */
64
67
  export type SubAccountsParameters = Omit<SubAccountsRequest, "type">;
65
- /** Parameters for the {@linkcode PublicClient.tokenDetails} method. */
68
+ /** Parameters for the {@linkcode InfoClient.tokenDetails} method. */
66
69
  export type TokenDetailsParameters = Omit<TokenDetailsRequest, "type">;
67
- /** Parameters for the {@linkcode PublicClient.twapHistory} method. */
70
+ /** Parameters for the {@linkcode InfoClient.twapHistory} method. */
68
71
  export type TwapHistoryParameters = Omit<TwapHistoryRequest, "type">;
69
- /** Parameters for the {@linkcode PublicClient.userFees} method. */
72
+ /** Parameters for the {@linkcode InfoClient.userFees} method. */
70
73
  export type UserFeesParameters = Omit<UserFeesRequest, "type">;
71
- /** Parameters for the {@linkcode PublicClient.userFills} method. */
74
+ /** Parameters for the {@linkcode InfoClient.userFills} method. */
72
75
  export type UserFillsParameters = Omit<UserFillsRequest, "type">;
73
- /** Parameters for the {@linkcode PublicClient.userFillsByTime} method. */
76
+ /** Parameters for the {@linkcode InfoClient.userFillsByTime} method. */
74
77
  export type UserFillsByTimeParameters = Omit<UserFillsByTimeRequest, "type">;
75
- /** Parameters for the {@linkcode PublicClient.userFunding} method. */
78
+ /** Parameters for the {@linkcode InfoClient.userFunding} method. */
76
79
  export type UserFundingParameters = Omit<UserFundingRequest, "type">;
77
- /** Parameters for the {@linkcode PublicClient.userNonFundingLedgerUpdates} method. */
80
+ /** Parameters for the {@linkcode InfoClient.userNonFundingLedgerUpdates} method. */
78
81
  export type UserNonFundingLedgerUpdatesParameters = Omit<UserNonFundingLedgerUpdatesRequest, "type">;
79
- /** Parameters for the {@linkcode PublicClient.userRateLimit} method. */
82
+ /** Parameters for the {@linkcode InfoClient.userRateLimit} method. */
80
83
  export type UserRateLimitParameters = Omit<UserRateLimitRequest, "type">;
81
- /** Parameters for the {@linkcode PublicClient.userRole} method. */
84
+ /** Parameters for the {@linkcode InfoClient.userRole} method. */
82
85
  export type UserRoleParameters = Omit<UserRoleRequest, "type">;
83
- /** Parameters for the {@linkcode PublicClient.userToMultiSigSigners} method. */
86
+ /** Parameters for the {@linkcode InfoClient.userToMultiSigSigners} method. */
84
87
  export type UserToMultiSigSignersParameters = Omit<UserToMultiSigSignersRequest, "type">;
85
- /** Parameters for the {@linkcode PublicClient.userTwapSliceFills} method. */
88
+ /** Parameters for the {@linkcode InfoClient.userTwapSliceFills} method. */
86
89
  export type UserTwapSliceFillsParameters = Omit<UserTwapSliceFillsRequest, "type">;
87
- /** Parameters for the {@linkcode PublicClient.userTwapSliceFillsByTime} method. */
90
+ /** Parameters for the {@linkcode InfoClient.userTwapSliceFillsByTime} method. */
88
91
  export type UserTwapSliceFillsByTimeParameters = Omit<UserTwapSliceFillsByTimeRequest, "type">;
89
- /** Parameters for the {@linkcode PublicClient.userVaultEquities} method. */
92
+ /** Parameters for the {@linkcode InfoClient.userVaultEquities} method. */
90
93
  export type UserVaultEquitiesParameters = Omit<UserVaultEquitiesRequest, "type">;
91
- /** Parameters for the {@linkcode PublicClient.vaultDetails} method. */
94
+ /** Parameters for the {@linkcode InfoClient.vaultDetails} method. */
92
95
  export type VaultDetailsParameters = Omit<VaultDetailsRequest, "type">;
93
- /** Parameters for the {@linkcode PublicClient.blockDetails} method. */
96
+ /** Parameters for the {@linkcode InfoClient.blockDetails} method. */
94
97
  export type BlockDetailsParameters = Omit<BlockDetailsRequest, "type">;
95
- /** Parameters for the {@linkcode PublicClient.txDetails} method. */
98
+ /** Parameters for the {@linkcode InfoClient.txDetails} method. */
96
99
  export type TxDetailsParameters = Omit<TxDetailsRequest, "type">;
97
- /** Parameters for the {@linkcode PublicClient.userDetails} method. */
100
+ /** Parameters for the {@linkcode InfoClient.userDetails} method. */
98
101
  export type UserDetailsParameters = Omit<UserDetailsRequest, "type">;
99
102
  /**
100
- * Public client for interacting with the Hyperliquid API.
103
+ * Info client for interacting with the Hyperliquid API.
101
104
  * @typeParam T The type of transport used to connect to the Hyperliquid API.
102
105
  */
103
- export declare class PublicClient<T extends IRequestTransport = IRequestTransport> implements AsyncDisposable {
104
- /** The transport used to connect to the Hyperliquid API. */
106
+ export declare class InfoClient<T extends IRequestTransport = IRequestTransport> implements InfoClientParameters, AsyncDisposable {
105
107
  transport: T;
106
108
  /**
107
109
  * Initialises a new instance.
@@ -112,10 +114,10 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
112
114
  * import * as hl from "@nktkas/hyperliquid";
113
115
  *
114
116
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
115
- * const client = new hl.PublicClient({ transport });
117
+ * const infoClient = new hl.InfoClient({ transport });
116
118
  * ```
117
119
  */
118
- constructor(args: PublicClientParameters<T>);
120
+ constructor(args: InfoClientParameters<T>);
119
121
  /**
120
122
  * Request mid coin prices.
121
123
  * @param signal - An optional abort signal.
@@ -127,7 +129,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
127
129
  * import * as hl from "@nktkas/hyperliquid";
128
130
  *
129
131
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
130
- * const client = new hl.PublicClient({ transport });
132
+ * const infoClient = new hl.InfoClient({ transport });
131
133
  *
132
134
  * const allMids = await client.allMids();
133
135
  * ```
@@ -146,7 +148,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
146
148
  * import * as hl from "@nktkas/hyperliquid";
147
149
  *
148
150
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
149
- * const client = new hl.PublicClient({ transport });
151
+ * const infoClient = new hl.InfoClient({ transport });
150
152
  *
151
153
  * const { blockDetails } = await client.blockDetails({ height: 123 });
152
154
  * ```
@@ -164,7 +166,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
164
166
  * import * as hl from "@nktkas/hyperliquid";
165
167
  *
166
168
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
167
- * const client = new hl.PublicClient({ transport });
169
+ * const infoClient = new hl.InfoClient({ transport });
168
170
  *
169
171
  * const candleSnapshot = await client.candleSnapshot({
170
172
  * coin: "ETH",
@@ -186,7 +188,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
186
188
  * import * as hl from "@nktkas/hyperliquid";
187
189
  *
188
190
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
189
- * const client = new hl.PublicClient({ transport });
191
+ * const infoClient = new hl.InfoClient({ transport });
190
192
  *
191
193
  * const clearinghouseState = await client.clearinghouseState({ user: "0x..." });
192
194
  * ```
@@ -204,7 +206,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
204
206
  * import * as hl from "@nktkas/hyperliquid";
205
207
  *
206
208
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
207
- * const client = new hl.PublicClient({ transport });
209
+ * const infoClient = new hl.InfoClient({ transport });
208
210
  *
209
211
  * const delegations = await client.delegations({ user: "0x..." });
210
212
  * ```
@@ -222,7 +224,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
222
224
  * import * as hl from "@nktkas/hyperliquid";
223
225
  *
224
226
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
225
- * const client = new hl.PublicClient({ transport });
227
+ * const infoClient = new hl.InfoClient({ transport });
226
228
  *
227
229
  * const delegatorHistory = await client.delegatorHistory({ user: "0x..." });
228
230
  * ```
@@ -240,7 +242,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
240
242
  * import * as hl from "@nktkas/hyperliquid";
241
243
  *
242
244
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
243
- * const client = new hl.PublicClient({ transport });
245
+ * const infoClient = new hl.InfoClient({ transport });
244
246
  *
245
247
  * const delegatorRewards = await client.delegatorRewards({ user: "0x..." });
246
248
  * ```
@@ -258,7 +260,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
258
260
  * import * as hl from "@nktkas/hyperliquid";
259
261
  *
260
262
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
261
- * const client = new hl.PublicClient({ transport });
263
+ * const infoClient = new hl.InfoClient({ transport });
262
264
  *
263
265
  * const delegatorSummary = await client.delegatorSummary({ user: "0x..." });
264
266
  * ```
@@ -276,7 +278,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
276
278
  * import * as hl from "@nktkas/hyperliquid";
277
279
  *
278
280
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
279
- * const client = new hl.PublicClient({ transport });
281
+ * const infoClient = new hl.InfoClient({ transport });
280
282
  *
281
283
  * const extraAgents = await client.extraAgents({ user: "0x..." });
282
284
  * ```
@@ -294,7 +296,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
294
296
  * import * as hl from "@nktkas/hyperliquid";
295
297
  *
296
298
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
297
- * const client = new hl.PublicClient({ transport });
299
+ * const infoClient = new hl.InfoClient({ transport });
298
300
  *
299
301
  * const frontendOpenOrders = await client.frontendOpenOrders({ user: "0x..." });
300
302
  * ```
@@ -312,7 +314,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
312
314
  * import * as hl from "@nktkas/hyperliquid";
313
315
  *
314
316
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
315
- * const client = new hl.PublicClient({ transport });
317
+ * const infoClient = new hl.InfoClient({ transport });
316
318
  *
317
319
  * const fundingHistory = await client.fundingHistory({
318
320
  * coin: "ETH",
@@ -333,7 +335,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
333
335
  * import * as hl from "@nktkas/hyperliquid";
334
336
  *
335
337
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
336
- * const client = new hl.PublicClient({ transport });
338
+ * const infoClient = new hl.InfoClient({ transport });
337
339
  *
338
340
  * const historicalOrders = await client.historicalOrders({ user: "0x..." });
339
341
  * ```
@@ -351,7 +353,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
351
353
  * import * as hl from "@nktkas/hyperliquid";
352
354
  *
353
355
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
354
- * const client = new hl.PublicClient({ transport });
356
+ * const infoClient = new hl.InfoClient({ transport });
355
357
  *
356
358
  * const isVip = await client.isVip({ user: "0x..." });
357
359
  * ```
@@ -369,7 +371,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
369
371
  * import * as hl from "@nktkas/hyperliquid";
370
372
  *
371
373
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
372
- * const client = new hl.PublicClient({ transport });
374
+ * const infoClient = new hl.InfoClient({ transport });
373
375
  *
374
376
  * const l2Book = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
375
377
  * ```
@@ -387,7 +389,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
387
389
  * import * as hl from "@nktkas/hyperliquid";
388
390
  *
389
391
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
390
- * const client = new hl.PublicClient({ transport });
392
+ * const infoClient = new hl.InfoClient({ transport });
391
393
  *
392
394
  * const legalCheck = await client.legalCheck({ user: "0x..." });
393
395
  * ```
@@ -405,7 +407,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
405
407
  * import * as hl from "@nktkas/hyperliquid";
406
408
  *
407
409
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
408
- * const client = new hl.PublicClient({ transport });
410
+ * const infoClient = new hl.InfoClient({ transport });
409
411
  *
410
412
  * const maxBuilderFee = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
411
413
  * ```
@@ -422,7 +424,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
422
424
  * import * as hl from "@nktkas/hyperliquid";
423
425
  *
424
426
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
425
- * const client = new hl.PublicClient({ transport });
427
+ * const infoClient = new hl.InfoClient({ transport });
426
428
  *
427
429
  * const meta = await client.meta();
428
430
  * ```
@@ -440,7 +442,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
440
442
  * import * as hl from "@nktkas/hyperliquid";
441
443
  *
442
444
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
443
- * const client = new hl.PublicClient({ transport });
445
+ * const infoClient = new hl.InfoClient({ transport });
444
446
  *
445
447
  * const [meta, assetCtxs] = await client.metaAndAssetCtxs();
446
448
  * ```
@@ -458,7 +460,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
458
460
  * import * as hl from "@nktkas/hyperliquid";
459
461
  *
460
462
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
461
- * const client = new hl.PublicClient({ transport });
463
+ * const infoClient = new hl.InfoClient({ transport });
462
464
  *
463
465
  * const openOrders = await client.openOrders({ user: "0x..." });
464
466
  * ```
@@ -476,12 +478,29 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
476
478
  * import * as hl from "@nktkas/hyperliquid";
477
479
  *
478
480
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
479
- * const client = new hl.PublicClient({ transport });
481
+ * const infoClient = new hl.InfoClient({ transport });
480
482
  *
481
483
  * const orderStatus = await client.orderStatus({ user: "0x...", oid: 12345 });
482
484
  * ```
483
485
  */
484
486
  orderStatus(args: OrderStatusParameters, signal?: AbortSignal): Promise<OrderLookup>;
487
+ /**
488
+ * Request for the status of the perpetual deploy auction.
489
+ * @param signal - An optional abort signal.
490
+ * @returns Status of the perpetual deploy auction.
491
+ *
492
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-information-about-the-perp-deploy-auction
493
+ * @example
494
+ * ```ts
495
+ * import * as hl from "@nktkas/hyperliquid";
496
+ *
497
+ * const transport = new hl.HttpTransport(); // or WebSocketTransport
498
+ * const infoClient = new hl.InfoClient({ transport });
499
+ *
500
+ * const auctionStatus = await client.perpDeployAuctionStatus();
501
+ * ```
502
+ */
503
+ perpDeployAuctionStatus(signal?: AbortSignal): Promise<DeployAuctionStatus>;
485
504
  /**
486
505
  * Request all perpetual dexs.
487
506
  * @param signal - An optional abort signal.
@@ -493,7 +512,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
493
512
  * import * as hl from "@nktkas/hyperliquid";
494
513
  *
495
514
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
496
- * const client = new hl.PublicClient({ transport });
515
+ * const infoClient = new hl.InfoClient({ transport });
497
516
  *
498
517
  * const perpDexs = await client.perpDexs();
499
518
  * ```
@@ -511,7 +530,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
511
530
  * import * as hl from "@nktkas/hyperliquid";
512
531
  *
513
532
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
514
- * const client = new hl.PublicClient({ transport });
533
+ * const infoClient = new hl.InfoClient({ transport });
515
534
  *
516
535
  * const perpsAtOpenInterestCap = await client.perpsAtOpenInterestCap();
517
536
  * ```
@@ -529,7 +548,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
529
548
  * import * as hl from "@nktkas/hyperliquid";
530
549
  *
531
550
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
532
- * const client = new hl.PublicClient({ transport });
551
+ * const infoClient = new hl.InfoClient({ transport });
533
552
  *
534
553
  * const portfolio = await client.portfolio({ user: "0x..." });
535
554
  * ```
@@ -546,7 +565,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
546
565
  * import * as hl from "@nktkas/hyperliquid";
547
566
  *
548
567
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
549
- * const client = new hl.PublicClient({ transport });
568
+ * const infoClient = new hl.InfoClient({ transport });
550
569
  *
551
570
  * const predictedFundings = await client.predictedFundings();
552
571
  * ```
@@ -564,7 +583,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
564
583
  * import * as hl from "@nktkas/hyperliquid";
565
584
  *
566
585
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
567
- * const client = new hl.PublicClient({ transport });
586
+ * const infoClient = new hl.InfoClient({ transport });
568
587
  *
569
588
  * const preTransferCheck = await client.preTransferCheck({ user: "0x...", source: "0x..." });
570
589
  * ```
@@ -582,7 +601,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
582
601
  * import * as hl from "@nktkas/hyperliquid";
583
602
  *
584
603
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
585
- * const client = new hl.PublicClient({ transport });
604
+ * const infoClient = new hl.InfoClient({ transport });
586
605
  *
587
606
  * const referral = await client.referral({ user: "0x..." });
588
607
  * ```
@@ -600,7 +619,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
600
619
  * import * as hl from "@nktkas/hyperliquid";
601
620
  *
602
621
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
603
- * const client = new hl.PublicClient({ transport });
622
+ * const infoClient = new hl.InfoClient({ transport });
604
623
  *
605
624
  * const spotClearinghouseState = await client.spotClearinghouseState({ user: "0x..." });
606
625
  * ```
@@ -618,7 +637,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
618
637
  * import * as hl from "@nktkas/hyperliquid";
619
638
  *
620
639
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
621
- * const client = new hl.PublicClient({ transport });
640
+ * const infoClient = new hl.InfoClient({ transport });
622
641
  *
623
642
  * const spotDeployState = await client.spotDeployState({ user: "0x..." });
624
643
  * ```
@@ -635,7 +654,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
635
654
  * import * as hl from "@nktkas/hyperliquid";
636
655
  *
637
656
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
638
- * const client = new hl.PublicClient({ transport });
657
+ * const infoClient = new hl.InfoClient({ transport });
639
658
  *
640
659
  * const spotMeta = await client.spotMeta();
641
660
  * ```
@@ -652,7 +671,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
652
671
  * import * as hl from "@nktkas/hyperliquid";
653
672
  *
654
673
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
655
- * const client = new hl.PublicClient({ transport });
674
+ * const infoClient = new hl.InfoClient({ transport });
656
675
  *
657
676
  * const [spotMeta, spotAssetCtxs] = await client.spotMetaAndAssetCtxs();
658
677
  * ```
@@ -670,7 +689,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
670
689
  * import * as hl from "@nktkas/hyperliquid";
671
690
  *
672
691
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
673
- * const client = new hl.PublicClient({ transport });
692
+ * const infoClient = new hl.InfoClient({ transport });
674
693
  *
675
694
  * const subAccounts = await client.subAccounts({ user: "0x..." });
676
695
  * ```
@@ -688,7 +707,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
688
707
  * import * as hl from "@nktkas/hyperliquid";
689
708
  *
690
709
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
691
- * const client = new hl.PublicClient({ transport });
710
+ * const infoClient = new hl.InfoClient({ transport });
692
711
  *
693
712
  * const tokenDetails = await client.tokenDetails({ tokenId: "0x..." });
694
713
  * ```
@@ -706,7 +725,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
706
725
  * import * as hl from "@nktkas/hyperliquid";
707
726
  *
708
727
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
709
- * const client = new hl.PublicClient({ transport });
728
+ * const infoClient = new hl.InfoClient({ transport });
710
729
  *
711
730
  * const twapHistory = await client.twapHistory({ user: "0x..." });
712
731
  * ```
@@ -724,7 +743,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
724
743
  * import * as hl from "@nktkas/hyperliquid";
725
744
  *
726
745
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
727
- * const client = new hl.PublicClient({ transport });
746
+ * const infoClient = new hl.InfoClient({ transport });
728
747
  *
729
748
  * const { tx } = await client.txDetails({ hash: "0x..." });
730
749
  * ```
@@ -742,7 +761,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
742
761
  * import * as hl from "@nktkas/hyperliquid";
743
762
  *
744
763
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
745
- * const client = new hl.PublicClient({ transport });
764
+ * const infoClient = new hl.InfoClient({ transport });
746
765
  *
747
766
  * const { txs } = await client.userDetails({ user: "0x..." });
748
767
  * ```
@@ -760,7 +779,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
760
779
  * import * as hl from "@nktkas/hyperliquid";
761
780
  *
762
781
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
763
- * const client = new hl.PublicClient({ transport });
782
+ * const infoClient = new hl.InfoClient({ transport });
764
783
  *
765
784
  * const fees = await client.userFees({ user: "0x..." });
766
785
  * ```
@@ -778,7 +797,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
778
797
  * import * as hl from "@nktkas/hyperliquid";
779
798
  *
780
799
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
781
- * const client = new hl.PublicClient({ transport });
800
+ * const infoClient = new hl.InfoClient({ transport });
782
801
  *
783
802
  * const fills = await client.userFills({ user: "0x..." });
784
803
  * ```
@@ -796,7 +815,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
796
815
  * import * as hl from "@nktkas/hyperliquid";
797
816
  *
798
817
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
799
- * const client = new hl.PublicClient({ transport });
818
+ * const infoClient = new hl.InfoClient({ transport });
800
819
  *
801
820
  * const fills = await client.userFillsByTime({
802
821
  * user: "0x...",
@@ -817,7 +836,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
817
836
  * import * as hl from "@nktkas/hyperliquid";
818
837
  *
819
838
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
820
- * const client = new hl.PublicClient({ transport });
839
+ * const infoClient = new hl.InfoClient({ transport });
821
840
  *
822
841
  * const funding = await client.userFunding({
823
842
  * user: "0x...",
@@ -838,7 +857,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
838
857
  * import * as hl from "@nktkas/hyperliquid";
839
858
  *
840
859
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
841
- * const client = new hl.PublicClient({ transport });
860
+ * const infoClient = new hl.InfoClient({ transport });
842
861
  *
843
862
  * const nonFundingLedgerUpdates = await client.userNonFundingLedgerUpdates({
844
863
  * user: "0x...",
@@ -859,7 +878,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
859
878
  * import * as hl from "@nktkas/hyperliquid";
860
879
  *
861
880
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
862
- * const client = new hl.PublicClient({ transport });
881
+ * const infoClient = new hl.InfoClient({ transport });
863
882
  *
864
883
  * const rateLimit = await client.userRateLimit({ user: "0x..." });
865
884
  * ```
@@ -877,7 +896,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
877
896
  * import * as hl from "@nktkas/hyperliquid";
878
897
  *
879
898
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
880
- * const client = new hl.PublicClient({ transport });
899
+ * const infoClient = new hl.InfoClient({ transport });
881
900
  *
882
901
  * const userRole = await client.userRole({ user: "0x..." });
883
902
  * ```
@@ -895,7 +914,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
895
914
  * import * as hl from "@nktkas/hyperliquid";
896
915
  *
897
916
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
898
- * const client = new hl.PublicClient({ transport });
917
+ * const infoClient = new hl.InfoClient({ transport });
899
918
  *
900
919
  * const multiSigSigners = await client.userToMultiSigSigners({ user: "0x..." });
901
920
  * ```
@@ -913,7 +932,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
913
932
  * import * as hl from "@nktkas/hyperliquid";
914
933
  *
915
934
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
916
- * const client = new hl.PublicClient({ transport });
935
+ * const infoClient = new hl.InfoClient({ transport });
917
936
  *
918
937
  * const twapSliceFills = await client.userTwapSliceFills({ user: "0x..." });
919
938
  * ```
@@ -931,7 +950,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
931
950
  * import * as hl from "@nktkas/hyperliquid";
932
951
  *
933
952
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
934
- * const client = new hl.PublicClient({ transport });
953
+ * const infoClient = new hl.InfoClient({ transport });
935
954
  *
936
955
  * const twapSliceFillsByTime = await client.userTwapSliceFillsByTime({
937
956
  * user: "0x...",
@@ -952,7 +971,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
952
971
  * import * as hl from "@nktkas/hyperliquid";
953
972
  *
954
973
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
955
- * const client = new hl.PublicClient({ transport });
974
+ * const infoClient = new hl.InfoClient({ transport });
956
975
  *
957
976
  * const userVaultEquities = await client.userVaultDeposits({ user: "0x..." });
958
977
  * ```
@@ -969,7 +988,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
969
988
  * import * as hl from "@nktkas/hyperliquid";
970
989
  *
971
990
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
972
- * const client = new hl.PublicClient({ transport });
991
+ * const infoClient = new hl.InfoClient({ transport });
973
992
  *
974
993
  * const validatorSummaries = await client.validatorSummaries();
975
994
  * ```
@@ -987,7 +1006,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
987
1006
  * import * as hl from "@nktkas/hyperliquid";
988
1007
  *
989
1008
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
990
- * const client = new hl.PublicClient({ transport });
1009
+ * const infoClient = new hl.InfoClient({ transport });
991
1010
  *
992
1011
  * const vaultDetails = await client.vaultDetails({ vaultAddress: "0x..." });
993
1012
  * ```
@@ -1005,7 +1024,7 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
1005
1024
  * import * as hl from "@nktkas/hyperliquid";
1006
1025
  *
1007
1026
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1008
- * const client = new hl.PublicClient({ transport });
1027
+ * const infoClient = new hl.InfoClient({ transport });
1009
1028
  *
1010
1029
  * const vaultSummaries = await client.vaultSummaries();
1011
1030
  * ```
@@ -1013,4 +1032,4 @@ export declare class PublicClient<T extends IRequestTransport = IRequestTranspor
1013
1032
  vaultSummaries(signal?: AbortSignal): Promise<VaultSummary[]>;
1014
1033
  [Symbol.asyncDispose](): Promise<void>;
1015
1034
  }
1016
- //# sourceMappingURL=public.d.ts.map
1035
+ //# sourceMappingURL=info.d.ts.map