# 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": 1000, //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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-tron.en.tronify.io/tron-api/get-related-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
