[#SigningProvider-GetTaprootSpendData]
= xref:SigningProvider.adoc[SigningProvider]::GetTaprootSpendData
:relfileprefix: ../
:mrdocs:

Look up the Taproot spend data for an output key&period;

== Synopsis

Declared in `&lt;script&sol;signingprovider&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
GetTaprootSpendData(
    xref:XOnlyPubKey.adoc[XOnlyPubKey] const& output&lowbar;key,
    xref:TaprootSpendData.adoc[TaprootSpendData]& spenddata) const;
----

== Return Value

True if the spend data was found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *output&lowbar;key*
| The Taproot output key to retrieve spend data for&period;
| *spenddata*
| Set to the matching spend data on success&period;
|===


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