REGISTER_API_KEY. Public provider metadata calls this an SDK signer: the Lighter plugin owns key generation, persistence, WASM loading, signing, and read-only token lifecycle. Applications do not instantiate a signer or pass a key store separately.
Provider instances
Both providers expose the same normalized SDK contract but keep endpoints, caches, credentials, signing configuration, and asset registries isolated.
localStorage for its signing key and read-only token. Pass storage to a provider factory only for SSR, tests, or a different persistence backend. Authenticated WebSocket channels automatically reuse resolveAuthToken from the co-registered REST provider; a custom resolver is only needed for a standalone WebSocket client.
Topics
- Signing Model — WASM signing, the native key versus the L1 wallet, and dual-authorized setup
- Deposits — provider-owned deposit discovery for Lighter mainnet and Robinhood Chain
- Setup — registering the trading key and satisfying conditional gates
- Trading — trading and account actions
- Withdrawals — per-asset/per-route balance discovery and settlement paths
- WebSocket Protocol — channel mapping and provider-owned authentication
Defaults and constraints
- Default margin mode:
CROSSwhenmarginModeis omitted fromplaceOrderorupdateLeverage. - Trade signing: actions are authorized by the plugin’s
SDKsigner with no per-trade wallet popup. - Order fields:
priceis required. - Withdrawal destination: the account owner address only.
- Mainnet deposit: Ethereum mainnet USDC plus ETH for gas.
- Robinhood deposit: Robinhood Chain USDG plus native gas.
- Key slot: slot
42by default; re-registering the same slot replaces the prior key.
Related pages
- SDK / Providers — provider discovery and deposit-flow descriptors
- SDK / Withdrawal — withdrawable-balance discovery and submission
- SDK / Streaming — normalized WebSocket subscriptions
- SDK / Actions — authorization-step variants