[#CBlockHeaderAndShortTxIDs-GetShortID]
= xref:CBlockHeaderAndShortTxIDs.adoc[CBlockHeaderAndShortTxIDs]::GetShortID
:relfileprefix: ../
:mrdocs:

Computes the short ID for a transaction from its witness hash&period;

== Synopsis

Declared in `&lt;blockencodings&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
uint64&lowbar;t
GetShortID(xref:Wtxid.adoc[Wtxid] const& wtxid) const;
----

== Return Value

The truncated short transaction id&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wtxid*
| The witness transaction id to hash&period;
|===


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