@nktkas/hyperliquid 0.20.0 → 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 (76) hide show
  1. package/README.md +40 -50
  2. package/esm/mod.d.ts +3 -4
  3. package/esm/mod.d.ts.map +1 -1
  4. package/esm/mod.js +3 -4
  5. package/{script/src/clients/wallet.d.ts → esm/src/clients/exchange.d.ts} +100 -100
  6. package/esm/src/clients/exchange.d.ts.map +1 -0
  7. package/esm/src/clients/{wallet.js → exchange.js} +41 -41
  8. package/esm/src/clients/{public.d.ts → info.d.ts} +100 -100
  9. package/esm/src/clients/info.d.ts.map +1 -0
  10. package/esm/src/clients/{public.js → info.js} +51 -51
  11. package/{script/src/clients/event.d.ts → esm/src/clients/subscription.d.ts} +60 -78
  12. package/esm/src/clients/subscription.d.ts.map +1 -0
  13. package/esm/src/clients/{event.js → subscription.js} +57 -79
  14. package/esm/src/signing.d.ts +0 -1
  15. package/esm/src/signing.d.ts.map +1 -1
  16. package/esm/src/signing.js +0 -1
  17. package/esm/src/transports/base.d.ts +5 -7
  18. package/esm/src/transports/base.d.ts.map +1 -1
  19. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts +3 -2
  20. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
  21. package/esm/src/transports/websocket/_reconnecting_websocket.js +11 -5
  22. package/esm/src/transports/websocket/_websocket_async_request.d.ts +6 -4
  23. package/esm/src/transports/websocket/_websocket_async_request.d.ts.map +1 -1
  24. package/esm/src/transports/websocket/_websocket_async_request.js +47 -28
  25. package/esm/src/transports/websocket/websocket_transport.d.ts +24 -21
  26. package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  27. package/esm/src/transports/websocket/websocket_transport.js +60 -57
  28. package/esm/src/types/info/accounts.d.ts +1 -0
  29. package/esm/src/types/info/accounts.d.ts.map +1 -1
  30. package/esm/src/types/mod.d.ts +0 -1
  31. package/esm/src/types/mod.d.ts.map +1 -1
  32. package/esm/src/types/mod.js +1 -1
  33. package/package.json +1 -1
  34. package/script/mod.d.ts +3 -4
  35. package/script/mod.d.ts.map +1 -1
  36. package/script/mod.js +4 -5
  37. package/{esm/src/clients/wallet.d.ts → script/src/clients/exchange.d.ts} +100 -100
  38. package/script/src/clients/exchange.d.ts.map +1 -0
  39. package/script/src/clients/{wallet.js → exchange.js} +43 -43
  40. package/script/src/clients/{public.d.ts → info.d.ts} +100 -100
  41. package/script/src/clients/info.d.ts.map +1 -0
  42. package/script/src/clients/{public.js → info.js} +53 -53
  43. package/{esm/src/clients/event.d.ts → script/src/clients/subscription.d.ts} +60 -78
  44. package/script/src/clients/subscription.d.ts.map +1 -0
  45. package/script/src/clients/{event.js → subscription.js} +59 -81
  46. package/script/src/signing.d.ts +0 -1
  47. package/script/src/signing.d.ts.map +1 -1
  48. package/script/src/signing.js +52 -53
  49. package/script/src/transports/base.d.ts +5 -7
  50. package/script/src/transports/base.d.ts.map +1 -1
  51. package/script/src/transports/websocket/_reconnecting_websocket.d.ts +3 -2
  52. package/script/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
  53. package/script/src/transports/websocket/_reconnecting_websocket.js +11 -5
  54. package/script/src/transports/websocket/_websocket_async_request.d.ts +6 -4
  55. package/script/src/transports/websocket/_websocket_async_request.d.ts.map +1 -1
  56. package/script/src/transports/websocket/_websocket_async_request.js +47 -28
  57. package/script/src/transports/websocket/websocket_transport.d.ts +24 -21
  58. package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  59. package/script/src/transports/websocket/websocket_transport.js +60 -57
  60. package/script/src/types/info/accounts.d.ts +1 -0
  61. package/script/src/types/info/accounts.d.ts.map +1 -1
  62. package/script/src/types/mod.d.ts +0 -1
  63. package/script/src/types/mod.d.ts.map +1 -1
  64. package/script/src/types/mod.js +24 -25
  65. package/esm/_dnt.polyfills.d.ts +0 -20
  66. package/esm/_dnt.polyfills.d.ts.map +0 -1
  67. package/esm/_dnt.polyfills.js +0 -12
  68. package/esm/src/clients/event.d.ts.map +0 -1
  69. package/esm/src/clients/public.d.ts.map +0 -1
  70. package/esm/src/clients/wallet.d.ts.map +0 -1
  71. package/script/_dnt.polyfills.d.ts +0 -20
  72. package/script/_dnt.polyfills.d.ts.map +0 -1
  73. package/script/_dnt.polyfills.js +0 -23
  74. package/script/src/clients/event.d.ts.map +0 -1
  75. package/script/src/clients/public.d.ts.map +0 -1
  76. package/script/src/clients/wallet.d.ts.map +0 -1
