public IHttpActionResult GetUnspentTX(String Address) { BitcoinService foo = new BitcoinService(IP, rpcuser, rpcpassword, WalletPassword, 120); List <ListUnspentResponse> hello = foo.ListUnspent(0, 100000000, new List <string>() { Address }); List <UnspentTransaction> outputs = new List <UnspentTransaction>(); foreach (ListUnspentResponse a in hello) { UnspentTransaction unspent = new UnspentTransaction(); unspent.txid = a.TxId; unspent.vout = a.Vout; unspent.scriptPubKey = a.ScriptPubKey; unspent.amount = a.Amount; outputs.Add(unspent); } return(Json(outputs)); // JsonConvert.SerializeObject(outputs); }