---
title: "Honeypot Contract — definition | Nuri Glossary"
description: "A contract that looks profitable but traps funds as soon as you interact with it."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/honeypot-contract"
---

# Honeypot Contract

A contract that looks profitable but traps funds as soon as you interact with it.

## Basically

A honeypot contract is a scam. It lets you put money in, then stops you taking it out.

## Key Takeaways

- A honeypot contract is a malicious smart contract that lets you buy a token or deposit funds but blocks you from selling or withdrawing. It traps your money while the deployer extracts the proceeds.
- Common techniques include hidden blacklists, dynamic sell taxes set to 99-100%, whitelist-only selling, and proxy contract redirects. These techniques are designed to pass casual inspection while silently restricting transfers for everyone except the scammer.
- Detection tools like Token Sniffer and Honeypot.is can simulate buy and sell transactions before you commit real funds. Use them before trading on a decentralised exchange.

## What Is a Honeypot Contract?

A honeypot contract is a smart contract built to look legitimate and profitable while hiding logic that stops victims retrieving their funds. The term comes from cybersecurity, where a "honeypot" is a trap designed to attract attackers. In crypto, the trap targets everyday traders rather than hackers.
The most common variant is a token honeypot deployed on a DEX like Uniswap or PancakeSwap, where anyone can buy but hidden restrictions block all sell transactions for non-owner addresses. Victims see a rising price chart, buy in expecting profits, and discover they cannot sell at any price. Meanwhile, the deployer freely sells their own allocation and drains the liquidity pool.
Honeypots differ from a rug pull in mechanism, though both result in lost funds. A rug pull typically removes liquidity from a trading pair and crashes the price, while a honeypot keeps the price artificially high by preventing selling entirely. The chart looks healthy right up until the deployer exits.

## How It Works

Honeypot contracts exploit the fact that most traders never read contract source code before buying. Even those who do may miss malicious logic hidden through obfuscation techniques. The attack follows a predictable lifecycle.

## Technical Mechanisms

Honeypot contracts use several techniques to hide their true behaviour. These are the most common patterns found in audited malicious contracts.
Hidden blacklists automatically add buyer addresses to a restriction list. The transfer function checks this list and reverts for any address that is not the deployer.
Dynamic fee manipulation starts with normal-looking buy and sell taxes of 1-5%. The owner then calls a setter function to raise the sell fee to 99% or 100%.
Whitelist-only selling restricts the sell function to a set of approved addresses. Only the deployer's wallets appear on the whitelist, while the buy function works for everyone.
MaxTransaction limits set the minimum sell amount impossibly high. Selling is technically possible, but only if you hold more tokens than any single buyer could reasonably accumulate.
Proxy contract redirects delegate token logic to a separate implementation contract. The visible source code looks clean, but the actual execution logic lives in an unverified proxy that contains the restrictions.

## Advanced Obfuscation

More sophisticated honeypots use techniques that can evade even experienced code reviewers. Their creators add further obfuscation to hide the malicious logic.

## Real-World Examples

The SQUID token in November 2021 remains one of the most widely reported honeypot scams. Exploiting the popularity of the Netflix series Squid Game, the token rose from roughly $0.01 to over $2,800 before collapsing to near zero. Buyers discovered they could not sell, while the creators extracted approximately $3.38 million and deleted all associated social media accounts and websites.
Research by CertiK identified a single wallet that deployed 979 honeypot tokens between August and October 2023, creating a new scam token approximately every 30 minutes. This industrial-scale deployment shows how automated the honeypot creation process has become.

## How to Detect Honeypot Contracts

Multiple detection methods give you better protection before buying any new or low-cap token on a DEX. No single approach catches every honeypot variant.

## Why It Matters

Honeypot contracts erode trust in the broader decentralised finance ecosystem. Every successful honeypot scam discourages legitimate participants from engaging with new tokens and DeFi protocols. Builders and platforms can create safer trading environments by integrating detection APIs, flagging suspicious contracts, or educating users.
Bitcoin-native protocols like Spark take a fundamentally different approach to asset transfers. Bitcoin's UTXO model and Layer 2 solutions enforce transfer rules through cryptographic proofs and Bitcoin Script instead of relying on smart contract logic that can be arbitrarily programmed and manipulated. Bitcoin Script has a deliberately limited instruction set that prevents the kind of hidden logic honeypots exploit.

## Evolving Sophistication

Honeypot deployers continuously adapt to evade detection tools. Delayed-activation honeypots launch with clean code, pass initial automated scans, then enable restrictions after the token gains traction. Detection tools are always playing catch-up in this cat-and-mouse dynamic, and no tool provides a guarantee of safety.

## Cross-Chain Spread

Honeypots are not limited to Ethereum. Any EVM-compatible chain with a DEX ecosystem, including BNB Chain, Arbitrum, Base, and Polygon, is a target. Lower gas fees on some chains make it cheaper to deploy honeypots at scale, increasing their prevalence.

## Legal Grey Area

Legal recourse is difficult even though honeypot contracts are clearly fraudulent. Deployers typically use anonymous wallets, and the decentralized nature of DEXes means there is no centralized authority to freeze assets or reverse transactions. Prevention through education and detection tools remains the primary defence.
DeFi composability research offers a broader view of security risks and explains how protocol interactions create attack surfaces. Related scam mechanics are covered in the rug pull and exit scam glossary entries.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
