User Info
GET /api/v1/userInfo
Note: To return a user's information. If the Parameters are empty, then it is to query the caller's own user information.
Header
ApiKey
String
true
Authorization
String
false
Bearer ${unifiedAuthToken} , in which the unifiedAuthToken is the result returned by /api/v1/auth
Request Parameters
address
String
false
relationId or address
fields
List[String]
false
option,Fill in the user fields that need to be returned,value: CREATE_AT、FOLLOW_COUNT、ADDRESS_WITH_CHAIN
Request Example
Response Parameters
code
String
the Return Code
desc
String
the Return Message
data
UserInfo
the Data
The UserInfo field consists of the following subfields:
name
String
User Name
avatar
String
User's Avatar
relationId
String
User's relationId
createdAt
String
User's register time
followCount
FollowCount
Total number of followers and following
└─followingCount
Integer
Total number of following
└─followerCount
Integer
Total number of followers
addressWithChain
AddressWithChain
User's address ,and the chain which the address belongs
└─address
String
└─chainName
String
the chain name,current support:eth、polygon、bsc、op、moonbeam、solana、flow、substrate、ic、
Response Example
Return Code
0
success
the flag for a successful request
11601
failed
this field not support in current version
11602
failed
user not found
Last updated