Is this token a honeypot? Token sell check API: simulated buy and sell with tax (Base, Ethereum)

Updated 2026-10-13

Use when an agent must know if an ERC-20 can be sold after buying, and its real buy and sell tax.

A honeypot is a token you can buy but not sell, or sell only after a tax that takes most of it. POST https://tanod.dev/v1/chain/token-honeypot tests that directly instead of guessing from the code: it simulates a buy, a transfer and a sell-back of the token through its deepest Uniswap V2, Uniswap V3 or Aerodrome pool and reports what happened. The simulation is a read-only eth_call with a state override. Nothing is deployed, no gas is spent and no wallet is used. To get one verdict that also covers the token's metadata and the contract's risk flags (mint, blacklist, fee setters, upgrade control), call POST https://tanod.dev/v1/chain/token-safety: it runs this simulation and the contract pre-check together, described below.

An example

curl -s -X POST https://tanod.dev/v1/chain/token-honeypot \
  -H "Content-Type: application/json" -H "X-Tanod-Free: 1" \
  -d '{"token": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed", "chain": "base"}'

{"chain": "base", "token": "0x4ed4...efed", "honeypot": false, "can_buy": true, "can_sell": true,
 "buy_tax_pct": 0.0, "sell_tax_pct": 0.0, "transfer_tax_pct": 0.0, "round_trip_loss_pct": 1.99,
 "venue": "uniswap_v3", "pool": "0x0cA6485b7e9cF814A3Fd09d81672B07323535b64", "quote_asset": "WETH",
 "liquidity_usd": 400732.35, "amount_usd": 100.0, "block": 52449625, "reason": null, "warnings": [],
 "venues_checked": [ ...the three deepest pools, each with its own result... ], "limits": "...", ...}

That is DEGEN on Base, simulated with USD 100 on 2026-10-11. round_trip_loss_pct is what the trip cost in total (pool fees of 1% each way here, price impact and any tax).

Taxes are measured, not read from code

The probe contract wraps ETH, buys the token through the venue router, sends 1% of what it received to a fresh address, approves the router and sells the rest. It then compares real balances: buy_tax_pct is the share of the tokens that left the pool but never arrived, sell_tax_pct is the share of the sold tokens that never reached the pool, and transfer_tax_pct is the loss on the plain transfer. Fee-on-transfer tokens therefore show their real tax. Two samples taken the same day on Ethereum: the original FLOKI token (0xcf0C122c6b73ff809C693DB761e7BaeBe62b6a2E) shows buy_tax_pct 0.3 on Uniswap V2, and Statera (0xa7DE087329BFcda5639247F96140f9DAbe3DeED1) shows 1.0 on buy, sell and transfer. A token whose sell is taxed at 90% or more is reported as a honeypot (reason: "sell_tax_extreme").

What you send

token (0x + 40 hex), optional chain (base default, or ethereum) and optional amount_usd (1 to 10000, default 100). The simulated size is never more than 5% of a pool's liquidity, so a small pool is tested with a small amount; the size actually used is amount_usd in the reply. A bad address, or an address with no contract code, is a 422 and is not charged.

What you get back

What it covers

ChainVenues triedQuote assets
BaseUniswap V2, Uniswap V3 (0.01, 0.05, 0.3, 1%), Aerodrome (volatile and stable)WETH, USDC
EthereumUniswap V2, Uniswap V3 (0.01, 0.05, 0.3, 1%)WETH, USDC

One verdict: token safety (POST /v1/chain/token-safety)

Body {"address": "0x...", "chain": "base"} (chain is base by default, or ethereum). One call, one charge of USD 0.008 (sharing the same free daily allowance as this route), returns the token's name, symbol, decimals and supply, this honeypot simulation, the contract risk flags of the contract pre-check and a verdict with the reasons behind it and a one-sentence summary. The rules are fixed:

Pause functions and a source that is not verified on Sourcify are listed in reasons as info and do not change the verdict. An address with no contract code is a 422 not_a_contract, a contract that does not answer like an ERC-20 is a 422 not_a_token, and a failing chain read or simulation is a 5xx; none of these is charged. A token with no pool is a normal answer with verdict unknown. The result is automated and heuristic, not an audit.

Honeypot or rug pull: checking a token before buying

A honeypot lets you buy and then stops you selling. The simulated sell above catches that now. A rug pull happens later: the team removes the liquidity, mints new tokens and sells them, or raises the tax. No snapshot can see the future, but POST /v1/chain/token-safety (USD 0.008) flags the levers that make one possible. It reports mint, blacklist and fee-setter functions (not counted when ownership is renounced), an upgrade key held by one address or an unknown party, and a pool under USD 1,000, next to the sell simulation and the measured taxes. A caution or high_risk verdict before buying is the cue to stop. no_major_flags_found is not proof of safety.

After the swap: the approval stays

A swap is one transaction, but the approval that allowed it stays until someone revokes it. Many wallets approve the router for an unlimited amount, and that permission lasts for months after the trade. POST /v1/chain/allowance (USD 0.002) reads how much a spender may still move: send chain (ethereum, base or robinhood), token, owner and spender. You get back the allowance in raw and decimal form, the token symbol and decimals, and unlimited: true when the allowance is 2255 or more. Run it after a trade to decide whether to reset the approval to zero. The ERC-20 allowance check guide covers the route in full.

curl -s https://tanod.dev/v1/chain/allowance -H 'content-type: application/json' \
  -d '{"chain":"base","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","owner":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","spender":"0x000000000022D473030F116dDEE9F6B43aC78BA3"}'

Limits: what a simulation cannot see

Use it from Claude without writing code: in claude.ai or Claude Desktop, add https://tanod.dev/mcp/security?via=token-honeypot-check-api as a custom connector (steps), then ask in plain words, for example "Can I sell this token after buying it, and what are its buy and sell taxes? Token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum." The free daily allowance is applied automatically over MCP. Beyond it a call needs an x402 payment, which these clients can make.

Related guides: Uniswap swap quote API, Ethereum RPC reads API. Updated 2026-10-13. All guides, or back to tanod.dev. Results are automated.