This script auto_sell.py
continously scans a solana wallet for new tokens. Upon detection, it will cache this token along with a few details (token_address
, balance
, detection_time
) in data\wallet_tokens.json
. When the token is older than a certain time duration it will sell the token.
- WALLET_ADDRESS - Wallet Address to be tracked (only one at a time)
- PRIVATE_KEY - Private Key for the wallet (to allow selling)
- SOLANA_RPC_URL - RPC URL / I used helius for development
- X_SECONDS - Amount in seconds between token detection and initiating the sell swap.
- Clone the repo by running:
git clone git@github.com:lorenzourera/solana-auto-sell-bot.git
- Create a virtual environment (
python -m venv venv
), activate it (source venv/bin/activate
) and install all dependencies found inrequirements.txt
(pip install -r requirements.txt
) - Create a new file in
data/
calledconfig.ini
. The contents of this file should be identical toconfig_template.ini
but with the values. - Run the script:
python auto_sell.py
For business inquiries or custom scripts reach me on telegram at zo125