What is a honeypot token?

Written by , Product docsLast updated

A honeypot token is a malicious smart contract that lets users buy the token but blocks them from selling — trapping their funds.

The mechanism varies. Common patterns:

  • The transfer function reverts when the sender is anyone other than the deployer
  • The sell tax is set to a value approaching 100%, making the swap economically pointless
  • The token uses a whitelist that only includes the deployer's addresses
  • A pause flag freezes transfers selectively

The user sees the tokens in their wallet, watches the price chart go up, and only realizes the trap when they try to exit.


Why agents must detect them

An AI agent that recommends token buys without a honeypot check creates avoidable risk. Dedicated token-security checks help the agent verify sellability, tax behavior, owner controls, and pause flags before it suggests a swap.

Hive exposes honeypot detection as a first-class MCP tool — get_token_security — that runs the GoPlus check and returns a structured response. The agent reads the is_honeypot flag before suggesting any swap, then uses the tax and ownership fields to decide whether the token still needs a warning.


What to do with the result

If is_honeypot is true, the agent should stop the trade flow and explain that the token cannot be sold safely. If the flag is false but sell tax, ownership, or pause controls look dangerous, the agent should still warn the user instead of treating the token as clean.