[#wallet-CWalletTx-GetTx] = xref:wallet.adoc[wallet]::xref:wallet/CWalletTx.adoc[CWalletTx]::GetTx :relfileprefix: ../../ :mrdocs: Return the canonical transaction backing this wallet transaction. == Synopsis Declared in `<wallet/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CTransactionRef.adoc[CTransactionRef] GetTx() const; ---- == Return Value The canonical transaction reference. [.small]#Created with https://www.mrdocs.com[MrDocs]#