Quickstart — x402 in 5 minutes

Create a paywalled link and test the 402 flow.

  1. Create a link — POST /admin/links { origin, priceUsd }
  2. Test 402 — curl -i https://sol402.app/p/<id>
  3. Pay — Use an x402 client or facilitator UI to pay the requirement.
  4. Retry with X-PAYMENT — curl -H "X-PAYMENT: <payload>" https://sol402.app/p/<id>
  5. Receive content + X-PAYMENT-RESPONSE

Tip: Use solana-devnet for testing. Swap to mainnet when ready.