[#CTxMemPool-exists-04] = xref:CTxMemPool.adoc[CTxMemPool]::exists :relfileprefix: ../ :mrdocs: Returns whether a transaction with the given wtxid is in the mempool. == Synopsis Declared in `<txmempool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool exists(xref:Wtxid.adoc[Wtxid] const& wtxid) const; ---- == Return Value true if the transaction exists in the mempool. == Parameters [cols="1,4"] |=== | Name| Description | *wtxid* | The wtxid to look up. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#