@nktkas/hyperliquid 0.24.1 → 0.24.3

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 (42) hide show
  1. package/README.md +105 -102
  2. package/esm/src/clients/exchange.d.ts +41 -41
  3. package/esm/src/clients/exchange.js +40 -40
  4. package/esm/src/clients/info.d.ts +63 -57
  5. package/esm/src/clients/info.d.ts.map +1 -1
  6. package/esm/src/clients/info.js +60 -92
  7. package/esm/src/clients/subscription.d.ts +104 -31
  8. package/esm/src/clients/subscription.d.ts.map +1 -1
  9. package/esm/src/clients/subscription.js +92 -12
  10. package/esm/src/signing/mod.d.ts +4 -4
  11. package/esm/src/signing/mod.js +4 -4
  12. package/esm/src/transports/http/http_transport.js +1 -1
  13. package/esm/src/transports/websocket/_websocket_async_request.d.ts.map +1 -1
  14. package/esm/src/transports/websocket/_websocket_async_request.js +4 -0
  15. package/esm/src/transports/websocket/websocket_transport.js +3 -3
  16. package/esm/src/types/info/requests.d.ts +6 -0
  17. package/esm/src/types/info/requests.d.ts.map +1 -1
  18. package/esm/src/types/subscriptions/requests.d.ts +11 -0
  19. package/esm/src/types/subscriptions/requests.d.ts.map +1 -1
  20. package/esm/src/types/subscriptions/responses.d.ts +25 -0
  21. package/esm/src/types/subscriptions/responses.d.ts.map +1 -1
  22. package/package.json +1 -1
  23. package/script/src/clients/exchange.d.ts +41 -41
  24. package/script/src/clients/exchange.js +40 -40
  25. package/script/src/clients/info.d.ts +63 -57
  26. package/script/src/clients/info.d.ts.map +1 -1
  27. package/script/src/clients/info.js +60 -92
  28. package/script/src/clients/subscription.d.ts +104 -31
  29. package/script/src/clients/subscription.d.ts.map +1 -1
  30. package/script/src/clients/subscription.js +92 -12
  31. package/script/src/signing/mod.d.ts +4 -4
  32. package/script/src/signing/mod.js +4 -4
  33. package/script/src/transports/http/http_transport.js +1 -1
  34. package/script/src/transports/websocket/_websocket_async_request.d.ts.map +1 -1
  35. package/script/src/transports/websocket/_websocket_async_request.js +4 -0
  36. package/script/src/transports/websocket/websocket_transport.js +3 -3
  37. package/script/src/types/info/requests.d.ts +6 -0
  38. package/script/src/types/info/requests.d.ts.map +1 -1
  39. package/script/src/types/subscriptions/requests.d.ts +11 -0
  40. package/script/src/types/subscriptions/requests.d.ts.map +1 -1
  41. package/script/src/types/subscriptions/responses.d.ts +25 -0
  42. package/script/src/types/subscriptions/responses.d.ts.map +1 -1
