接口调用
POST
https://open.tronify.io/api/tronRent/sellerSellInfo
以下参数带*字段为必填,不带*号为选填
Request Body
{
"resCode": 100,
"resMsg": "Success",
"data": {
"total_settled_amount":12318.87016499999,//累计收益
"today_settled_amount":959.9134970000006,//今日已结算trx
"today_settled_count":44,//今日已结算笔数
"today_sale_energy":5877000,//今日已出售能量
"today_pending_recover_energy":128000,//今日待回收能量
"today_pending_recover_trx":7906,//今日待回收trx
"today_pending_recover_bandwidth":0,//今日待回收带宽
"yesterday_settled_amount":1937.5649959999998,//昨日已结算trx
"yesterday_settled_count":37,//昨日已结算笔数
"yesterday_sale_energy":8365000,//昨日已出售能量
"today_pending_amount":144.58000000000004//待结算trx
}
}
调用示例
// example
const params = {
fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
sourceFlag: 'tronLink'
}
const headers = {
'api-key': 'your-api-key'
};
const res = await axios.post('https://open.tronify.io/api/tronRent/sellerSellInfo',params, { headers })
console.log(res)
if(res.resCode === '100'){
//...
}
Postman 示例