Skip to content

A cosmos name service that allows for quick conversion between IBC addresses.

License

Notifications You must be signed in to change notification settings

JackalLabs/retriever-sdk

Repository files navigation

Retriever Banner

Retriever

The RNS SDK

Not to be confused with RNS itself. That is a dApp on the JUNO Network which can be found here.

Installation

npm install (retriever) *package name pending*

Use

Retriever will use data from the RNS contract to resolve the name. In this example we assume jackal.rns is a name already registered with RNS.

resolveName(name: string, prefix: string, contractAddress: string optional)

name

The name you wish to resolve without the suffix of .rns. For example resolving jackal.rns would require jackal in the name field.

prefix

The network you wish to resolve from. Every cosmos address starts with its' own prefix. For example, Juno uses juno, Secret uses secret and Osmosis uses osmo.

contractAddress

Overrides default contract address to query from.

Example use-case

const retriever = require("retriever");

retriever.resolveName("jackal", "juno").then((res) => {
    console.log(res); // juno1...
}).catch((err) => {
    console.error(err); // name not found.
});

About

A cosmos name service that allows for quick conversion between IBC addresses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published