> 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/flash-unstake-api/pre-check.md).

# 预检测

### 接口调用

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

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

#### Request Body

| Name                                             | Type   | Description |
| ------------------------------------------------ | ------ | ----------- |
| fromAddress<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）  |
| receiveAddress<mark style="color:red;">\*</mark> | String | 收款地址        |

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

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "fromAddress": "TWQFDEnAmgNPEFcQy46oggZLG3yDfXEokx",
        "receiveAddress": "TTkAKt1JFPcPzqbyrgRF199C1thy7DbBMb",
        "stakingSun": "241000000",  // 仍在质押中的自质押
        "unstakingSun": "0",  // 解锁中、尚未到期的金额
        "balanceSun": "178399356", // 账户当前可用 TRX 余额
        "hasDelegatedEnergy": false,   // 是否仍有已代理出去、尚未收回的能量
        "hasDelegatedBandwidth": false,  // 是否仍有已代理出去、尚未收回的带宽
        "heldTokens": [
            {
                "symbol": "USDT",
                "address": "TR7NHqjexxxxxxxxxxxxxxxxxxx",
                "balance": "0.102308"
            }
        ],
        "feeRate": 0.05,  //手续费比例
        "unstakeLimitMin": 10,  //可闪赎下限
        "unstakeLimitMax": 100000  //可闪赎上限
    }
}
 
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

### 调用示例

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

```
// example
const params = {
    "fromAddress": "TWQFDEnAmgNPEFcQy46oggZLG3yDfXEokx",
    "receiveAddress": "TTkAKt1JFPcPzqbyrgRF199C1thy7DbBMb"
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/flashUnstakePrecheck',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%2F0G9FmZ1aNeGXTGOZzmJb%2Fimage.png?alt=media&amp;token=ef5eebad-8e97-4466-bfb0-b543647d7f84" alt=""><figcaption></figcaption></figure>
