Get a destination of the requested type (if possible) to the specified script. This function will automatically add the script (and any other necessary scripts) to the keystore.
Declared in <outputtype.h>
CTxDestination
AddAndGetDestinationForScript(
FlatSigningProvider& keystore,
CScript const& script,
OutputType type);
The destination of the requested type for the script.
| Name | Description |
|---|---|
| keystore | The signing provider that receives the required scripts. |
| script | The script to derive the destination for. |
| type | The requested output type. |