[#CCoinsViewCache-HaveInputs]
= xref:CCoinsViewCache.adoc[CCoinsViewCache]::HaveInputs
:relfileprefix: ../
:mrdocs:

Check whether all prevouts of the transaction are present in the UTXO set represented by this view

== Synopsis

Declared in `&lt;coins&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
HaveInputs(xref:CTransaction.adoc[CTransaction] const& tx) const;
----

== Return Value

True if every input prevout is unspent in this view&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Transaction whose inputs to check&period;
|===


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