public ActionResult <Crypto> Get() { var transaction = bcs.GetRawTransaction(txId, 1); var blockInfo = bcs.GetBlockchainInfo(); var acc = bcs.GetWalletInfo(); return(new Crypto { TransactionId = transaction.TxId, TransactionBlockHash = transaction.BlockHash, TransactionBlockTime = transaction.BlockTime, TransactionTime = transaction.Time, TransactionConfirmations = transaction.Confirmations, TransactionHex = transaction.Hex, TransactionLockTime = transaction.LockTime, TransactionVersion = transaction.Version, Chain = blockInfo.Chain, BlockHash = blockInfo.BestBlockHash, Blocks = blockInfo.Blocks, Balance = acc.Balance }); }