Пример #1
0
        public IActionResult AddTransaction([FromBody] CoinTransaction arg)
        {
            var result = _myChain.AddTransaction(arg.Sender, arg.Receiver, arg.Amount);

            return(Ok(new
            {
                message = "Transaction Added to pool",
                transaction = arg,
                blockIndex = result
            }));
        }