OutputType

Address encoding to use for a newly generated destination.

Synopsis

Declared in <outputtype.h>

enum class OutputType : int;

Members

NameDescription
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

NameDescription
FormatOutputTypeReturn the string name of an output type.
OutputTypeFromDestinationGet the OutputType for a CTxDestination
ParseOutputTypeParse an output type from its string name.