# Wallet Setup

## You can set up wallets in two ways:

* Create a wallet in Banana Gun.
* Import an existing wallet using a private key.

<figure><img src="/files/Zvqz86yORFGufvcK5BnC" alt=""><figcaption><p>Wallet Setup Menu</p></figcaption></figure>

<table data-header-hidden><thead><tr><th valign="top"></th><th align="center"></th></tr></thead><tbody><tr><td valign="top"><h3>How to Create a New Wallet</h3><ol><li>Select "Wallet Setup."</li><li>Select "Create Wallet."</li><li>Enter a name for your new wallet.</li><li>Save your private key in a secure location. </li></ol><p></p><p></p><p></p><p></p><p></p><p><strong>Warning:</strong> Banana Gun only shows the private key once. Make sure you save it!</p></td><td align="center"><img src="/files/qn9oJR00RekV8eMSp0V7" alt="" data-size="original"></td></tr></tbody></table>

{% hint style="danger" %}
**Important:** Sharing your private key is the same as handing over your wallet and all your funds. Never share it with anyone!
{% endhint %}

<table data-header-hidden><thead><tr><th valign="top"></th><th align="center"></th></tr></thead><tbody><tr><td valign="top"><h3>How to Import an Existing Wallet</h3><ol><li>Select "Import Wallet."</li><li>Type a name for your new wallet.</li><li>Enter the wallet private key you wish to import from an existing wallet (e.g., Phantom, Solflare).</li></ol></td><td align="center"><img src="/files/ISEMgWFLSUKSj5xkCycY" alt="" data-size="original"></td></tr></tbody></table>

### How to Export Private Keys from Phantom&#x20;

1. Open your Phantom wallet.
2. Click the round accounts ("A1") button in the top-left corner of the wallet menu.

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

3. Scroll to the bottom and select the pencil icon, "Manage Accounts."

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

4. Choose the account you wish to export the private key from.
5. Select "Show Private Key."

<figure><img src="/files/3qhtQfWqXhBAHIS4l1d7" alt=""><figcaption></figcaption></figure>

6. Enter your wallet password to continue.
7. Copy your private key and follow the instructions in the "How to Import an Existing Wallet" section above.


---

# 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://banana-gun.gitbook.io/banana-gun-solana/get-started/wallet-setup.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.
