[#transaction_identifier]
= transaction&lowbar;identifier
:mrdocs:

transaction&lowbar;identifier represents the two canonical transaction identifier types (txid, wtxid)&period;

== Synopsis

Declared in `&lt;primitives&sol;transaction&lowbar;identifier&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;bool has&lowbar;witness&gt;
class transaction&lowbar;identifier;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:transaction_identifier/2constructor-0863.adoc[`transaction&lowbar;identifier`]         [.small]#[constructor]#
| Constructors
| xref:transaction_identifier/GetHex.adoc[`GetHex`] 
| Returns the identifier as a hex string&period;
| xref:transaction_identifier/IsNull.adoc[`IsNull`] 
| Wrapped `uint256` methods&period;
| xref:transaction_identifier/Serialize.adoc[`Serialize`] 
| Serializes the wrapped value to a stream&period;
| xref:transaction_identifier/SetNull.adoc[`SetNull`] 
| Resets the identifier to its null value&period;
| xref:transaction_identifier/ToString.adoc[`ToString`] 
| Returns a human&hyphen;readable description of the identifier&period;
| xref:transaction_identifier/ToUint256.adoc[`ToUint256`] 
| Returns the underlying 256&hyphen;bit value&period;
| xref:transaction_identifier/Unserialize.adoc[`Unserialize`] 
| Unserializes the wrapped value from a stream&period;
| xref:transaction_identifier/begin.adoc[`begin`] 
| Returns an iterator to the first byte of the wrapped value&period;
| xref:transaction_identifier/data.adoc[`data`] 
| Returns a pointer to the first byte of the wrapped value&period;
| xref:transaction_identifier/end.adoc[`end`] 
| Returns an iterator past the last byte of the wrapped value&period;
| xref:transaction_identifier/operator_eq.adoc[`operator&equals;&equals;`] 
| Compares two identifiers for equality&period;
| xref:transaction_identifier/operator_3way.adoc[`operator&lt;&equals;&gt;`] 
| Orders two identifiers by their wrapped value&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:transaction_identifier/FromHex.adoc[`FromHex`] 
| Builds an identifier by parsing a hex string&period;
| xref:transaction_identifier/FromUint256.adoc[`FromUint256`] 
| Builds an identifier from a raw 256&hyphen;bit value&period;
| xref:transaction_identifier/size.adoc[`size`] 
| Returns the identifier size in bytes&period;
|===



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