@nktkas/hyperliquid 0.21.1 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) 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 +234 -517
  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 +1299 -0
  13. package/esm/src/clients/multiSign.d.ts.map +1 -0
  14. package/esm/src/clients/multiSign.js +2158 -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 +241 -246
  22. package/esm/src/types/exchange/requests.d.ts.map +1 -1
  23. package/package.json +2 -1
  24. package/script/mod.d.ts +4 -3
  25. package/script/mod.d.ts.map +1 -1
  26. package/script/mod.js +4 -3
  27. package/script/src/clients/exchange.d.ts +102 -59
  28. package/script/src/clients/exchange.d.ts.map +1 -1
  29. package/script/src/clients/exchange.js +233 -516
  30. package/script/src/clients/info.d.ts +55 -55
  31. package/script/src/clients/info.d.ts.map +1 -1
  32. package/script/src/clients/info.js +57 -54
  33. package/script/src/clients/multiSign.d.ts +1299 -0
  34. package/script/src/clients/multiSign.d.ts.map +1 -0
  35. package/script/src/clients/multiSign.js +2172 -0
  36. package/script/src/clients/subscription.d.ts +19 -19
  37. package/script/src/clients/subscription.d.ts.map +1 -1
  38. package/script/src/clients/subscription.js +17 -17
  39. package/script/src/signing.d.ts +164 -40
  40. package/script/src/signing.d.ts.map +1 -1
  41. package/script/src/signing.js +711 -10
  42. package/script/src/types/exchange/requests.d.ts +241 -246
  43. package/script/src/types/exchange/requests.d.ts.map +1 -1
