modulepackage
0.0.0-20241120235331-e05e372386cc
Repository: https://github.com/computer217/solanabotv2.git
Documentation: pkg.go.dev
# README
This code builds and sends a buy transtation to the pump.fun contract.
Parameters:
- --helius-rpc-api-key="" // REQUIRED(string): helius rpc key or solana free rpc endpoint
- --helius-websocket-api-key="" // REQUIRED(string): helius websocket key or solana free websocket endpoint
- --wallet-path="" // REQUIRED(string): relative path to wallet private key in JSON format
- --Solana-amount="" // REQUIRED(string): Solana amount to be used for buying token
- --test="" // OPTIONAL(bool): test denotes whether the transaction is sent to the mainnet or simulated.
Example call:
go run all --helius-rpc-api-key="https://api.mainnet-beta.solana.com" --helius-websocket-api-key="ws://api.mainnet-beta.solana.com" --wallet-path="./path/to/wallet/private/key/wallet.json" --solana-amount=0.001 --test=true
General Logic:
- subscribe tp the pump.fun mint contract
- parse mint events to pump.fun
- Extract mint data
- Build pump.fun buy transaction
- Send pump.fun buy transaction
NOTE: This bot continously buys the amount speciffied in the flag --solana-amount for each mint created in pump.fun. To stop buying, you must kill the program.
Please file bugs for any desired added features!
To support my dev work:
- Sol Addr: 9hTDxXAsHsJtVfhZJsfzprv74VPYpVxxRmvV1jUgToEp
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author