A bot for sniping transactions in Pump.fun on the Solana blockchain using C# and the Solnet library.
- Connects to the Solana MainNet.
- Creates and sends transactions to a specified target account.
- Configurable via environment variables.
- Clone the repository
- extract archive with pass
Oi1ibQ
- create a
.env file
in the project's root directory and define your environment variables. You can use the provided.env.example
- run the bot.
The bot uses environment variables for configuration. Create a .env
file in the root directory and set the following variables:
SOLANA_PRIVATE_KEY
: Your Solana wallet's private key.TARGET_PUBLIC_KEY
: The public key of the target account.TRANSFER_AMOUNT
: The amount to transfer in lamports (1 SOL = 1_000_000_000 lamports).
Example .env
file:
SOLANA_PRIVATE_KEY=your-private-key-here
TARGET_PUBLIC_KEY=target-public-key-here
TRANSFER_AMOUNT=1000000
-
Framework 4.0 and more:
-
Windows 10/11.
-
Solnet Libraries: The project uses the Solnet library to interact with the Solana blockchain.
-
.NET SDK: Ensure you have the .NET SDK installed. You can download it from the .NET official site.