private static CoinReference UnspentToCoinReferenece(Unspent unspent) { return(new CoinReference() { PrevHash = UInt256.Parse(unspent.TxId), PrevIndex = (ushort)unspent.N }); }
public static UnspentBalance FromJson(JObject json) { return(new UnspentBalance { Unspents = ((JArray)json["unspent"]).Select(p => Unspent.FromJson(p)).ToArray(), AssetHash = json["asset_hash"].AsString(), Asset = json["asset"].AsString(), AssetSymbol = json["asset_symbol"].AsString(), Amount = Fixed8.FromDecimal(decimal.Parse(json["amount"].AsString())) }); }