[#wallet-CWallet-GetWalletTx]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::GetWalletTx
:relfileprefix: ../../
:mrdocs:

Look up a wallet transaction by its txid&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1e597878), requires&lowbar;capability(0x7f2e11aa8638), requires&lowbar;capability(0x7f2e169fe428), requires&lowbar;capability(0x7f2e15f2d8c8), requires&lowbar;capability(0x7f2e12c6c558)&rsqb;&rsqb;
xref:wallet/CWalletTx.adoc[CWalletTx] const*
GetWalletTx(xref:Txid.adoc[Txid] const& hash) const;
----

== Return Value

The wallet transaction, or nullptr if not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hash*
| The txid to look up&period;
|===


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