cosmology-tech / cosmos-kit

Universal wallet connector for the Cosmos ⚛️
https://cosmology.zone/products/cosmos-kit
BSD 3-Clause Clear License
183 stars 129 forks source link

EVM address from Keplr #424

Closed lenhhn closed 4 months ago

lenhhn commented 4 months ago

Hi all,

I'm not sure if raising an issue here is appropriate, but I'm encountering an issue with the Keplr wallet.

Specifically, for blockchains that support Ethermint like Dymension, Keplr is displaying 2 addresses: 1 for Cosmos (starting with dym...) 1 for Ethereum (starting with 0x...)

While it's easy to obtain the Cosmos address through the Keplr getAccount method, I'm unable to find a way to retrieve the EVM address from Keplr. Based on the pubkey obtained from getAccount, I've tried to convert it to an EVM address, but the result is completely different from the address displayed on Keplr.

Does the Keplr extension provide any method to easily retrieve the EVM address?