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

# Pre-check

### Endpoint usage

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

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

#### Request Body

| Name                                             | Type   | Description                   |
| ------------------------------------------------ | ------ | ----------------------------- |
| fromAddress<mark style="color:red;">\*</mark>    | String | User address (Wallet address) |
| receiveAddress<mark style="color:red;">\*</mark> | String | Receiving Address             |

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

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "fromAddress": "TWQFDEnAmgNPEFcQy46oggZLG3yDfXEokx",
        "receiveAddress": "TTkAKt1JFPcPzqbyrgRF199C1thy7DbBMb",
        "stakingSun": "241000000",  //Self-stake still in staking
        "unstakingSun": "0", //The amount currently unlocking and not yet matured
        "balanceSun": "178399356",  //The account's current available TRX balance.
        "hasDelegatedEnergy": false,  //Whether there is still any delegated energy that has not yet been reclaimed.
        "hasDelegatedBandwidth": false, //Any delegated bandwidth that has not yet been reclaimed
        "heldTokens": [
            {
                "symbol": "USDT",
                "address": "TR7NHqjexxxxxxxxxxxxxxxxxxx",
                "balance": "0.102308"
            }
        ],
        "feeRate": 0.05,  //Fee rate
        "unstakeLimitMin": 10,  //Minimum instant-redemption amount
        "unstakeLimitMax": 100000  //Maximum instant-redemption amount
    }
}
 
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

### code example

{% 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 example

<figure><img src="https://3188465811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnv0Qbx2yTtH3TKQFd528%2Fuploads%2Fuick0moWj6UXdnLbv8bF%2Fimage.png?alt=media&amp;token=711256a4-bf10-4a2a-9bd3-2c55fae0a868" alt=""><figcaption></figcaption></figure>
