[#TxIndex-01-FindTx] = xref:TxIndex-01.adoc[TxIndex]::FindTx :relfileprefix: ../ :mrdocs: Look up a transaction by hash. == Synopsis Declared in `<index/txindex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<TxIndexResult> FindTx(xref:Txid.adoc[Txid] const& tx_hash) const; ---- == Return Value the transaction and containing block hash, or nullopt if it is not found == Parameters [cols="1,4"] |=== | Name| Description | *tx_hash* [in] | The hash of the transaction to be returned. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#