Convert Ethereum hex style address to bech32 via Javascript

Hi folks,

Do you know if there is a native Harmony Javascript SDK method to convert an address from hex to bech32?

I found this excellent npm package called bech32-converting, but I wonder if there already is a solution built into the current JS SDK.

Thanks in advance for your help.

2 Likes

You can use the Harmony JS SDK to do this.

2 Likes

Also this I wrote in Python… More of an API service… GitHub - johnashu/harmony_convert_address: Service to convert One Addresses to ETH format

1 Like

Thanks, that’s all I needed, genius! :slight_smile:

1 Like

Just code :stuck_out_tongue: . Glad it helped… :slight_smile:

1 Like

yeah!
it helped @Maffaz

1 Like

That’s great to hear!