What Is a Honeypot Contract?

A honeypot contract is a malicious smart contract designed to lure investors into depositing cryptocurrency while secretly preventing them from ever withdrawing it. The trap is baked into the contract's code, invisible to anyone who doesn't audit it carefully. This article explains exactly how honeypot contracts work, the different variants used by scammers, real-world examples from the wild, the on-chain red flags that reveal them, and the tools and habits that can protect your portfolio before you hit "buy."

How a Honeypot Contract Works

A honeypot contract exploits the asymmetry between what a user *sees* and what the code *does*. At the surface level, the token or contract looks functional: the price chart moves, buys go through, and early wallets appear to be profiting. Beneath that surface, one or more coded conditions block any sell or withdrawal transaction from completing successfully.

The core mechanic is simple. The deployer writes a hidden condition into the contract logic that allows only specific wallet addresses (usually the deployer's own) to execute sell functions. Every other address either hits a revert, gets drained to fees, or receives zero tokens in return. Because the EVM (Ethereum Virtual Machine) and its equivalents on BNB Chain, Polygon, and other networks execute code exactly as written, the trap is perfectly consistent.

The Setup Phase

  1. Token deployment. The scammer deploys an ERC-20 or BEP-20 token with a backdoored `transfer` or `_beforeTokenTransfer` function.
  2. Liquidity seeding. A small amount of real liquidity is added to a DEX pair (Uniswap, PancakeSwap, etc.) to make the token tradeable.
  3. Price manipulation. The deployer or a network of shill wallets buys the token repeatedly, pushing the price up and generating visible chart activity.
  4. Social engineering. Telegram groups, Twitter/X posts, and sometimes paid promotions amplify the "opportunity." Screenshots of early profits circulate.
  5. Victim buys in. Attracted by the moving chart and community hype, a victim purchases the token. The buy succeeds because the honeypot only blocks *sells*.
  6. Exit. Once enough victim capital is inside, the deployer calls their whitelisted sell function, drains the liquidity, and disappears.

The Withdrawal Block: Technical Variants

Not every honeypot uses the same mechanism. Scammers cycle through techniques as the community learns to detect each one.

Modifier-based block. A custom modifier like `onlyOwner` or a boolean flag (`tradingEnabled = false`) is attached to the sell path but not the buy path. The deployer keeps the flag false for everyone except their own address.

Fee manipulation. The contract sets a `sellTax` variable at a reasonable level (e.g., 5%) during the buy phase. Once enough victims are inside, the owner calls a function that sets `sellTax` to 99% or 100%, making sells economically worthless.

Blacklist function. A `blacklist(address)` function is triggered on any address that attempts to sell, permanently blocking that wallet from future transactions.

Fake DEX router. The contract routes sell transactions through a custom router contract the deployer controls rather than the legitimate Uniswap/PancakeSwap router. The custom router silently reverts all non-whitelisted transactions.

Reentrancy trap (reversed). Classic reentrancy exploits drain contracts by re-entering them repeatedly. In a honeypot variation, the contract appears vulnerable to reentrancy (enticing auditors and bots to interact), but the "exploit" actually sends funds to the deployer rather than the caller.

---

Real-World Honeypot Examples

Squid Game Token (2021)

The most widely publicised honeypot of its era. A token branded around Netflix's Squid Game series launched in October 2021 and reached a price of approximately $2,800 per token. Buyers could not sell — the contract contained a whitelist-based sell restriction. The deployers pulled roughly $3.38 million in liquidity in minutes. The price dropped to near zero in seconds.

LUNA Classic Copycat Tokens (2022)

Following the TERRA/LUNA collapse, dozens of copycat "LUNA 2.0" tokens appeared on BNB Chain within hours. Several were honeypots that capitalised on retail panic-buying. The contracts used fee manipulation, ramping the sell tax to 100% after initial liquidity built up.

Dozens of "Stealth Launch" Tokens on Ethereum (Ongoing)

Dextools and Etherscan regularly flag newly deployed tokens as "honeypot detected." A 2023 analysis by blockchain security firm Solidus Labs identified over 188,000 tokens deployed on Ethereum alone that exhibited honeypot characteristics across a 30-month period.

---

Red Flags: How to Spot a Honeypot Before You Buy

Knowing the mechanics is useful. Having a checklist is better.

On-Chain Indicators

Social and Behavioural Indicators

---

Tools for Detecting Honeypot Contracts

A range of free and paid tools scan contracts before you commit funds.

ToolNetwork CoverageWhat It ChecksCost
**Honeypot.is**ETH, BSC, Polygon, Arbitrum, BaseSell simulation, buy/sell tax, blacklist functionsFree
**Token Sniffer**ETH, BSCContract similarity to known scams, audit flagsFree
**De.Fi Scanner**30+ chainsOwnership risks, mint functions, LP lock statusFree / Pro tier
**GoPlus Security API**20+ chainsComprehensive on-chain risk API, used by many walletsFree API
**Rugcheck.xyz**SolanaSolana-specific rug and honeypot detectionFree
**Tenderly**ETH + EVM chainsTransaction simulation before executionFree / Paid

How to use Honeypot.is in practice:

  1. Copy the token contract address from the project's official source.
  2. Paste it into honeypot.is and select the correct network.
  3. Review the simulated buy and sell result. A "HONEYPOT DETECTED" flag means the sell simulation failed.
  4. Check the buy tax and sell tax percentages — anything above 10% on either side warrants scrutiny.
  5. Review the ownership section for mint, pause, or blacklist capabilities.

No tool is infallible. Sophisticated scammers deploy contracts that pass automated simulations by allowing the first few sells before activating the block. Always cross-reference multiple tools.

---

How to Protect Yourself: A Practical Framework

Before Investing

Position Sizing

Even after due diligence, early-stage token investments carry meaningful risk. Allocating a small, fixed percentage of your overall portfolio to any single micro-cap limits the damage if a scam evades detection.

After Buying

---

Honeypot Contracts vs. Rug Pulls: What's the Difference?

These terms are often used interchangeably but they describe distinct exit mechanisms.

CharacteristicHoneypot ContractRug Pull
**Primary mechanism**Code prevents victims from sellingDeployer removes liquidity manually
**Victim funds**Trapped inside the token foreverDrained from the liquidity pool
**Timing**Trap is set at deploymentPull can happen any time
**Detection**Sell simulation toolsLP lock and holder analysis
**Recovery possibility**Near zero — funds are lockedNear zero — liquidity is gone
**Visibility**Appears to work normallyChart goes to zero suddenly

In practice, many scams combine both: the contract blocks retail sells while the deployer retains the ability to rug the liquidity pool at will. This maximises the amount stolen before detection.

---

Legal and Regulatory Context

Honeypot contracts occupy a legal grey zone in most jurisdictions. Deploying one is generally considered fraud under existing securities and wire-fraud statutes in the United States, and equivalent laws in the EU, UK, and Australia. However, enforcement is difficult because:

The UK's Financial Conduct Authority, the US SEC, and IOSCO have all published warnings about crypto smart contract fraud, but regulatory action against individual honeypot deployers remains rare. Victims are largely on their own.

This is one reason the broader crypto security community emphasises self-custody and pre-investment due diligence over relying on regulatory protection after the fact. Projects building in the space with genuine security focus, such as those incorporating post-quantum cryptography into wallet infrastructure, reflect the industry's shift toward proactive rather than reactive security thinking.

---

Summary

A honeypot contract is one of the most effective and common scams in decentralised finance precisely because it weaponises the trustless nature of blockchain execution. The code does exactly what it was written to do. The problem is that retail investors rarely read the code.

The defence is not complicated: verify contracts, simulate sells before buying, check LP locks, and keep position sizes rational. These habits, applied consistently, eliminate the vast majority of honeypot risk before a single dollar is committed.

Frequently Asked Questions

What is a honeypot contract in crypto?

A honeypot contract is a malicious smart contract that allows users to buy a token but secretly prevents them from ever selling it. The restriction is written into the contract code, often using hidden conditions, fee manipulation, or blacklist functions that block all wallets except the deployer's.

How can I tell if a token is a honeypot before buying?

Use a sell-simulation tool like Honeypot.is or Token Sniffer to test whether a sell transaction on the contract would succeed. Also check that the contract is verified and open-source, that liquidity is locked, and that the deployer has renounced or limited ownership functions.

Can I recover funds lost to a honeypot contract?

In almost all cases, no. The funds are locked by the contract logic, and without access to the deployer's private key, there is no way to override the restriction. This is why pre-investment checks are the only reliable protection.

Is a honeypot the same as a rug pull?

They are related but different. A honeypot traps victims inside the token via code that blocks sells. A rug pull typically involves the deployer manually removing liquidity from the trading pair. Many scams use both tactics simultaneously.

Are honeypot contracts illegal?

Deploying a honeypot contract is generally considered fraud under existing laws in the US, UK, EU, and other jurisdictions. However, enforcement is rare because deployers operate pseudonymously and can move across jurisdictions quickly.

Which blockchains are most affected by honeypot contracts?

BNB Chain (BSC) has historically had the highest volume of honeypot tokens due to its low deployment costs and high retail activity. Ethereum, Polygon, Arbitrum, Base, and Solana are also affected. Any chain that supports permissionless smart contract deployment is a potential target.