Description
Check if user already has a HashKey DID
RequestBody
application/json
{// 0x address addr: string}
application/xml
{ addr?: string}
Responses
200 User Created
application/json
{// 200 is success code?: integer data: {// User DID status, "1" is normal. status?: string// true is existed exitFlag?: boolean// User'guides DID when existed. did?: string } msg?: string}
{// 200 is success code?: integer// true when DID existed on chain data?: boolean msg?: string}
[GET]/did/{did}
Summary Get DID info
Description Get DID info
Responses
200 OK
application/json
{ code?: integer data: { id?: integer// DID for user did?: string// Address for user addr?: string// Token ID for user in DID nft contract tokenId?: string userInfo: { userId?: integer// Nickname for user nickname?: string// DID card url for user. Full url with protocol and host. photoUrl?: string// User card background number backgroundNumber?: integer// User card backfrount number backfrontNumber?: integer// Avatar url for user. Full url with protocol and host. headUrl?: string photoParts?: string }// User following count followingTotal?: integer// User follower count followerTotal?: integer// Time for DID claimed at claimAt?: string } msg?: string}
[GET]/address/{address}/did
Summary Get DID info By Address
Description Get DID info By Address
Responses
200 OK
application/json
{ code?: integer data: { id?: integer// DID for user did?: string// Address for user addr?: string// Token ID for user in DID nft contract tokenId?: string userInfo: { userId?: integer// Nickname for user nickname?: string// DID card url for user. Full url with protocol and host. photoUrl?: string// User card background number backgroundNumber?: integer// User card backfrount number backfrontNumber?: integer// Avatar url for user. Full url with protocol and host. headUrl?: string photoParts?: string }// User following count followingTotal?: integer// User follower count followerTotal?: integer// Time for DID claimed at claimAt?: string } msg?: string}
[GET]/deedgrain/collected/credential/{did}
Summary
List OSTs for did
Responses
200 OK
application/json
{ code?: integer data: { id?: integer userId?: integer// OST name name?: string assetType?: integer assetValue?: integer// OST index idIndex?: integer// OST Contract Address contactAddr?: string// OST Owner Address ownerAddr?: string// OST Token ID tokenId?: string// OST Metadata nftData?: string// OST Mint transaction hash txHash?: string// Image URL for OST. Full URL with protocol and host imageUrl?: string// External URL for OST if exists in metadata. Full URL with protocol and host externalUrl?: string// Animation URL for OST if exists in metadata. Full URL with protocol and host animationUrl?: string// Chain Name, any of ["Ethereum", "PlatON", "Klaytn"] chainName?: string deedgrainActivityId?: integer createdAt?: string updatedAt?: string// Activity Key, if you want give user a mint link, you could use this key in url. Format is https://www.hashkey.id/credential/{activityKey} activityKey?: string }[] msg?: string}