[#CTransaction-GetHash] = xref:CTransaction.adoc[CTransaction]::GetHash :relfileprefix: ../ :mrdocs: Returns the cached transaction id. == Synopsis Declared in `<primitives/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:Txid.adoc[Txid] const& GetHash() const; ---- == Return Value The transaction hash, excluding witness data. [.small]#Created with https://www.mrdocs.com[MrDocs]#