Ingestion API

POST /interfa/v2/auth/token

Returns a JSON object containing the AccessToken and RefreshToken.

ParamTypeRequired?Description

Authorization

String

Required

code

String

Required

Code response from redirect url

state

String

Optional

state

grant_type

String

Required

authorization_code

redirect_url

String

Required

Redirect url given to authorization request

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v2/auth/token' \
-H 'Authorization: <Basic Auth>' \
-H 'Content-Type: application/json' \
-d '{
  "code": "CODE",
  "state": "STATE",
  "grant_type": "authorization_code",
  "redirect_url": "https://dapp.uxlink.io/airdrop2049"
}'
// Response Example:
{
  "success": true,
  "msg": "ok",
  "code": 200,
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1...8btpWyFAI_SI",
    "refreshToken": "eyJhbGciOiJIUzI1NiI...8btpWyFAI_SI",
    "accessExpire": 162341315435,
    "refreshAfter": 162341315435,
    "uxuyId": "177123456789"
  }
}

POST /interfa/v2/user/info

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

ParamTypeRequired?Description

Authorization

String

Required

Get AccessToken from /interfa/v2/auth/token

uxuyId

String

Required

when field "address" is missing.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v2/user/info' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
  "uxuyId": "177123456789"
}'
// Response Example:
{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {
        "uxuyId": "177123456789",
        "name": "uxlink",
        "avatar": "https://avatar.jpg", 
        "address": "0xADDRESS", //UXWallet Address
    }
}

POST /interfa/v2/user/relation/list

Returns a JSON objects, the user's social relevance.

ParamTypeRequired?Description

Authorization

String

Required

Get AccessToken from /interfa/v2/auth/token

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

Example:

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

POST /interfa/v2/user/wallet/list

Returns a JSON object providing wallet list of user's, include wallet verification.

ParamTypeRequired?Description

Authorization

String

Required

Get AccessToken from /interfa/v2/auth/token

address

String

Optional

Uxwallet address. Required when field "uxuyId" is missing.

uxuyId

String

Optioanl

Uxuy ID. Required when field "address" is missing.

Example:

curl -X POST 'https://exdapps.uxlink.io/interfa/v2/user/wallet/list' \
-H 'Authorization: <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
	"address": "0xADDRESS",
	"uxuyId": "1231231243242"
}'
// Success Response Example:
{
  "success": true,
  "msg": "ok",
  "code": 200,
  "data": {
    "walletList": [
      {
        "uxuyId": "1231231243242",
        "address": "0xADDRESS",
        "walletType": 1,
        "verified": true
      }
    ]
  }
}

Last updated