Honeypot

Security Updated Apr 2026

What is a Honeypot?

A honeypot is a malicious smart contract disguised as a legitimate investment opportunity — usually a new token on a DEX. The trap: you can buy the token but you cannot sell it. Your funds are locked forever.

The name comes from cybersecurity, where a “honeypot” is a decoy system designed to attract and trap attackers. In crypto, the honeypot traps regular investors.

How a Honeypot Works

1. Attacker creates a new token contract with a hidden function
2. Attacker adds liquidity to a DEX pool (makes it tradeable)
3. Users buy the token — this works fine
4. Users try to sell — the contract reverts the transaction
5. Attacker removes the liquidity ( rugs the pool)
6. Users are left with worthless, unsellable tokens

The Hidden Code

The contract’s transfer() or sell() function contains a condition like:

function transfer(address to, uint256 amount) public {
    require(msg.sender == owner, "Not authorized");
    // Only the owner can sell — everyone else is trapped
}

Or more subtly:

function _transfer(address from, address to, uint256 amount) internal {
    if (to == DEX_PAIR_ADDRESS) {
        revert(); // Can't sell back to the DEX
    }
    // Normal transfers between users still work
}

The second pattern is sneakier — you can transfer tokens between your own wallets (making the token look functional) but you can never sell on a DEX.

Red Flags of a Honeypot

Red FlagWhy It Matters
No code auditNo independent verification of safety
Contract not verifiedSource code hidden — can’t inspect for traps
Can buy but nobody seems to sellCheck etherscan — if all sells fail, it’s a honeypot
Extremely high “token price”Artificial price with no real exit liquidity
Token promoted in Telegram/DiscordSocial pressure + urgency tactics
Very new contract with sudden volumeOften the setup phase before the rug

How to Check for Honeypots

1. Use Honeypot Checkers

ToolURLHow It Works
Token Sniffertokensniffer.comAutomated contract analysis + trust score
Honeypot.ishoneypot.isSimulates buy + sell transaction
GoPlus Securitygopluslabs.comAPI-based token security data
DexScreenerdexscreener.comShows security warnings on token pages
RugCheckrugcheck.xyzAnalyzes token + liquidity for red flags

2. Check on Etherscan

  1. Find the token contract on Etherscan
  2. Verify the contract is open source (verified ✓)
  3. Read the transfer() function — look for unusual require() or revert() conditions
  4. Check if there’s a maxTxAmount, maxWalletAmount, or tradingEnabled flag
  5. Check transaction history — are there successful sell transactions?

3. Check Liquidity

  • Is the liquidity locked? Use Unicorn Ultra (UNCX) or PinkSale to verify.
  • Is the liquidity sufficient relative to market cap?
  • If liquidity = $10k and market cap = $2M, even without a honeypot you can’t exit.

Honeypot vs Rug Pull

AspectHoneypotRug Pull
MechanismContract blocks sellsLiquidity is removed
When it happensFrom the start (designed to trap)After building trust
Token remainsYes (unsellable)Yes (worthless, but tradeable)
DetectionSimulate sell transactionCheck if liquidity is locked

A honeypot is often combined with a rug pull: the attacker traps buyers AND removes liquidity.

Frequently Asked Questions

Q: Can I recover funds from a honeypot? A: Almost never. The contract is designed to prevent exactly that. Some white-hat hackers can exploit bugs in the honeypot contract itself, but this is rare.

Q: Are honeypots illegal? A: Creating a honeypot is fraud. But in DeFi, there’s no authority to prosecute. The contract creator is often anonymous.

Q: Do honeypots happen on centralized exchanges? A: No. CEXes list tokens after review. Honeypots only exist on permissionless DEXes like Uniswap where anyone can create a token.

Q: What’s the difference between a honeypot and a sell tax? A: A legitimate sell tax (e.g., 5%) reduces your output but still allows selling. A honeypot blocks selling entirely. Some honeypots disguise themselves with a “99% sell tax” that’s effectively the same as blocking.