Tron API En
Chinese API
  • Basic information
  • Tron API
    • Get related configuration
    • Pre-order
    • create trx engerg order
    • create usdt engerg order
    • create bandwidth order
    • upload purchase order hash
    • create a sell order
    • Earn energy by stake
    • recovered energy
    • cancel order
    • query purchase order
    • query recent finished order
    • query purchase order records by user address
    • query sell order records by user address
  • Seller Tron API
    • Get seller configuration
    • Seller authorization
    • Update seller configuration
    • Get seller panel
  • Buyer Tron API
    • Get buyer configuration
    • Buyer charge
    • Buyer withdraw
    • Buyer leas energy
    • Buyer leas energy records
    • Buyer asset records
  • FAQ
    • Error Code
Powered by GitBook
On this page
  • Endpoint usage
  • code example
  • Postman example
  1. Seller Tron API

Get seller panel

Endpoint usage

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

The fields with * are required, and the fields without * are optional

Headers

Name
Type
Description

api-key*

String

Access the buyer management platform of tronify.io to obtain it

Request Body

Name
Type
Description

fromAddress*

String

User address (Wallet address)

sourceFlag*

String

Source channel (Both sides need to agree on a name to represent the channel of the third parties)

{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "total_settled_amount":12318.87016499999,//Accumulated earnings
        "today_settled_amount":959.9134970000006,//Number of TRX settled today
        "today_settled_count":44,//Number of transactions settled today
        "today_sale_energy":5877000,//Energy sold today
        "today_pending_recover_energy":128000,//Energy waiting to be reclaimed today
        "today_pending_recover_trx":7906,//trx waiting to be reclaimed today
        "today_pending_recover_bandwidth":0,//Bandwidth to be reclaimed today
        "yesterday_settled_amount":1937.5649959999998,//Number of TRX settled yesterday
        "yesterday_settled_count":37,//Number of transactions settled yesterday
        "yesterday_sale_energy":8365000,//Energy sold yesterday
        "today_pending_amount":144.58000000000004//Number of TRX waiting to be settled
    }
}

code example

// 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/sellerSellInfo',params, { headers })
console.log(res)
if(res.resCode === '100'){
    //...  Check if res.data is empty, if it is, then it is unauthorized.
}

Postman example

PreviousUpdate seller configurationNextGet buyer configuration

Last updated 1 year ago