Classification of a scriptPubKey into a standard output type.
Synopsis
Declared in <script/solver.h>
enum class TxoutType : int;
Members
Name |
Description |
|
Script that does not match any standard template |
|
anyone can spend script |
|
Pay‐to‐public‐key (P2PK) script |
|
Pay‐to‐public‐key‐hash (P2PKH) script |
|
Pay‐to‐script‐hash (P2SH) script |
|
Bare multisig script |
|
unspendable OP_RETURN script that carries data |
|
Pay‐to‐witness‐script‐hash (P2WSH) script |
|
Pay‐to‐witness‐public‐key‐hash (P2WPKH) script |
|
Pay‐to‐taproot (P2TR) script |
|
Only for Witness versions not already defined above |
Non-Member Functions
Name |
Description |
Get the name of a TxoutType as a string |
|
Parse a scriptPubKey and identify script type for standard scripts. If successful, returns script type and parsed pubkeys or hashes, depending on the type. For example, for a P2SH script, vSolutionsRet will contain the script hash, for P2PKH it will contain the key hash, etc. |
Created with MrDocs