{"uid":"cap_IOFD1fLErFGl2mOVrgWTE","slug":"contract-risk-api-smart-contract-token-safety-scanner-aeff4861","name":"Contract Risk API — Smart Contract & Token Safety Scanner","description":"Pre-trade safety checks for smart contracts and tokens. All paid routes use the x402 'exact' scheme settling in USDC on Base (eip155:8453). Every 402 carries a signed offer and every 200 a signed receipt (EIP-712) — see /.well-known/x402 -> signing.","url":"https://smartcontractrisk.0xhodhod.xyz/v1/scan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"Chain to query (default: base)"},"address":{"type":"string","description":"0x-prefixed EVM contract address to scan"}}},"responseSchema":{"type":"json","example":{"chain":"base","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","riskLevel":"low","riskScore":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qyQ8OXu5H_u_6R5fgVmEo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs pre-trade safety checks on a given EVM smart contract or token address, returning a risk level and numeric risk score.","exampleAgentPrompt":"Can you scan the contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base and tell me if it's safe to trade — what's the risk level and score?","exampleUseCases":[{"title":"Pre-trade token safety check","prompt":"Before I swap into this token, can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum is safe — what's the risk level?"},{"title":"DeFi protocol contract audit","prompt":"I'm about to deposit funds into a new DeFi protocol on Base. Can you scan the contract 0x4200000000000000000000000000000000000006 and tell me the risk score before I proceed?"},{"title":"Automated portfolio risk monitoring","prompt":"Run a safety scan on this Base token contract 0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22 and flag it if the risk level comes back anything higher than low."}],"resultDescription":"Returns a JSON object with the queried chain, contract address, a categorical risk level (e.g. 'low', 'medium', 'high'), and a numeric risk score — enabling agents to programmatically gate or warn before executing trades or interactions with the contract.","failureModes":["Invalid or non-checksummed contract address returns a 4xx error","Unsupported chain value (not 'base' or 'ethereum') causes a validation error","Contract address not found on the specified chain may return an unknown risk result","Payment failure or insufficient USDC balance on Base triggers a 402 response","Network timeout or upstream blockchain node unavailability causes a 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a fast, cheap ($0.02), automated pre-trade safety signal for an EVM contract on Base or Ethereum — especially in DeFi automation, portfolio bots, or any workflow where interacting with an unverified contract is a risk. It is ideal for gating trades or alerting users before on-chain actions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T20:44:59.442Z","isFirstParty":false,"canonicalSlug":"contract-risk-api-smart-contract-token-safety-scanner-aeff4861"}