public async Task <IActionResult> TransferWithChange([FromBody] TransferWithChangeModel model)
        {
            if (!ModelState.IsValid)
            {
                throw new ClientSideException(ExceptionType.WrongParams, JsonConvert.SerializeObject(ModelState.Errors()));
            }

            await Log("TransferWithChange", $"Begin Process {this.GetIp()}", model);

            BigInteger amount      = BigInteger.Parse(model.Amount);
            BigInteger change      = BigInteger.Parse(model.Change);
            var        operationId = await _pendingOperationService.TransferWithChange(model.Id, model.CoinAdapterAddress,
                                                                                       _addressUtil.ConvertToChecksumAddress(model.FromAddress), _addressUtil.ConvertToChecksumAddress(model.ToAddress),
                                                                                       amount, model.SignFrom, change, model.SignTo);

            await Log("TransferWithChange", "End Process", model, operationId);

            return(Ok(new OperationIdResponse {
                OperationId = operationId
            }));
        }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> ApiExchangeTransferWithChangePostAsync(this IEthereumApi operations, TransferWithChangeModel model = default(TransferWithChangeModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ApiExchangeTransferWithChangePostWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 public static object ApiExchangeTransferWithChangePost(this IEthereumApi operations, TransferWithChangeModel model = default(TransferWithChangeModel))
 {
     return(operations.ApiExchangeTransferWithChangePostAsync(model).GetAwaiter().GetResult());
 }