コード例 #1
0
ファイル: Program.cs プロジェクト: joeqian10/BuildTransaction
 private static CoinReference UnspentToCoinReferenece(Unspent unspent)
 {
     return(new CoinReference()
     {
         PrevHash = UInt256.Parse(unspent.TxId),
         PrevIndex = (ushort)unspent.N
     });
 }
コード例 #2
0
 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()))
     });
 }