[#CTxMemPool-exists-0c]
= xref:CTxMemPool.adoc[CTxMemPool]::exists
:relfileprefix: ../
:mrdocs:

`exists` overloads

== Synopses

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

Returns whether a transaction with the given txid is in the mempool&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:CTxMemPool/exists-07.adoc[exists](xref:Txid.adoc[Txid] const& txid) const;
----

[.small]#xref:CTxMemPool/exists-07.adoc[_» more&period;&period;&period;_]#

Returns whether a transaction with the given wtxid is in the mempool&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:CTxMemPool/exists-04.adoc[exists](xref:Wtxid.adoc[Wtxid] const& wtxid) const;
----

[.small]#xref:CTxMemPool/exists-04.adoc[_» more&period;&period;&period;_]#

== Return Value

true if the transaction exists in the mempool&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txid*
| The txid to look up&period;
| *wtxid*
| The wtxid to look up&period;
|===


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