Collector
Last updated
Last updated
Get the brand DID info by name
Input:
Name | Type | Description | required |
---|---|---|---|
Output: Promise<BrandDID | null>
Example:
collector.searchBrandDIDByTokenId
Get the brand DID info by name
Input:
Name | Type | Description | required |
---|---|---|---|
Output: Promise<BrandDID | null>
Example:
Get the user DID info by name
Input:
Output: Promise<UserDID | null>
Example:
collector.searchUserDIDByTokenId
Get the brand DID info by name
Input:
Output: Promise<UserDID | null>
Example:
Get all brand DID in specific chain, if you call this on mainnet, opensea Key is required
Input:
Output: Promise<object[]>
Example:
collector.getAllBrandDIDsOwnedByAddress
Get all brand DIDs owned by an address in specific chain, if you call this on mainnet, opensea Key is required
Input:
Output: Promise<object[]>
Example:
collector.getAllUserDIDsOwnedByAddress
Get all user DIDs owned by an address in specific chain, if you call this on mainnet, opensea Key is required
Input:
Output: Promise<object[]>
Example:
collector.getAllBrandDIDsJoinedByAddress
Get all brand DIDs joined by an address in specific chain, if you call this on mainnet, opensea Key is required
Input:
Output: Promise<object[]>
Example:
collector.getAllUserDIDsOwnedByBrand
Get all user DIDs under specific brand DID, if you call this on mainnet, opensea Key is required
Input:
Output: Promise<object[]>
Example:
collector.getAllUserDIDsOfOneWalletInOneBrand
Get all user DIDs owned by specific address under specific brand DID
Input:
Output: Promise<object[]>
Example:
Name | Type | Description | required |
---|---|---|---|
Name | Type | Description | required |
---|---|---|---|
Name | Type | Description | required |
---|---|---|---|
Name | Type | Description | required |
---|---|---|---|
Name | Type | Description | required |
---|---|---|---|
Name | Type | Description | required |
---|---|---|---|
Name | Type | Description | required |
---|---|---|---|
Name | Type | Description | required |
---|---|---|---|
name
string
The name of the brand DID
true
tokenId
number
The token ID of this brand DID
true
chainId
SupportedChainIds
The chain ID that that this brand DID is on
true
name
string
The name of the user DID, the format should be ${userDID}.${brandDID}
true
registry
string
The registry address of this user DID
true
tokenId
number
The token ID of this brand DID
true
chainId
SupportedChainIds
The chain ID that that this brand DID is on
true
chainId
SupportedChainIds
The chain ID that you want to get brand DIDs
true
address
string
The address you want to get brand DIDs
true
chainId
SupportedChainIds
The chain ID that you want to get brand DIDs
true
address
string
The address you want to get user DIDs
true
chainId
SupportedChainIds
The chain ID that you want to get brand DIDs
true
address
string
The address you want to get brand DIDs
true
chainId
SupportedChainIds
The chain ID that you want to get brand DIDs
true
name
string
The name of the brand DID, if registry and chain is provided, the name will be ignored, and the query efficiency will improve
true
registry
string
The registry of this brand DID
false
chainId
SupportedChainIds
The chain ID that you want to get brand DIDs
false
address
string
he address you want to get user DIDs
true
name
string
The name of the brand DID, if registry and chain is provided, the name will be ignored, and the query efficiency will improve
true
registry
string
The registry of this brand DID
false
chainId
SupportedChainIds
The chain ID that you want to get brand DIDs
false