@nktkas/hyperliquid 0.21.0 → 0.22.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 (47) hide show
  1. package/CONTRIBUTING.md +19 -34
  2. package/README.md +212 -87
  3. package/esm/mod.d.ts +4 -3
  4. package/esm/mod.d.ts.map +1 -1
  5. package/esm/mod.js +3 -2
  6. package/esm/src/clients/exchange.d.ts +102 -59
  7. package/esm/src/clients/exchange.d.ts.map +1 -1
  8. package/esm/src/clients/exchange.js +233 -516
  9. package/esm/src/clients/info.d.ts +55 -55
  10. package/esm/src/clients/info.d.ts.map +1 -1
  11. package/esm/src/clients/info.js +57 -54
  12. package/esm/src/clients/multiSign.d.ts +1293 -0
  13. package/esm/src/clients/multiSign.d.ts.map +1 -0
  14. package/esm/src/clients/multiSign.js +2156 -0
  15. package/esm/src/clients/subscription.d.ts +19 -19
  16. package/esm/src/clients/subscription.d.ts.map +1 -1
  17. package/esm/src/clients/subscription.js +17 -17
  18. package/esm/src/signing.d.ts +164 -40
  19. package/esm/src/signing.d.ts.map +1 -1
  20. package/esm/src/signing.js +710 -9
  21. package/esm/src/types/exchange/requests.d.ts +240 -245
  22. package/esm/src/types/exchange/requests.d.ts.map +1 -1
  23. package/esm/src/types/info/accounts.d.ts +11 -0
  24. package/esm/src/types/info/accounts.d.ts.map +1 -1
  25. package/package.json +2 -1
  26. package/script/mod.d.ts +4 -3
  27. package/script/mod.d.ts.map +1 -1
  28. package/script/mod.js +4 -3
  29. package/script/src/clients/exchange.d.ts +102 -59
  30. package/script/src/clients/exchange.d.ts.map +1 -1
  31. package/script/src/clients/exchange.js +232 -515
  32. package/script/src/clients/info.d.ts +55 -55
  33. package/script/src/clients/info.d.ts.map +1 -1
  34. package/script/src/clients/info.js +57 -54
  35. package/script/src/clients/multiSign.d.ts +1293 -0
  36. package/script/src/clients/multiSign.d.ts.map +1 -0
  37. package/script/src/clients/multiSign.js +2170 -0
  38. package/script/src/clients/subscription.d.ts +19 -19
  39. package/script/src/clients/subscription.d.ts.map +1 -1
  40. package/script/src/clients/subscription.js +17 -17
  41. package/script/src/signing.d.ts +164 -40
  42. package/script/src/signing.d.ts.map +1 -1
  43. package/script/src/signing.js +711 -10
  44. package/script/src/types/exchange/requests.d.ts +240 -245
  45. package/script/src/types/exchange/requests.d.ts.map +1 -1
  46. package/script/src/types/info/accounts.d.ts +11 -0
  47. package/script/src/types/info/accounts.d.ts.map +1 -1
@@ -54,15 +54,16 @@
54
54
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
55
55
  * const infoClient = new hl.InfoClient({ transport });
56
56
  *
57
- * const { blockDetails } = await client.blockDetails({ height: 123 });
57
+ * const data = await infoClient.blockDetails({ height: 123 });
58
58
  * ```
59
59
  */
60
- blockDetails(args, signal) {
60
+ async blockDetails(args, signal) {
61
61
  const request = {
62
62
  type: "blockDetails",
63
63
  ...args,
64
64
  };
65
- return this.transport.request("explorer", request, signal);
65
+ const { blockDetails } = await this.transport.request("explorer", request, signal);
66
+ return blockDetails;
66
67
  }
67
68
  /**
68
69
  * Request candlestick snapshots.
@@ -78,7 +79,7 @@
78
79
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
79
80
  * const infoClient = new hl.InfoClient({ transport });
80
81
  *
81
- * const candleSnapshot = await client.candleSnapshot({
82
+ * const data = await infoClient.candleSnapshot({
82
83
  * coin: "ETH",
83
84
  * interval: "1h",
84
85
  * startTime: Date.now() - 1000 * 60 * 60 * 24
@@ -106,7 +107,7 @@
106
107
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
107
108
  * const infoClient = new hl.InfoClient({ transport });
108
109
  *
109
- * const clearinghouseState = await client.clearinghouseState({ user: "0x..." });
110
+ * const data = await infoClient.clearinghouseState({ user: "0x..." });
110
111
  * ```
111
112
  */
