Turn ENS subdomains into smart affiliate links with automatic onchain payouts.
ENS Royalty turns ENS subdomains into smart, onchain affiliate links that automatically track referrals and pay out commissions. Instead of relying on traditional Web2 dashboards or manual bookkeeping, creators and brands can issue simple ENS names like john.product.eth, that act as programmable referral routes.
When someone uses an affiliate’s subdomain to make a purchase, mint an NFT, subscribe, or trigger any onchain action, the system records the conversion and instantly distributes the affiliate’s share through a built‑in royalty splitter. Everything—from tracking to payout—is handled onchain, transparently and without middlemen.
ENS Royalty makes affiliate marketing native to Web3: trustless, composable, easy to integrate, and powered by names people already understand. Affiliates get a link they can actually own, and creators get a monetization layer they don’t have to manage. It’s the simplest way to launch an onchain affiliate program with ENS.
ENS Royalty uses a custom Royalty Manager contract built on top of the ENS NameWrapper to make ENS subdomains function as dynamic revenue‑sharing endpoints. Each affiliate receives a subdomain like john.product.eth, which maps to a RoyaltyPaymentSplitter contract that automates commission payouts.
Events emitted by the Royalty Manager are indexed using The Graph, enabling real‑time analytics for conversions, link performance, and payouts. The frontend is built with Scaffold‑ETH 2, interacting with Base and Ethereum networks using Wagmi/Vieme.
The architecture is intentionally modular: the system can route revenue from mints, purchases, subscriptions, or any onchain trigger. We also added a “zero‑config creator mode” so anyone can launch an affiliate program by minting a single ENS name. ENS and its NameWrapper were key — encoding rules, ownership, and affiliate permissions directly into the name system drastically simplifies the UX compared to typical affiliate platforms.

