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.
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.
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) andhttps://explorerapi.rh.lighter.xyz/api(Robinhood Chain).
New to the API? Start with Get Started and Signing Transactions.
Last updated
Was this helpful?