Example #1
0
 /// <summary>
 /// Pay-to-witness-script-hash (P2WSH) output for script S
 /// </summary>
 /// <param name="descriptor"></param>
 /// <returns></returns>
 public static ScanTxoutDescriptor WSH(ScanTxoutDescriptor descriptor)
 {
     if (descriptor == null)
     {
         throw new ArgumentNullException(nameof(descriptor));
     }
     return(new ScanTxoutDescriptor($"wsh({descriptor.ToString()})"));
 }
Example #2
0
 public ScanTxoutSetObject(ScanTxoutDescriptor descriptor, int?range = null)
 {
     if (descriptor == null)
     {
         throw new ArgumentNullException(nameof(descriptor));
     }
     Descriptor = descriptor;
     Range      = range;
 }
Example #3
0
 public ScanTxoutSetParameters(OutputDescriptor descriptor, int?begin = null, int?end = null)
 {
     Descriptors = new ScanTxoutDescriptor[1] {
         new ScanTxoutDescriptor(descriptor)
         {
             Begin = begin, End = end
         }
     };
 }