> For the complete documentation index, see [llms.txt](https://docs-tron.en.tronify.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-tron.en.tronify.io/tron-api/get-related-configuration.md).

# Get related configuration

### Endpoint usage

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/pledgeConfig`

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

#### Request Body

| Name                                         | Type   | Description                                                                                       |
| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark>    | String | User address (Wallet address)                                                                     |
| sourceFlag<mark style="color:red;">\*</mark> | String | Source channel (Both sides need to agree on a name to represent the channel of the third parties) |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "defaultDay": 3, //default freezing days
        "defaultEnergyPrice": 60, //default energy purchase price 
        "topEnergyPrice": 420, //energy purchase max price
        "lowEnergyPrice": 30, //energy purchase min price
        "topEnergyCanBuy": 1000000000, //energy purchase max value
        "lowEnergyCanBuy": 15000, //energy purchase min value
        "defaultWidthPrice": 900, //default bandwidth purchase price
        "topWidthPrice": 2000, //bandwidth purchase max price
        "lowWidthPrice": 600, //bandwidth purchase min price
        "topWidthCanBuy": 10000000, //bandwidth purchase max value
        "lowWidthCanBuy": 3500, //bandwidth purchase min value
        "refundRate": 0.1, //cancellation charge
        "sellerStakingTrxMinLimit": 10000, //The minimum limit for a seller to pledge TRX
        "energyPriceMaxSun": 1000, //The maximum limit for a seller to authorize the sale of energy
        "sendEnergy": 0,
        "receiveEnergy": 0,
        "sendWidth": 0,
        "receiveWidth": 0,
        "sun_1d": 95,
        "sun_1h": 85,
        "sun_2d": 90,
        "sun_3h": 90,
        "sun_10m": 80,
        "treasureType": [
            {
                "type": "transfer",
                "value": "32000"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### code example

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    address: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/pledgeConfig',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman example

<figure><img src="/files/8GVaqvvdQIzbhUIfD9CB" alt=""><figcaption></figcaption></figure>
