[#transaction_identifier] = transaction_identifier :mrdocs: transaction_identifier represents the two canonical transaction identifier types (txid, wtxid). == Synopsis Declared in `<primitives/transaction_identifier.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<bool has_witness> class transaction_identifier; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:transaction_identifier/2constructor-0863.adoc[`transaction_identifier`] [.small]#[constructor]# | Constructors | xref:transaction_identifier/GetHex.adoc[`GetHex`] | Returns the identifier as a hex string. | xref:transaction_identifier/IsNull.adoc[`IsNull`] | Wrapped `uint256` methods. | xref:transaction_identifier/Serialize.adoc[`Serialize`] | Serializes the wrapped value to a stream. | xref:transaction_identifier/SetNull.adoc[`SetNull`] | Resets the identifier to its null value. | xref:transaction_identifier/ToString.adoc[`ToString`] | Returns a human‐readable description of the identifier. | xref:transaction_identifier/ToUint256.adoc[`ToUint256`] | Returns the underlying 256‐bit value. | xref:transaction_identifier/Unserialize.adoc[`Unserialize`] | Unserializes the wrapped value from a stream. | xref:transaction_identifier/begin.adoc[`begin`] | Returns an iterator to the first byte of the wrapped value. | xref:transaction_identifier/data.adoc[`data`] | Returns a pointer to the first byte of the wrapped value. | xref:transaction_identifier/end.adoc[`end`] | Returns an iterator past the last byte of the wrapped value. | xref:transaction_identifier/operator_eq.adoc[`operator==`] | Compares two identifiers for equality. | xref:transaction_identifier/operator_3way.adoc[`operator<=>`] | Orders two identifiers by their wrapped value. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:transaction_identifier/FromHex.adoc[`FromHex`] | Builds an identifier by parsing a hex string. | xref:transaction_identifier/FromUint256.adoc[`FromUint256`] | Builds an identifier from a raw 256‐bit value. | xref:transaction_identifier/size.adoc[`size`] | Returns the identifier size in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#