0.1.0 • Published 11 months ago

@alph-name-service/ans-sdk v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

ANS-SDK

JS/TS SDK for integrating the Alephium Name Service protocol.

Install

npm install @alph-name-service/ans-sdk

Usage

const ans = new ANS("mainnet");
const testProfile = await ans.getProfile("<address>");
// returns {name: "...", imgUri: "..."}
// if profile exists, undefined otherwise
const testRecord = await ans.getRecord("<name>");
// returns {owner: ..., manager: ..., ttl: ...}
// if name exists, undefined otherwise
const resolvedAddress = await ans.resolveName("<name>");
// returns the resolved address string
// if name exists, undefined otherwise
console.log({ resolvedAddress, testProfile, testRecord });
0.1.0

11 months ago

0.0.8

11 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago