[#GenTxid] = GenTxid :mrdocs: A transaction identifier that holds either a txid or a wtxid. == Synopsis Declared in `<primitives/transaction_identifier.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class GenTxid : public std::variant<Txid, Wtxid> ---- == Base Classes [cols="1,4"] |=== | Name| Description | `std::variant<Txid, Wtxid>` | |=== == Type Aliases [cols="1"] |=== | Name | xref:GenTxid/__trivially_relocatable.adoc[`__trivially_relocatable`] |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:GenTxid/operator_assign-0e.adoc[`operator=`] | Assignment operators | xref:GenTxid/IsWtxid.adoc[`IsWtxid`] | Returns true when the identifier holds a wtxid. | xref:GenTxid/ToUint256.adoc[`ToUint256`] | Returns the underlying 256‐bit value, whichever alternative is held. | xref:GenTxid/emplace-017.adoc[`emplace`] | | xref:GenTxid/index.adoc[`index`] | | xref:GenTxid/swap.adoc[`swap`] | | xref:GenTxid/valueless_by_exception.adoc[`valueless_by_exception`] | |=== == Using Declarations [cols="1,4"] |=== | Name| Description | xref:GenTxid/GenTxid.adoc[`GenTxid`] | Inherits the variant constructors to build from a Txid or Wtxid. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:operator_3way-09.adoc[operator<=>]` | Orders identifiers by kind, then by wrapped value. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:ToGenTxid.adoc[`ToGenTxid`] | Convert a TX/WITNESS_TX/WTX CInv to a GenTxid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#