IsStandard

Determine whether a scriptPubKey uses a standard output form.

Synopsis

Declared in <policy/policy.h>

bool
IsStandard(
    CScript const& scriptPubKey,
    TxoutType& whichType);

Return Value

true if the script is a standard type.

Parameters

NameDescription
scriptPubKeyOutput script to classify.
whichTypeSet to the detected output type.