# TrustAgent x402 Endpoint Safety Screener

> TrustAgent x402 Endpoint Safety Screener is a paid API for AI agents from trust-agent.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: GET https://trust-agent.io/v1/endpoint/screen
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trustagent-x402-endpoint-safety-screener-1ac0737e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f5OgUFDaLq6JfdsP5K_HH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability trustagent-x402-endpoint-safety-screener-1ac0737e
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trustagent-x402-endpoint-safety-screener-1ac0737e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trust-agent.io](https://www.zero.xyz/host/trust-agent.io/llms.txt)
