[#TxoSpenderIndex-FindSpender] = xref:TxoSpenderIndex.adoc[TxoSpenderIndex]::FindSpender :relfileprefix: ../ :mrdocs: Search the index for a transaction that spends the given outpoint. == Synopsis Declared in `<index/txospenderindex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:util/Expected-0b.adoc[util::Expected<std::optional<TxoSpender>, std::string>] FindSpender(xref:COutPoint.adoc[COutPoint] const& txo) const; ---- == Return Value std::nullopt if the outpoint has not been spent on‐chain. std::optional{TxoSpender} if the output has been spent on‐chain. Contains the spending transaction and the block it was confirmed in. util::Unexpected{error} if something unexpected happened (i.e. disk or deserialization error). == Parameters [cols="1,4"] |=== | Name| Description | *txo* [in] | The outpoint to search for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#