Getting Started

Let's get you accepting x402 payments in 5 minutes. No BS, no complexity.

What You Need

  • Ability to make HTTP requests (if you've ever called an API, you're good)

  • A wallet address to receive payments (we'll help you get one if you don't have it)

  • That's it. Seriously.

What We're Doing

Super simple:

  1. Get your API key (30 seconds)

  2. Make one API call to verify payments

  3. Done. You're accepting x402 payments.

Setup

No SDK to install. No complex dependencies. Yuzu402 is just HTTP endpoints.

If you want to use our examples, grab the HTTP library for your language:

npm install axios  # or use fetch
npm install ws     # for WebSocket support

Get Your API Key

  1. Sign up (literally just your email)

  2. Grab your API key from the dashboard

  3. Keep it secret (don't put it in your frontend code or GitHub)

Accept Your First Payment

Copy, paste, done:

That's It

You just verified an x402 payment. Told you it was simple.

Real Example (Drop This Into Your App)

Here's how to actually use this in a real server:

What's Next?

Quick Tips

  1. Keep your API key secret - Don't put it in frontend code or commit it to GitHub

  2. Check payment amounts - Make sure you're getting paid what you expect

  3. Handle errors - Networks fail, APIs timeout. Handle it gracefully.

  4. Start small - Test with small amounts first

  5. Use WebSockets - Get real-time updates when payments come through

How x402 Works (The Simple Version)

  1. Someone requests your API → You say "402, pay me $X"

  2. They send a payment → You check it with Yuzu402

  3. It's valid → You give them what they asked for

That's it. We handle all the blockchain stuff so you don't have to think about it.

Last updated