x402
Unseen x402
HTTP 402 meets shielded settlement.
Monetize APIs and premium routes with on-chain payment — Unseen x402 pairs HTTP payment-required flows with private receipts so you can meter access without exposing payer graphs.
402 Payment Required
Monetize routes without leaking who paid.
- Drop-in session creation next to your existing API gateway and reverse proxy.
- Works with usage-based pricing — each 402 challenges carries a reference you can reconcile in your billing warehouse.
- Shielded receipts reduce public linkage between wallet activity and subscriber identity.
Developer experience
Your edge functions stay small: create a payment, redirect or deep-link to checkout, and unlock content after verify(). Rate limits, keys, and entitlements remain yours — Unseen handles the private settlement story.
Business fit
Ideal for infra, data, and AI endpoints moving from ad-hoc Stripe links to verifiable on-chain settlement with Solana-native economics.
Edge-friendly
Session + redirect from your handler.
Keeps your route handlers thin: Unseen owns the private settlement story while your code stays focused on authz and entitlements.
api-route.ts
import { UnseenClient } from '@unseen_fi/sdk';const unseen = new UnseenClient({apiKey: process.env.UNSEEN_API_KEY!,network: 'mainnet',});// Paid API access: create a session, return checkout (e.g. after HTTP 402)const payment = await unseen.payments.create({amount: 100_000_000,reference: `api_${requestId}`,description: 'Premium API access',});return Response.redirect(payment.checkoutUrl, 302);

