[#CTxMemPool-get-0ebc]
= xref:CTxMemPool.adoc[CTxMemPool]::get
:relfileprefix: ../
:mrdocs:

`get` overloads

== Synopses

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

Return a mempool transaction with a given hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CTransactionRef.adoc[CTransactionRef]
xref:CTxMemPool/get-0eb8.adoc[get](xref:Txid.adoc[Txid] const& hash) const;
----

[.small]#xref:CTxMemPool/get-0eb8.adoc[_» more&period;&period;&period;_]#

Return a mempool transaction with a given witness hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CTransactionRef.adoc[CTransactionRef]
xref:CTxMemPool/get-0b.adoc[get](xref:Wtxid.adoc[Wtxid] const& hash) const;
----

[.small]#xref:CTxMemPool/get-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

the tx if found, otherwise nullptr

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hash* [in]
| the txid
|===


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