112
113
  clearinghouseState(args, signal) {
@@ -130,7 +131,7 @@
130
131
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
131
132
  * const infoClient = new hl.InfoClient({ transport });
132
133
  *
133
- * const delegations = await client.delegations({ user: "0x..." });
134
+ * const data = await infoClient.delegations({ user: "0x..." });
134
135
  * ```
135
136
  */
136
137
  delegations(args, signal) {
@@ -154,7 +155,7 @@
154
155
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
155
156
  * const infoClient = new hl.InfoClient({ transport });
156
157
  *
157
- * const delegatorHistory = await client.delegatorHistory({ user: "0x..." });
158
+ * const data = await infoClient.delegatorHistory({ user: "0x..." });
158
159
  * ```
159
160
  */
160
161
  delegatorHistory(args, signal) {
@@ -178,7 +179,7 @@
178
179
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
179
180
  * const infoClient = new hl.InfoClient({ transport });
180
181
  *
181
- * const delegatorRewards = await client.delegatorRewards({ user: "0x..." });
182
+ * const data = await infoClient.delegatorRewards({ user: "0x..." });
182
183
  * ```
183
184
  */
184
185
  delegatorRewards(args, signal) {
@@ -202,7 +203,7 @@
202
203
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
203
204
  * const infoClient = new hl.InfoClient({ transport });
204
205
  *
205
- * const delegatorSummary = await client.delegatorSummary({ user: "0x..." });
206
+ * const data = await infoClient.delegatorSummary({ user: "0x..." });
206
207
  * ```
207
208
  */
208
209
  delegatorSummary(args, signal) {
@@ -226,7 +227,7 @@
226
227
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
227
228
  * const infoClient = new hl.InfoClient({ transport });
228
229
  *
229
- * const extraAgents = await client.extraAgents({ user: "0x..." });
230
+ * const data = await infoClient.extraAgents({ user: "0x..." });
230
231
  * ```
231
232
  */
232
233
  extraAgents(args, signal) {
@@ -250,7 +251,7 @@
250
251
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
251
252
  * const infoClient = new hl.InfoClient({ transport });
252
253
  *
253
- * const frontendOpenOrders = await client.frontendOpenOrders({ user: "0x..." });
254
+ * const data = await infoClient.frontendOpenOrders({ user: "0x..." });
254
255
  * ```
255
256
  */
256
257
  frontendOpenOrders(args, signal) {
@@ -274,7 +275,7 @@
274
275
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
275
276
  * const infoClient = new hl.InfoClient({ transport });
276
277
  *
277
- * const fundingHistory = await client.fundingHistory({
278
+ * const data = await infoClient.fundingHistory({
278
279
  * coin: "ETH",
279
280
  * startTime: Date.now() - 1000 * 60 * 60 * 24
280
281
  * });
@@ -301,7 +302,7 @@
301
302
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
302
303
  * const infoClient = new hl.InfoClient({ transport });
303
304
  *
304
- * const historicalOrders = await client.historicalOrders({ user: "0x..." });
305
+ * const data = await infoClient.historicalOrders({ user: "0x..." });
305
306
  * ```
306
307
  */
307
308
  historicalOrders(args, signal) {
@@ -325,7 +326,7 @@
325
326
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
326
327
  * const infoClient = new hl.InfoClient({ transport });
327
328
  *
328
- * const isVip = await client.isVip({ user: "0x..." });
329
+ * const data = await infoClient.isVip({ user: "0x..." });
329
330
  * ```
330
331
  */
331
332
  isVip(args, signal) {
@@ -349,7 +350,7 @@
349
350
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
350
351
  * const infoClient = new hl.InfoClient({ transport });
351
352
  *
352
- * const l2Book = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
353
+ * const data = await infoClient.l2Book({ coin: "ETH", nSigFigs: 2 });
353
354
  * ```
354
355
  */
355
356
  l2Book(args, signal) {
@@ -373,7 +374,7 @@
373
374
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
374
375
  * const infoClient = new hl.InfoClient({ transport });
375
376
  *
376
- * const legalCheck = await client.legalCheck({ user: "0x..." });
377
+ * const data = await infoClient.legalCheck({ user: "0x..." });
377
378
  * ```
378
379
  */
379
380
  legalCheck(args, signal) {
@@ -397,7 +398,7 @@
397
398
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
398
399
  * const infoClient = new hl.InfoClient({ transport });
399
400
  *
400
- * const maxBuilderFee = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
401
+ * const data = await infoClient.maxBuilderFee({ user: "0x...", builder: "0x..." });
401
402
  * ```
402
403
  */
403
404
  maxBuilderFee(args, signal) {
@@ -429,7 +430,7 @@
429
430
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
430
431
  * const infoClient = new hl.InfoClient({ transport });
431
432
  *
432
- * const [meta, assetCtxs] = await client.metaAndAssetCtxs();
433
+ * const data = await infoClient.metaAndAssetCtxs();
433
434
  * ```
434
435
  */
435
436
  metaAndAssetCtxs(signal) {
@@ -452,7 +453,7 @@
452
453
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
453
454
  * const infoClient = new hl.InfoClient({ transport });
454
455
  *
455
- * const openOrders = await client.openOrders({ user: "0x..." });
456
+ * const data = await infoClient.openOrders({ user: "0x..." });
456
457
  * ```
457
458
  */
458
459
  openOrders(args, signal) {
@@ -476,7 +477,7 @@
476
477
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
477
478
  * const infoClient = new hl.InfoClient({ transport });
478
479
  *
479
- * const orderStatus = await client.orderStatus({ user: "0x...", oid: 12345 });
480
+ * const data = await infoClient.orderStatus({ user: "0x...", oid: 12345 });
480
481
  * ```
481
482
  */
482
483
  orderStatus(args, signal) {
@@ -499,7 +500,7 @@
499
500
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
500
501
  * const infoClient = new hl.InfoClient({ transport });
501
502
  *
502
- * const auctionStatus = await client.perpDeployAuctionStatus();
503
+ * const data = await infoClient.perpDeployAuctionStatus();
503
504
  * ```
504
505
  */
505
506
  perpDeployAuctionStatus(signal) {
@@ -521,7 +522,7 @@
521
522
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
522
523
  * const infoClient = new hl.InfoClient({ transport });
523
524
  *
524
- * const perpDexs = await client.perpDexs();
525
+ * const data = await infoClient.perpDexs();
525
526
  * ```
526
527
  */
527
528
  perpDexs(signal) {
@@ -544,7 +545,7 @@
544
545
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
545
546
  * const infoClient = new hl.InfoClient({ transport });
546
547
  *
547
- * const perpsAtOpenInterestCap = await client.perpsAtOpenInterestCap();
548
+ * const data = await infoClient.perpsAtOpenInterestCap();
548
549
  * ```
549
550
  */
550
551
  perpsAtOpenInterestCap(signal) {
@@ -567,7 +568,7 @@
567
568
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
568
569
  * const infoClient = new hl.InfoClient({ transport });
569
570
  *
570
- * const portfolio = await client.portfolio({ user: "0x..." });
571
+ * const data = await infoClient.portfolio({ user: "0x..." });
571
572
  * ```
572
573
  */
573
574
  portfolio(args, signal) {
@@ -590,7 +591,7 @@
590
591
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
591
592
  * const infoClient = new hl.InfoClient({ transport });
592
593
  *
593
- * const predictedFundings = await client.predictedFundings();
594
+ * const data = await infoClient.predictedFundings();
594
595
  * ```
595
596
  */
596
597
  predictedFundings(signal) {
@@ -613,7 +614,7 @@
613
614
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
614
615
  * const infoClient = new hl.InfoClient({ transport });
615
616
  *
616
- * const preTransferCheck = await client.preTransferCheck({ user: "0x...", source: "0x..." });
617
+ * const data = await infoClient.preTransferCheck({ user: "0x...", source: "0x..." });
617
618
  * ```
618
619
  */
619
620
  preTransferCheck(args, signal) {
@@ -637,7 +638,7 @@
637
638
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
638
639
  * const infoClient = new hl.InfoClient({ transport });
639
640
  *
640
- * const referral = await client.referral({ user: "0x..." });
641
+ * const data = await infoClient.referral({ user: "0x..." });
641
642
  * ```
642
643
  */
643
644
  referral(args, signal) {
@@ -661,7 +662,7 @@
661
662
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
662
663
  * const infoClient = new hl.InfoClient({ transport });
663
664
  *
664
- * const spotClearinghouseState = await client.spotClearinghouseState({ user: "0x..." });
665
+ * const data = await infoClient.spotClearinghouseState({ user: "0x..." });
665
666
  * ```
666
667
  */
667
668
  spotClearinghouseState(args, signal) {
@@ -685,7 +686,7 @@
685
686
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
686
687
  * const infoClient = new hl.InfoClient({ transport });
687
688
  *
688
- * const spotDeployState = await client.spotDeployState({ user: "0x..." });
689
+ * const data = await infoClient.spotDeployState({ user: "0x..." });
689
690
  * ```
690
691
  */
691
692
  spotDeployState(args, signal) {
@@ -708,7 +709,7 @@
708
709
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
709
710
  * const infoClient = new hl.InfoClient({ transport });
710
711
  *
711
- * const spotMeta = await client.spotMeta();
712
+ * const data = await infoClient.spotMeta();
712
713
  * ```
713
714
  */
714
715
  spotMeta(signal) {
@@ -730,7 +731,7 @@
730
731
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
731
732
  * const infoClient = new hl.InfoClient({ transport });
732
733
  *
733
- * const [spotMeta, spotAssetCtxs] = await client.spotMetaAndAssetCtxs();
734
+ * const data = await infoClient.spotMetaAndAssetCtxs();
734
735
  * ```
735
736
  */
736
737
  spotMetaAndAssetCtxs(signal) {
@@ -753,7 +754,7 @@
753
754
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
754
755
  * const infoClient = new hl.InfoClient({ transport });
755
756
  *
756
- * const subAccounts = await client.subAccounts({ user: "0x..." });
757
+ * const data = await infoClient.subAccounts({ user: "0x..." });
757
758
  * ```
758
759
  */
759
760
  subAccounts(args, signal) {
@@ -777,7 +778,7 @@
777
778
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
778
779
  * const infoClient = new hl.InfoClient({ transport });
779
780
  *
780
- * const tokenDetails = await client.tokenDetails({ tokenId: "0x..." });
781
+ * const data = await infoClient.tokenDetails({ tokenId: "0x..." });
781
782
  * ```
782
783
  */
783
784
  tokenDetails(args, signal) {
@@ -801,7 +802,7 @@
801
802
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
802
803
  * const infoClient = new hl.InfoClient({ transport });
803
804
  *
804
- * const twapHistory = await client.twapHistory({ user: "0x..." });
805
+ * const data = await infoClient.twapHistory({ user: "0x..." });
805
806
  * ```
806
807
  */
807
808
  twapHistory(args, signal) {
@@ -825,15 +826,16 @@
825
826
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
826
827
  * const infoClient = new hl.InfoClient({ transport });
827
828
  *
828
- * const { tx } = await client.txDetails({ hash: "0x..." });
829
+ * const data = await infoClient.txDetails({ hash: "0x..." });
829
830
  * ```
830
831
  */
831
- txDetails(args, signal) {
832
+ async txDetails(args, signal) {
832
833
  const request = {
833
834
  type: "txDetails",
834
835
  ...args,
835
836
  };
836
- return this.transport.request("explorer", request, signal);
837
+ const { tx } = await this.transport.request("explorer", request, signal);
838
+ return tx;
837
839
  }
838
840
  /**
839
841
  * User details by user's address.
@@ -849,15 +851,16 @@
849
851
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
850
852
  * const infoClient = new hl.InfoClient({ transport });
851
853
  *
852
- * const { txs } = await client.userDetails({ user: "0x..." });
854
+ * const data = await infoClient.userDetails({ user: "0x..." });
853
855
  * ```
854
856
  */
855
- userDetails(args, signal) {
857
+ async userDetails(args, signal) {
856
858
  const request = {
857
859
  type: "userDetails",
858
860
  ...args,
859
861
  };
860
- return this.transport.request("explorer", request, signal);
862
+ const { txs } = await this.transport.request("explorer", request, signal);
863
+ return txs;
861
864
  }
862
865
  /**
863
866
  * Request user fees.
@@ -873,7 +876,7 @@
873
876
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
874
877
  * const infoClient = new hl.InfoClient({ transport });
875
878
  *
876
- * const fees = await client.userFees({ user: "0x..." });
879
+ * const data = await infoClient.userFees({ user: "0x..." });
877
880
  * ```
878
881
  */
879
882
  userFees(args, signal) {
@@ -897,7 +900,7 @@
897
900
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
898
901
  * const infoClient = new hl.InfoClient({ transport });
899
902
  *
900
- * const fills = await client.userFills({ user: "0x..." });
903
+ * const data = await infoClient.userFills({ user: "0x..." });
901
904
  * ```
902
905
  */
903
906
  userFills(args, signal) {
@@ -921,7 +924,7 @@
921
924
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
922
925
  * const infoClient = new hl.InfoClient({ transport });
923
926
  *
924
- * const fills = await client.userFillsByTime({
927
+ * const data = await infoClient.userFillsByTime({
925
928
  * user: "0x...",
926
929
  * startTime: Date.now() - 1000 * 60 * 60 * 24
927
930
  * });
@@ -948,7 +951,7 @@
948
951
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
949
952
  * const infoClient = new hl.InfoClient({ transport });
950
953
  *
951
- * const funding = await client.userFunding({
954
+ * const data = await infoClient.userFunding({
952
955
  * user: "0x...",
953
956
  * startTime: Date.now() - 1000 * 60 * 60 * 24
954
957
  * });
@@ -975,7 +978,7 @@
975
978
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
976
979
  * const infoClient = new hl.InfoClient({ transport });
977
980
  *
978
- * const nonFundingLedgerUpdates = await client.userNonFundingLedgerUpdates({
981
+ * const data = await infoClient.userNonFundingLedgerUpdates({
979
982
  * user: "0x...",
980
983
  * startTime: Date.now() - 1000 * 60 * 60 * 24
981
984
  * });
@@ -1002,7 +1005,7 @@
1002
1005
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1003
1006
  * const infoClient = new hl.InfoClient({ transport });
1004
1007
  *
1005
- * const rateLimit = await client.userRateLimit({ user: "0x..." });
1008
+ * const data = await infoClient.userRateLimit({ user: "0x..." });
1006
1009
  * ```
1007
1010
  */
1008
1011
  userRateLimit(args, signal) {
@@ -1026,7 +1029,7 @@
1026
1029
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1027
1030
  * const infoClient = new hl.InfoClient({ transport });
1028
1031
  *
1029
- * const userRole = await client.userRole({ user: "0x..." });
1032
+ * const data = await infoClient.userRole({ user: "0x..." });
1030
1033
  * ```
1031
1034
  */
1032
1035
  userRole(args, signal) {
@@ -1050,7 +1053,7 @@
1050
1053
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1051
1054
  * const infoClient = new hl.InfoClient({ transport });
1052
1055
  *
1053
- * const multiSigSigners = await client.userToMultiSigSigners({ user: "0x..." });
1056
+ * const data = await infoClient.userToMultiSigSigners({ user: "0x..." });
1054
1057
  * ```
1055
1058
  */
1056
1059
  userToMultiSigSigners(args, signal) {
@@ -1074,7 +1077,7 @@
1074
1077
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1075
1078
  * const infoClient = new hl.InfoClient({ transport });
1076
1079
  *
1077
- * const twapSliceFills = await client.userTwapSliceFills({ user: "0x..." });
1080
+ * const data = await infoClient.userTwapSliceFills({ user: "0x..." });
1078
1081
  * ```
1079
1082
  */
1080
1083
  userTwapSliceFills(args, signal) {
@@ -1098,7 +1101,7 @@
1098
1101
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1099
1102
  * const infoClient = new hl.InfoClient({ transport });
1100
1103
  *
1101
- * const twapSliceFillsByTime = await client.userTwapSliceFillsByTime({
1104
+ * const data = await infoClient.userTwapSliceFillsByTime({
1102
1105
  * user: "0x...",
1103
1106
  * startTime: Date.now() - 1000 * 60 * 60 * 24
1104
1107
  * });
@@ -1125,7 +1128,7 @@
1125
1128
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1126
1129
  * const infoClient = new hl.InfoClient({ transport });
1127
1130
  *
1128
- * const userVaultEquities = await client.userVaultDeposits({ user: "0x..." });
1131
+ * const data = await infoClient.userVaultDeposits({ user: "0x..." });
1129
1132
  * ```
1130
1133
  */
1131
1134
  userVaultEquities(args, signal) {
@@ -1148,7 +1151,7 @@
1148
1151
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1149
1152
  * const infoClient = new hl.InfoClient({ transport });
1150
1153
  *
1151
- * const validatorSummaries = await client.validatorSummaries();
1154
+ * const data = await infoClient.validatorSummaries();
1152
1155
  * ```
1153
1156
  */
1154
1157
  validatorSummaries(signal) {
@@ -1171,7 +1174,7 @@
1171
1174
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1172
1175
  * const infoClient = new hl.InfoClient({ transport });
1173
1176
  *
1174
- * const vaultDetails = await client.vaultDetails({ vaultAddress: "0x..." });
1177
+ * const data = await infoClient.vaultDetails({ vaultAddress: "0x..." });
1175
1178
  * ```
1176
1179
  */
1177
1180
  vaultDetails(args, signal) {
@@ -1195,7 +1198,7 @@
1195
1198
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1196
1199
  * const infoClient = new hl.InfoClient({ transport });
1197
1200
  *
1198
- * const vaultSummaries = await client.vaultSummaries();
1201
+ * const data = await infoClient.vaultSummaries();
1199
1202
  * ```
1200
1203
  */
1201
1204
  vaultSummaries(signal) {