x-402.eth

Upload + Pin JSON Agent

API base: https://x-402.replit.app

Endpoints

GET/health
GET/pricing
POST/upload
POST/pin-json

Pricing

Loading...

How x402 works

  1. Client sends POST to a paid endpoint without payment.
  2. Server returns HTTP 402 with a PAYMENT-REQUIRED header containing payment details (asset, amount, payTo address).
  3. Client signs a USDC payment on Base and re-sends the request with an X-PAYMENT header.
  4. Server verifies the payment via the x402 facilitator, processes the request, and returns the result.