@@ -42,15 +42,16 @@ export class InfoClient {
42
42
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
43
43
  * const infoClient = new hl.InfoClient({ transport });
44
44
  *
45
- * const { blockDetails } = await client.blockDetails({ height: 123 });
45
+ * const data = await infoClient.blockDetails({ height: 123 });
46
46
  * ```
47
47
  */
48
- blockDetails(args, signal) {
48
+ async blockDetails(args, signal) {
49
49
  const request = {
50
50
  type: "blockDetails",
51
51
  ...args,
52
52
  };
53
- return this.transport.request("explorer", request, signal);
53
+ const { blockDetails } = await this.transport.request("explorer", request, signal);
54
+ return blockDetails;
54
55
  }
55
56
  /**
56
57
  * Request candlestick snapshots.
@@ -66,7 +67,7 @@ export class InfoClient {
66
67
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
67
68
  * const infoClient = new hl.InfoClient({ transport });
68
69
  *
69
- * const candleSnapshot = await client.candleSnapshot({
70
+ * const data = await infoClient.candleSnapshot({
70
71
  * coin: "ETH",
71
72
  * interval: "1h",
72
73
  * startTime: Date.now() - 1000 * 60 * 60 * 24
@@ -94,7 +95,7 @@ export class InfoClient {
94
95
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
95
96
  * const infoClient = new hl.InfoClient({ transport });
96
97
  *
97
- * const clearinghouseState = await client.clearinghouseState({ user: "0x..." });
98
+ * const data = await infoClient.clearinghouseState({ user: "0x..." });
98
99
  * ```
99
100
  */
100
101
  clearinghouseState(args, signal) {
@@ -118,7 +119,7 @@ export class InfoClient {
118
119
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
119
120
  * const infoClient = new hl.InfoClient({ transport });
120
121
  *
121
- * const delegations = await client.delegations({ user: "0x..." });
122
+ * const data = await infoClient.delegations({ user: "0x..." });
122
123
  * ```
123
124
  */
124
125
  delegations(args, signal) {
@@ -142,7 +143,7 @@ export class InfoClient {
142
143
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
143
144
  * const infoClient = new hl.InfoClient({ transport });
144
145
  *
145
- * const delegatorHistory = await client.delegatorHistory({ user: "0x..." });
146
+ * const data = await infoClient.delegatorHistory({ user: "0x..." });
146
147
  * ```
147
148
  */
148
149
  delegatorHistory(args, signal) {
@@ -166,7 +167,7 @@ export class InfoClient {
166
167
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
167
168
  * const infoClient = new hl.InfoClient({ transport });
168
169
  *
169
- * const delegatorRewards = await client.delegatorRewards({ user: "0x..." });
170
+ * const data = await infoClient.delegatorRewards({ user: "0x..." });
170
171
  * ```
171
172
  */
172
173
  delegatorRewards(args, signal) {
@@ -190,7 +191,7 @@ export class InfoClient {
190
191
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
191
192
  * const infoClient = new hl.InfoClient({ transport });
192
193
  *
193
- * const delegatorSummary = await client.delegatorSummary({ user: "0x..." });
194
+ * const data = await infoClient.delegatorSummary({ user: "0x..." });
194
195
  * ```
195
196
  */
196
197
  delegatorSummary(args, signal) {
@@ -214,7 +215,7 @@ export class InfoClient {
214
215
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
215
216
  * const infoClient = new hl.InfoClient({ transport });
216
217
  *
217
- * const extraAgents = await client.extraAgents({ user: "0x..." });
218
+ * const data = await infoClient.extraAgents({ user: "0x..." });
218
219
  * ```
219
220
  */
220
221
  extraAgents(args, signal) {
@@ -238,7 +239,7 @@ export class InfoClient {
238
239
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
239
240
  * const infoClient = new hl.InfoClient({ transport });
240
241
  *
241
- * const frontendOpenOrders = await client.frontendOpenOrders({ user: "0x..." });
242
+ * const data = await infoClient.frontendOpenOrders({ user: "0x..." });
242
243
  * ```
243
244
  */
244
245
  frontendOpenOrders(args, signal) {
@@ -262,7 +263,7 @@ export class InfoClient {
262
263
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
263
264
  * const infoClient = new hl.InfoClient({ transport });
264
265
  *
265
- * const fundingHistory = await client.fundingHistory({
266
+ * const data = await infoClient.fundingHistory({
266
267
  * coin: "ETH",
267
268
  * startTime: Date.now() - 1000 * 60 * 60 * 24
268
269
  * });
@@ -289,7 +290,7 @@ export class InfoClient {
289
290
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
290
291
  * const infoClient = new hl.InfoClient({ transport });
291
292
  *
292
- * const historicalOrders = await client.historicalOrders({ user: "0x..." });
293
+ * const data = await infoClient.historicalOrders({ user: "0x..." });
293
294
  * ```
294
295
  */
295
296
  historicalOrders(args, signal) {
@@ -313,7 +314,7 @@ export class InfoClient {
313
314
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
314
315
  * const infoClient = new hl.InfoClient({ transport });
315
316
  *
316
- * const isVip = await client.isVip({ user: "0x..." });
317
+ * const data = await infoClient.isVip({ user: "0x..." });
317
318
  * ```
318
319
  */
319
320
  isVip(args, signal) {
@@ -337,7 +338,7 @@ export class InfoClient {
337
338
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
338
339
  * const infoClient = new hl.InfoClient({ transport });
339
340
  *
340
- * const l2Book = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
341
+ * const data = await infoClient.l2Book({ coin: "ETH", nSigFigs: 2 });
341
342
  * ```
342
343
  */
343
344
  l2Book(args, signal) {
@@ -361,7 +362,7 @@ export class InfoClient {
361
362
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
362
363
  * const infoClient = new hl.InfoClient({ transport });
363
364
  *
364
- * const legalCheck = await client.legalCheck({ user: "0x..." });
365
+ * const data = await infoClient.legalCheck({ user: "0x..." });
365
366
  * ```
366
367
  */
367
368
  legalCheck(args, signal) {
@@ -385,7 +386,7 @@ export class InfoClient {
385
386
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
386
387
  * const infoClient = new hl.InfoClient({ transport });
387
388
  *
388
- * const maxBuilderFee = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
389
+ * const data = await infoClient.maxBuilderFee({ user: "0x...", builder: "0x..." });
389
390
  * ```
390
391
  */
391
392
  maxBuilderFee(args, signal) {
@@ -417,7 +418,7 @@ export class InfoClient {
417
418
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
418
419
  * const infoClient = new hl.InfoClient({ transport });
419
420
  *
420
- * const [meta, assetCtxs] = await client.metaAndAssetCtxs();
421
+ * const data = await infoClient.metaAndAssetCtxs();
421
422
  * ```
422
423
  */
423
424
  metaAndAssetCtxs(signal) {
@@ -440,7 +441,7 @@ export class InfoClient {
440
441
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
441
442
  * const infoClient = new hl.InfoClient({ transport });
442
443
  *
443
- * const openOrders = await client.openOrders({ user: "0x..." });
444
+ * const data = await infoClient.openOrders({ user: "0x..." });
444
445
  * ```
445
446
  */
446
447
  openOrders(args, signal) {
@@ -464,7 +465,7 @@ export class InfoClient {
464
465
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
465
466
  * const infoClient = new hl.InfoClient({ transport });
466
467
  *
467
- * const orderStatus = await client.orderStatus({ user: "0x...", oid: 12345 });
468
+ * const data = await infoClient.orderStatus({ user: "0x...", oid: 12345 });
468
469
  * ```
469
470
  */
470
471
  orderStatus(args, signal) {
@@ -487,7 +488,7 @@ export class InfoClient {
487
488
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
488
489
  * const infoClient = new hl.InfoClient({ transport });
489
490
  *
490
- * const auctionStatus = await client.perpDeployAuctionStatus();
491
+ * const data = await infoClient.perpDeployAuctionStatus();
491
492
  * ```
492
493
  */
493
494
  perpDeployAuctionStatus(signal) {
@@ -509,7 +510,7 @@ export class InfoClient {
509
510
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
510
511
  * const infoClient = new hl.InfoClient({ transport });
511
512
  *
512
- * const perpDexs = await client.perpDexs();
513
+ * const data = await infoClient.perpDexs();
513
514
  * ```
514
515
  */
515
516
  perpDexs(signal) {
@@ -532,7 +533,7 @@ export class InfoClient {
532
533
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
533
534
  * const infoClient = new hl.InfoClient({ transport });
534
535
  *
535
- * const perpsAtOpenInterestCap = await client.perpsAtOpenInterestCap();
536
+ * const data = await infoClient.perpsAtOpenInterestCap();
536
537
  * ```
537
538
  */
538
539
  perpsAtOpenInterestCap(signal) {
@@ -555,7 +556,7 @@ export class InfoClient {
555
556
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
556
557
  * const infoClient = new hl.InfoClient({ transport });
557
558
  *
558
- * const portfolio = await client.portfolio({ user: "0x..." });
559
+ * const data = await infoClient.portfolio({ user: "0x..." });
559
560
  * ```
560
561
  */
561
562
  portfolio(args, signal) {
@@ -578,7 +579,7 @@ export class InfoClient {
578
579
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
579
580
  * const infoClient = new hl.InfoClient({ transport });
580
581
  *
581
- * const predictedFundings = await client.predictedFundings();
582
+ * const data = await infoClient.predictedFundings();
582
583
  * ```
583
584
  */
584
585
  predictedFundings(signal) {
@@ -601,7 +602,7 @@ export class InfoClient {
601
602
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
602
603
  * const infoClient = new hl.InfoClient({ transport });
603
604
  *
604
- * const preTransferCheck = await client.preTransferCheck({ user: "0x...", source: "0x..." });
605
+ * const data = await infoClient.preTransferCheck({ user: "0x...", source: "0x..." });
605
606
  * ```
606
607
  */
607
608
  preTransferCheck(args, signal) {
@@ -625,7 +626,7 @@ export class InfoClient {
625
626
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
626
627
  * const infoClient = new hl.InfoClient({ transport });
627
628
  *
628
- * const referral = await client.referral({ user: "0x..." });
629
+ * const data = await infoClient.referral({ user: "0x..." });
629
630
  * ```
630
631
  */
631
632
  referral(args, signal) {
@@ -649,7 +650,7 @@ export class InfoClient {
649
650
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
650
651
  * const infoClient = new hl.InfoClient({ transport });
651
652
  *
652
- * const spotClearinghouseState = await client.spotClearinghouseState({ user: "0x..." });
653
+ * const data = await infoClient.spotClearinghouseState({ user: "0x..." });
653
654
  * ```
654
655
  */
655
656
  spotClearinghouseState(args, signal) {
@@ -673,7 +674,7 @@ export class InfoClient {
673
674
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
674
675
  * const infoClient = new hl.InfoClient({ transport });
675
676
  *
676
- * const spotDeployState = await client.spotDeployState({ user: "0x..." });
677
+ * const data = await infoClient.spotDeployState({ user: "0x..." });
677
678
  * ```
678
679
  */
679
680
  spotDeployState(args, signal) {
@@ -696,7 +697,7 @@ export class InfoClient {
696
697
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
697
698
  * const infoClient = new hl.InfoClient({ transport });
698
699
  *
699
- * const spotMeta = await client.spotMeta();
700
+ * const data = await infoClient.spotMeta();
700
701
  * ```
701
702
  */
702
703
  spotMeta(signal) {
@@ -718,7 +719,7 @@ export class InfoClient {
718
719
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
719
720
  * const infoClient = new hl.InfoClient({ transport });
720
721
  *
721
- * const [spotMeta, spotAssetCtxs] = await client.spotMetaAndAssetCtxs();
722
+ * const data = await infoClient.spotMetaAndAssetCtxs();
722
723
  * ```
723
724
  */
724
725
  spotMetaAndAssetCtxs(signal) {
@@ -741,7 +742,7 @@ export class InfoClient {
741
742
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
742
743
  * const infoClient = new hl.InfoClient({ transport });
743
744
  *
744
- * const subAccounts = await client.subAccounts({ user: "0x..." });
745
+ * const data = await infoClient.subAccounts({ user: "0x..." });
745
746
  * ```
746
747
  */
747
748
  subAccounts(args, signal) {
@@ -765,7 +766,7 @@ export class InfoClient {
765
766
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
766
767
  * const infoClient = new hl.InfoClient({ transport });
767
768
  *
768
- * const tokenDetails = await client.tokenDetails({ tokenId: "0x..." });
769
+ * const data = await infoClient.tokenDetails({ tokenId: "0x..." });
769
770
  * ```
770
771
  */
771
772
  tokenDetails(args, signal) {
@@ -789,7 +790,7 @@ export class InfoClient {
789
790
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
790
791
  * const infoClient = new hl.InfoClient({ transport });
791
792
  *
792
- * const twapHistory = await client.twapHistory({ user: "0x..." });
793
+ * const data = await infoClient.twapHistory({ user: "0x..." });
793
794
  * ```
794
795
  */
795
796
  twapHistory(args, signal) {
@@ -813,15 +814,16 @@ export class InfoClient {
813
814
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
814
815
  * const infoClient = new hl.InfoClient({ transport });
815
816
  *
816
- * const { tx } = await client.txDetails({ hash: "0x..." });
817
+ * const data = await infoClient.txDetails({ hash: "0x..." });
817
818
  * ```
818
819
  */
819
- txDetails(args, signal) {
820
+ async txDetails(args, signal) {
820
821
  const request = {
821
822
  type: "txDetails",
822
823
  ...args,
823
824
  };
824
- return this.transport.request("explorer", request, signal);
825
+ const { tx } = await this.transport.request("explorer", request, signal);
826
+ return tx;
825
827
  }
826
828
  /**
827
829
  * User details by user's address.
@@ -837,15 +839,16 @@ export class InfoClient {
837
839
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
838
840
  * const infoClient = new hl.InfoClient({ transport });
839
841
  *
840
- * const { txs } = await client.userDetails({ user: "0x..." });
842
+ * const data = await infoClient.userDetails({ user: "0x..." });
841
843
  * ```
842
844
  */
843
- userDetails(args, signal) {
845
+ async userDetails(args, signal) {
844
846
  const request = {
845
847
  type: "userDetails",
846
848
  ...args,
847
849
  };
848
- return this.transport.request("explorer", request, signal);
850
+ const { txs } = await this.transport.request("explorer", request, signal);
851
+ return txs;
849
852
  }
850
853
  /**
851
854
  * Request user fees.
@@ -861,7 +864,7 @@ export class InfoClient {
861
864
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
862
865
  * const infoClient = new hl.InfoClient({ transport });
863
866
  *
864
- * const fees = await client.userFees({ user: "0x..." });
867
+ * const data = await infoClient.userFees({ user: "0x..." });
865
868
  * ```
866
869
  */
867
870
  userFees(args, signal) {
@@ -885,7 +888,7 @@ export class InfoClient {
885
888
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
886
889
  * const infoClient = new hl.InfoClient({ transport });
887
890
  *
888
- * const fills = await client.userFills({ user: "0x..." });
891
+ * const data = await infoClient.userFills({ user: "0x..." });
889
892
  * ```
890
893
  */
891
894
  userFills(args, signal) {
@@ -909,7 +912,7 @@ export class InfoClient {
909
912
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
910
913
  * const infoClient = new hl.InfoClient({ transport });
911
914
  *
912
- * const fills = await client.userFillsByTime({
915
+ * const data = await infoClient.userFillsByTime({
913
916
  * user: "0x...",
914
917
  * startTime: Date.now() - 1000 * 60 * 60 * 24
915
918
  * });
@@ -936,7 +939,7 @@ export class InfoClient {
936
939
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
937
940
  * const infoClient = new hl.InfoClient({ transport });
938
941
  *
939
- * const funding = await client.userFunding({
942
+ * const data = await infoClient.userFunding({
940
943
  * user: "0x...",
941
944
  * startTime: Date.now() - 1000 * 60 * 60 * 24
942
945
  * });
@@ -963,7 +966,7 @@ export class InfoClient {
963
966
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
964
967
  * const infoClient = new hl.InfoClient({ transport });
965
968
  *
966
- * const nonFundingLedgerUpdates = await client.userNonFundingLedgerUpdates({
969
+ * const data = await infoClient.userNonFundingLedgerUpdates({
967
970
  * user: "0x...",
968
971
  * startTime: Date.now() - 1000 * 60 * 60 * 24
969
972
  * });
@@ -990,7 +993,7 @@ export class InfoClient {
990
993
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
991
994
  * const infoClient = new hl.InfoClient({ transport });
992
995
  *
993
- * const rateLimit = await client.userRateLimit({ user: "0x..." });
996
+ * const data = await infoClient.userRateLimit({ user: "0x..." });
994
997
  * ```
995
998
  */
996
999
  userRateLimit(args, signal) {
@@ -1014,7 +1017,7 @@ export class InfoClient {
1014
1017
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1015
1018
  * const infoClient = new hl.InfoClient({ transport });
1016
1019
  *
1017
- * const userRole = await client.userRole({ user: "0x..." });
1020
+ * const data = await infoClient.userRole({ user: "0x..." });
1018
1021
  * ```
1019
1022
  */
1020
1023
  userRole(args, signal) {
@@ -1038,7 +1041,7 @@ export class InfoClient {
1038
1041
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1039
1042
  * const infoClient = new hl.InfoClient({ transport });
1040
1043
  *
1041
- * const multiSigSigners = await client.userToMultiSigSigners({ user: "0x..." });
1044
+ * const data = await infoClient.userToMultiSigSigners({ user: "0x..." });
1042
1045
  * ```
1043
1046
  */
1044
1047
  userToMultiSigSigners(args, signal) {
@@ -1062,7 +1065,7 @@ export class InfoClient {
1062
1065
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1063
1066
  * const infoClient = new hl.InfoClient({ transport });
1064
1067
  *
1065
- * const twapSliceFills = await client.userTwapSliceFills({ user: "0x..." });
1068
+ * const data = await infoClient.userTwapSliceFills({ user: "0x..." });
1066
1069
  * ```
1067
1070
  */
1068
1071
  userTwapSliceFills(args, signal) {
@@ -1086,7 +1089,7 @@ export class InfoClient {
1086
1089
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1087
1090
  * const infoClient = new hl.InfoClient({ transport });
1088
1091
  *
1089
- * const twapSliceFillsByTime = await client.userTwapSliceFillsByTime({
1092
+ * const data = await infoClient.userTwapSliceFillsByTime({
1090
1093
  * user: "0x...",
1091
1094
  * startTime: Date.now() - 1000 * 60 * 60 * 24
1092
1095
  * });
@@ -1113,7 +1116,7 @@ export class InfoClient {
1113
1116
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1114
1117
  * const infoClient = new hl.InfoClient({ transport });
1115
1118
  *
1116
- * const userVaultEquities = await client.userVaultDeposits({ user: "0x..." });
1119
+ * const data = await infoClient.userVaultDeposits({ user: "0x..." });
1117
1120
  * ```
1118
1121
  */
1119
1122
  userVaultEquities(args, signal) {
@@ -1136,7 +1139,7 @@ export class InfoClient {
1136
1139
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1137
1140
  * const infoClient = new hl.InfoClient({ transport });
1138
1141
  *
1139
- * const validatorSummaries = await client.validatorSummaries();
1142
+ * const data = await infoClient.validatorSummaries();
1140
1143
  * ```
1141
1144
  */
1142
1145
  validatorSummaries(signal) {
@@ -1159,7 +1162,7 @@ export class InfoClient {
1159
1162
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1160
1163
  * const infoClient = new hl.InfoClient({ transport });
1161
1164
  *
1162
- * const vaultDetails = await client.vaultDetails({ vaultAddress: "0x..." });
1165
+ * const data = await infoClient.vaultDetails({ vaultAddress: "0x..." });
1163
1166
  * ```
1164
1167
  */
1165
1168
  vaultDetails(args, signal) {
@@ -1183,7 +1186,7 @@ export class InfoClient {
1183
1186
  * const transport = new hl.HttpTransport(); // or WebSocketTransport
1184
1187
  * const infoClient = new hl.InfoClient({ transport });
1185
1188
  *
1186
- * const vaultSummaries = await client.vaultSummaries();
1189
+ * const data = await infoClient.vaultSummaries();
1187
1190
  * ```
1188
1191
  */
1189
1192
  vaultSummaries(signal) {