[#OutputType]
= OutputType
:mrdocs:

Address encoding to use for a newly generated destination&period;

== Synopsis

Declared in `&lt;outputtype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class OutputType : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `LEGACY` 
| Base58 pay&hyphen;to&hyphen;public&hyphen;key&hyphen;hash address (P2PKH)&period;
| `P2SH&lowbar;SEGWIT` 
| Base58 pay&hyphen;to&hyphen;script&hyphen;hash address wrapping a witness program (P2SH&hyphen;P2WPKH)&period;
| `BECH32` 
| Bech32 version&hyphen;0 witness address (P2WPKH)&period;
| `BECH32M` 
| Bech32m version&hyphen;1 taproot address (P2TR)&period;
| `UNKNOWN` 
| An address of an unrecognized or unsupported type&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:FormatOutputType.adoc[`FormatOutputType`]
| Return the string name of an output type&period;
| xref:OutputTypeFromDestination.adoc[`OutputTypeFromDestination`]
| Get the OutputType for a CTxDestination
| xref:ParseOutputType.adoc[`ParseOutputType`]
| Parse an output type from its string name&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
