Getting Started
Use the hosted facilitator URL:
https://x402-router.wgw.lolThe router supports x402 v2 only.
Endpoints
Section titled “Endpoints”GET /supportedPOST /verifyPOST /settleGET /healthGET /healthz/supported is safe to call without auth. /verify and /settle route by x402 version, scheme, and network.
CDP-routed requests need a short-lived bearer token in the forwarded CDP header. Use createCdpAuthHeaders from @tunnckocore/x402-router/cdp with the normal x402 facilitator client.
Install
Section titled “Install”bun add @tunnckocore/x402-routerThe package exposes:
createX402Routerfor self-hosting.fetchfor a default Fetch handler.createCdpAuthHeadersfor seller-side CDP pass-through auth.