Docs of Communities ID
WebsiteTwitterDiscord
  • What is Communities ID
  • DID as a Service
    • Omni DID
    • Bridge DID
    • Soulbound DID
  • Why "DID as a Service"?
  • How to start?
    • For project owners
    • For regular users
  • Terminology
  • Pricing & Business Model
    • Business Model
    • Pricing Policy
  • Frequently Asked Questions
  • -BRAND GUIDE-
    • Community Settings
    • Mint Settings
      • Mint Mode
      • Pricing
      • Base URL (PFP)
    • Renewal & Expiration
  • -USER GUIDE-
    • Mint
    • Burn
    • Renewal & Expiration
    • Set as Primary
    • Soulbound
  • -Developers-
    • SDK
      • Overview
        • Install & Initialize
        • Search Brand/User
        • Resolving Name
        • Modify User DID
      • API reference
        • Collector
        • Resolver
        • Operator
  • - Legal -
    • Privacy Policy
    • Terms of Service
Powered by GitBook
On this page
  1. -Developers-
  2. SDK
  3. Overview

Search Brand/User

PreviousInstall & InitializeNextResolving Name

Last updated 1 year ago

The Collector function serves as a query tool that provides pivotal data about various DID entities and their associations.

Key features include:

  • Retrieving a Brand DID and User DID collection with a specific condition

  • Get the detailed information of a Brand DID or User DID.

Below are some examples:

const { collector } = new CommunitiesID(options);
await collector.searchBrandDID('did')
await collector.searchUserDID('a.did')

Collector module also contains some methods to get specific collection of Brand / User DIDs. These methods are implements using OpenSea API, so if you want to use these methods on mainnet, OpenSea API key is required.

await collector.getAllBrandDIDs(5)
await collector.getAllUserDIDsOwnedByBrand('did')
await collector.getAllUserDIDsOfOneWalletInOneBrand('0x123', 'did')

For more details, please refer to .

API doc