> 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-buyer/buyer-asset-records.md).

# 买家trx变化记录

### 接口调用

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

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

#### Headers

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                         | Type   | Description                                        |
| -------------------------------------------- | ------ | -------------------------------------------------- |
| address<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）                                         |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）                           |
| pageSize<mark style="color:red;">\*</mark>   | String | 条数                                                 |
| pageNum<mark style="color:red;">\*</mark>    | String | 页码                                                 |
| types                                        | String | <p>数组，传\[]查所有类型<br>'0'充值；<br>'1'提币；<br>'2'出售能量</p> |

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

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "total": 9,
        "list": [
            {
                "id": 100,
                "platformAddr": "TNuwNr2rxaptoCrkEc1tEL7ihTsB9fost1",
                "tronAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "balance": "20",
                "type": "1",
                "status": "complete",
                "createTime": "2023-06-21 00:02:41",
                "updateTime": "2023-06-20T16:03:51.000Z",
                "orderId": "qrfoum6b_e15i_c71f_mr1p_rda2f1df0i2k",
                "fromHash": "e1af0c1cfcbcd8156dc44f0d7b4efb2aa3184886933cd8a80b1297182be8e824"
            },
            {
                "id": 99,
                "platformAddr": "TNuwNr2rxaptoCrkEc1tEL7ihTsB9fost1",
                "tronAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "balance": "20",
                "type": "0",
                "status": "complete",
                "createTime": "2023-06-21 00:02:16",
                "updateTime": "2023-06-20T16:02:16.000Z",
                "orderId": "l8bmicd1_qljt_5w91_lr9x_7a8k85ojd5f8",
                "fromHash": "73c9815e1cb7a25f0a5c66fe0c0847b1ce55b287ad46c297e6479f4ef3d09367"
            },
            {
                "id": 92,
                "platformAddr": "TNuwNr2rxaptoCrkEc1tEL7ihTsB9fost1",
                "tronAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "balance": "3.68",
                "type": "2",
                "status": "complete",
                "createTime": "2023-06-20 15:07:42",
                "updateTime": "2023-06-20T07:08:56.000Z",
                "orderId": "mxxxeymv_1lkl_9b3e_kehf_tnwiazfzmluo",
                "fromHash": ""
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

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

```
// example
const params = {
    types: [],
    startTime: "",
    endTime: "",
    pageNum: 1,
    pageSize: 10,
    address: "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
    sourceFlag: "path"
}
const headers = {
  'api-key': 'your-api-key'
};
 const res = await axios.post('https://open.tronify.io/api/tronRent/user/get/fundflow',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="/files/RmlZWFeWYz6Ijtpf7B7L" alt=""><figcaption></figcaption></figure>
