Skip to main content

Get user info

Get user info

POST /api/get_user_info/

Parameters in URLTypeRequiredParameters Description
did_typestringYeseth
did_valuestringYeswallet address
timestampintYestimestamp milliseconds
{
"did_type": "eth",
"did_value": "0xasdfasdf",
"timestamp": 1656991509327
}

response

ParametersTypeAlways ReturnParameters Description
codeintYesresult code, 0 means success, other code see msg's contents
msgstringYesresult description
datadictYesreturn includes response info

user exists

{
"code": 0,
"msg": "ok",
"data": {
"userid": "userid",
"did_value": "did value",
"did_type": "did type",
"pubkey": "pubkey",
"pubkey_type": "ed25519",
"wallet_address": "wallet_address",
"wallet_type": "wallet_type",

"signature_content": "signature_content",
"timestamp": 16000000,
"did_signature": "did_signature",
}
}

user not exists

{
"code": 404,
"msg": "User not found"
}