ens.codes · How it works · Architecture · Run it locally
ens.codes turns USDC into claim codes for ENS renewals. Buy a code, hand it to anyone, and
they use it to renew any .eth name.
| A code renews up to 5 names in one go. Whatever the renewals don't cost goes back to the buyer. |
A code renews any .eth name, whoever owns it. The person holding it picks the names.
|
| Buy up to 200 codes at once and export them as a spreadsheet, printable vouchers or images. | Holding a code lets you spend it, but its value stays with the buyer until it's used. The buyer can cancel an unused code at any time, and codes don't expire. |
| Codes are made from a passkey on your device, not kept on a server. To see them again, connect the wallet you paid with and unlock them with the same passkey. | Pay from a browser wallet, or from a phone wallet over WalletConnect. Wallets that batch transactions approve USDC and buy in one step. |
Note
Codes are intended as gifts and are not designed for resale.
A code's value sits in an onchain vault, not with us. It can only go to ENS for a renewal or back
to the buyer. The vault is 0x61cc…a804
on Ethereum, with its source verified.
| Part | Where |
|---|---|
| Site: buy, redeem and manage codes | web/ |
Vault: ClaimCodeVault, the contract that holds and spends codes |
contracts/ |
| Relayer: sends redemptions when we cover the network fee | api/ |
| Indexer: the vault's history as a subgraph, so pages load it in one request | indexer/ |
| Pricing: the longest renewal a budget buys | ens-budget |
| Review | Critical | High | Medium | Low | Report |
|---|---|---|---|---|---|
| ClaimCodeVault, November 2026 | 0 | 0 | 1 (resolved) | 3 (resolved) | |
| AuditAgent scan, November 2026 | 0 | 0 | 1 (resolved) | 1 (resolved) |
You need Foundry and Node 22 or later. The local setup forks mainnet, so it renews real ENS names with test money.
scripts/local-fork.sh # terminal 1: a mainnet fork on :8545scripts/local-setup.sh # terminal 2: deploy the vault and write web/.env.local
npm install
cd web && npm install && npm run dev # http://localhost:5173Pick Anvil dev wallet (local) in the wallet menu.
cd contracts && forge test # contract tests
npm test # relayer tests, from the repository rootMIT © 2026 Namepass LLC