GhostlineGhostline

x402 Protocol

x402 Protocol

Ghostline implements the x402 WebPay protocol for seamless, privacy-preserving micro-payments across the web.

Overview

x402 is a web payment protocol that enables:

  • Micro-Payments: Small transaction support
  • Web Integration: Browser-based payments
  • Privacy-Preserving: Private payment processing
  • Instant Settlement: Fast transaction processing
  • Low Fees: Minimal transaction costs

WebPay Flow

  • Site sends HTTP 402
  • Ghostline displays price
  • User approves or auto-approve triggers
  • Wallet signs payment
  • Content unlocks instantly

Agent Mode

AI agents can:

  • Pay APIs
  • Fetch data
  • Authenticate privately
  • Spend within limits
  • Users define strict policies.

Signing Policies

Users control:

  • Token allowed
  • Max amount
  • Max per-request
  • Allowed domains/dApps
  • Context of automation (browser, agent, scripts)

Next Steps