Introducing the ENSv2 plugin for MetaMask Agent Wallet

Context

MetaMask recently introduced its agentic wallet; it’s a CLI optimized for agentic-driven actions for automated trades.

I built a plugin that allows the agent to register a name to itself, deploy its own resolver, and bind an ERC-8004 agent to that name, with the ENSIP-25/26 records that make it discoverable, all on ENSv2.

I registered carbonari.eth with its own resolver, profile records, an IPFS avatar, forward and reverse resolution, and its ERC-8004 identity linked via ENSIP-25 (see on adapterscan).

Try it yourself

npm install -g @metamask/agent-wallet@latest

then:

mm login
mm init --wallet server-wallet --mode guard
mm config set experimentalPlugins true
npm pack @estmcmxci/mm-plugin-ensv2
mm plugins install file:$PWD/estmcmxci-mm-plugin-ensv2-0.11.0.tgz --accept-permissions
mm ensv2 status --deployment mainnet

→ Documentation: https://mm-ensv2.estmcmxci.co
→ Repository: mm-plugin-ensv2 (MIT)

Note: the plugin is not audited. It’s well tested, but proceed at your own risk.