> For the complete documentation index, see [llms.txt](https://banana-gun.gitbook.io/banana-gun-solana/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://banana-gun.gitbook.io/banana-gun-solana/trading/buy-tokens.md).

# Buy Tokens

<table data-header-hidden data-full-width="false"><thead><tr><th valign="top"></th><th align="center" valign="middle"></th></tr></thead><tbody><tr><td valign="top"><ol><li>Paste the token's contract address or URL (e.g., Birdeye) to open the buy menu.</li><li>Click the "Buy" button with the amount you want to purchase (preset or custom SOL amount).</li><li>Wait for the "Buy Success" message.</li></ol><p></p><p></p><p></p><p></p><p></p><p><strong>Buying USDC Pairs</strong></p><ol><li>Type <code>usdc</code> in the bot.</li><li>Buy the amount of USDC you want with SOL.</li><li>Paste the contract address of the token you want to buy.</li><li>Click the "Buy" button to select the amount you want to purchase.</li></ol></td><td align="center" valign="middle"><img src="/files/B9IwlBuVEjYAlbFykNOM" alt="" data-size="original"></td></tr></tbody></table>

{% hint style="info" %}
Once the transaction is complete, the token will be pinned above. View your active trade in the "Positions" menu by selecting "Positions" in the buy menu or by typing `/positions`.
{% endhint %}

<details>

<summary>Troubleshooting Failed Transactions</summary>

* Increase buy gas amount (e.g., from 0.001 to 0.005 or higher).
* Increase MEV tip (e.g., from 0.001 to 0.005 or higher).
* For volatile tokens, increase slippage (e.g., from 5% to 10–30%).

</details>

### Buy Menu

This menu appears after pasting a contract address or link into the Banana Gun Bot text box. It shows token information and buy settings.&#x20;

{% tabs %}
{% tab title="Token Info" %}

<figure><img src="/files/JLWIwoZnr5mcuHozomBF" alt=""><figcaption><p>Buy Menu Token Information</p></figcaption></figure>

1. **Token:** Full token name.
2. **Token Contract:** Token contract address (CA).
3. **DEX:** Where the token is traded.
4. **Market Cap:** Total value of all tokens in circulation.
5. **Liquidity:** The total value of assets in the token's liquidity pool, displayed in SOL.
6. **Price:** Current token price (USD).
7. **Tax:** The contract's buy tax at the time of pasting the contract.&#x20;
8. **Recommended Tip:** Recommended tip amount for successful transactions.
9. **Balance:** Your SOL balance.
10. **Links:** Quick access to Solscan, Birdeye, Dexscreener, Dextools, and Defined.&#x20;
    {% endtab %}

{% tab title="Buy Settings" %}
{% hint style="info" %}
Buy settings apply only to the token you're currently trading. To adjust default buy settings (e.g., "Buy" button SOL amounts), go to the [Preset Settings](/banana-gun-solana/trading/settings/preset-settings.md).
{% endhint %}

<figure><img src="/files/ZxjxGtgPdRujgQTdVboX" alt=""><figcaption><p>Buy Menu Buttons and Settings</p></figcaption></figure>

{% hint style="info" %}
Enter new values or select red or green to enable or disable settings. Review the descriptions below to understand each setting.
{% endhint %}

1. **Wallet Change:** Choose the wallet(s) for your trades. You can use multiple wallets at once. If none are selected, your default wallet will be used.
2. **Buy Gas:** The gas you're willing to pay for buy orders. If unchanged, the default gas setting will be used.
3. **Auto Gas:** Automatically sets gas fees based on current network conditions. Choose "Medium" (green) or "Fast" (red).
4. **Anti-MEV:** Turns on or off protection against MEV (sandwich) attacks. Turning it on (green) prevents these attacks but might make transactions slower.
   1. **Anti-MEV + Public:** Protects trades from MEV (sandwich) attacks while keeping them visible on the blockchain. Increases security but may slightly slow transaction speed.
5. **Mev Tip:** Set a tip to prioritize your transaction when Anti-MEV is on. This tip is added to your Buy Gas. If unchanged, your default tip setting will be used.
6. **Click to Refresh:** Updates the token information (price, market cap).
7. **Buy Buttons:** Shows preset buy SOL amounts. Click "Buy X SOL" to enter a custom buy amount. Default button SOL amounts can be adjusted in the [Preset Settings](/banana-gun-solana/trading/settings/preset-settings.md) menu.&#x20;
8. **Slippage:** Set the maximum price change (0–99%) you'll accept. 100% means unlimited slippage.
9. **Price Impact Limit:** The maximum percentage the token price can change because of your order.
10. **Positions:** Shows your active trades.
11. **Setup Buy Limit Order:** Place buy orders that will execute only when the price reaches your target.
12. **Switch to Sell:** Switches to the [sell menu](/banana-gun-solana/trading/sell-tokens.md) for the selected token.
    {% endtab %}

{% tab title="How  to Change Settings" %}

<figure><img src="/files/QLJzeJpzkGJUaryg2GXu" alt="" width="344"><figcaption><p>Buy Settings</p></figcaption></figure>

1. Paste a contract address or link to open the buy menu.
2. Select the preset you want to change.
3. Enter a new value in the text box or or toggle a button.
4. Your preset will update, and the new value will appear (e.g., Slippage changed from 5% to 10%, Buy Gas from 0.001 to 0.002).
   {% endtab %}
   {% endtabs %}
