Currently, only deposits to Lighter are supported. Withdrawals from Lighter are not yet available.
Prerequisites
Before you can bridge funds to Lighter, you must first set up an account on lighter.exchange. Once your account is created, you can retrieve your account index to use as the recipient for deposits.API Access
Lighter can be accessed using the standard Relay API flow. To get started, review the execution steps documentation. When you’re ready to execute deposits, refer to the Get Quote API endpoint.Lighter-Specific API Parameters
| Parameter | Input | Description |
|---|---|---|
| toChainId | 3586256 | Lighter Chain ID |
| recipient | Lighter Account Index (not a wallet address) |
Getting Your Lighter Account Index
To deposit to Lighter, you need to use your Lighter account index as therecipient parameter. You can retrieve this using the Lighter API’s accountsByL1Address endpoint:
YOUR_WALLET_ADDRESS with your Ethereum wallet address. The response will include your accountIndex, which you should use as the recipient in your quote request.
For more details, see the Lighter API documentation.
Example Quote Request
originChainId: 8453- Depositing from BasedestinationChainId: 3586256- Lighter chain IDrecipient: "509564"- Your Lighter account index (replace with your actual account index)