# EasyTransferAssetByPrivate

{% hint style="danger" %}

#### Warning!

This API has the risk of leaking a private key, please make sure to call the API in a secure environment.
{% endhint %}

**Body params:**&#x20;

* `privateKey` - Private key, default hexString
* `toAddress` - To address, default hexString
* `assetId` - Token id
* `amount` - Token transfer amount
* `visible` - Optional, Whether the address is in base58 format.

**Request**

```
curl --request POST \
     --url https://tron.api.watchdata.io/wallet/easytransferassetbyprivate \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "privateKey": "D95611A9AF2A2A45359106222ED1AFED48853D9A44DEFF8DC7913F5CBA727366",
     "toAddress": "4112E621D5577311998708F4D7B9F71F86DAE138B5",
     "assetId": "1000001"
}
'
```

**Response**

```
{
  "result": {
    "code": "CONTRACT_VALIDATE_ERROR",
    "message": "416d6f756e74206d7573742062652067726561746572207468616e20302e"
  }
}
```
