# TRX转账(新增备注)

**简要描述**

* TRX转账(新增备注)接口

**请求URL**

* `/api/trx/sendv2?to=TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny&key=41369219ae69fc11ecb589cdd5fdd9a0248918402bdf4d6fe0a7fb6ca752b38b&account=10`

**请求方式**

* GET

**参数**

| 参数名     | 必选    | 类型     | 说明         |
| ------- | ----- | ------ | ---------- |
| to      | 是     | string | 收TRX钱包地址   |
| key     | 是     | string | 转出TRX的钱包私钥 |
| account | float | string | 转出的TRX金额   |
| message | 是     | string | 备注         |

**返回示例**

```
{
    "code": 0,
    "msg": "class org.tron.core.exception.ContractValidateException : Validate TransferContract error, no OwnerAccount.",
    "data": null,
    "time": 1652930705
}



{
    "code": 1,
    "data": {
        "result": true,
        "txid": "8162bb92f4185370bfa257fe8b1dd7f2fc12ebe51211d8dbead9e4cdf44336b5",
        "visible": false,
        "txID": "8162bb92f4185370bfa257fe8b1dd7f2fc12ebe51211d8dbead9e4cdf44336b5",
        "raw_data": {
            "data": "e8bf99e698afe5a487e6b3a8",
            "contract": [
                {
                    "parameter": {
                        "value": {
                            "amount": 1,
                            "owner_address": "41f5fbe5e8725957174014dca1dc4fed54e970a2f8",
                            "to_address": "41d46b2c182e2248b98429a384b7cd35616b7e4346"
                        },
                        "type_url": "type.googleapis.com/protocol.TransferContract"
                    },
                    "type": "TransferContract"
                }
            ],
            "ref_block_bytes": "fbaf",
            "ref_block_hash": "427cd77205a712c2",
            "expiration": 1659153918000,
            "timestamp": 1659153861347
        },
        "raw_data_hex": "0a02fbaf2208427cd77205a712c240b0d09eeaa430520ce8bf99e698afe5a487e6b3a85a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541f5fbe5e8725957174014dca1dc4fed54e970a2f8121541d46b2c182e2248b98429a384b7cd35616b7e4346180170e3959beaa430",
        "signature": [
            "ae513726f54157edfd98b6bce49b154f1e60716465cfe1f646c3ce66647671559ddcd6f8f800615d951319ef14bed705b498197743b5afaf36b2df5c631d6f5d01"
        ]
    },
    "msg": "操作成功",
    "time": 1659153861
}
```

**返回参数说明**

| 参数名            | 类型   | 说明            |
| -------------- | ---- | ------------- |
| result         | bool | true 代表交易成功   |
| txID           | int  | 交易哈希，用于查账     |
| raw\_data-data | int  | 这个就是备注的16进制参数 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tronapi.gitbook.io/trx/trx-zhuan-zhang-xin-zeng-bei-zhu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
