Smart contracts and tokens logo

On-Chain Bytecode & Unverified Token Trap Detector

$0.25 USDC per call · Smart contracts and tokens · POST /api/v1/detect-token-trap · Id token-trap-detector

Reads live Base bytecode, proxy slots (EIP-1967/beacon/zeppelinos/EIP-1822/EIP-1167), ERC-20 state, and privileged selectors to score honeypot and rug risk in code: SAFE | CAUTION | HONEYPOT_RUG | INSUFFICIENT_EVIDENCE. Adds honeypot.is buy/sell simulation and GoPlus tax and honeypot flags, disclosed per source, and degrades to a lower-confidence bytecode-only score when they fail.

What you get

Screening a token for blacklist, mint, fee-switch, and upgrade control before a buy costs a fraction of a typical honeypot loss.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/detect-token-trap. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/detect-token-trap \
  -H 'content-type: application/json' \
  -d '{"tokenAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}'

Input

FieldTypeRequiredDescription
tokenAddressstringyesToken contract address on Base.
sourceCodestring; length 0..100000noOptional Solidity source claimed for the token.

Example request body

{
  "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
honeypotProbabilityintegeryes0-100 rule score: 100 simulated sell failure, 95 tax of 50% or more, lower from taxes and live control.
proxyRiskstring; one of "none", "low", "medium", "high", "critical"yes
maxSafeSlippagenumberyesSlippage tolerance in percent that covers the worst measured tax plus a 1 point margin, at most 49.
verdictstring; one of "SAFE", "CAUTION", "HONEYPOT_RUG", "INSUFFICIENT_EVIDENCE"yesINSUFFICIENT_EVIDENCE: sellability could not be established.
confidencestring; one of "low", "medium", "high"yes
risk_factorsarray<string>yes
mitigating_factorsarray<string>yes
summarystringyes
verdict_floor_appliedbooleanyes
decidedBystring; one of "rules:simulation", "rules:bytecode_only"yesEvery score and the verdict are decided by code rules. rules:simulation rests on a honeypot.is buy/sell simulation; rules:bytecode_only on GoPlus flags and on-chain telemetry with lowered confidence.
evidenceBasisstring; one of "simulation", "oracle_flags", "bytecode_only"yes
llmCallsintegeryes1 only when sourceCode was supplied (fast-tier source review); the model never sets a score or verdict.
source_reviewobjectyesModel observations about the supplied sourceCode; advisory and never affects the score.
oraclesobjectyesThird-party readings (taxes in percent), any errors, and per-oracle sources: honeypot.is and GoPlus with request URL, status (ok | no_simulation | no_data | unavailable) and detail.
privilegedSelectorsFoundarray<object>yes
telemetryobjectyes

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI.

Machine-readable