> For the complete documentation index, see [llms.txt](https://docs.slerf.tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.slerf.tools/en/bundled-section/liquidity-create-and-buy-token-solana.md).

# Solana Liquidity Creation and Buying Guide

{% hint style="success" %}
While creating a liquidity pool, simultaneously perform token purchases to effectively simplify the trading process and accelerate market participation. This allows you to get a head start and potentially earn returns earlier.
{% endhint %}

**How to use Solana to create a liquidity pool and buy tools (Raydium V2):**

1. Connect your wallet.
2. Select the trading pair for which you want to create a liquidity pool.
3. Retrieve the OpenBook market ID of the selected trading pair.
4. Enter the amount of tokens to be added to the liquidity pool.
5. Configure the buying parameters: choose to buy using the current wallet or import a wallet.
6. Set the amount to buy at the opening, aiming for 100% earliest purchase.
7. Submit the transaction on-chain to complete the creation of the liquidity pool and the simultaneous purchase.

**Preparation:**

1. A computer or a mobile phone
2. Solana wallet (Phantom Wallet installation guide)
3. Prepare at least 0.5 SOL in the wallet (Raydium will charge 0.4 SOL)
4. Tokens to be added to the liquidity pool and the OpenBook market ID
5. Private key of the address for buying and some SOL

**Specific Steps:**

1. Connect your wallet.
2. Select the trading pair for which you want to create a liquidity pool.
3. Retrieve the OpenBook market ID of the selected trading pair.
4. Enter the amount of tokens to be added to the liquidity pool.

The detailed steps for creating a liquidity pool can be referred to above. [Solana Liquidity Pool Creation Guide](/en/liquidity-management/liquidity-creator-solana.md)

5. **Set the buying parameters, supporting purchases using the current wallet or an imported wallet.**&#x20;

When buying with the current wallet, simply enter the purchase amount.

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

* Import wallet for purchase:&#x20;

To ensure a 100% successful bundled purchase, up to 3 addresses can be imported for bundled buying.&#x20;

There are 3 wallet address input fields by default; if only 1 or 2 addresses are needed for the purchase, delete the extra address input fields.

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

5. Advanced options (optional) to increase on-chain speed and success rate.

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

5. Submit on-chain to complete the creation of the liquidity pool and simultaneous purchase.&#x20;

The creation of the liquidity pool and the purchase are bundled together. If the liquidity pool creation fails, the purchase will not succeed; similarly, if the purchase fails, the liquidity pool creation will also fail. Therefore, if it fails, you can try multiple times, which will only consume a small amount of GAS fees.

{% hint style="warning" %}
This feature relies on Jito's bundling functionality. Due to the complex influences of the network environment, Jito nodes, RPC nodes, and block processing engines, this feature may face a high failure rate. If the operation fails, no fees will be incurred. Please try changing the RPC node, block processing engine, increasing Jito's tip, and consider attempting again during periods of lower on-chain activity.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.slerf.tools/en/bundled-section/liquidity-create-and-buy-token-solana.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
