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

Name

Description

scriptPubKey

Output script to classify.

whichType

Set to the detected output type.

Created with MrDocs