> For the complete documentation index, see [llms.txt](https://docs-tron.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.tronify.io/stakepal-api/get-configuration-information.md).

# 获取配置信息

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/init`&#x20;

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

#### Request Body

| Name                                         | Type   | Description              |
| -------------------------------------------- | ------ | ------------------------ |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |

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

```javascript
 {
  "resCode": 100,
  "resMsg": "Success",
  "data": {
    "sentTRXFee": 1, //提现手续费（TRX）
    "stakingLimitMin": 10000, //代理数量最小值
    "stakingLimitMax": 200000000, //代理数量最大值
    "delegateSettlementPrice": **, //代理结算单价（Sun）
    "apr": "**.**%", //包含投票收益的年化收益率
    "energyApr": "**", //能量的年化收益率
    "transferType": [  //转账类型及对应能量值
      { "type": "transfer", "value": "64400" },
      { "type": "notUtransfer", "value": "130400" }
    ]
  }
}

```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

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

```
// example
const params = {
    "sourceFlag": "staking"
}
 const res = await axios.post('https://open.tronify.io/api/init',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2F70ma8sfLsHaCcG284ZHG%2Fimage.png?alt=media&amp;token=36972f68-afcc-4c73-8849-b5a007d99ee2" alt=""><figcaption></figcaption></figure>
