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.0015 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, dark, lime, orange, or purple).
2. React / Next.js
For React apps, install the package and render the component. Pass your wagmi/viem clients and an onConnect handler to use your own wallet modal; otherwise it 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.
One name. An address on every EVM chain.
Every x402 name is a standard ENS name, so it can hold a separate address for each EVM chain (ENSIP-11). The mint flow sets Ethereum and Base to the minting wallet; add any other chain as an address record in the ENS manager.
Ethereumset at mint
Baseset at mint
Arbitrum
Optimism
Polygon
BNB Chain
Avalanche
Linea
Scroll
zkSync
Gnosis
Celo
Mantle
Blast
Chain names and logos are trademarks of their respective owners and do not imply endorsement.
Live demo
Try all five themes, pick which namespaces to offer, set a platform fee, and copy the embed code it generates — the preview is wired to the same mainnet forwarder you'd ship.
Open the widget playground →