Exemple #1
0
        public IActionResult SignTransaction([FromBody] SignTransactionRequest request)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState.ToErrorResponse()));
            }

            var hex = _dynamicService.SignTransaction(request.Tx, request.Coins, request.Keys);

            return(Ok(new SignResponse()
            {
                SignedTransaction = hex
            }));
        }