Looking at long, cryptic public keys or trying to remember them is painful.
This package solves that by generating fun (deterministic) human-readable names from Solana addresses — or uses the actual known name for popular addresses (for example, exchanges).
npm i sol-namor
The following will first attempt to lookup the provided address in our dictionary at /src/types, if fails, a deterministic name will be generated using the public key as the seed.
import { getSolanaName } from "sol-namor";
const pubKey = "enter a solana public key here";
const name = getSolanaName(pubKey);- Fork the repo, work on your own branch, make a PR into this
mainbranch when ready. - We suggest using VSCode and having ESList and Prettier installed so you get automatic linting and formatting. If using other editors you can run
npm run lintandnpm run formatto lint/format manually. - GitHub will auto run some tests on your PR once you create it and they will be required to pass. To simulate locally you can
npm run build && npm test.
