Get buyer configuration

Endpoint usage

POST https://open.tronify.io/api/tronRent/user/info

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

address*

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": {
        "id": 15,
        "address": "TUFXua1qzfCsFpcZEGXaU7oGFURqQ7RQpy",
        "balance": "0", //The deposit trx amount
        "invitationCode": "",
        "tronAddress": "TBuPND7n66qNf3AbYNJA458duuV3ZyWtUk",
        "freezeBalance": null,
        "whiteState": 0,
        "giftBalance": "0", //The reward trx amount for the deposit
        "apiKey": "your-api-key",
        "sourceFlag": "tronify",
        "totalBalance": "0", //total trx amount
        "contractAddress": "TXnafj5Xh4G7jqTwajvdvaAvKegMwCLTyL", // The platform deposit address.
        "giftRatio": [ //The range of deposit trx amount for a single transaction and the corresponding reward ratio.
            [
                50,
                100,
                0.1
            ],
            [
                100,
                100000,
                0.2
            ]
        ]
    }
}

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/user/info',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }

Postman example

Last updated