Skip to content
wildcardlabsPublic

About

Claim codes for ENS renewals. Buy one, pass it on, and it renews any .eth name.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ens.codes: renewals you can hand over. Claim codes for ENS renewals.

ens.codes  ·  How it works  ·  Architecture  ·  Run it locally

Network: Ethereum Solidity 0.8.28 Built with Foundry Built with ens-budget License: MIT


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.


How it works

One ticket, three stops: buy a code in USDC, hand it over, and redeem it on up to five .eth names.

Used once

A code renews up to 5 names in one go. Whatever the renewals don't cost goes back to the buyer.

Any .eth name

A code renews any .eth name, whoever owns it. The person holding it picks the names.

Codes for a crowd

Buy up to 200 codes at once and export them as a spreadsheet, printable vouchers or images.

Who owns a code

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.

Kept with a passkey

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.

Browser or phone wallet

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.


Where the money sits

The buyer pays into the vault. The vault pays ENS when a code is redeemed, refunds the buyer for unused codes and change, and sends fees to a recipient fixed at deploy.

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.


Architecture

The site prices names and signs a redemption with the code. A relayer or a wallet sends it to the vault, which renews the names with ENS and refunds the rest to the buyer.
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

Security

Review Critical High Medium Low Report
ClaimCodeVault, November 2026 0 0 1 (resolved) 3 (resolved) PDF
AuditAgent scan, November 2026 0 0 1 (resolved) 1 (resolved) PDF

Run it locally

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 :8545
scripts/local-setup.sh                # terminal 2: deploy the vault and write web/.env.local
npm install
cd web && npm install && npm run dev  # http://localhost:5173

Pick Anvil dev wallet (local) in the wallet menu.

cd contracts && forge test            # contract tests
npm test                              # relayer tests, from the repository root

License

MIT © 2026 Namepass LLC

About

Claim codes for ENS renewals. Buy one, pass it on, and it renews any .eth name.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages