[#node-TxOrphanage-GetTx]
= xref:node.adoc[node]::xref:node/TxOrphanage.adoc[TxOrphanage]::GetTx
:relfileprefix: ../../
:mrdocs:

Get a transaction by its witness txid

== Synopsis

Declared in `&lt;node&sol;txorphanage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:CTransactionRef.adoc[CTransactionRef]
GetTx(xref:Wtxid.adoc[Wtxid] const& wtxid) const = 0;
----

== Return Value

The orphan transaction, or nullptr if it is not stored&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wtxid*
| Witness txid of the orphan to retrieve&period;
|===


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