🎊Explorer API

We are not currently open to the public for our API application, please submit your information from here and we will configure a dedicated [ DappKey ]

POST /interfa/v1/auth

ParamTypeRequired?Description

Token

String

Required

Dappkey acquired from the admin

Returns a JSON object containing the AccessToken and RefreshToken.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v1/auth' \
-H 'Token: <DappKey>' \
-H 'Content-Type: application/json'
// Response Example
{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {
        "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzM0ODE5OTMsImlhdCI6MTcxMDQwOTk5Mywiand0RGFwcElasdc3123oiQzI1NUtRMFBTVlk0UjZX1231DYxUjRHUTUwQ09PSVZSSVUifQ.nlg5vzO-0XjRzqg3z-90F-O1YbnRyFj8btpWyFAI_SI",
        "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzM0ODE5OTMsImlhdCI6MTcxMDQwOTk5Mywiand0RGFwcElkIjoiQzI1NUtRMFBTVlk0UjROVDYxUjRasas2ewQ09PSVZSSVUifQ.nlg5vzO-0XjRzqg3z-90F-O1YbnRyFj8btpWyFAI_SI",
        "accessExpire": 162341315435,
        "refreshAfter": 162341315435
    }
}

POST /interfa/v1/login/account

ParamTypeRequired?Description

Authorization

String

Required

Get AccessToken from /interfa/v1/auth

address

String

Required

Wallet Address

Returns a JSON object providing the user's information, AccountInfo.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v1/login/account' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
  "address": "0xc593e54A2016ea8FD71a4F62974BeC65f74C909C",
}'
// Response Example:
{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {
	"accountInfo": {
            "uxuyId": "4A2016ea8X2dsa2", //userId
            "name": "uxlink",
            "avatar": "https://avatar.jpg", 
            "address": "0xc593e54A2016ea8FD71a4F62974BeC65f74C909C", //UXWallet Address
        }
    }
}

POST /interfa/v1/user/relation/list

ParamTypeRequired?Description

Authorization

String

Required

Get AccessToken from /interfa/v1/auth

pageSize

Int

Required

20

nextToken

String

Required

pageSize can be null if it is 1, otherwise get it in the returned JSON.

address

String

Required

Wallet Address

Returns a JSON object, i.e. the user's social data.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v1/user/relation/list' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
  "pageSize": 20,
  "nextToken": "eyJleHAiOjE3NzM0ODE5OTMsImlhdCI6MTcxMDQwOTk5Mywiand0RGFwcElkIjoiQzI1NUtRMFBTVlk0UjROVDYxUjRasas2ewQ09PSVZSSVUifQ",
  "address": "0xc593e54A2016ea8FD71a4F62974BeC65f74C909C"
}' 
// Response Example:
{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {
      "pageSize": 20, 
      "nextPage": true,
      "nextToken": "eyJleHAiOjE3NzM0ODE5OTMsImlhdCI",
	   "list": [
	       {
		  "uxuyId": "12313100000000", 
		  "name": "ali", 
		  "avatar": "https://dsdfsdfs.jpg", 
	          "address": "0x24234234234234", 
	       },
            ]
    }
}

POST /interfa/v1/user/token/list

ParamTypeRequired?Description

Authorization

String

Required

Get AccessToken from /interfa/v1/auth

address

String

Required

Wallet Address

chainId

String

Optional

Only single choice or do not fill in, do not fill in is the full chain

Return a JSON object, i.e. query the user's wallet asset details.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v1/user/token/list' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
  "address": "0xc593e54A2016ea8FD71a4F62974BeC65f74C909C",
  "chainId": "eth"
}' 
// Response Example:
{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {
        "list": [
		  {
                     "id": "0x0000000000004946c0e9f43f4dee607b0ef1fa1c",
                     "chain": "eth",
                     "name": "Chi Gastoken by 1inch",
                     "symbol": "CHI",
                     "optimizedSymbol": "CHI",
                     "decimals": 18,
                     "logoUrl": "https://static.debank.com/image/eth_token/logo_url/0x0000000000004946c0e9f43f4dee607b0ef1fa1c/5d763d01aae3f0ac9a373564026cb620.png",
                     "protocolId": "1inch",
                     "price": 0,
                     "isCore": true,
                     "isWallet": true,
                     "timeAt": 1546294558,
                     "amount": 21.709487132565773,
                     "rawAmount": "21709487132565774000" // Raw amount, based on decimal to determine decimal places
                     "usdValue": 21.3333, // Corresponding usd value
                  },
                  {...}
         ]
   }
}

POST /interfa/v1/trade2earn (Coming soon...)

ParamTypeRequired?Description

Authorization

String

Required

Get AccessToken from /interfa/v1/auth

address

String

Required

Wallet Address

orderId

String

Required

Order ID (business number, trade number, etc. should not duplicate)

amount

float64

Required

Amount of reward

tx

String

Optional

Transaction

orderTime

int64

Optional

Order creation timestamp (s)

orderDesc

String

Optional

Order description maxLength: 255

Returns a JSON object providing result of recording.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v1/trade2earn' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
  "address": "0xc593e54A2016ea8FD71a4F62974BeC65f74C3333",
  "orderId": "NO22344556678888",
  "amount": 100,
  "tx": "0x1855b5beed926427969a91f4544059d2c2bbb31e27ac1c4f3cd96798f560bb33",
  "orderTime": 1717171200,
  "orderDesc": "wonderful deal"
}'
// Response Example:
{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {}
}

Code

CodeDescRemarks

200

success

the flag for a successful request

5001002

false

Last updated