
On-Chain Bytecode & Unverified 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
| Field | Type | Required | Description |
|---|---|---|---|
tokenAddress | string | yes | Token contract address on Base. |
sourceCode | string; length 0..100000 | no | Optional 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.
| Field | Type | Required | Description |
|---|---|---|---|
honeypotProbability | integer | yes | 0-100 rule score: 100 simulated sell failure, 95 tax of 50% or more, lower from taxes and live control. |
proxyRisk | string; one of "none", "low", "medium", "high", "critical" | yes | |
maxSafeSlippage | number | yes | Slippage tolerance in percent that covers the worst measured tax plus a 1 point margin, at most 49. |
verdict | string; one of "SAFE", "CAUTION", "HONEYPOT_RUG", "INSUFFICIENT_EVIDENCE" | yes | INSUFFICIENT_EVIDENCE: sellability could not be established. |
confidence | string; one of "low", "medium", "high" | yes | |
risk_factors | array<string> | yes | |
mitigating_factors | array<string> | yes | |
summary | string | yes | |
verdict_floor_applied | boolean | yes | |
decidedBy | string; one of "rules:simulation", "rules:bytecode_only" | yes | Every 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. |
evidenceBasis | string; one of "simulation", "oracle_flags", "bytecode_only" | yes | |
llmCalls | integer | yes | 1 only when sourceCode was supplied (fast-tier source review); the model never sets a score or verdict. |
source_review | object | yes | Model observations about the supplied sourceCode; advisory and never affects the score. |
oracles | object | yes | Third-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. |
privilegedSelectorsFound | array<object> | yes | |
telemetry | object | yes |
Pay and connect
Available through: x402 (USDC on Base), MCP, RapidAPI.
Machine-readable
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent