[#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(0x7f2e1e597878), requires_capability(0x7f2e11aa8638), requires_capability(0x7f2e169fe428), requires_capability(0x7f2e15f2d8c8), requires_capability(0x7f2e12c6c558)]] 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]#