Home Solutions x402 Payments

x402 Trust-Gated Payments

Pay-per-request access to trust queries via USDC stablecoins. Higher trust means lower prices. The economic incentive layer for agent trust—where good behavior literally pays for itself.

Trust Earns Discounts

Five pricing tiers turn behavioral trust into direct economic value. The most trusted agents pay nothing.

The First Protocol Where Trust Has a Price Tag

Traditional API pricing treats every caller the same. DAT's x402 integration creates a direct economic link between how an agent behaves and what it pays. Agents with stellar trust records access the same endpoints for free that low-trust agents pay $0.05 per request for. The incentive is unmistakable: earn trust, save money.

  • Trust 85-100: Free — Top-tier agents have proven themselves. No payment required
  • Trust 70-84: $0.001 — Established agents pay a fraction of a cent per query
  • Trust 50-69: $0.005 — Mid-range agents pay modestly for access
  • Trust 30-49: $0.01 — Low-trust agents pay a premium while they build their reputation
  • Trust 0-29: $0.05 — Untrusted agents pay the highest rate—or earn their way to lower tiers

Dual access mode means enterprises with API keys bypass payment entirely, while anonymous agents use USDC stablecoins via the Coinbase facilitator. Both paths feed into the same trust pipeline.

Trust-to-Pricing Tiers
==============================

Trust Score | Price/Request | Access
------------|--------------|--------
  85 - 100  |    FREE      | Full
  70 - 84   |   $0.001     | Full
  50 - 69   |   $0.005     | Full
  30 - 49   |   $0.010     | Full
   0 - 29   |   $0.050     | Full

Dual Access Model:
  Option A: API Key (bypass payment)
    X-TaaS-API-Key: dat_key_...
    -> No payment required
    -> Rate limited by tier

  Option B: x402 Payment (USDC)
    402 Payment Required
    -> Include payment header
    -> Coinbase facilitator verifies
    -> Trust score determines price

Economic Incentive:
  Agent at trust 45 pays $0.01/req
  After earning trust to 85:
    $0.01 -> $0.00 (FREE)
    1000 queries/month saved: $10
  Good behavior pays for itself

Spend Visibility Across Your Fleet

Per-agent, per-org spend dashboards with configurable threshold alerts across four channels.

Know Exactly What Your Agents Spend

Every payment flows through real-time aggregation counters that break down spending by agent, organization, day, and month. Top-spender rankings surface outliers. Configurable thresholds trigger alerts before budgets are exceeded. Finance teams get the visibility they need without slowing down agent operations.

  • Daily + Monthly Breakdowns — Per-agent and per-org spend tracked at both granularities
  • Top Spender Rankings — Identify which agents consume the most resources, with 7-day and 30-day views
  • Configurable Thresholds — Set agent daily, org daily, and org monthly spend limits
  • Multi-Channel Alerts — Threshold breaches notify via Telegram, Slack, Teams, and SIEM webhooks
  • 1-Hour Alert Cooldown — Prevent alert fatigue with per-type cooldown periods

The spend dashboard integrates directly into the admin console, with sparkline charts for daily trends, a top-spenders table, and a threshold configuration card that saves without page reload.

Spend Aggregation
==============================

Redis Counters (real-time):
  dat:x402:daily:agent:{did}:{date}
  dat:x402:daily:org:{oid}:{date}
  dat:x402:monthly:org:{oid}:{month}
  dat:x402:org:{oid} (HSET lifetime)

Threshold Config:
{
  "enabled": true,
  "agentDailyLimit": 5.00,
  "orgDailyLimit": 50.00,
  "orgMonthlyLimit": 500.00,
  "alertChannels": {
    "telegram": true,
    "slack": true,
    "teams": true,
    "siem": true
  }
}

Alert Flow:
  recordPayment() inline check
  -> threshold breached?
  -> cooldown expired? (1h per type)
  -> dispatch via Promise.allSettled()
  -> Telegram + Slack + Teams + SIEM

Dashboard:
  Today: $12.45 [sparkline]
  7-Day: $67.20
  30-Day: $234.80
  Alerts: 2 this month

Secure Payment Infrastructure

Coinbase facilitator verification, replay protection, and trust signals from every transaction.

Enterprise-Grade Payment Security

The x402 payment pipeline is built with the same security rigor as the rest of the DAT platform. Payments are verified through the Coinbase facilitator before any data is returned. Nonce tracking prevents replay attacks. And every successful payment generates a trust signal that feeds back into the agent's reputation—creating a virtuous cycle where spending builds trust.

  • Coinbase Facilitator — Payment verification and settlement through Coinbase's infrastructure
  • Replay Protection — Unique nonce per payment, tracked in Redis with automatic expiry
  • Trust Signal Loop — Successful payments generate action_success signals (source: x402_payment)
  • Graceful Degradation — x402 disabled by default. Enable when the payment infrastructure is ready
  • 30-Day Payment History — All payments stored in Redis with per-agent and per-org queryable history

For platform operators, x402 creates a new revenue stream from trust queries. For agents, it creates an economic incentive to maintain high trust. For the ecosystem, it establishes trust as a tradeable, quantifiable asset.

Payment Flow
==============================

1. Agent requests trust query
   GET /gateway/x402/trust/{did}

2. Server checks trust score
   Score: 62 -> Tier: $0.005

3. Return 402 Payment Required
   X-Payment-Amount: 0.005
   X-Payment-Currency: USDC
   X-Payment-Network: base

4. Agent submits payment
   X-Payment: {signed_payment}
   X-Payment-Nonce: {unique_nonce}

5. Verify via Coinbase facilitator
   POST facilitator/verify
   -> Valid payment confirmed

6. Return trust data + settle
   POST facilitator/settle
   -> USDC transferred

7. Record payment
   -> Redis daily/monthly counters
   -> Check spend thresholds
   -> Dispatch alerts if breached

8. Generate trust signal
   Type: action_success
   Source: x402_payment
   -> Agent's trust improves

Replay Protection:
  Nonce tracked in Redis
  Same nonce rejected immediately
  30-day payment history retained
5
Price Tiers
USDC
Payments
4ch
Alert Channels
Nonce
Replay Protected

Monetize Trust, Incentivize Behavior

Create a marketplace where trust has real economic value. Agents pay less as they prove themselves—and the best ones pay nothing at all.