Skip to content

roninbuilders/rns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e62deb · Dec 9, 2023

History

23 Commits
Dec 8, 2023
Dec 9, 2023
Dec 8, 2023
Dec 8, 2023
Dec 8, 2023

Repository files navigation

pnpm add @roninbuilders/rns

You can call the functions directly

import { getName, getAddr } from '@roninbuilders/rns'

const myRNS = await getName('MY_RONIN_ADDRESS')

const myAddress = await getAddr(myRNS)

Or instantiate an object with a fixed RPC url:

import { initRNS } from '@roninbuilders/rns'

const RPCUrl = '...'
const rns = initRNS(RPCUrl)

const myAddress = await rns.getAddr('myRNS.ron')

const myRNS = await rns.getName(myAddress)