> 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/tron-api/query-sell-order-records-by-user-address.md).

# 查询地址出售记录

### &#x20;接口调用

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

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

#### Request Body

| Name                                          | Type    | Description                                                                                                                                                                               |
| --------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sourceFlag<mark style="color:red;">\*</mark>  | String  | 渠道来源（需要双方约定一个名称来代表三方的渠道）                                                                                                                                                                  |
| page<mark style="color:red;">\*</mark>        | Integer | 页码                                                                                                                                                                                        |
| pageSize<mark style="color:red;">\*</mark>    | Integer | 条数                                                                                                                                                                                        |
| orderType<mark style="color:red;">\*</mark>   | String  | <p>0: 查询已完成的卖单<br>1：查询状态是wait\_deposit\_send, wait\_receive\_send, error\_hacker, error, wait\_receive\_confirm, wait\_receive\_confirm\_error, wait\_unfreeze的出售订单 <br>其他值：查询所有的出售订单</p> |
| fromAddress<mark style="color:red;">\*</mark> | String  | 用户地址                                                                                                                                                                                      |

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

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "data": [
            {
                "orderId": "ud0xs8vw_pdc1_01ao_dvlp_fkv141z3dmnc",
                "relateOrderId": "mt1wxcl1_dplo_r0qp_5bho_w5an5hev6d70",
                "orderType": "ENERGY",
                "orderPrice": "110",
                "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
                "pledgeNum": "500",
                "orderStatus": "timeout",
                "pledgeTrxNum": "28",
                "expireTime": "2023-04-14 15:44:00",
                "createTime": "2023-04-11 15:44:00",
                "pledgeHash": ""
            },
            {
                "orderId": "kgd270ul_k486_kt7e_8yq2_nvgev6he6zdh",
                "relateOrderId": "mt1wxcl1_dplo_r0qp_5bho_w5an5hev6d70",
                "orderType": "ENERGY",
                "orderPrice": "110",
                "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
                "pledgeNum": "600",
                "orderStatus": "timeout",
                "pledgeTrxNum": "34",
                "expireTime": "2023-04-14 14:06:00",
                "createTime": "2023-04-11 14:06:00",
                "pledgeHash": "0a5eaefb965dedaf1817806fce0d6df1495a2364e714775ee1dc13953f694d18"
            },
            ...
        ],
        "pagination": {
            "page": 1,
            "pageSize": 10,
            "total": 7
        }
    }
}
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

### 调用示例

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

```
// example
const params = {
    fromAddress: 'TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS',
    orderType: 0,
    page: 1,
    pageSize: 10,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/myfreeze',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="/files/6jO76gEHwnCXSFJZ1KwM" alt=""><figcaption></figcaption></figure>
