CScript::IsPayToWitnessScriptHash

Returns whether this script is a pay-to-witness-script-hash (P2WSH) output.

Synopsis

Declared in <script/script.h>

bool
IsPayToWitnessScriptHash() const;

Return Value

true if the script matches the P2WSH pattern.