コード例 #1
0
 public static Money GetMoneyValue(this UnspentResult result) => new Money((long)result.Value);
コード例 #2
0
 public static uint256 GetTxId(this UnspentResult result) => uint256.Parse(result.TxId);
コード例 #3
0
 public static Script GetScript(this UnspentResult result) => Script.FromHex(result.Script);
コード例 #4
0
 public static ICoin ToCoin(this UnspentResult result) => new Coin(
     result.GetTxId(),
     (uint)result.Index,
     result.GetMoneyValue(),
     result.GetScript()
     );
コード例 #5
0
 public static TransactionBuilder AddUnspent(this TransactionBuilder builder, UnspentResult unspent) =>
 builder.AddCoin(unspent.ToCoin());