[#OutputType] = OutputType :mrdocs: Address encoding to use for a newly generated destination. == Synopsis Declared in `<outputtype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class OutputType : int; ---- == Members [cols="1,4"] |=== | Name| Description | `LEGACY` | Base58 pay‐to‐public‐key‐hash address (P2PKH). | `P2SH_SEGWIT` | Base58 pay‐to‐script‐hash address wrapping a witness program (P2SH‐P2WPKH). | `BECH32` | Bech32 version‐0 witness address (P2WPKH). | `BECH32M` | Bech32m version‐1 taproot address (P2TR). | `UNKNOWN` | An address of an unrecognized or unsupported type. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:FormatOutputType.adoc[`FormatOutputType`] | Return the string name of an output type. | xref:OutputTypeFromDestination.adoc[`OutputTypeFromDestination`] | Get the OutputType for a CTxDestination | xref:ParseOutputType.adoc[`ParseOutputType`] | Parse an output type from its string name. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#