Skip to main content
Relay supports depositing and withdrawing to Lighter from any supported chain. You can try depositing today using the Relay App (note: withdrawing is not yet supported in the app). This document details how to integrate Lighter into your application.

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 or withdrawals, refer to the Get Quote API endpoint.
If you’re integrating via the SDK, the Lighter wallet adapter wraps this flow — it resolves the user’s Lighter account index, manages the API key lifecycle, and submits the L2 transfer on your behalf.

Lighter-specific API Parameters

These parameters are specific to Lighter interactions. All other standard API parameters remain required.
The recipient parameter must be your Lighter account index, not your wallet address. See below for how to retrieve your account index.

Getting Your Lighter Account Index

To deposit to Lighter, you need to use your Lighter account index as the recipient parameter. You can retrieve this using the Lighter API’s accountsByL1Address endpoint:
Replace 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.

How to deposit

In this example:
  • originChainId: 8453 - Depositing from Base
  • destinationChainId: 3586256 - Lighter chain ID
  • recipient: "509564" - Your Lighter account index (replace with your actual account index)
The response will include the execution steps required to complete the deposit. Follow the standard step execution flow to complete the transaction.

How to withdraw

The Quote API returns a transaction step with Lighter-specific execution data:
The fields returned inside data.action are: In order to interact with the Lighter API you must first request a Lighter API key which is scoped to the specific account. You’ll then need to use the data returned by the Relay Quote API along with the API key from Lighter to send transactions. There is a binary used for signing which the SDK packages and lazily loads for you.

SDK

To use the SDK with Lighter, install and configure the Lighter wallet adapter.
If you want the adapter to run its own bootstrap (fresh keygen, accountApiKey, or storage paths), you also need the Lighter SDK:
For implementation details and code samples, see the Adapters documentation.