Resolve DID Name

GET /api/v1/getAddress

  • Note: name-resolving services.

  • Header

FieldTypeRemarks

ApiKey

String

ApiKey acquired from the admin

Authorization

String

Bearer ${unifiedAuthToken} , in which the unifiedAuthToken is the result returned by /api/v1/auth

  • Request Parameters

FieldTypeRemarks

did

string

did name, eg: jack.uxuy

  • Request Example

curl GET 'https://api.uxlink.io/api/v1/getAddress?did=jack.uxuy \
--header 'Authorization: Bearer ey1JhbGciOiJFUzI1NiJ9.eyJqdGkiOiIyYzAzYTMwZGY4NjY0Mjk5OWZlMDcwODhh1MzVhNGU0YiIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2MTQwNTQxOSwic3ViIjoiYmFmMzQta2lhYWEtYWFhYWstYWNnamEtY2FpIiwiZXhwIjoxNjYyMDEwMjE5fQ.1EVbUxmtVCm6aEVZtEAji1KuCM1dsZEOMExcYvT-GdKrHRQ1qzyghXsNZSdSDUAwoSe9jGV48_1zdi2Rlrylw3Q' \
--header 'ApiKey: <ApiKey>'
  • Response Parameters

FieldTypeRemarks

code

String

the Return Code

msg

String

the Return Message

data

T

the Data

The data field consists of the following subfields:

FieldTypeRemarks

address

String

the address of did owner

  • Response Body

{
    "code": "200",
    "msg": "ok",
    "data": {
        "address": "0x0e35437927f8080b48124cdf89eb64CD15b934644"
    }
}
  • Return Code

codedescRemarks

200

success

the flag for a successful request

Last updated