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