获取卖家面板

接口调用

POST https://open.tronify.io/api/tronRent/sellerSellInfo

以下参数带*字段为必填,不带*号为选填

Headers

Name
Type
Description

api-key*

访问tronify.io买家管理平台获取

Request Body

Name
Type
Description

fromAddress*

String

用户地址(钱包地址)

sourceFlag*

String

渠道来源(需要双方约定一个名称来代表三方的渠道)

{
    "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 示例

Last updated