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

Returns the cached witness transaction id&period;

== Synopsis

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

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

== Return Value

The transaction hash, including witness data&period;


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