Skip to content

Staketab/mina-names-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mina Names SDK

This is a lightweight SDK, providing utility classes and functions for applications to interact with on-chain .mina names registered at Mina Name Service.

Getting started

The SDK is published in npm registry. To use it in your project, run:

$ npm i mina-names

You can also use yarn or pnpm.

Examples

Create an instance of MinansClient:

import { MinansClient } from "mina-names";

const client = new MinansClient({ network: "devnet" });

Fetch the default name and avatar of a Mina Address:

const defaultName = await client.getName({
    address: "B62qk1sJumHSS1hPKS2fSAbxkkwGcCiieb1PcM4PB182pa1MKE9H9AV",
});

Fetch a list of domains associated with a Mina Address:

const domains = await client.getDomains({
    address: "B62qk1sJumHSS1hPKS2fSAbxkkwGcCiieb1PcM4PB182pa1MKE9H9AV",
    options: {
        page: 0,
        limit: 50,
    },
});

Documentation

Soon

Website

https://names.minascan.io

Library on NPM

https://www.npmjs.com/package/mina-names

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published