Motivation
There are many ways to identify a wallet address in the cosmos universe. The most common way is to use the bech32 address format. However, this format is not very user-friendly. It is also not very easy to remember. This is why we need a way to identify a wallet address by a human-readable name.
For this purpose, the community has come up with quite a few name-services, a few popular ones are:
- ICNS (opens in a new tab)
- Stargaze Names (opens in a new tab)
- IBC Domains (opens in a new tab)
- ArchId (opens in a new tab)
- SpaceId (opens in a new tab)
- SNS (opens in a new tab)
- DegeNS (opens in a new tab)
- Bidds Decentralized Domains (opens in a new tab)
These services allow users to register a name for their wallet address. However, there is no standard way to resolve these names to wallet addresses. This is where Name Matcha comes in. It is a javascript library that allows you to resolve names to wallet addresses in a standard way.
Just a single line of code is all you need to resolve a name to a wallet address.
Installation
You can use your favourite package manager to install the library
yarn add @leapwallet/name-matcha