Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

Support for ENS Multicoin when connected to other EVM chain #11

@makoto

Description

@makoto

Currently, the ENS name is resolvable only when Metamask is connected to Ethereum Mainnet.

However, ENS has support for multicoin types (eg: Bitcoin) since 2019 and we recently extended to support any EVM chains.

The proposed flow is.

  1. If it's currently connected to ChainId 1, get the address record with coinType 60 (ETH) (eg: resolver.getAddr(namehash, 60)
  2. If not connected to ChainId1, then resolve against Mainnet but with the equivalent coinType.

For example, the coinType of Polgyon (ChainID 137) is 2147483785 hence resolver.getAddr(namehash, 2147483785)

The draft implementation is at MetaMask/metamask-extension#18035 and I would like to get feedback before turning this into production-ready PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions