[#CTxDestination]
= CTxDestination
:mrdocs:

A txout script categorized into standard templates&period; &ast; CNoDestination&colon; Optionally a script, no corresponding address&period; &ast; PubKeyDestination&colon; TxoutType&colon;&colon;PUBKEY (P2PK), no corresponding address &ast; PKHash&colon; TxoutType&colon;&colon;PUBKEYHASH destination (P2PKH address) &ast; ScriptHash&colon; TxoutType&colon;&colon;SCRIPTHASH destination (P2SH address) &ast; WitnessV0ScriptHash&colon; TxoutType&colon;&colon;WITNESS&lowbar;V0&lowbar;SCRIPTHASH destination (P2WSH address) &ast; WitnessV0KeyHash&colon; TxoutType&colon;&colon;WITNESS&lowbar;V0&lowbar;KEYHASH destination (P2WPKH address) &ast; WitnessV1Taproot&colon; TxoutType&colon;&colon;WITNESS&lowbar;V1&lowbar;TAPROOT destination (P2TR address) &ast; PayToAnchor&colon; TxoutType&colon;&colon;ANCHOR destination (P2A address) &ast; WitnessUnknown&colon; TxoutType&colon;&colon;WITNESS&lowbar;UNKNOWN destination (P2W??? address) A CTxDestination is the internal data type encoded in a bitcoin address

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using CTxDestination = std::variant&lt;CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown&gt;;
----


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