@scrollid/scroll_sdk
v0.0.4
Published
A library that facilitates interaction between wallet addresses and domain names
Downloads
6
Readme
@scrollid/scroll_sdk
The @scrollid/scroll_sdk is a library that facilitates interaction between wallet addresses and domain names (ENS).
Installation
Install @scrollid/scroll_sdk with npm:
npm install @scrollid/scroll_sdk
Install @scrollid/scroll_sdk with yarn:
yarn add @scrollid/scroll_sdk
Usage/Examples
import { ScrollProvider } from '@scrollid/scroll_sdk';
const provider = new ScrollProvider();
// Fetch ENS data for a single address
const result = await provider.getENS("YOUR_ADDRESS");
console.log(result);
# or
// Fetch ENS data for an array of addresses
const addressesArray = ["ADDRESS_1", "ADDRESS_2", "ADDRESS_3"];
const result= await provider.getENS(addressesArray);
console.log(result);
// Fetch address data for a single ENS
const result = await provider.getENS("YOUR_ENS");
console.log(result);
# or
// Fetch address data for an array of ENS
const ensArray = ["ENS_1", "ENS_2", "ENS_3"];
const result= await provider.getENS(addressesArray);
console.log(result);
Features
- Get domain name by Web3 address.
- Get Web3 address by primary domain name.
Support
For support, please access ScrollID Docs.
Related
Here are the related project: