/// <summary>
 /// Executes a transaction operation from "sender" to "target"
 /// </summary>
 /// <param name="sender">Sender account</param>
 /// <param name="target">Destination account</param>
 /// <param name="amount">Coins to be transferred</param>
 /// <param name="fee">Fee of the operation</param>
 /// <param name="payload">Payload "item" that will be included in this operation</param>
 /// <param name="payloadMethod">Encode type of the item payload</param>
 /// <param name="pwd">Used to encrypt payload with aes as a payload_method. If none equals to empty password</param>
 /// <returns>If transaction is successfull will return a JSON Object in "Operation Object" format. Otherwise, will return a JSON-RPC error code with description</returns>
 public static Task <Operation> SendToAsync(this IPascalCoinClient client, uint sender, uint target, decimal amount, decimal fee, byte[] payload = null, PayloadEncryptionMethod?payloadMethod = null, string pwd = null)
 {
     return(Task.Run(() => client.SendTo(sender, target, amount, fee, payload, payloadMethod, pwd)));
 }