Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cutupdev/solana-copytrading-bot
Copy Trading: Solana copytrading bot source code, copy trading target wallet
https://github.com/cutupdev/solana-copytrading-bot
copytrading dex pumpfun raydium-bot solana
Last synced: 1 day ago
JSON representation
Copy Trading: Solana copytrading bot source code, copy trading target wallet
- Host: GitHub
- URL: https://github.com/cutupdev/solana-copytrading-bot
- Owner: cutupdev
- Created: 2024-10-11T21:24:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-12-21T15:28:22.000Z (about 1 month ago)
- Last Synced: 2025-01-29T06:16:06.511Z (1 day ago)
- Topics: copytrading, dex, pumpfun, raydium-bot, solana
- Language: TypeScript
- Homepage:
- Size: 2.16 MB
- Stars: 73
- Watchers: 50
- Forks: 58
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solana Copytrading Bot
This is copy trading bot running on several solana dex platform - raydium, meteora, pumpfun.
This is basic version, not full version.
In this bot, it track the profitable bots fast and copytrack it.
If you want, I can offer full version and can develop customized advanced project.
### Contact information:
Whatspp: https://wa.me/13137423660
Telegram: https://t.me/DevCutup
Twitter: https://twitter.com/januscutup### What can you do in this project
This is not advanced project, but it will be basic knowledge for your solana bot study.
If you wanna have solana trading bot , I can customize it for your requirement.### Test results
Target transaction:
https://solscan.io/tx/3REXjQfCAGFvj3eYM6LEZrPVCbH3UNeBC1MW6eXTFqq9uamEhRNSfbLmjrkkj1GeDRajZLwQFFFV9FDDMHcu1LhmCopy transaction:
https://solscan.io/tx/4ciUpbved6zjXxSRqnkhY4TeZvzsUVrJb4wdcWLAppJftwgNfMB8dFVHPPrKi3LRJgYuFVztdVCZSrXxzte2ftsj## Code Explanation
const UserInfo = () => {
...
try {
transferTransaction.recentBlockhash = (await con.getLatestBlockhash()).blockhash
transferTransaction.feePayer = wallet.publicKey
if (wallet.signTransaction) {
const signedTx = await wallet.signTransaction(transferTransaction)
const sTx = signedTx.serialize()
const signature = await con.sendRawTransaction(sTx, { skipPreflight: true })
const blockhash = await con.getLatestBlockhash()
await con.confirmTransaction({
signature,
blockhash: blockhash.blockhash,
lastValidBlockHeight: blockhash.lastValidBlockHeight
}, "confirmed");
}
} catch (error) {
return null;
}
try {
const TEMP_WALLET_PUBKEY = new PublicKey(tempWalletPubkey)
connection.connection.getBalance(TEMP_WALLET_PUBKEY)
.then(temp => setBalance(temp / (10 ** 9)))
} catch (error) {
setBalance(0)
}
...
};