@@ -138,7 +138,7 @@ export class ExchangeClient {
138
138
  * ```ts
139
139
  * import * as hl from "@nktkas/hyperliquid";
140
140
  *
141
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
141
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
142
142
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
143
143
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
144
144
  *
@@ -169,7 +169,7 @@ export class ExchangeClient {
169
169
  * ```ts
170
170
  * import * as hl from "@nktkas/hyperliquid";
171
171
  *
172
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
172
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
173
173
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
174
174
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
175
175
  *
@@ -200,7 +200,7 @@ export class ExchangeClient {
200
200
  * ```ts
201
201
  * import * as hl from "@nktkas/hyperliquid";
202
202
  *
203
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
203
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
204
204
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
205
205
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
206
206
  *
@@ -244,7 +244,7 @@ export class ExchangeClient {
244
244
  * ```ts
245
245
  * import * as hl from "@nktkas/hyperliquid";
246
246
  *
247
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
247
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
248
248
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
249
249
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
250
250
  *
@@ -278,7 +278,7 @@ export class ExchangeClient {
278
278
  * ```ts
279
279
  * import * as hl from "@nktkas/hyperliquid";
280
280
  *
281
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
281
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
282
282
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
283
283
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
284
284
  *
@@ -312,7 +312,7 @@ export class ExchangeClient {
312
312
  * ```ts
313
313
  * import * as hl from "@nktkas/hyperliquid";
314
314
  *
315
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
315
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
316
316
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
317
317
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
318
318
  *
@@ -342,7 +342,7 @@ export class ExchangeClient {
342
342
  * ```ts
343
343
  * import * as hl from "@nktkas/hyperliquid";
344
344
  *
345
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
345
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
346
346
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
347
347
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
348
348
  *
@@ -370,7 +370,7 @@ export class ExchangeClient {
370
370
  * ```ts
371
371
  * import * as hl from "@nktkas/hyperliquid";
372
372
  *
373
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
373
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
374
374
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
375
375
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
376
376
  *
@@ -410,7 +410,7 @@ export class ExchangeClient {
410
410
  * ```ts
411
411
  * import * as hl from "@nktkas/hyperliquid";
412
412
  *
413
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
413
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
414
414
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
415
415
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
416
416
  *
@@ -439,7 +439,7 @@ export class ExchangeClient {
439
439
  * ```ts
440
440
  * import * as hl from "@nktkas/hyperliquid";
441
441
  *
442
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
442
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
443
443
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
444
444
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
445
445
  *
@@ -473,7 +473,7 @@ export class ExchangeClient {
473
473
  * ```ts
474
474
  * import * as hl from "@nktkas/hyperliquid";
475
475
  *
476
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
476
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
477
477
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
478
478
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
479
479
  *
@@ -506,7 +506,7 @@ export class ExchangeClient {
506
506
  * ```ts
507
507
  * import * as hl from "@nktkas/hyperliquid";
508
508
  *
509
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
509
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
510
510
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
511
511
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
512
512
  *
@@ -565,7 +565,7 @@ export class ExchangeClient {
565
565
  * ```ts
566
566
  * import * as hl from "@nktkas/hyperliquid";
567
567
  *
568
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
568
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
569
569
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
570
570
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
571
571
  *
@@ -596,7 +596,7 @@ export class ExchangeClient {
596
596
  * ```ts
597
597
  * import * as hl from "@nktkas/hyperliquid";
598
598
  *
599
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
599
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
600
600
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
601
601
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
602
602
  *
@@ -625,7 +625,7 @@ export class ExchangeClient {
625
625
  * ```ts
626
626
  * import * as hl from "@nktkas/hyperliquid";
627
627
  *
628
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
628
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
629
629
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
630
630
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
631
631
  *
@@ -739,7 +739,7 @@ export class ExchangeClient {
739
739
  * ```ts
740
740
  * import * as hl from "@nktkas/hyperliquid";
741
741
  *
742
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
742
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
743
743
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
744
744
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
745
745
  *
@@ -781,7 +781,7 @@ export class ExchangeClient {
781
781
  * ```ts
782
782
  * import * as hl from "@nktkas/hyperliquid";
783
783
  *
784
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
784
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
785
785
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
786
786
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
787
787
  *
@@ -809,7 +809,7 @@ export class ExchangeClient {
809
809
  * ```ts
810
810
  * import * as hl from "@nktkas/hyperliquid";
811
811
  *
812
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
812
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
813
813
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
814
814
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
815
815
  *
@@ -851,7 +851,7 @@ export class ExchangeClient {
851
851
  * ```ts
852
852
  * import * as hl from "@nktkas/hyperliquid";
853
853
  *
854
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
854
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
855
855
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
856
856
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
857
857
  *
@@ -880,7 +880,7 @@ export class ExchangeClient {
880
880
  * ```ts
881
881
  * import * as hl from "@nktkas/hyperliquid";
882
882
  *
883
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
883
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
884
884
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
885
885
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
886
886
  *
@@ -921,7 +921,7 @@ export class ExchangeClient {
921
921
  * ```ts
922
922
  * import * as hl from "@nktkas/hyperliquid";
923
923
  *
924
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
924
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
925
925
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
926
926
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
927
927
  *
@@ -959,7 +959,7 @@ export class ExchangeClient {
959
959
  * ```ts
960
960
  * import * as hl from "@nktkas/hyperliquid";
961
961
  *
962
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
962
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
963
963
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
964
964
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
965
965
  *
@@ -988,7 +988,7 @@ export class ExchangeClient {
988
988
  * ```ts
989
989
  * import * as hl from "@nktkas/hyperliquid";
990
990
  *
991
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
991
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
992
992
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
993
993
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
994
994
  *
@@ -1017,7 +1017,7 @@ export class ExchangeClient {
1017
1017
  * ```ts
1018
1018
  * import * as hl from "@nktkas/hyperliquid";
1019
1019
  *
1020
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1020
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1021
1021
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1022
1022
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1023
1023
  *
@@ -1056,7 +1056,7 @@ export class ExchangeClient {
1056
1056
  * ```ts
1057
1057
  * import * as hl from "@nktkas/hyperliquid";
1058
1058
  *
1059
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1059
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1060
1060
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1061
1061
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1062
1062
  *
@@ -1091,7 +1091,7 @@ export class ExchangeClient {
1091
1091
  * ```ts
1092
1092
  * import * as hl from "@nktkas/hyperliquid";
1093
1093
  *
1094
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1094
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1095
1095
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1096
1096
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1097
1097
  *
@@ -1120,7 +1120,7 @@ export class ExchangeClient {
1120
1120
  * ```ts
1121
1121
  * import * as hl from "@nktkas/hyperliquid";
1122
1122
  *
1123
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1123
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1124
1124
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1125
1125
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1126
1126
  *
@@ -1149,7 +1149,7 @@ export class ExchangeClient {
1149
1149
  * ```ts
1150
1150
  * import * as hl from "@nktkas/hyperliquid";
1151
1151
  *
1152
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1152
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1153
1153
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1154
1154
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1155
1155
  *
@@ -1183,7 +1183,7 @@ export class ExchangeClient {
1183
1183
  * ```ts
1184
1184
  * import * as hl from "@nktkas/hyperliquid";
1185
1185
  *
1186
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1186
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1187
1187
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1188
1188
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1189
1189
  *
@@ -1212,7 +1212,7 @@ export class ExchangeClient {
1212
1212
  * ```ts
1213
1213
  * import * as hl from "@nktkas/hyperliquid";
1214
1214
  *
1215
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1215
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1216
1216
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1217
1217
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1218
1218
  *
@@ -1243,7 +1243,7 @@ export class ExchangeClient {
1243
1243
  * ```ts
1244
1244
  * import * as hl from "@nktkas/hyperliquid";
1245
1245
  *
1246
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1246
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1247
1247
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1248
1248
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1249
1249
  *
@@ -1273,7 +1273,7 @@ export class ExchangeClient {
1273
1273
  * ```ts
1274
1274
  * import * as hl from "@nktkas/hyperliquid";
1275
1275
  *
1276
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1276
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1277
1277
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1278
1278
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1279
1279
  *
@@ -1312,7 +1312,7 @@ export class ExchangeClient {
1312
1312
  * ```ts
1313
1313
  * import * as hl from "@nktkas/hyperliquid";
1314
1314
  *
1315
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1315
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1316
1316
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1317
1317
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1318
1318
  *
@@ -1342,7 +1342,7 @@ export class ExchangeClient {
1342
1342
  * ```ts
1343
1343
  * import * as hl from "@nktkas/hyperliquid";
1344
1344
  *
1345
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1345
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1346
1346
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1347
1347
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1348
1348
  *
@@ -1372,7 +1372,7 @@ export class ExchangeClient {
1372
1372
  * ```ts
1373
1373
  * import * as hl from "@nktkas/hyperliquid";
1374
1374
  *
1375
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1375
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1376
1376
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1377
1377
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1378
1378
  *
@@ -1403,7 +1403,7 @@ export class ExchangeClient {
1403
1403
  * ```ts
1404
1404
  * import * as hl from "@nktkas/hyperliquid";
1405
1405
  *
1406
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1406
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1407
1407
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1408
1408
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1409
1409
  *
@@ -1434,7 +1434,7 @@ export class ExchangeClient {
1434
1434
  * ```ts
1435
1435
  * import * as hl from "@nktkas/hyperliquid";
1436
1436
  *
1437
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1437
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1438
1438
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1439
1439
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1440
1440
  *
@@ -1463,7 +1463,7 @@ export class ExchangeClient {
1463
1463
  * ```ts
1464
1464
  * import * as hl from "@nktkas/hyperliquid";
1465
1465
  *
1466
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1466
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1467
1467
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1468
1468
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1469
1469
  *
@@ -1496,7 +1496,7 @@ export class ExchangeClient {
1496
1496
  * ```ts
1497
1497
  * import * as hl from "@nktkas/hyperliquid";
1498
1498
  *
1499
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1499
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1500
1500
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1501
1501
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1502
1502
  *
@@ -1525,7 +1525,7 @@ export class ExchangeClient {
1525
1525
  * ```ts
1526
1526
  * import * as hl from "@nktkas/hyperliquid";
1527
1527
  *
1528
- * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly`
1528
+ * const privateKey = "0x..."; // `viem`, `ethers`, or private key directly
1529
1529
  * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1530
1530
  * const exchClient = new hl.ExchangeClient({ wallet: privateKey, transport });
1531
1531
  *