POST
/
api
/
user
/
getUserAddress
curl --request POST \
  --url https://waasapi.url/api/v1/api/user/getUserAddress \
  --header 'Content-Type: <content-type>' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "chainName": "TRON",
  "symbol": "USDT",
  "tenantUserId": "tenant123",
  "env": "",
  "userId": 1318758,
  "tenantType": 1
}'
{
  "code": 0,
  "data": {
    "tenantUserId": "tenant123",
    "chainName": "TRON",
    "address": "TPXLEfsrochsCB3WiTb7urvnx7wtQZKbFm",
    "tag": "",
    "state": 1,
    "riskScore": 85
  },
  "message": ""
}

接口描述

获取用户存币地址,若没有该用户会自动注册用户 ID 并返回钱包地址。

Headers

Content-Type
string
required

请求内容类型

Example:

"multipart/form-data"

X-API-KEY
string
required

平台方分配的 API-KEY

Example:

"your-api-key"

Body

application/json

用户参数(JSON 格式)用于获取存币地址的请求。若用户不存在,会自动注册。

The body is of type object.

Response

200
application/json

成功返回用户存币地址。

The response is of type object.