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