[#CTxMemPool-GetIter-05]
= xref:CTxMemPool.adoc[CTxMemPool]::GetIter
:relfileprefix: ../
:mrdocs:

Returns an iterator to the given witness hash, if found

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d27f8), requires&lowbar;capability(0x7f9501b11bd8), requires&lowbar;capability(0x7f950ec77dc8), requires&lowbar;capability(0x7f9525ea7b18), requires&lowbar;capability(0x7f9515097258), requires&lowbar;capability(0x7f950826b4f8), requires&lowbar;capability(0x7f94f856ec08), requires&lowbar;capability(0x7f9513c58df8)&rsqb;&rsqb;
std::optional&lt;txiter&gt;
GetIter(xref:Wtxid.adoc[Wtxid] const& wtxid) const;
----

== Return Value

An iterator to the entry, or std&colon;&colon;nullopt if not present&period;

== Parameters

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


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