[#wallet-CWallet-GetWalletTx] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::GetWalletTx :relfileprefix: ../../ :mrdocs: Look up a wallet transaction by its txid. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f94fde04328), requires_capability(0x7f95061a7068), requires_capability(0x7f94f2b77b78), requires_capability(0x7f94f0cf6808), requires_capability(0x7f94fee391f8)]] xref:wallet/CWalletTx.adoc[CWalletTx] const* GetWalletTx(xref:Txid.adoc[Txid] const& hash) const; ---- == Return Value The wallet transaction, or nullptr if not found. == Parameters [cols="1,4"] |=== | Name| Description | *hash* | The txid to look up. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#