Skip to main content

User Bind DID

POST /api/get_user_binddids/

Request Headers

fieldRequiredheaders Descriptionexample
web3mq-request-pubkeyYesyour login keyapir's public key59daabd77706ba02a97c523513a2ceaed10e4275bd6
didkeyYesyour did_type + ":" + did_valueeth:0xa1b1233fdfde

Request Payload

Parameters in Body jsonTypeRequiredParameters Description
useridstringYesuserid
timestampintYestimestamp milliseconds
web3mq_signaturestringYesuse ed25519 base64 encode web3mq_signature see signing detail

web3mq_signature signing rule

base64 encode web3mq_signature

web3mq_signature = ed25519 private key signing(userid + timestamp)

Body json params

{
"userid": "web3mq_userid",
"timestamp": 160000000,
"web3mq_signature": "asdfasdfadsf"
}

response

ParametersTypeAlways ReturnParameters Description
codeintYesresult code, 0 means success, other code see msg's contents
msgstringYesresult description
dataobject listYesresult list
-did_typestringYesemail
-did_typestringYesemail
-did_valuestringYes[email protected]
-metadatajsonYesprovider response metadata
-provider_idstringYesprovider_id
{
"code": 0,
"msg": "ok",
"data": [
{
"did_type": "email",
"did_value": "[email protected]",
"metadata": {},
"provider_id": "web3mq:email"
},
{
"did_type": ".bit",
"did_value": "address.bit",
"metadata": {},
"provider_id": "did:bit"
}
]
}