/// <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()})")); }
public ScanTxoutSetObject(ScanTxoutDescriptor descriptor, int?range = null) { if (descriptor == null) { throw new ArgumentNullException(nameof(descriptor)); } Descriptor = descriptor; Range = range; }
public ScanTxoutSetParameters(OutputDescriptor descriptor, int?begin = null, int?end = null) { Descriptors = new ScanTxoutDescriptor[1] { new ScanTxoutDescriptor(descriptor) { Begin = begin, End = end } }; }