{"uid":"cap_f5OgUFDaLq6JfdsP5K_HH","slug":"trustagent-x402-endpoint-safety-screener-1ac0737e","name":"TrustAgent x402 Endpoint Safety Screener","description":"Is this x402 endpoint safe to pay? Reads the endpoint's own payment challenge under BOTH protocol versions — v1 body and v2 PAYMENT-REQUIRED header, so a live v2-only service is not reported as dead — extracts the payout wallet it advertises, and screens that wallet: OFAC sanctions, sybil-filtered ERC-8004 reputation, on-chain behaviour. Flags an endpoint that names different recipients under the two versions. Scores the wallet, not the service behind it, and says so.","url":"https://trust-agent.io/v1/endpoint/screen","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":["url"],"properties":{"url":{"type":"string","description":"REQUIRED. The x402 endpoint to screen, e.g. https://example.com/v1/thing."},"chain":{"type":"string","description":"OPTIONAL. Only \"base\" is served; any other value is refused rather than answered from the wrong chain."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"flags":{"description":"array of {code, severity, title, detail}"},"offers":{"description":"every advertised offer: payTo, network, asset, amount, version"},"paywalled":{"description":"whether the endpoint answered 402 with a parseable payment offer"},"components":{"description":"per-rule scoring breakdown"},"trustScore":{"description":"0-100 for the payout wallet; null when no rule could be evaluated"},"payoutWallet":{"description":"the address scored"},"x402Versions":{"description":"which protocol generations answered — [1], [2] or [1,2]"},"recommendation":{"description":"proceed | proceed_with_caution | hold | block | insufficient_data"},"additionalPayoutWallets":{"description":"present only when the offers disagree about the recipient"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TnMlTAXc8umeNVV0dJH9L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Screens an x402 HTTP endpoint for payment safety by reading its payment challenge across both protocol versions, extracting the payout wallet, and scoring it for OFAC sanctions, sybil-filtered ERC-8004 reputation, and on-chain behavior.","exampleAgentPrompt":"Before I let you pay for that API, screen the x402 endpoint at https://example.com/v1/data — check its payout wallet for OFAC sanctions and ERC-8004 reputation on Base and tell me if it's safe to proceed.","exampleUseCases":[{"title":"Pre-payment safety check for new API","prompt":"I found a new x402-enabled API at https://api.newservice.io/v1/query — before we pay for any calls, can you screen it for wallet sanctions and give me a trust score and recommendation?"},{"title":"Detecting wallet-switching fraud","prompt":"I'm worried this x402 endpoint might be routing payments to different wallets depending on the protocol version — can you check https://suspicious-api.com/v1/stream and flag if the recipients differ between v1 and v2?"},{"title":"Autonomous agent payment gating","prompt":"My agent is about to make a micropayment to https://databroker.xyz/v1/prices — screen that endpoint first on Base and block the payment if the wallet scores below 50 or hits any OFAC flags."}],"resultDescription":"Returns a JSON object containing: a 0-100 trust score for the payout wallet, a recommendation (proceed, proceed_with_caution, hold, block, or insufficient_data), an array of flags with severity and detail, all advertised payment offers with payTo/network/asset/amount/version, which x402 protocol versions responded, per-rule scoring components, and any additional payout wallets if v1 and v2 offers disagree about the recipient.","failureModes":["Target URL does not return a 402 response — paywalled: false, insufficient_data recommendation","Unsupported chain specified — request refused rather than answered from wrong chain data","OFAC or ERC-8004 data unavailable — trustScore returns null, recommendation: insufficient_data","Target endpoint unreachable or times out — error flag returned","Wallet has no on-chain history — limited scoring components, low confidence score"],"whenToPreferThis":"Use this endpoint when an AI agent is about to execute an x402 micropayment and needs a safety gate that covers both protocol versions (v1 body and v2 header) simultaneously. It is uniquely capable of detecting recipient wallet mismatches between protocol versions — a red flag for fraud — which generic address screeners cannot do. Prefer it over standalone OFAC checkers when the entity being paid is an API endpoint rather than a known counterparty address, since it autonomously fetches and parses the payment challenge itself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:39:13.029Z","isFirstParty":false}