{"uid":"cap_JpDh3B65Bha33ROLu_frp","slug":"base-capital-x402-onchain-risk-api-4e7ed8ea","name":"Base Capital x402 Onchain Risk API","description":"x402 onchain risk-intelligence API for AI trading agents on Base. Pay-per-call 0-100 risk score for any Base token.","url":"https://base-capital.vercel.app/v1/risk/%7Btoken%7D","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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["token"],"properties":{"token":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_SfjqwAUSIrsTQexGGOqvC","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":"Returns a 0-100 risk score for any Base network token, priced at $0.01 USDC per call via x402 micropayment protocol.","exampleAgentPrompt":"Before I trade, can you check the onchain risk score for the Base token at address 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed? I want to know if it's safe to buy.","exampleUseCases":[{"title":"Validate token safety before swap","prompt":"I'm about to swap some USDC for a new Base token I found. Can you quickly check the onchain risk score to make sure it's not a scam or rug pull before I commit?"},{"title":"Screen DeFi protocol tokens quickly","prompt":"I'm looking at several yield farming opportunities on Base. Can you run risk checks on these token addresses so I know which ones are actually safe to deposit liquidity into?"},{"title":"Protect against malicious contracts","prompt":"My trading agent just got an alert about an interesting token launch on Base. Before it automatically executes a buy order, can you pull the risk score to make sure the contract isn't sketchy?"}],"resultDescription":"A numeric risk score between 0 and 100 representing the onchain risk level of the specified Base token — higher scores indicate greater risk. The response is returned after a $0.01 USDC micropayment via x402.","failureModes":["Invalid or non-existent token address returns an error or null score","Token not deployed on Base network results in a failed lookup","Payment failure via x402 protocol blocks the response","Rate limiting or service unavailability on the Vercel deployment","Malformed token address format causes a 4xx error"],"whenToPreferThis":"Use this endpoint when an AI trading agent needs a fast, pay-per-use risk signal for any Base network token before executing a trade. Prefer this over manual contract audits or general blockchain explorers when you need a single normalized 0-100 score optimized for programmatic decision-making by autonomous agents on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-11T06:30:19.222Z","isFirstParty":false}