@iguverse/spaceid-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

SpaceID helper

Get SpaceId domain names for multiple addresses in two smart contract queries. Currently only bsc mainet is supported.

Installation

npm install @iguverse/spaceid-sdk  # or yarn

Usage:

import { NamesHelper } from '@iguverse/spaceid-sdk';

....

const spaceSdk = new NamesHelper(provider);
const names = await spaceSdk.getNames([
      '0x78EA0Fa1854019E2490a7D31118e6Ba7cAd840D8',
      '0xc647d0EbEdDc9Eb8FFa01E992511cC5cBeF270D6',
]);

// names: 
// [
// { name: "3990.bnb", address: '0x78EA0Fa1854019E2490a7D31118e6Ba7cAd840D8' },
// { name: null, address: '0xc647d0EbEdDc9Eb8FFa01E992511cC5cBeF270D6' },
// ]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    7
    • latest

Version History

Package Sidebar

Install

npm i @iguverse/spaceid-sdk

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

15.5 kB

Total Files

16

Last publish

Collaborators

  • iguverse