# Creating a Lighter API Key

{% embed url="<https://youtu.be/Rd54tCKwd_I>" %}

#### Prerequisites

Before starting, ensure you have:

* A browser wallet (e.g., Rabby) set up.
* If you don't have a Lighter account yet, make sure your wallet has some ETH for gas and USDC to deposit, both on Ethereum mainnet.&#x20;

Pick your wallet of choice.&#x20;

<figure><img src="/files/VW1ljwHufxkupMvRz4lL" alt=""><figcaption></figcaption></figure>

If you don't have an account yet, create one and deposit USDC from Ethereum mainnet.&#x20;

<figure><img src="/files/jGuPGtIe7n8TxRvWYPO4" alt=""><figcaption></figcaption></figure>

Otherwise select the account you want to trade with:&#x20;

<figure><img src="/files/PlxG1hZeDvjp1FxKdtT8" alt=""><figcaption></figcaption></figure>

Sign to register your trading key and the builder fee in your wallet, give your account a name and you are ready to trade Lighter through Insilico Terminal.

<figure><img src="/files/TRdpEvbRZhc5acMltBur" alt=""><figcaption></figcaption></figure>

## Adding Lighter to the Terminal manually by using an API Key&#x20;

<figure><img src="/files/m9A8Cu1PJsgmz01BVBsY" alt=""><figcaption></figcaption></figure>

* **Generate API Key and Secret**:

  * Visit the [Lighter API ](https://app.lighter.xyz/apikeys)Page to create a new API Key.
  * Choose an unused **API Key Index** and authorize it.
  * **Private Key**: The API Private Key.
  * **Account Index:** Press the wallet icon in the top right and go to **Explorer.** Your account index will be displayed at the top.&#x20;

  <div><figure><img src="/files/XXZIt5kc0cNJULftxaRm" alt=""><figcaption></figcaption></figure> <figure><img src="/files/29qZXDvhb0Pwn3zEdjM3" alt=""><figcaption></figcaption></figure></div>
* **Manually Add API & Secret Key**:
  * Open the **Insilico Terminal** and navigate to the **Accounts** section.
  * Choose **Lighter** from the list of available exchanges.
  * Check the option to "Manually add API Key".

<figure><img src="/files/uyVQjMnJdVEN7vnJUDNr" alt=""><figcaption></figcaption></figure>

* **Connect**:
  * After entering the required details, click on the **Connect** button.
  * Ensure the connection is successful before proceeding with your trading activities.
* **Save the Configuration**:
  * Once connected, click on **Save** to store your settings.

{% hint style="info" %}
The builder fee on Lighter is 1bps.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.insilicoterminal.com/documentation/setup/creating-an-api-key/creating-a-lighter-api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
