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
honeypot:true(bought, but the sell reverted or took 90% or more),false(a full round trip worked on at least one pool) or"unknown"."unknown"withreason: "no_pool"means no Uniswap V2, V3 or Aerodrome pool of at least USD 20 against WETH or USDC. That is a valid, charged answer: the token may trade elsewhere. A token that cannot be bought on any pool is also"unknown"(buy_reverted), because the sell side could not be tested.- When a step reverts,
revertholds the step (buy, approve, sell) and the decoded message: anError(string)text, a panic code, or the selector of a custom error. The text comes from the token's contract, so it is untrusted: it is cleaned and cut to 120 characters. venue,pool,quote_asset(WETH or USDC),liquidity_usd(about twice the quote asset held by the pool),block,warnings(high tax, blocked plain transfer, thin liquidity, a sell that failed on another pool) andvenues_checkedfor up to three pools.
What it covers
| Chain | Venues tried | Quote assets |
|---|---|---|
| Base | Uniswap V2, Uniswap V3 (0.01, 0.05, 0.3, 1%), Aerodrome (volatile and stable) | WETH, USDC |
| Ethereum | Uniswap 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:
high_risk: the simulated sell fails or takes 90% or more of the tokens; a measured buy or sell tax of 50% or more; or a proxy that points to an address with no code.caution: a measured tax of 10% or more; a simulated buy that fails; a plain transfer that reverts; a sell that fails on another pool; a pool under USD 1,000; mint, blacklist or fee-and-limit functions in the code (not counted when ownership is renounced); an upgrade key held by one address or an unknown party; a reachableselfdestructor an unexpecteddelegatecall; or a cached deep scan with a high finding.unknown: nothing above matched but the sell could not be tested (no pool of at least USD 20, or the token is WETH or USDC itself) or a contract check did not finish in time.no_major_flags_found: none of the above. This is not proof of safety.
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
- It shows what one fresh contract could do now, in one transaction. Tokens that block sells only after a delay, only for some wallets or for contracts, or through an owner-toggled blacklist, trading switch or changeable tax can pass this check. A same-block sell restriction (an anti-bot rule) can make a sound token fail it.
- Only the pools above are tried. Uniswap V4, Aerodrome Slipstream, PancakeSwap and other venues are not, so many new tokens return
no_pool. How many: in 15,000 Base blocks (about 8 hours) up to 13 Oct 2026, 1,039 of the 1,230 new pools on Uniswap V2, V3, V4 and Aerodrome (84%) were Uniswap V4 pools. For a token launched today on Base, expectno_poolunless it also has a V2, V3 or Aerodrome pool; check the token's pools first if a chargedunknownis no use to you. - This is a heuristic, not an audit, and a clean result is not proof that a token is safe. Pair it with the contract pre-check, which now includes this simulation for ERC-20 tokens inside its own time budget.
- Results are cached for 60 seconds per token, chain and size. The two chain reads usually take 2 to 4 seconds; the whole call is bounded at 10 seconds.
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.