[#wallet-CachedTxIsTrusted-04]
= xref:wallet.adoc[wallet]::CachedTxIsTrusted
:relfileprefix: ../
:mrdocs:

`CachedTxIsTrusted` overloads

== Synopses

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

Returns whether a wallet transaction is trusted&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:wallet/CachedTxIsTrusted-0c.adoc[CachedTxIsTrusted](
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    xref:wallet/CWalletTx.adoc[CWalletTx] const& wtx);
----

[.small]#xref:wallet/CachedTxIsTrusted-0c.adoc[_» more&period;&period;&period;_]#

Returns whether a wallet transaction is trusted, tracking visited parents&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e11aff1a0)&rsqb;&rsqb;
bool
xref:wallet/CachedTxIsTrusted-0e.adoc[CachedTxIsTrusted](
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    xref:wallet/CWalletTx.adoc[CWalletTx] const& wtx,
    std::set&lt;Txid&gt;& trusted&lowbar;parents);
----

[.small]#xref:wallet/CachedTxIsTrusted-0e.adoc[_» more&period;&period;&period;_]#

== Return Value

true if the transaction is trusted&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet that owns the transaction&period;
| *wtx*
| The wallet transaction to evaluate&period;
| *trusted&lowbar;parents*
| Set of parent txids already confirmed trusted, updated in place&period;
|===


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