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

Returns an iterator to the given hash, if found

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1b5a2668), requires&lowbar;capability(0x7f2e2721b678), requires&lowbar;capability(0x7f2e421ccd88), requires&lowbar;capability(0x7f2e2880bd48), requires&lowbar;capability(0x7f2e3212f0d8), requires&lowbar;capability(0x7f2e347f7768), requires&lowbar;capability(0x7f2e2b05bbd8), requires&lowbar;capability(0x7f2e2bee3278)&rsqb;&rsqb;
std::optional&lt;txiter&gt;
GetIter(xref:Txid.adoc[Txid] const& txid) const;
----

== Return Value

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

== Parameters

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


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