From d80f49b002685a732ed03b078fad5f0c8077a501 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 13 Oct 2026 01:48:22 +0000 Subject: [PATCH 1/2] docs: improve README with sfx-style header, plain comments, and reordered features Co-authored-by: Joe Blau --- README.md | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 227de884..17476794 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,6 @@ -

- - - Hyperliquid - -
- Blazing fast TypeScript SDK for Hyperliquid. Try the documentation. -

+# @bloxwap/hyperliquid + +

Blazing fast TypeScript SDK for Hyperliquid. Try the docs.

npm version @@ -17,10 +12,10 @@ ## Features - **Typed.** Source code is 100% TypeScript with comprehensive type safety. -- **Tested.** Extensive test coverage with both offline and online test suites. - **Minimal dependencies.** A few small, trusted dependencies keep the bundle lean. - **Cross-environment support.** Compatible with Bun, Node.js, React Native, and all major JavaScript runtimes. -- **Easy integration.** Works seamlessly with [viem](https://github.com/wevm/viem) accounts (local private keys or JSON-RPC browser wallets). +- **Easy integration.** Works seamlessly with [viem](https://github.com/wevm/viem) accounts, local private keys or JSON-RPC browser wallets. +- **Tested.** Offline and online test suites run in CI. ## Installation @@ -48,7 +43,7 @@ pnpm add @bloxwap/hyperliquid yarn add @bloxwap/hyperliquid ``` -> React Native needs polyfills for the `fastAssetCtxs` subscription and for versions below 0.86 — see the +> React Native needs polyfills for the `fastAssetCtxs` subscription and for versions below 0.86. See the > [documentation](https://bloxwap.github.io/hyperliquid/docs/). ## Release status @@ -60,14 +55,14 @@ yarn add @bloxwap/hyperliquid ### Read ```ts -// 1. Import module +// Import module import { HttpTransport, InfoClient } from "@bloxwap/hyperliquid"; -// 2. Set up client with transport +// Set up client with transport const transport = new HttpTransport(); const info = new InfoClient({ transport }); -// 3. Query data +// Query data // Retrieve mids for all coins const mids = await info.allMids(); @@ -82,17 +77,17 @@ const book = await info.l2Book({ coin: "BTC" }); ### Trade ```ts -// 1. Import modules +// Import modules import { ExchangeClient, HttpTransport } from "@bloxwap/hyperliquid"; import { privateKeyToAccount } from "viem/accounts"; -// 2. Set up client with wallet and transport +// Set up client with wallet and transport const wallet = privateKeyToAccount("0x..."); const transport = new HttpTransport(); const exchange = new ExchangeClient({ transport, wallet }); -// 3. Execute an action +// Execute an action // Place an order const result = await exchange.order({ @@ -117,20 +112,20 @@ await exchange.withdraw3({ destination: "0x...", amount: "1" }); For low-latency bots, prefer [`createFastLocalWallet`](https://bloxwap.github.io/hyperliquid/docs/signing/#fast-local-wallet-wasm-secp256k1) (WASM secp256k1) and install the optional `hash-wasm` package for ambient keccak acceleration. Trusted callers can also pass -`{ skipValidation: true }` — see the +`{ skipValidation: true }`. See the [low-latency recipe](https://bloxwap.github.io/hyperliquid/docs/signing/#low-latency-recipe-bots--hft). ### Subscribe ```ts -// 1. Import module +// Import module import { SubscriptionClient, WebSocketTransport } from "@bloxwap/hyperliquid"; -// 2. Set up client with transport +// Set up client with transport const transport = new WebSocketTransport(); const subs = new SubscriptionClient({ transport }); -// 3. Subscribe to events +// Subscribe to events // Subscribe to mids for all coins await subs.allMids((data) => { From d49ab7b6319da088ca19af15ddc647b60a7739a9 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 13 Oct 2026 02:43:33 +0000 Subject: [PATCH 2/2] docs: use centered h1 heading to match sfx style Co-authored-by: Joe Blau --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17476794..fe3728c1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @bloxwap/hyperliquid +

Hyperliquid SDK

Blazing fast TypeScript SDK for Hyperliquid. Try the docs.