Users
Users, either creators or collectors, have a strong position in the ecosystem. The following summarizes options to query data for users. HashGuild takes here a transparent approach, however blocks sensitive information to adhere with data privacy.
The User model
The user model contains all the information about users on HashGuild, such as their username, their account Id, a profile picture, social data or others.
Properties
- Name
nickname
- Type
- string
- Description
The nickname for the user.
- Name
accountId
- Type
- string
- Description
The accountId for the user.
- Name
profilePicture
- Type
- string
- Description
The profile picture URL for the user.
- Name
coverImage
- Type
- string
- Description
The cover image URL for the user.
- Name
rewardPoints
- Type
- int
- Description
The amount of reward points gathered by the user.
GET/v1/user/<accountId>
Get a specific user
This endpoint allows you to retrieve specific user information.
Request
GET
/v1/user/<accountId>curl -G https://hashguild.xyz/api/v1/user/<accountId> \
-H "Authorization: Bearer {token}"
Response
{
"nickname": "0.0.516971",
"accountId": "0.0.516971",
"profilePicture": "https://storage.googleapis.com/prod_nft_images/62b52308e8a29fb06cfb71e8-profile-picture.jpeg",
"coverImage": "https://storage.googleapis.com/prod_nft_images/62b52308e8a29fb06cfb71e8-banner-image.png",
"rewardPoints": 95
}