{"uid":"cap_LcFDco2333TNCgGRY5JNZ","slug":"pre-trade-token-risk-consensus-base-contract-control-8cacb02c","name":"Pre-Trade Token Risk Consensus – Base Contract Control","description":"Public static preview plus paid token controls, risk consensus, AI security, webhook reliability, developer security, schedule risk, decision analysis, API release compatibility, accounts-payable reconciliation, e-commerce return eligibility, SaaS subscription-proration, sales-commission reconciliation, parcel-charge reconciliation, SLA service-credit reconciliation, advertising spend-and-fee audit, contract-renewal audit, workforce timecard reconciliation, hotel booking-commission reconciliation, and warehouse cycle-count adjustment reconciliation products for autonomous agents.","url":"https://rooke-token-risk-pilot.rookepoole.workers.dev/v1/x402/base-contract-control","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tokenAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"intendedTradeUsd":{"type":"number","maximum":1000000000,"exclusiveMinimum":0}}},"responseSchema":{"type":"json","example":{"verdict":"CAUTION_CONTROL_SURFACE_PRESENT","bytecode":{"sha256":"sha256-hex","runtimeBytes":1234,"controlSelectors":{}},"controls":{},"riskFlags":["ACTIVE_OWNER_CONTROL"],"reportHash":"sha256-hex","evidenceGaps":["SELLABILITY_NOT_SIMULATED"],"schemaVersion":"BASE_CONTRACT_CONTROL_SNAPSHOT_V1","controlSelectors":{},"implementationBytecode":null}},"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_iIVneqvbJTkh5QmW9VY0N","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":"Analyzes a token's smart contract for control surfaces, ownership risks, and upgrade mechanisms before executing a trade on Base.","exampleAgentPrompt":"Before I swap $5,000 into the token at 0xAbC1234567890abcdef1234567890ABCDEF123456 on Base, can you run a pre-trade contract control check and tell me if there are any owner control surfaces or rug-pull risk flags I should know about?","exampleUseCases":[{"title":"DeFi trader pre-swap safety check","prompt":"I'm about to buy $2,500 worth of the token at 0x1234567890abcdef1234567890abcdef12345678 on Base — can you check if the contract has any active owner controls or dangerous upgrade mechanisms before I pull the trigger?"},{"title":"Autonomous agent trade gate","prompt":"My trading bot is about to execute a $10,000 buy on Base token 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef — run a contract control risk check first and block the trade if the verdict comes back anything other than safe."},{"title":"Portfolio risk audit for new token listing","prompt":"We're considering adding token 0xaabbccddeeff00112233445566778899aabbccdd to our curated list — do a contract control scan and report back on any control selectors, risk flags, or evidence gaps before we approve it."}],"resultDescription":"Returns a JSON object with a risk verdict (e.g. CAUTION_CONTROL_SURFACE_PRESENT), bytecode metadata including SHA-256 hash and runtime byte count, a map of detected control selectors, a list of risk flags (e.g. ACTIVE_OWNER_CONTROL), a report hash for auditability, evidence gaps (e.g. SELLABILITY_NOT_SIMULATED), the schema version, and any implementation bytecode for proxy contracts.","failureModes":["Invalid token address format (not a valid 0x hex address) returns validation error","Trade size of 0 or above $1B maximum rejected by schema","Token address not deployed on Base returns empty or null bytecode result","Network or RPC timeout causes delayed or missing response","Payment of $0.02 USDC not completed results in 402 Payment Required before analysis is run"],"whenToPreferThis":"Use this endpoint when you need a pre-trade smart contract risk assessment specifically on Base network tokens, particularly to detect owner control surfaces, upgrade proxies, and rug-pull vectors before committing capital. Prefer this over generic token screeners when you need bytecode-level control selector analysis and a machine-readable verdict with an auditable report hash suitable for autonomous agent decision gates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:31:16.488Z","isFirstParty":false}