Skip to content

Trust Score

Overview

Every API in the x402 Relay catalog receives a Trust Score (0-100) that helps AI agents make informed decisions about which APIs to use.

Scoring Factors

FactorWeightDescription
Protocol Compliance30%Valid HTTP 402 response with correct payment-required headers
Uptime25%Historical availability based on health check probes
On-chain Activity25%Transaction count and volume on Base chain
Community Signals20%GitHub activity, documentation quality

Score Tiers

ScoreTierBadgeMeaning
80-100Excellent🟢Highly trusted, significant on-chain history
60-79Good🟡Verified and reliable
40-59Fair🟠Limited history, but functional
0-39Low🔴New or unreliable

Verification Levels

Tier 1: Protocol Verified (Current)

  • HTTP 402 response confirmed
  • payment-required header format validated
  • payTo, network, price, asset fields extracted

Tier 2: Payment Verified (Planned)

  • Small test payment sent and confirmed
  • Response quality evaluated after payment
  • Refund behavior tested

Tier 3: Audit Verified (Planned)

  • Manual or automated security audit
  • API behavior consistency over time
  • Community vouching / staking

Spam Detection (Phase 1)

x402 Relay automatically screens all discovered APIs for spam and malicious behavior. Services that fail critical checks are suspended (Trust Score set to 0, hidden from directory).

Detection Layers

LayerWhat it checksResult
Domain ValidationGoogle Safe Browsing API, domain age (RDAP), SSL certificate validityThreat match → suspended. Domain < 7 days old → warning flag
Payment Address ValidationDuplicate address detection (≥3 services sharing same address), EOA vs contract check (Base RPC)≥3 duplicates → suspended as spam suspect
Response ValidationEmpty/meaningless 402 response body (honeypot detection), clone spam detection (>5 sibling endpoints)Empty body → suspended. Clone spam → warning flag

Service Statuses

StatusMeaning
activeResponding correctly, passes all checks
inactiveNot responding or returning errors
unverifiedNewly discovered, not yet checked
suspendedFailed spam detection — hidden from directory, Trust Score = 0

Appealing a Suspension

If your service is incorrectly suspended, ensure it:

  1. Returns a valid JSON body with paymentAddress, network, and price fields on 402 responses
  2. Uses a unique payment address (not shared across many unrelated services)
  3. Is hosted on a domain with a valid SSL certificate and not flagged by Safe Browsing

The next crawl cycle will automatically re-evaluate and restore the service if all checks pass.

Improving Your Score

  1. Ensure proper 402 responses — Follow the x402 Protocol guide
  2. Maintain uptime — x402 Relay probes every hour
  3. Build on-chain history — More successful transactions = higher score
  4. Open-source your code — GitHub activity contributes to community signals