获取买家信息
接口调用
POST
https://open.tronify.io/api/tronRent/user/info
以下参数带*字段为必填,不带*号为选填
Headers
Name
Type
Description
api-key*
String
访问tronify.io买家管理平台获取
Request Body
Name
Type
Description
address*
String
用户地址(钱包地址)
sourceFlag*
String
渠道来源(需要双方约定一个名称来代表三方的渠道)
{
"resCode": 100,
"resMsg": "Success",
"data": {
"id": 15,
"address": "TUFXua1qzfCsFpcZEGXaU7oGFURqQ7RQpy",
"balance": "0", //充值trx数量
"invitationCode": "",
"tronAddress": "TBuPND7n66qNf3AbYNJA458duuV3ZyWtUk",
"freezeBalance": null,
"whiteState": 0,
"giftBalance": "0", //充值奖励trx数量
"apiKey": "your-api-key",
"sourceFlag": "tronify",
"totalBalance": "0", //总trx数量
"contractAddress": "TXnafj5Xh4G7jqTwajvdvaAvKegMwCLTyL", // 平台存币地址
"giftRatio": [ //单笔充值trx数量范围和对应充值trx数量的奖励比例
[
50,
100,
0.1
],
[
100,
100000,
0.2
]
]
}
}
调用示例
// example
const params = {
address: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
sourceFlag: 'tronLink'
}
const headers = {
'api-key': 'your-api-key'
};
const res = await axios.post('https://open.tronify.io/api/tronRent/user/info',params, { headers })
console.log(res)
if(res.resCode === '100'){
//...
}
Postman 示例

Last updated