Earn from x402 registrations on your platform.
Drop the x402id widget into your site and set your own platform fee. Users get a permanent ENS subname under 402bot.eth, 402api.eth, or 402mcp.eth. You and the protocol get paid atomically in the same transaction.
How the fees work
Each registration pays a protocol fee (currently 0.005 ETH) plus a platform fee that you choose. The widget shows users the breakdown line-by-line before they sign — no hidden charges. Both legs settle in one transaction through the forwarder contract.
1. Drop-in for any site
Paste the snippet anywhere — WordPress, plain HTML, Webflow, anywhere a <script> tag works. The loader mounts an iframe pointed at the hosted widget.
Data attributes: data-treasury (your address, required), data-platform-fee-wei (in wei), data-parents (subset of supported parents), data-theme (light or dark).
2. React / Next.js
For React apps, install the package and render the component. It uses your existing wagmi/viem context if present, or falls back to window.ethereum.
npm install @x402id/widget-react viemContracts
Splits payment between protocol and your treasury. The widget calls this — you don't need to interact with it directly.
Mints the subname under the chosen parent. Holds the protocol fee.
Live demo
See the widget in action with adjustable theme and platform fee — it's wired to the same mainnet forwarder you'd ship.
Open demo →