Authentication
Pass your wallet to the SDK. It signs reads, trades and subscriptions automatically.
| Signer | Read | Trade | Withdraw |
|---|---|---|---|
| Owner | Yes | Yes | Yes |
| Approved trading agent | Within grant | Within grant | No |
| Approved reader | Within grant | No | No |
Only owners grant or revoke access. A native Hyperliquid API key does not automatically authorize a Hyperjutsu account. Use a dedicated trading key.
Configure clients
import { ExchangeClient, InfoClient } from '@hyperjutsu/hyperliquid'
const info = new InfoClient({ transport, wallet })
const exchange = new ExchangeClient({ transport, wallet })
const orders = await info.openOrders({ user: owner })SubscriptionClient also takes wallet. When an agent signs, user is the owner's address. Expiry and revocation stop subsequent requests and deliveries.
Retries
Check order status before replacing an uncertain submission. HTTP and WebSocket share trading nonces; coordinate processes that use the same key. Automatic signing does not make order retries idempotent.
Use a verified connection. For raw clients, see the signing reference.