Earn from x402id 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 @x402identity/widget-react viem3. MCP server for AI agents
Let agents mint their own identities. The official MCP server exposes availability checks, pricing, minting, and resolution as tools for Claude, Cursor, or any MCP-compatible client. By default it runs prepare-only — mint tools return an encoded transaction for the user's wallet to sign, no key custody. Set X402_PRIVATE_KEY for autonomous agent minting.
npx -y @x402identity/mcpTools: check_availability, get_price, register_subname, batch_register, resolve_identity, list_names. The optional platform env vars route mints through the forwarder so you earn the same fee as the widget — leave them out for fee-free protocol pricing. @x402identity/mcp on npm
Contracts
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 →