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

Returns whether the output spent by an input belongs to the wallet&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95061f9628)&rsqb;&rsqb;
bool
InputIsMine(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    xref:CTxIn.adoc[CTxIn] const& txin);
----

== Return Value

true if the spent output is owned by the wallet&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet to check ownership against&period;
| *txin*
| The input whose previous output is checked&period;
|===


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