Returns whether a transaction with the given txid is in the mempool.
Declared in <txmempool.h>
<txmempool.h>
bool exists(Txid const& txid) const;
true if the transaction exists in the mempool.