MetaMask

Display named smart contracts on L2 chains

Display ENS names instead of addresses when users interact with named smart contracts on L2 chains.

Failed benchmark result indicator

Failed

ENS best practice details

When users interact with a contract on an L2 chain, use the ENSIP-19 standard to lookup the primary name of the contract. ENSIP-19 provides chain-specific primary names for L2 networks (including Optimism, Arbitrum, Base, Linea, and Scroll), with an automatic fallback to a default primary name (defined on mainnet) if no chain-specific primary name is defined. There are several libraries to choose from that support ENSIP-19 and all ENS best practices:

Libraries and tools for additional languages or frameworks can be found in the ENS documentation.

Additional Details

ENSIP-19 enables primary names to be set on any chain. Contracts deployed to an L2 chain benefit from this, as the contract can then configure its name directly on the chain it is deployed to without any need to update state on mainnet. If a contract has an ENS name, you can use the contract's ENS profile to power additional UX improvements such as displaying the contract's avatar, metadata, audit information, and more. More information can be found at this ENSIP.

Benchmark summary

App

Benchmark result

Failed

Last updated

Contributors

All benchmarks on ENSAwards are open for public contribution.

Submit a contribution

GitHub iconEdit on GitHub

Founded in 2022, Namehash Labs is dedicated to developing open source infrastructure that helps the Ethereum Name Service (ENS) Protocol grow.

© NameHash Labs. All Rights Reserved

Made with❤️byNameHash Labs