Generate (deterministic) human-readable names from Solana addresses.
GPL-3.0 License
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
getSolanaName(string: publicKey)
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);
main
branch when ready.npm run lint
and npm run format
to lint/format manually.npm run build && npm test
.