Skip to content

AL-THE-BOT-FATHER/launch_lab_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

launch_lab_py

Python library to trade on Raydium Launch Lab (letsbonk.fun, cook.meme, etc).

NOTE: THIS REPO ONLY SUPPORTS CONSTANT PRODUCT CURVES - NOT FIXED OR LINEAR.

https://raydium.io/launchpad/

pip install solana==0.36.1 solders==0.23.0

Instructions

Clone the repo, and add your Private Key (Base58 string) and RPC to the config.py.

If you can - please support my work and donate to: 3pPK76GL5ChVFBHND54UfBMtg36Bsh1mzbQPTbcK89PD

Contact

My services are for hire. Contact me if you need help integrating the code into your own project.

Telegram: https://t.me/AL_THE_BOT_FATHER

Group Telegram: https://t.me/Bot_Mafia_Support

FAQS

What format should my private key be in?

The private key should be in the base58 string format, not bytes.

Why are my transactions being dropped?

You get what you pay for. Don't use the main-net RPC, just spend the money for Helius or Quick Node.

How do I change the fee?

Modify the UNIT_BUDGET and UNIT_PRICE in the config.py.

Does this code work on devnet?

No.

Example

from launch_lab import buy
from pool_utils import get_pool_pda

mint_str = "launch_lab_address"
sol_in = .01
slippage = 5
pool_str = get_pool_pda(mint_str)
if pool_str:
    buy(pool_str, sol_in, slippage)
else:
    print("No pool account found...")

from launch_lab import sell
from pool_utils import get_pool_pda

mint_str = "launch_lab_address"
percentage = 100
slippage = 5
pool_str = get_pool_pda(mint_str)
if pool_str:
    sell(pool_str, percentage, slippage)
else:
    print("No pool account found...")

Releases

No releases published

Packages

No packages published

Languages