Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helius-labs/namor

Generate (deterministic) human-readable names from Solana addresses.
https://github.com/helius-labs/namor

Last synced: 3 months ago
JSON representation

Generate (deterministic) human-readable names from Solana addresses.

Awesome Lists containing this project

README

        

# sol-namor (alpha)

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).

![](/doc/example.png)

## Install

`npm i sol-namor`

## Usage

#### `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.

```js
import { getSolanaName } from "sol-namor";

const pubKey = "enter a solana public key here";

const name = getSolanaName(pubKey);
```

## Contribute

1. Fork the repo, work on your own branch, make a PR into this `main` branch when ready.
2. 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 lint` and `npm run format` to lint/format manually.
3. 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`.

## Support

https://helius.xyz