Address encoding to use for a newly generated destination.
Declared in <outputtype.h>
enum class OutputType : int;
| 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. |
| Name | Description |
|---|---|
FormatOutputType | Return the string name of an output type. |
OutputTypeFromDestination | Get the OutputType for a CTxDestination |
ParseOutputType | Parse an output type from its string name. |