@@ -9,12 +9,12 @@
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PublicClient = void 0;
12
+ exports.InfoClient = void 0;
13
13
  /**
14
- * Public client for interacting with the Hyperliquid API.
14
+ * Info client for interacting with the Hyperliquid API.
15
15
  * @typeParam T The type of transport used to connect to the Hyperliquid API.
16
16
  */
17
- class PublicClient {
17
+ class InfoClient {
18
18
  transport;
19
19
  /**
20
20
  * Initialises a new instance.
@@ -25,7 +25,7 @@
25
25
  * import * as hl from "@nktkas/hyperliquid";
26
26
  *
27
27
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
28
- * const client = new hl.PublicClient({ transport });
28
+ * const infoClient = new hl.InfoClient({ transport });
29
29
  * ```
30
30
  */
31
31
  constructor(args) {
@@ -52,7 +52,7 @@
52
52
  * import * as hl from "@nktkas/hyperliquid";
53
53
  *
54
54
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
55
- * const client = new hl.PublicClient({ transport });
55
+ * const infoClient = new hl.InfoClient({ transport });
56
56
  *
57
57
  * const { blockDetails } = await client.blockDetails({ height: 123 });
58
58
  * ```
@@ -76,7 +76,7 @@
76
76
  * import * as hl from "@nktkas/hyperliquid";
77
77
  *
78
78
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
79
- * const client = new hl.PublicClient({ transport });
79
+ * const infoClient = new hl.InfoClient({ transport });
80
80
  *
81
81
  * const candleSnapshot = await client.candleSnapshot({
82
82
  * coin: "ETH",
@@ -104,7 +104,7 @@
104
104
  * import * as hl from "@nktkas/hyperliquid";
105
105
  *
106
106
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
107
- * const client = new hl.PublicClient({ transport });
107
+ * const infoClient = new hl.InfoClient({ transport });
108
108
  *
109
109
  * const clearinghouseState = await client.clearinghouseState({ user: "0x..." });
110
110
  * ```
@@ -128,7 +128,7 @@
128
128
  * import * as hl from "@nktkas/hyperliquid";
129
129
  *
130
130
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
131
- * const client = new hl.PublicClient({ transport });
131
+ * const infoClient = new hl.InfoClient({ transport });
132
132
  *
133
133
  * const delegations = await client.delegations({ user: "0x..." });
134
134
  * ```
@@ -152,7 +152,7 @@
152
152
  * import * as hl from "@nktkas/hyperliquid";
153
153
  *
154
154
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
155
- * const client = new hl.PublicClient({ transport });
155
+ * const infoClient = new hl.InfoClient({ transport });
156
156
  *
157
157
  * const delegatorHistory = await client.delegatorHistory({ user: "0x..." });
158
158
  * ```
@@ -176,7 +176,7 @@
176
176
  * import * as hl from "@nktkas/hyperliquid";
177
177
  *
178
178
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
179
- * const client = new hl.PublicClient({ transport });
179
+ * const infoClient = new hl.InfoClient({ transport });
180
180
  *
181
181
  * const delegatorRewards = await client.delegatorRewards({ user: "0x..." });
182
182
  * ```
@@ -200,7 +200,7 @@
200
200
  * import * as hl from "@nktkas/hyperliquid";
201
201
  *
202
202
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
203
- * const client = new hl.PublicClient({ transport });
203
+ * const infoClient = new hl.InfoClient({ transport });
204
204
  *
205
205
  * const delegatorSummary = await client.delegatorSummary({ user: "0x..." });
206
206
  * ```
@@ -224,7 +224,7 @@
224
224
  * import * as hl from "@nktkas/hyperliquid";
225
225
  *
226
226
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
227
- * const client = new hl.PublicClient({ transport });
227
+ * const infoClient = new hl.InfoClient({ transport });
228
228
  *
229
229
  * const extraAgents = await client.extraAgents({ user: "0x..." });
230
230
  * ```
@@ -248,7 +248,7 @@
248
248
  * import * as hl from "@nktkas/hyperliquid";
249
249
  *
250
250
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
251
- * const client = new hl.PublicClient({ transport });
251
+ * const infoClient = new hl.InfoClient({ transport });
252
252
  *
253
253
  * const frontendOpenOrders = await client.frontendOpenOrders({ user: "0x..." });
254
254
  * ```
@@ -272,7 +272,7 @@
272
272
  * import * as hl from "@nktkas/hyperliquid";
273
273
  *
274
274
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
275
- * const client = new hl.PublicClient({ transport });
275
+ * const infoClient = new hl.InfoClient({ transport });
276
276
  *
277
277
  * const fundingHistory = await client.fundingHistory({
278
278
  * coin: "ETH",
@@ -299,7 +299,7 @@
299
299
  * import * as hl from "@nktkas/hyperliquid";
300
300
  *
301
301
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
302
- * const client = new hl.PublicClient({ transport });
302
+ * const infoClient = new hl.InfoClient({ transport });
303
303
  *
304
304
  * const historicalOrders = await client.historicalOrders({ user: "0x..." });
305
305
  * ```
@@ -323,7 +323,7 @@
323
323
  * import * as hl from "@nktkas/hyperliquid";
324
324
  *
325
325
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
326
- * const client = new hl.PublicClient({ transport });
326
+ * const infoClient = new hl.InfoClient({ transport });
327
327
  *
328
328
  * const isVip = await client.isVip({ user: "0x..." });
329
329
  * ```
@@ -347,7 +347,7 @@
347
347
  * import * as hl from "@nktkas/hyperliquid";
348
348
  *
349
349
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
350
- * const client = new hl.PublicClient({ transport });
350
+ * const infoClient = new hl.InfoClient({ transport });
351
351
  *
352
352
  * const l2Book = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
353
353
  * ```
@@ -371,7 +371,7 @@
371
371
  * import * as hl from "@nktkas/hyperliquid";
372
372
  *
373
373
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
374
- * const client = new hl.PublicClient({ transport });
374
+ * const infoClient = new hl.InfoClient({ transport });
375
375
  *
376
376
  * const legalCheck = await client.legalCheck({ user: "0x..." });
377
377
  * ```
@@ -395,7 +395,7 @@
395
395
  * import * as hl from "@nktkas/hyperliquid";
396
396
  *
397
397
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
398
- * const client = new hl.PublicClient({ transport });
398
+ * const infoClient = new hl.InfoClient({ transport });
399
399
  *
400
400
  * const maxBuilderFee = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
401
401
  * ```
@@ -427,7 +427,7 @@
427
427
  * import * as hl from "@nktkas/hyperliquid";
428
428
  *
429
429
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
430
- * const client = new hl.PublicClient({ transport });
430
+ * const infoClient = new hl.InfoClient({ transport });
431
431
  *
432
432
  * const [meta, assetCtxs] = await client.metaAndAssetCtxs();
433
433
  * ```
@@ -450,7 +450,7 @@
450
450
  * import * as hl from "@nktkas/hyperliquid";
451
451
  *
452
452
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
453
- * const client = new hl.PublicClient({ transport });
453
+ * const infoClient = new hl.InfoClient({ transport });
454
454
  *
455
455
  * const openOrders = await client.openOrders({ user: "0x..." });
456
456
  * ```
@@ -474,7 +474,7 @@
474
474
  * import * as hl from "@nktkas/hyperliquid";
475
475
  *
476
476
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
477
- * const client = new hl.PublicClient({ transport });
477
+ * const infoClient = new hl.InfoClient({ transport });
478
478
  *
479
479
  * const orderStatus = await client.orderStatus({ user: "0x...", oid: 12345 });
480
480
  * ```
@@ -497,7 +497,7 @@
497
497
  * import * as hl from "@nktkas/hyperliquid";
498
498
  *
499
499
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
500
- * const client = new hl.PublicClient({ transport });
500
+ * const infoClient = new hl.InfoClient({ transport });
501
501
  *
502
502
  * const auctionStatus = await client.perpDeployAuctionStatus();
503
503
  * ```
@@ -519,7 +519,7 @@
519
519
  * import * as hl from "@nktkas/hyperliquid";
520
520
  *
521
521
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
522
- * const client = new hl.PublicClient({ transport });
522
+ * const infoClient = new hl.InfoClient({ transport });
523
523
  *
524
524
  * const perpDexs = await client.perpDexs();
525
525
  * ```
@@ -542,7 +542,7 @@
542
542
  * import * as hl from "@nktkas/hyperliquid";
543
543
  *
544
544
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
545
- * const client = new hl.PublicClient({ transport });
545
+ * const infoClient = new hl.InfoClient({ transport });
546
546
  *
547
547
  * const perpsAtOpenInterestCap = await client.perpsAtOpenInterestCap();
548
548
  * ```
@@ -565,7 +565,7 @@
565
565
  * import * as hl from "@nktkas/hyperliquid";
566
566
  *
567
567
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
568
- * const client = new hl.PublicClient({ transport });
568
+ * const infoClient = new hl.InfoClient({ transport });
569
569
  *
570
570
  * const portfolio = await client.portfolio({ user: "0x..." });
571
571
  * ```
@@ -588,7 +588,7 @@
588
588
  * import * as hl from "@nktkas/hyperliquid";
589
589
  *
590
590
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
591
- * const client = new hl.PublicClient({ transport });
591
+ * const infoClient = new hl.InfoClient({ transport });
592
592
  *
593
593
  * const predictedFundings = await client.predictedFundings();
594
594
  * ```
@@ -611,7 +611,7 @@
611
611
  * import * as hl from "@nktkas/hyperliquid";
612
612
  *
613
613
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
614
- * const client = new hl.PublicClient({ transport });
614
+ * const infoClient = new hl.InfoClient({ transport });
615
615
  *
616
616
  * const preTransferCheck = await client.preTransferCheck({ user: "0x...", source: "0x..." });
617
617
  * ```
@@ -635,7 +635,7 @@
635
635
  * import * as hl from "@nktkas/hyperliquid";
636
636
  *
637
637
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
638
- * const client = new hl.PublicClient({ transport });
638
+ * const infoClient = new hl.InfoClient({ transport });
639
639
  *
640
640
  * const referral = await client.referral({ user: "0x..." });
641
641
  * ```
@@ -659,7 +659,7 @@
659
659
  * import * as hl from "@nktkas/hyperliquid";
660
660
  *
661
661
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
662
- * const client = new hl.PublicClient({ transport });
662
+ * const infoClient = new hl.InfoClient({ transport });
663
663
  *
664
664
  * const spotClearinghouseState = await client.spotClearinghouseState({ user: "0x..." });
665
665
  * ```
@@ -683,7 +683,7 @@
683
683
  * import * as hl from "@nktkas/hyperliquid";
684
684
  *
685
685
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
686
- * const client = new hl.PublicClient({ transport });
686
+ * const infoClient = new hl.InfoClient({ transport });
687
687
  *
688
688
  * const spotDeployState = await client.spotDeployState({ user: "0x..." });
689
689
  * ```
@@ -706,7 +706,7 @@
706
706
  * import * as hl from "@nktkas/hyperliquid";
707
707
  *
708
708
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
709
- * const client = new hl.PublicClient({ transport });
709
+ * const infoClient = new hl.InfoClient({ transport });
710
710
  *
711
711
  * const spotMeta = await client.spotMeta();
712
712
  * ```
@@ -728,7 +728,7 @@
728
728
  * import * as hl from "@nktkas/hyperliquid";
729
729
  *
730
730
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
731
- * const client = new hl.PublicClient({ transport });
731
+ * const infoClient = new hl.InfoClient({ transport });
732
732
  *
733
733
  * const [spotMeta, spotAssetCtxs] = await client.spotMetaAndAssetCtxs();
734
734
  * ```
@@ -751,7 +751,7 @@
751
751
  * import * as hl from "@nktkas/hyperliquid";
752
752
  *
753
753
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
754
- * const client = new hl.PublicClient({ transport });
754
+ * const infoClient = new hl.InfoClient({ transport });
755
755
  *
756
756
  * const subAccounts = await client.subAccounts({ user: "0x..." });
757
757
  * ```
@@ -775,7 +775,7 @@
775
775
  * import * as hl from "@nktkas/hyperliquid";
776
776
  *
777
777
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
778
- * const client = new hl.PublicClient({ transport });
778
+ * const infoClient = new hl.InfoClient({ transport });
779
779
  *
780
780
  * const tokenDetails = await client.tokenDetails({ tokenId: "0x..." });
781
781
  * ```
@@ -799,7 +799,7 @@
799
799
  * import * as hl from "@nktkas/hyperliquid";
800
800
  *
801
801
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
802
- * const client = new hl.PublicClient({ transport });
802
+ * const infoClient = new hl.InfoClient({ transport });
803
803
  *
804
804
  * const twapHistory = await client.twapHistory({ user: "0x..." });
805
805
  * ```
@@ -823,7 +823,7 @@
823
823
  * import * as hl from "@nktkas/hyperliquid";
824
824
  *
825
825
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
826
- * const client = new hl.PublicClient({ transport });
826
+ * const infoClient = new hl.InfoClient({ transport });
827
827
  *
828
828
  * const { tx } = await client.txDetails({ hash: "0x..." });
829
829
  * ```
@@ -847,7 +847,7 @@
847
847
  * import * as hl from "@nktkas/hyperliquid";
848
848
  *
849
849
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
850
- * const client = new hl.PublicClient({ transport });
850
+ * const infoClient = new hl.InfoClient({ transport });
851
851
  *
852
852
  * const { txs } = await client.userDetails({ user: "0x..." });
853
853
  * ```
@@ -871,7 +871,7 @@
871
871
  * import * as hl from "@nktkas/hyperliquid";
872
872
  *
873
873
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
874
- * const client = new hl.PublicClient({ transport });
874
+ * const infoClient = new hl.InfoClient({ transport });
875
875
  *
876
876
  * const fees = await client.userFees({ user: "0x..." });
877
877
  * ```
@@ -895,7 +895,7 @@
895
895
  * import * as hl from "@nktkas/hyperliquid";
896
896
  *
897
897
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
898
- * const client = new hl.PublicClient({ transport });
898
+ * const infoClient = new hl.InfoClient({ transport });
899
899
  *
900
900
  * const fills = await client.userFills({ user: "0x..." });
901
901
  * ```
@@ -919,7 +919,7 @@
919
919
  * import * as hl from "@nktkas/hyperliquid";
920
920
  *
921
921
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
922
- * const client = new hl.PublicClient({ transport });
922
+ * const infoClient = new hl.InfoClient({ transport });
923
923
  *
924
924
  * const fills = await client.userFillsByTime({
925
925
  * user: "0x...",
@@ -946,7 +946,7 @@
946
946
  * import * as hl from "@nktkas/hyperliquid";
947
947
  *
948
948
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
949
- * const client = new hl.PublicClient({ transport });
949
+ * const infoClient = new hl.InfoClient({ transport });
950
950
  *
951
951
  * const funding = await client.userFunding({
952
952
  * user: "0x...",
@@ -973,7 +973,7 @@
973
973
  * import * as hl from "@nktkas/hyperliquid";
974
974
  *
975
975
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
976
- * const client = new hl.PublicClient({ transport });
976
+ * const infoClient = new hl.InfoClient({ transport });
977
977
  *
978
978
  * const nonFundingLedgerUpdates = await client.userNonFundingLedgerUpdates({
979
979
  * user: "0x...",
@@ -1000,7 +1000,7 @@
1000
1000
  * import * as hl from "@nktkas/hyperliquid";
1001
1001
  *
1002
1002
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1003
- * const client = new hl.PublicClient({ transport });
1003
+ * const infoClient = new hl.InfoClient({ transport });
1004
1004
  *
1005
1005
  * const rateLimit = await client.userRateLimit({ user: "0x..." });
1006
1006
  * ```
@@ -1024,7 +1024,7 @@
1024
1024
  * import * as hl from "@nktkas/hyperliquid";
1025
1025
  *
1026
1026
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1027
- * const client = new hl.PublicClient({ transport });
1027
+ * const infoClient = new hl.InfoClient({ transport });
1028
1028
  *
1029
1029
  * const userRole = await client.userRole({ user: "0x..." });
1030
1030
  * ```
@@ -1048,7 +1048,7 @@
1048
1048
  * import * as hl from "@nktkas/hyperliquid";
1049
1049
  *
1050
1050
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1051
- * const client = new hl.PublicClient({ transport });
1051
+ * const infoClient = new hl.InfoClient({ transport });
1052
1052
  *
1053
1053
  * const multiSigSigners = await client.userToMultiSigSigners({ user: "0x..." });
1054
1054
  * ```
@@ -1072,7 +1072,7 @@
1072
1072
  * import * as hl from "@nktkas/hyperliquid";
1073
1073
  *
1074
1074
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1075
- * const client = new hl.PublicClient({ transport });
1075
+ * const infoClient = new hl.InfoClient({ transport });
1076
1076
  *
1077
1077
  * const twapSliceFills = await client.userTwapSliceFills({ user: "0x..." });
1078
1078
  * ```
@@ -1096,7 +1096,7 @@
1096
1096
  * import * as hl from "@nktkas/hyperliquid";
1097
1097
  *
1098
1098
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1099
- * const client = new hl.PublicClient({ transport });
1099
+ * const infoClient = new hl.InfoClient({ transport });
1100
1100
  *
1101
1101
  * const twapSliceFillsByTime = await client.userTwapSliceFillsByTime({
1102
1102
  * user: "0x...",
@@ -1123,7 +1123,7 @@
1123
1123
  * import * as hl from "@nktkas/hyperliquid";
1124
1124
  *
1125
1125
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1126
- * const client = new hl.PublicClient({ transport });
1126
+ * const infoClient = new hl.InfoClient({ transport });
1127
1127
  *
1128
1128
  * const userVaultEquities = await client.userVaultDeposits({ user: "0x..." });
1129
1129
  * ```
@@ -1146,7 +1146,7 @@
1146
1146
  * import * as hl from "@nktkas/hyperliquid";
1147
1147
  *
1148
1148
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1149
- * const client = new hl.PublicClient({ transport });
1149
+ * const infoClient = new hl.InfoClient({ transport });
1150
1150
  *
1151
1151
  * const validatorSummaries = await client.validatorSummaries();
1152
1152
  * ```
@@ -1169,7 +1169,7 @@
1169
1169
  * import * as hl from "@nktkas/hyperliquid";
1170
1170
  *
1171
1171
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1172
- * const client = new hl.PublicClient({ transport });
1172
+ * const infoClient = new hl.InfoClient({ transport });
1173
1173
  *
1174
1174
  * const vaultDetails = await client.vaultDetails({ vaultAddress: "0x..." });
1175
1175
  * ```
@@ -1193,7 +1193,7 @@
1193
1193
  * import * as hl from "@nktkas/hyperliquid";
1194
1194
  *
1195
1195
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1196
- * const client = new hl.PublicClient({ transport });
1196
+ * const infoClient = new hl.InfoClient({ transport });
1197
1197
  *
1198
1198
  * const vaultSummaries = await client.vaultSummaries();
1199
1199
  * ```
@@ -1208,5 +1208,5 @@
1208
1208
  await this.transport[Symbol.asyncDispose]?.();
1209
1209
  }
1210
1210
  }
1211
- exports.PublicClient = PublicClient;
1211
+ exports.InfoClient = InfoClient;
1212
1212
  });