Detect honeypots, rug pulls & scam tokens on Ethereum β powered by GoPlus Security API + Etherscan V2 + Web3.py with Telegram alerts.
Token sniffing is the process of analyzing an ERC-20 smart contract for malicious patterns before buying β helping traders avoid losing funds to honeypots, rug pulls, and scam tokens.
This bot analyzes tokens using:
- π‘οΈ GoPlus Security API β industry standard token security database
- π Etherscan V2 β contract verification & on-chain data
- βοΈ Web3.py β direct Ethereum node interaction via Infura
- π― Honeypot Detection β check if token can actually be sold
- πΈ Tax Analysis β buy/sell tax percentage check
- π€ Ownership Risk β owner & creator holding percentage
- π LP Lock Check β liquidity pool lock verification
- π Contract Verification β source code verified on Etherscan
- β Safety Score β 0β100 score with SAFE / RISKY / DANGER label
- π€ Telegram Bot β
/sniffand/quickcommands - π Watchlist β monitor multiple tokens at once
pip install web3 requestsOpen token_sniffer.py and configure:
ETHERSCAN_API_KEY = "your_etherscan_key"
INFURA_URL = "https://mainnet.infura.io/v3/your_infura_key"
TELEGRAM_TOKEN = "your_telegram_bot_token"
TELEGRAM_CHAT_ID = "your_chat_id"python token_sniffer.pypython token_sniffer.py check 0xA0b86991c6218b36c1d19d4a2e9Eb0cE3606eB48| Command | Description |
|---|---|
/sniff <address> |
Full token safety analysis (~15s) |
/quick <address> |
Quick honeypot check (~5s) |
/watch <address> |
Add token to watchlist |
/watchlist |
View monitored tokens |
/unwatch <address> |
Remove from watchlist |
π’ TOKEN SAFETY REPORT
ββββββββββββββββββββββ
π·οΈ USD Coin ($USDC)
π 0xA0b86991...606eB48
β Safety Score: 95/100 β SAFE β
π Key Metrics:
- Honeypot : NO β
- Buy Tax : 0.0%
- Sell Tax : 0.0%
- Owner Hold : 0.0%
- Holders : 2,100,000+
- LP Locked : YES β
- Verified : YES β
| Score | Label | Meaning |
|---|---|---|
| 80 β 100 | β SAFE | Low risk, looks legitimate |
| 50 β 79 | Proceed with caution | |
| 0 β 49 | π¨ DANGER | High risk, likely scam |
Score deductions:
| Issue | Deduction |
|---|---|
| Honeypot detected | -50 |
| Hidden owner | -25 |
| Self-destruct function | -30 |
| High sell tax (>10%) | -20 |
| Liquidity not locked | -15 |
| High buy tax (>10%) | -15 |
| Contract unverified | -10 |
| Owner can take back ownership | -10 |
| High owner/creator holding | -10 |
| External call risk | -5 |
token_sniffer.py
βββ GoPlusClient β GoPlus Security API integration
β βββ check_token() β full token security data
β βββ check_honeypot() β honeypot detection only
βββ EtherscanClient β Etherscan V2 API integration
β βββ get_token_info() β token name, symbol, supply
β βββ get_contract_info() β source code verification
β βββ get_token_holders() β holder count
β βββ get_token_transfers() β recent transfer activity
βββ TokenAnalyzer β Core safety engine
β βββ analyze() β full safety analysis + scoring
β βββ quick_check() β fast honeypot check only
βββ TokenSnifferBot β Telegram bot with 5 commands
| Source | Usage |
|---|---|
| GoPlus Security API | Primary β honeypot, tax, ownership, LP data |
| Etherscan V2 | Contract verification, token info |
| Infura | Ethereum RPC node |
GoPlus free tier supports up to 10,000 requests/day.
| Risk Level | Description |
|---|---|
| π’ SAFE | Score 80β100, passed all major checks |
| π‘ RISKY | Score 50β79, has warnings β trade carefully |
| π΄ DANGER | Score 0β49, critical issues detected β avoid |
This tool is for informational purposes only. Always do your own research before buying any token.
web3>=6.0.0
requests>=2.28.0
Rizal β @rizalcodes
Building Web3 tools with Python πβοΈ
MIT License β free to use, modify, and distribute.