{"uid":"cap_EVoL14tD9mWGYsyf6b2Tx","slug":"freysa-intelligence-pre-trade-check-440e7f04","name":"Freysa Intelligence Pre-Trade Check","description":"Security intelligence layer for autonomous agents. On-chain security, token risk analysis, wallet forensics, and transaction simulation. Pay-per-call via x402 on Base.","url":"https://economic-agent-369.freysa.dev/api/pre-trade-check","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"type":"string","default":"base","description":"Blockchain"},"token_address":{"type":"string","description":"Token address"},"trader_wallet":{"type":"string","description":"Your wallet"}}},"responseSchema":{"type":"object","example":{"pre_trade_check":{"decision":"CAUTION","confidence":82,"overall_risk":35}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"2.5","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":"$2.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"2.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"2.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4XjHX1s0LTWRAuEbDeakj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"2.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs a pre-trade security check on a crypto trade or transaction, returning a risk decision (PROCEED/CAUTION/REJECT), confidence score, and overall risk score for autonomous agents","exampleAgentPrompt":"Before I swap 500 USDC for this token at address 0xabc123 on Base, run a pre-trade security check and tell me whether it's safe to proceed — give me the risk decision, confidence level, and overall risk score.","exampleUseCases":[{"title":"Rug pull detection before token purchase","prompt":"I'm about to buy some of this new token at 0xd3adbeef on Base — can you run a pre-trade check to see if it's a rug pull or scam before I put any money in?"},{"title":"Autonomous DeFi agent trade gating","prompt":"My trading bot is about to execute a large swap on Uniswap — run a Freysa pre-trade security check on the transaction first and only proceed if the risk score is below 40 and the decision is PROCEED."},{"title":"Suspicious wallet forensics before transfer","prompt":"Someone just sent me a payment request from wallet 0xdeadcafe — can you do a pre-trade security check on this wallet to see if it's flagged for anything before I send funds back?"}],"resultDescription":"Returns a pre_trade_check object containing: a decision string (e.g. PROCEED, CAUTION, or REJECT), a confidence integer (0-100), and an overall_risk integer (0-100). Higher risk scores indicate greater danger; the decision field gives a direct action recommendation for the agent.","failureModes":["Missing or malformed trade schema input returns a validation error","Payment failure via x402 (insufficient USDC balance) blocks the call","Unknown or unindexed token/wallet address may result in lower confidence scores","Network congestion on Base may delay payment settlement","Unsupported chain or contract type may return incomplete analysis"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs a fast, pay-per-call security gate before executing any on-chain trade, swap, or token interaction — especially on Base. Prefer it over generic token screeners when you need a structured PROCEED/CAUTION/REJECT decision with a numeric confidence score suitable for automated decision-making, and when wallet forensics and transaction simulation are needed together in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:42:43.232Z","isFirstParty":false}