Drop-in simulator for x402 micropayments

Simulate every x402 facilitator from a single unified sandbox environment. No real wallets or facilitator accounts required.

Production
import { paymentMiddleware } from "x402-hono";

paymentMiddleware(
    "0xA1b2c3D4e5F60718293aFfBbCcddeE1122334455",
    {
      "/protected-route": { ... }
    },
    { url: "https://api.cdp.coinbase.com" }
);
Sandbox
import { paymentMiddleware } from "x402-hono";

paymentMiddleware(
    "0xA1b2c3D4e5F60718293aFfBbCcddeE1122334455",
    {
      "/protected-route": { ... }
    },
    { url: "https://coinbase.x402sandbox.com" }
);
                

Swap the baseUrl to simulate any X402 facilitator. Same integration, switched with one line of code.

Ship faster

Unified Sandbox

Every x402 facilitator is slightly different. Easily test all of them with our sandbox without rewriting your integration.

Build with confidence

Zero-risk testing

Instantly test payment flows, check wallet balances and test facilitator behaviours. No blockchain setup. No real money. No stress.

Test with certainty

Deterministic flows

Simulate predictable, repeatable payment scenarios for automated tests, CI/CD pipelines, and edge cases.

Join the early access list and start testing.