[#GetKeyForDestination]
= GetKeyForDestination
:mrdocs:

Return the CKeyID of the key involved in a script (if there is a unique one)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CKeyID.adoc[CKeyID]
GetKeyForDestination(
    xref:SigningProvider.adoc[SigningProvider] const& store,
    xref:CTxDestination.adoc[CTxDestination] const& dest);
----

== Return Value

The key id involved in the destination, or an empty id if none is unique&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *store*
| The provider used to resolve the destination&apos;s key&period;
| *dest*
| The destination to inspect&period;
|===


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