@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
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Public client for interacting with the Hyperliquid API.
2
+ * Info client for interacting with the Hyperliquid API.
3
3
  * @typeParam T The type of transport used to connect to the Hyperliquid API.
4
4
  */
5
- export class PublicClient {
5
+ export class InfoClient {
6
6
  transport;
7
7
  /**
8
8
  * Initialises a new instance.
@@ -13,7 +13,7 @@ export class PublicClient {
13
13
  * import * as hl from "@nktkas/hyperliquid";
14
14
  *
15
15
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
16
- * const client = new hl.PublicClient({ transport });
16
+ * const infoClient = new hl.InfoClient({ transport });
17
17
  * ```
18
18
  */
19
19
  constructor(args) {
@@ -40,7 +40,7 @@ export class PublicClient {
40
40
  * import * as hl from "@nktkas/hyperliquid";
41
41
  *
42
42
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
43
- * const client = new hl.PublicClient({ transport });
43
+ * const infoClient = new hl.InfoClient({ transport });
44
44
  *
45
45
  * const { blockDetails } = await client.blockDetails({ height: 123 });
46
46
  * ```
@@ -64,7 +64,7 @@ export class PublicClient {
64
64
  * import * as hl from "@nktkas/hyperliquid";
65
65
  *
66
66
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
67
- * const client = new hl.PublicClient({ transport });
67
+ * const infoClient = new hl.InfoClient({ transport });
68
68
  *
69
69
  * const candleSnapshot = await client.candleSnapshot({
70
70
  * coin: "ETH",
@@ -92,7 +92,7 @@ export class PublicClient {
92
92
  * import * as hl from "@nktkas/hyperliquid";
93
93
  *
94
94
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
95
- * const client = new hl.PublicClient({ transport });
95
+ * const infoClient = new hl.InfoClient({ transport });
96
96
  *
97
97
  * const clearinghouseState = await client.clearinghouseState({ user: "0x..." });
98
98
  * ```
@@ -116,7 +116,7 @@ export class PublicClient {
116
116
  * import * as hl from "@nktkas/hyperliquid";
117
117
  *
118
118
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
119
- * const client = new hl.PublicClient({ transport });
119
+ * const infoClient = new hl.InfoClient({ transport });
120
120
  *
121
121
  * const delegations = await client.delegations({ user: "0x..." });
122
122
  * ```
@@ -140,7 +140,7 @@ export class PublicClient {
140
140
  * import * as hl from "@nktkas/hyperliquid";
141
141
  *
142
142
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
143
- * const client = new hl.PublicClient({ transport });
143
+ * const infoClient = new hl.InfoClient({ transport });
144
144
  *
145
145
  * const delegatorHistory = await client.delegatorHistory({ user: "0x..." });
146
146
  * ```
@@ -164,7 +164,7 @@ export class PublicClient {
164
164
  * import * as hl from "@nktkas/hyperliquid";
165
165
  *
166
166
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
167
- * const client = new hl.PublicClient({ transport });
167
+ * const infoClient = new hl.InfoClient({ transport });
168
168
  *
169
169
  * const delegatorRewards = await client.delegatorRewards({ user: "0x..." });
170
170
  * ```
@@ -188,7 +188,7 @@ export class PublicClient {
188
188
  * import * as hl from "@nktkas/hyperliquid";
189
189
  *
190
190
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
191
- * const client = new hl.PublicClient({ transport });
191
+ * const infoClient = new hl.InfoClient({ transport });
192
192
  *
193
193
  * const delegatorSummary = await client.delegatorSummary({ user: "0x..." });
194
194
  * ```
@@ -212,7 +212,7 @@ export class PublicClient {
212
212
  * import * as hl from "@nktkas/hyperliquid";
213
213
  *
214
214
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
215
- * const client = new hl.PublicClient({ transport });
215
+ * const infoClient = new hl.InfoClient({ transport });
216
216
  *
217
217
  * const extraAgents = await client.extraAgents({ user: "0x..." });
218
218
  * ```
@@ -236,7 +236,7 @@ export class PublicClient {
236
236
  * import * as hl from "@nktkas/hyperliquid";
237
237
  *
238
238
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
239
- * const client = new hl.PublicClient({ transport });
239
+ * const infoClient = new hl.InfoClient({ transport });
240
240
  *
241
241
  * const frontendOpenOrders = await client.frontendOpenOrders({ user: "0x..." });
242
242
  * ```
@@ -260,7 +260,7 @@ export class PublicClient {
260
260
  * import * as hl from "@nktkas/hyperliquid";
261
261
  *
262
262
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
263
- * const client = new hl.PublicClient({ transport });
263
+ * const infoClient = new hl.InfoClient({ transport });
264
264
  *
265
265
  * const fundingHistory = await client.fundingHistory({
266
266
  * coin: "ETH",
@@ -287,7 +287,7 @@ export class PublicClient {
287
287
  * import * as hl from "@nktkas/hyperliquid";
288
288
  *
289
289
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
290
- * const client = new hl.PublicClient({ transport });
290
+ * const infoClient = new hl.InfoClient({ transport });
291
291
  *
292
292
  * const historicalOrders = await client.historicalOrders({ user: "0x..." });
293
293
  * ```
@@ -311,7 +311,7 @@ export class PublicClient {
311
311
  * import * as hl from "@nktkas/hyperliquid";
312
312
  *
313
313
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
314
- * const client = new hl.PublicClient({ transport });
314
+ * const infoClient = new hl.InfoClient({ transport });
315
315
  *
316
316
  * const isVip = await client.isVip({ user: "0x..." });
317
317
  * ```
@@ -335,7 +335,7 @@ export class PublicClient {
335
335
  * import * as hl from "@nktkas/hyperliquid";
336
336
  *
337
337
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
338
- * const client = new hl.PublicClient({ transport });
338
+ * const infoClient = new hl.InfoClient({ transport });
339
339
  *
340
340
  * const l2Book = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
341
341
  * ```
@@ -359,7 +359,7 @@ export class PublicClient {
359
359
  * import * as hl from "@nktkas/hyperliquid";
360
360
  *
361
361
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
362
- * const client = new hl.PublicClient({ transport });
362
+ * const infoClient = new hl.InfoClient({ transport });
363
363
  *
364
364
  * const legalCheck = await client.legalCheck({ user: "0x..." });
365
365
  * ```
@@ -383,7 +383,7 @@ export class PublicClient {
383
383
  * import * as hl from "@nktkas/hyperliquid";
384
384
  *
385
385
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
386
- * const client = new hl.PublicClient({ transport });
386
+ * const infoClient = new hl.InfoClient({ transport });
387
387
  *
388
388
  * const maxBuilderFee = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
389
389
  * ```
@@ -415,7 +415,7 @@ export class PublicClient {
415
415
  * import * as hl from "@nktkas/hyperliquid";
416
416
  *
417
417
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
418
- * const client = new hl.PublicClient({ transport });
418
+ * const infoClient = new hl.InfoClient({ transport });
419
419
  *
420
420
  * const [meta, assetCtxs] = await client.metaAndAssetCtxs();
421
421
  * ```
@@ -438,7 +438,7 @@ export class PublicClient {
438
438
  * import * as hl from "@nktkas/hyperliquid";
439
439
  *
440
440
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
441
- * const client = new hl.PublicClient({ transport });
441
+ * const infoClient = new hl.InfoClient({ transport });
442
442
  *
443
443
  * const openOrders = await client.openOrders({ user: "0x..." });
444
444
  * ```
@@ -462,7 +462,7 @@ export class PublicClient {
462
462
  * import * as hl from "@nktkas/hyperliquid";
463
463
  *
464
464
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
465
- * const client = new hl.PublicClient({ transport });
465
+ * const infoClient = new hl.InfoClient({ transport });
466
466
  *
467
467
  * const orderStatus = await client.orderStatus({ user: "0x...", oid: 12345 });
468
468
  * ```
@@ -485,7 +485,7 @@ export class PublicClient {
485
485
  * import * as hl from "@nktkas/hyperliquid";
486
486
  *
487
487
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
488
- * const client = new hl.PublicClient({ transport });
488
+ * const infoClient = new hl.InfoClient({ transport });
489
489
  *
490
490
  * const auctionStatus = await client.perpDeployAuctionStatus();
491
491
  * ```
@@ -507,7 +507,7 @@ export class PublicClient {
507
507
  * import * as hl from "@nktkas/hyperliquid";
508
508
  *
509
509
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
510
- * const client = new hl.PublicClient({ transport });
510
+ * const infoClient = new hl.InfoClient({ transport });
511
511
  *
512
512
  * const perpDexs = await client.perpDexs();
513
513
  * ```
@@ -530,7 +530,7 @@ export class PublicClient {
530
530
  * import * as hl from "@nktkas/hyperliquid";
531
531
  *
532
532
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
533
- * const client = new hl.PublicClient({ transport });
533
+ * const infoClient = new hl.InfoClient({ transport });
534
534
  *
535
535
  * const perpsAtOpenInterestCap = await client.perpsAtOpenInterestCap();
536
536
  * ```
@@ -553,7 +553,7 @@ export class PublicClient {
553
553
  * import * as hl from "@nktkas/hyperliquid";
554
554
  *
555
555
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
556
- * const client = new hl.PublicClient({ transport });
556
+ * const infoClient = new hl.InfoClient({ transport });
557
557
  *
558
558
  * const portfolio = await client.portfolio({ user: "0x..." });
559
559
  * ```
@@ -576,7 +576,7 @@ export class PublicClient {
576
576
  * import * as hl from "@nktkas/hyperliquid";
577
577
  *
578
578
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
579
- * const client = new hl.PublicClient({ transport });
579
+ * const infoClient = new hl.InfoClient({ transport });
580
580
  *
581
581
  * const predictedFundings = await client.predictedFundings();
582
582
  * ```
@@ -599,7 +599,7 @@ export class PublicClient {
599
599
  * import * as hl from "@nktkas/hyperliquid";
600
600
  *
601
601
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
602
- * const client = new hl.PublicClient({ transport });
602
+ * const infoClient = new hl.InfoClient({ transport });
603
603
  *
604
604
  * const preTransferCheck = await client.preTransferCheck({ user: "0x...", source: "0x..." });
605
605
  * ```
@@ -623,7 +623,7 @@ export class PublicClient {
623
623
  * import * as hl from "@nktkas/hyperliquid";
624
624
  *
625
625
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
626
- * const client = new hl.PublicClient({ transport });
626
+ * const infoClient = new hl.InfoClient({ transport });
627
627
  *
628
628
  * const referral = await client.referral({ user: "0x..." });
629
629
  * ```
@@ -647,7 +647,7 @@ export class PublicClient {
647
647
  * import * as hl from "@nktkas/hyperliquid";
648
648
  *
649
649
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
650
- * const client = new hl.PublicClient({ transport });
650
+ * const infoClient = new hl.InfoClient({ transport });
651
651
  *
652
652
  * const spotClearinghouseState = await client.spotClearinghouseState({ user: "0x..." });
653
653
  * ```
@@ -671,7 +671,7 @@ export class PublicClient {
671
671
  * import * as hl from "@nktkas/hyperliquid";
672
672
  *
673
673
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
674
- * const client = new hl.PublicClient({ transport });
674
+ * const infoClient = new hl.InfoClient({ transport });
675
675
  *
676
676
  * const spotDeployState = await client.spotDeployState({ user: "0x..." });
677
677
  * ```
@@ -694,7 +694,7 @@ export class PublicClient {
694
694
  * import * as hl from "@nktkas/hyperliquid";
695
695
  *
696
696
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
697
- * const client = new hl.PublicClient({ transport });
697
+ * const infoClient = new hl.InfoClient({ transport });
698
698
  *
699
699
  * const spotMeta = await client.spotMeta();
700
700
  * ```
@@ -716,7 +716,7 @@ export class PublicClient {
716
716
  * import * as hl from "@nktkas/hyperliquid";
717
717
  *
718
718
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
719
- * const client = new hl.PublicClient({ transport });
719
+ * const infoClient = new hl.InfoClient({ transport });
720
720
  *
721
721
  * const [spotMeta, spotAssetCtxs] = await client.spotMetaAndAssetCtxs();
722
722
  * ```
@@ -739,7 +739,7 @@ export class PublicClient {
739
739
  * import * as hl from "@nktkas/hyperliquid";
740
740
  *
741
741
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
742
- * const client = new hl.PublicClient({ transport });
742
+ * const infoClient = new hl.InfoClient({ transport });
743
743
  *
744
744
  * const subAccounts = await client.subAccounts({ user: "0x..." });
745
745
  * ```
@@ -763,7 +763,7 @@ export class PublicClient {
763
763
  * import * as hl from "@nktkas/hyperliquid";
764
764
  *
765
765
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
766
- * const client = new hl.PublicClient({ transport });
766
+ * const infoClient = new hl.InfoClient({ transport });
767
767
  *
768
768
  * const tokenDetails = await client.tokenDetails({ tokenId: "0x..." });
769
769
  * ```
@@ -787,7 +787,7 @@ export class PublicClient {
787
787
  * import * as hl from "@nktkas/hyperliquid";
788
788
  *
789
789
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
790
- * const client = new hl.PublicClient({ transport });
790
+ * const infoClient = new hl.InfoClient({ transport });
791
791
  *
792
792
  * const twapHistory = await client.twapHistory({ user: "0x..." });
793
793
  * ```
@@ -811,7 +811,7 @@ export class PublicClient {
811
811
  * import * as hl from "@nktkas/hyperliquid";
812
812
  *
813
813
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
814
- * const client = new hl.PublicClient({ transport });
814
+ * const infoClient = new hl.InfoClient({ transport });
815
815
  *
816
816
  * const { tx } = await client.txDetails({ hash: "0x..." });
817
817
  * ```
@@ -835,7 +835,7 @@ export class PublicClient {
835
835
  * import * as hl from "@nktkas/hyperliquid";
836
836
  *
837
837
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
838
- * const client = new hl.PublicClient({ transport });
838
+ * const infoClient = new hl.InfoClient({ transport });
839
839
  *
840
840
  * const { txs } = await client.userDetails({ user: "0x..." });
841
841
  * ```
@@ -859,7 +859,7 @@ export class PublicClient {
859
859
  * import * as hl from "@nktkas/hyperliquid";
860
860
  *
861
861
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
862
- * const client = new hl.PublicClient({ transport });
862
+ * const infoClient = new hl.InfoClient({ transport });
863
863
  *
864
864
  * const fees = await client.userFees({ user: "0x..." });
865
865
  * ```
@@ -883,7 +883,7 @@ export class PublicClient {
883
883
  * import * as hl from "@nktkas/hyperliquid";
884
884
  *
885
885
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
886
- * const client = new hl.PublicClient({ transport });
886
+ * const infoClient = new hl.InfoClient({ transport });
887
887
  *
888
888
  * const fills = await client.userFills({ user: "0x..." });
889
889
  * ```
@@ -907,7 +907,7 @@ export class PublicClient {
907
907
  * import * as hl from "@nktkas/hyperliquid";
908
908
  *
909
909
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
910
- * const client = new hl.PublicClient({ transport });
910
+ * const infoClient = new hl.InfoClient({ transport });
911
911
  *
912
912
  * const fills = await client.userFillsByTime({
913
913
  * user: "0x...",
@@ -934,7 +934,7 @@ export class PublicClient {
934
934
  * import * as hl from "@nktkas/hyperliquid";
935
935
  *
936
936
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
937
- * const client = new hl.PublicClient({ transport });
937
+ * const infoClient = new hl.InfoClient({ transport });
938
938
  *
939
939
  * const funding = await client.userFunding({
940
940
  * user: "0x...",
@@ -961,7 +961,7 @@ export class PublicClient {
961
961
  * import * as hl from "@nktkas/hyperliquid";
962
962
  *
963
963
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
964
- * const client = new hl.PublicClient({ transport });
964
+ * const infoClient = new hl.InfoClient({ transport });
965
965
  *
966
966
  * const nonFundingLedgerUpdates = await client.userNonFundingLedgerUpdates({
967
967
  * user: "0x...",
@@ -988,7 +988,7 @@ export class PublicClient {
988
988
  * import * as hl from "@nktkas/hyperliquid";
989
989
  *
990
990
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
991
- * const client = new hl.PublicClient({ transport });
991
+ * const infoClient = new hl.InfoClient({ transport });
992
992
  *
993
993
  * const rateLimit = await client.userRateLimit({ user: "0x..." });
994
994
  * ```
@@ -1012,7 +1012,7 @@ export class PublicClient {
1012
1012
  * import * as hl from "@nktkas/hyperliquid";
1013
1013
  *
1014
1014
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1015
- * const client = new hl.PublicClient({ transport });
1015
+ * const infoClient = new hl.InfoClient({ transport });
1016
1016
  *
1017
1017
  * const userRole = await client.userRole({ user: "0x..." });
1018
1018
  * ```
@@ -1036,7 +1036,7 @@ export class PublicClient {
1036
1036
  * import * as hl from "@nktkas/hyperliquid";
1037
1037
  *
1038
1038
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1039
- * const client = new hl.PublicClient({ transport });
1039
+ * const infoClient = new hl.InfoClient({ transport });
1040
1040
  *
1041
1041
  * const multiSigSigners = await client.userToMultiSigSigners({ user: "0x..." });
1042
1042
  * ```
@@ -1060,7 +1060,7 @@ export class PublicClient {
1060
1060
  * import * as hl from "@nktkas/hyperliquid";
1061
1061
  *
1062
1062
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1063
- * const client = new hl.PublicClient({ transport });
1063
+ * const infoClient = new hl.InfoClient({ transport });
1064
1064
  *
1065
1065
  * const twapSliceFills = await client.userTwapSliceFills({ user: "0x..." });
1066
1066
  * ```
@@ -1084,7 +1084,7 @@ export class PublicClient {
1084
1084
  * import * as hl from "@nktkas/hyperliquid";
1085
1085
  *
1086
1086
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1087
- * const client = new hl.PublicClient({ transport });
1087
+ * const infoClient = new hl.InfoClient({ transport });
1088
1088
  *
1089
1089
  * const twapSliceFillsByTime = await client.userTwapSliceFillsByTime({
1090
1090
  * user: "0x...",
@@ -1111,7 +1111,7 @@ export class PublicClient {
1111
1111
  * import * as hl from "@nktkas/hyperliquid";
1112
1112
  *
1113
1113
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1114
- * const client = new hl.PublicClient({ transport });
1114
+ * const infoClient = new hl.InfoClient({ transport });
1115
1115
  *
1116
1116
  * const userVaultEquities = await client.userVaultDeposits({ user: "0x..." });
1117
1117
  * ```
@@ -1134,7 +1134,7 @@ export class PublicClient {
1134
1134
  * import * as hl from "@nktkas/hyperliquid";
1135
1135
  *
1136
1136
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1137
- * const client = new hl.PublicClient({ transport });
1137
+ * const infoClient = new hl.InfoClient({ transport });
1138
1138
  *
1139
1139
  * const validatorSummaries = await client.validatorSummaries();
1140
1140
  * ```
@@ -1157,7 +1157,7 @@ export class PublicClient {
1157
1157
  * import * as hl from "@nktkas/hyperliquid";
1158
1158
  *
1159
1159
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1160
- * const client = new hl.PublicClient({ transport });
1160
+ * const infoClient = new hl.InfoClient({ transport });
1161
1161
  *
1162
1162
  * const vaultDetails = await client.vaultDetails({ vaultAddress: "0x..." });
1163
1163
  * ```
@@ -1181,7 +1181,7 @@ export class PublicClient {
1181
1181
  * import * as hl from "@nktkas/hyperliquid";
1182
1182
  *
1183
1183
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1184
- * const client = new hl.PublicClient({ transport });
1184
+ * const infoClient = new hl.InfoClient({ transport });
1185
1185
  *
1186
1186
  * const vaultSummaries = await client.vaultSummaries();
1187
1187
  * ```