Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Reference

Lighter and Lighter on Robinhood Chain expose the same REST API, WebSocket API and transaction format. Pick the base URL and chain ID that match the exchange you are integrating; the server selector in each endpoint's Test it panel lists the servers that endpoint is available on.

Exchange
REST base URL
WebSocket
Chain ID

Lighter mainnet

https://mainnet.zklighter.elliot.ai

wss://mainnet.zklighter.elliot.ai/stream

304

Lighter testnet

https://testnet.zklighter.elliot.ai

wss://testnet.zklighter.elliot.ai/stream

300

Lighter on Robinhood Chain mainnet

https://api.rh.lighter.xyz

wss://api.rh.lighter.xyz/stream

466324

Lighter on Robinhood Chain testnet

https://api.rh-testnet.lighter.xyz

wss://api.rh-testnet.lighter.xyz/stream

300

Endpoints marked Lighter on Robinhood Chain only (points, referral points) exist only on the RH servers. Endpoints marked Lighter only (binary options) exist only on the Lighter servers.

Lighter RH is a separate exchange: accounts, balances, API keys, nonces and account indexes don't carry over, and mainnet signatures use distinct chain IDs. The two testnets both use chain ID 300; keep the base URL and chain ID together instead of relying on chain ID alone to distinguish testnets. See Lighter on Robinhood Chain.

Sections

  • REST API – almost every endpoint is under /api/v1/, grouped by resource. Status (/) and info (/info) are root endpoints.

  • WebSocket – streaming market and account data, and sending transactions over WebSocket.

  • Explorer API – blocks, batches, search, statistics, logs by hash, account logs/assets/positions and market logs. The base URLs are https://explorer.elliot.ai/api (Lighter) and https://explorerapi.rh.lighter.xyz/api (Robinhood Chain).

New to the API? Start with Get Started and Signing Transactions.

Last updated

Was this helpful?