{"id":"token-trap-detector","title":"On-Chain Bytecode & Unverified Token Trap Detector","description":"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.","roi":"Screening a token for blacklist, mint, fee-switch, and upgrade control before a buy costs a fraction of a typical honeypot loss.","audience":"crypto","channels":["x402","mcp","rapidapi"],"endpoint":{"method":"POST","url":"https://agents.writerslogic.com/api/v1/detect-token-trap","path":"/api/v1/detect-token-trap","contentType":"application/json"},"price":{"amount":"0.25","currency":"USDC","network":"base","perCall":true,"failedCallsCharged":false},"inputSchema":{"type":"object","additionalProperties":false,"required":["tokenAddress"],"properties":{"tokenAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Token contract address on Base."},"sourceCode":{"type":"string","maxLength":100000,"description":"Optional Solidity source claimed for the token."}}},"resultSchema":{"type":"object","additionalProperties":false,"required":["honeypotProbability","proxyRisk","maxSafeSlippage","verdict","confidence","risk_factors","mitigating_factors","summary","verdict_floor_applied","decidedBy","evidenceBasis","llmCalls","source_review","oracles","privilegedSelectorsFound","telemetry"],"properties":{"honeypotProbability":{"type":"integer","description":"0-100 rule score: 100 simulated sell failure, 95 tax of 50% or more, lower from taxes and live control."},"proxyRisk":{"type":"string","enum":["none","low","medium","high","critical"]},"maxSafeSlippage":{"type":"number","description":"Slippage tolerance in percent that covers the worst measured tax plus a 1 point margin, at most 49."},"verdict":{"type":"string","enum":["SAFE","CAUTION","HONEYPOT_RUG","INSUFFICIENT_EVIDENCE"],"description":"INSUFFICIENT_EVIDENCE: sellability could not be established."},"confidence":{"type":"string","enum":["low","medium","high"]},"risk_factors":{"type":"array","items":{"type":"string"}},"mitigating_factors":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"verdict_floor_applied":{"type":"boolean"},"decidedBy":{"type":"string","enum":["rules:simulation","rules:bytecode_only"],"description":"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":{"type":"string","enum":["simulation","oracle_flags","bytecode_only"]},"llmCalls":{"type":"integer","description":"1 only when sourceCode was supplied (fast-tier source review); the model never sets a score or verdict."},"source_review":{"type":"object","description":"Model observations about the supplied sourceCode; advisory and never affects the score.","properties":{"status":{"type":"string","enum":["not_requested","ok","failed"]},"observations":{"type":"array","items":{"type":"string"}}}},"oracles":{"type":"object","description":"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":{"type":"array","items":{"type":"object","properties":{"selector":{"type":"string"},"signature":{"type":"string"},"category":{"type":"string"}}}},"telemetry":{"type":"object"}}},"outputSchema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":false,"required":["honeypotProbability","proxyRisk","maxSafeSlippage","verdict","confidence","risk_factors","mitigating_factors","summary","verdict_floor_applied","decidedBy","evidenceBasis","llmCalls","source_review","oracles","privilegedSelectorsFound","telemetry"],"properties":{"honeypotProbability":{"type":"integer","description":"0-100 rule score: 100 simulated sell failure, 95 tax of 50% or more, lower from taxes and live control."},"proxyRisk":{"type":"string","enum":["none","low","medium","high","critical"]},"maxSafeSlippage":{"type":"number","description":"Slippage tolerance in percent that covers the worst measured tax plus a 1 point margin, at most 49."},"verdict":{"type":"string","enum":["SAFE","CAUTION","HONEYPOT_RUG","INSUFFICIENT_EVIDENCE"],"description":"INSUFFICIENT_EVIDENCE: sellability could not be established."},"confidence":{"type":"string","enum":["low","medium","high"]},"risk_factors":{"type":"array","items":{"type":"string"}},"mitigating_factors":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"verdict_floor_applied":{"type":"boolean"},"decidedBy":{"type":"string","enum":["rules:simulation","rules:bytecode_only"],"description":"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":{"type":"string","enum":["simulation","oracle_flags","bytecode_only"]},"llmCalls":{"type":"integer","description":"1 only when sourceCode was supplied (fast-tier source review); the model never sets a score or verdict."},"source_review":{"type":"object","description":"Model observations about the supplied sourceCode; advisory and never affects the score.","properties":{"status":{"type":"string","enum":["not_requested","ok","failed"]},"observations":{"type":"array","items":{"type":"string"}}}},"oracles":{"type":"object","description":"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":{"type":"array","items":{"type":"object","properties":{"selector":{"type":"string"},"signature":{"type":"string"},"category":{"type":"string"}}}},"telemetry":{"type":"object"}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]},"example":{"tokenAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"openapiOperation":{"operationId":"token_trap_detector","summary":"On-Chain Bytecode & Unverified Token Trap Detector","description":"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.\n\nPrice: 0.25 USDC on Base (x402).","x-x402-price-usdc":"0.25","x-x402-amount":"250000","x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.25"}},"x-audience":"crypto","x-sample-url":"https://agents.writerslogic.com/api/v1/samples/token-trap-detector","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["tokenAddress"],"properties":{"tokenAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Token contract address on Base."},"sourceCode":{"type":"string","maxLength":100000,"description":"Optional Solidity source claimed for the token."}}},"example":{"tokenAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}}},"responses":{"200":{"description":"Paid result with provenance","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":false,"required":["honeypotProbability","proxyRisk","maxSafeSlippage","verdict","confidence","risk_factors","mitigating_factors","summary","verdict_floor_applied","decidedBy","evidenceBasis","llmCalls","source_review","oracles","privilegedSelectorsFound","telemetry"],"properties":{"honeypotProbability":{"type":"integer","description":"0-100 rule score: 100 simulated sell failure, 95 tax of 50% or more, lower from taxes and live control."},"proxyRisk":{"type":"string","enum":["none","low","medium","high","critical"]},"maxSafeSlippage":{"type":"number","description":"Slippage tolerance in percent that covers the worst measured tax plus a 1 point margin, at most 49."},"verdict":{"type":"string","enum":["SAFE","CAUTION","HONEYPOT_RUG","INSUFFICIENT_EVIDENCE"],"description":"INSUFFICIENT_EVIDENCE: sellability could not be established."},"confidence":{"type":"string","enum":["low","medium","high"]},"risk_factors":{"type":"array","items":{"type":"string"}},"mitigating_factors":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"verdict_floor_applied":{"type":"boolean"},"decidedBy":{"type":"string","enum":["rules:simulation","rules:bytecode_only"],"description":"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":{"type":"string","enum":["simulation","oracle_flags","bytecode_only"]},"llmCalls":{"type":"integer","description":"1 only when sourceCode was supplied (fast-tier source review); the model never sets a score or verdict."},"source_review":{"type":"object","description":"Model observations about the supplied sourceCode; advisory and never affects the score.","properties":{"status":{"type":"string","enum":["not_requested","ok","failed"]},"observations":{"type":"array","items":{"type":"string"}}}},"oracles":{"type":"object","description":"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":{"type":"array","items":{"type":"object","properties":{"selector":{"type":"string"},"signature":{"type":"string"},"category":{"type":"string"}}}},"telemetry":{"type":"object"}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]}}}},"400":{"description":"Invalid request (no payment consumed)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"401":{"description":"Invalid X-API-KEY","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"402":{"description":"Payment required or invalid","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"code":{"type":"string"},"resource":{"type":"object"},"accepts":{"type":"array","items":{"type":"object"}},"extensions":{"type":"object"}}}}}},"502":{"description":"Upstream failure; the payment is released or not settled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}}}},"links":{"docs":"https://agents.writerslogic.com/docs/token-trap-detector/","docsJson":"https://agents.writerslogic.com/docs/token-trap-detector.json","sample":"https://agents.writerslogic.com/api/v1/samples/token-trap-detector","openapi":"https://agents.writerslogic.com/openapi.json","catalog":"https://agents.writerslogic.com/api/v1/catalog","verifyProvenance":"https://agents.writerslogic.com/api/v1/verify-provenance","index":"https://agents.writerslogic.com/docs/index.json"}}