{"uid":"cap_-qxYuWU3j_QgWk6WJK9sV","slug":"defi-safety-oracle-contract-template-analysis-981d99e9","name":"DeFi Safety Oracle – Contract Template Analysis","description":"Is this token safe to trade? Deterministic honeypot/rug simulation (eth_call state-override on real DEX pools: Aerodrome, Uniswap V2/V3/V4), contract-powers analysis, and GoPlus/honeypot.is cross-checks on Base & BSC. Grades A–F. Pay-per-call via x402 (USDC on Base, v1+v2 dual-stack).","url":"https://oracle.cyberwarex.com/template?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"enum":["base","bsc","ethereum","polygon","arbitrum","robinhood"],"type":"string","default":"base"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"ERC-20 token contract address."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"chain":{"type":"string"},"peers":{"type":"integer"},"address":{"type":"string"},"penalty":{"type":"integer"},"summary":{"type":"string"},"available":{"type":"boolean"},"dead_peers":{"type":"integer"},"malice_rate":{"type":"number"},"power_peers":{"type":"integer"},"selector_fp":{"type":"string"},"malice_peers":{"type":"integer"},"reason_codes":{"type":"array","items":{"type":"string"}},"selector_count":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"chain":"base","peers":16,"address":"0x0000000000000000000000000000000000000abc","penalty":40,"summary":"8 of 16 tokens sharing this code template were honeypots/scams (50% malice-rate).","available":true,"dead_peers":3,"disclaimer":"Prior about the contract template from our own history; not proof about this token.","malice_rate":0.5,"power_peers":1,"selector_fp":"a1b2c3d4e5f60718","malice_peers":8,"reason_codes":["TEMPLATE_PRIOR_MALICE","TEMPLATE_HIGH_MALICE_RATE"],"selector_count":41}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7lglkHUa866HFG8f0u1Rt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes an ERC-20 token contract's code template to detect prior malice patterns, honeypot history, and scam rates across tokens sharing the same bytecode fingerprint.","exampleAgentPrompt":"Before I swap into this token, can you check if 0x4e9ce36e442e55ecd9025b9a6e0d88485d628a67 on Base is safe — look at its contract template history and tell me the malice rate and any reason codes?","exampleUseCases":[{"title":"Pre-trade honeypot check on Base","prompt":"I'm about to buy 0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca on Base — can you run a safety check on the contract template and tell me if it's been associated with honeypots or rug pulls before?"},{"title":"BSC token scam screening","prompt":"Check whether the token at 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 on BSC has a risky code template — I need the malice rate and peer contract count before I invest."},{"title":"Automated DeFi bot safety gate","prompt":"Before my trading bot executes a buy on any new token, I want you to check its contract template on Base and block the trade if the malice rate is above 30% or there are any TEMPLATE_PRIOR_MALICE reason codes."}],"resultDescription":"Returns a JSON object with: the chain, the token address, a selector fingerprint identifying the contract template, total peer contracts sharing the template, counts of dead/malicious/powerful peers, a malice rate (0–1), a penalty score, an array of reason codes (e.g. TEMPLATE_PRIOR_MALICE, TEMPLATE_HIGH_MALICE_RATE), a human-readable summary, and an availability flag. Includes a disclaimer noting results are probabilistic priors, not definitive proof about the specific token.","failureModes":["Invalid address format (must match ^0x[a-fA-F0-9]{40}$) — returns schema validation error","Unsupported chain value — enum constraint rejects request","Token contract not found or not yet indexed — available: false in response","RPC or DEX simulation failure — upstream eth_call may time out or revert","Payment not settled via x402 — 402 Payment Required response blocks the call","Zero peer contracts found — low-confidence result with no malice data"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, pay-per-call token safety check grounded in real DEX pool simulation and cross-checked against GoPlus/honeypot.is — especially for Base or BSC tokens where template-level malice pattern analysis (not just token-level flags) adds signal. Prefer this over generic token info APIs when you specifically need honeypot simulation via eth_call state-override and bytecode fingerprint history.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:31:52.828Z","isFirstParty":false,"canonicalSlug":"defi-safety-oracle-contract-template-analysis-981d99e9"}