{"uid":"cap_cvrVFwOZMqjxcizZSogQ_","slug":"oracleinsight-swap-intent-safety-check-4acb3a0e","name":"OracleInsight Swap Intent Safety Check","description":"Verified Swap Intent: two signed schema-v3 Pre-Trade gates for one same-chain swap, plus one Execution Receipt credit after x402 settlement. A BLOCK is a complete, charged decision.","url":"https://www.oracleinsight.xyz/api/v1/safety/swap-intent?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"],"type":"string"},"queryParams":{"type":"object","required":["sourceAsset","destinationAsset","subjectChainId","settlementChainId","declaredNotionalUsd"],"properties":{"venue":{"type":"string","description":"Optional caller-claimed venue, never a verified venue fact"},"router":{"type":"string","description":"Optional caller-claimed EVM router"},"sourceAsset":{"type":"string","description":"Asset being sold, e.g. ETH"},"subjectChainId":{"type":"number","description":"Same chain on which the swap is evaluated"},"destinationAsset":{"type":"string","description":"Asset being bought, e.g. USDC"},"settlementChainId":{"type":"number","description":"Must equal subjectChainId in v1"},"declaredNotionalUsd":{"type":"number","description":"Declared swap notional in USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":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_wcuoAd8yPLtKL9nbPTvly","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":"Runs a two-gate pre-trade safety check on a same-chain swap intent and returns a signed ALLOW/CAUTION/BLOCK verdict with EIP-712 attestations","exampleAgentPrompt":"Before I execute this swap, run an OracleInsight pre-trade safety check on selling 5 ETH for USDC on chain ID 1 with a declared notional of $12000 — I need the signed ALLOW/CAUTION/BLOCK verdict before we proceed.","exampleUseCases":[{"title":"Pre-trade guard for large ETH swap","prompt":"I'm about to swap $50,000 worth of ETH to USDC on Ethereum mainnet (chain ID 1) — can you run an OracleInsight safety check on this swap intent first and tell me if it gets an ALLOW or BLOCK verdict?"},{"title":"Oracle manipulation check on Arbitrum","prompt":"Check whether it's safe to swap WBTC for DAI on Arbitrum (chain ID 42161) with a declared notional of $8000 — I want to see the signed pre-trade gate decision before I touch the router."},{"title":"DeFi agent automated swap gating","prompt":"Every time my trading bot proposes a swap, run a pre-trade safety check through OracleInsight: source asset USDC, destination asset WETH, chain ID 137, notional $3500 — block execution if the verdict isn't ALLOW."}],"resultDescription":"Returns two signed schema-v3 Pre-Trade gate attestations (EIP-712) and one Execution Receipt credit, together constituting a complete ALLOW/CAUTION/BLOCK decision block for the queried same-chain swap intent. The verdict indicates whether the swap should proceed, requires caution, or should be blocked based on oracle integrity and risk signals.","failureModes":["Missing required query parameters (sourceAsset, destinationAsset, subjectChainId, settlementChainId, declaredNotionalUsd) returns 400","settlementChainId not equal to subjectChainId returns validation error in v1","Payment not received or x402 settlement failure blocks the response","Invalid or unsupported chainId returns an error","Declared notional of zero or negative value may be rejected"],"whenToPreferThis":"Choose this endpoint when an AI agent or automated trading system needs a cryptographically verifiable, signed pre-trade safety gate before executing a same-chain swap — especially when oracle manipulation risk is a concern and downstream systems require EIP-712 attested proof of the safety decision. Prefer this over generic price-check APIs when you need an auditable ALLOW/CAUTION/BLOCK verdict that can be verified on-chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:33:12.224Z","isFirstParty":false,"canonicalSlug":"oracleinsight-swap-intent-safety-check-4acb3a0e"}