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' },
// ]