[#CTransaction-GetHash]
= xref:CTransaction.adoc[CTransaction]::GetHash
:relfileprefix: ../
:mrdocs:

Returns the cached transaction id&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:Txid.adoc[Txid] const&
GetHash() const;
----

== Return Value

The transaction hash, excluding witness data&period;


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