← GitHub

GitHub·3 min read

Nathaliefremie/Drainer-Tool-Solana

Learn how a simple tool can monitor and empty multiple Solana wallets in real time.

The Drainer Tool scans Solana accounts and instantly transfers any SOL or SPL tokens it detects, acting as an automated sweeper. Its core claim is real‑time balance monitoring across any number of wallets. The repository currently shows 49 stars, indicating modest community interest.

The script is written in Python and uses Solana’s RPC endpoints to query account balances. When a non‑zero balance appears, it builds and signs a transaction that moves the funds to a pre‑configured destination address. The code loops over a list of source wallets, so a single run can handle many accounts without manual intervention.

Monitoring runs continuously; the tool polls each wallet at a short interval, checking both native SOL and any SPL token accounts attached to the address. If a token account holds a balance, the same sweep logic applies, using the token program’s transfer instruction. This design keeps the tool lightweight, no background services or external databases are required.

If you need to collect stray funds from test accounts or automate cleanup after a token sale, you can drop the script into a CI job or a cron task. Just supply the private keys of the source wallets and the address of the receiver, then let the tool handle the rest. It removes the need for manual balance checks and repetitive transaction building.

TakeawayA short Python script can continuously monitor and empty multiple Solana wallets with a single command.

Prodigy briefing — continue on the original for source material, discussion, and updates.

View repository ↗