Add getEVMChainAddress #3888
Labels
enhancement
New feature or improvement.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
v6
Issues regarding v6
Describe the Feature
The current
resolver.getAddress(coinType)
only supports several coinType mostly because supporting all coin type via https://github.com/ensdomains/address-encoder will increase the file size and dependencies.I would like to have
resolver.getAddress(chainId)
that internally converts EVM chainId to cointype and returns EVM compatible addressThe reference implementation is at https://github.com/MetaMask/metamask-extension/blob/59c03f2fd600b1d4fe39bf2b93a82215b43a5b3c/ui/ducks/ens.js
Code Example
The text was updated successfully, but these errors were encountered: