Decode an address string into a destination, reporting parse errors.
Declared in <key_io.h>
CTxDestination
DecodeDestination(
std::string const& str,
std::string& error_msg,
std::vector<int>* error_locations = nullptr);
The decoded destination, or a no-address destination on failure.
| Name | Description |
|---|---|
| str | The address string to decode. |
| error_msg | Receives a human-readable error message on failure. |
| error_locations | Optional; receives the character positions of parse errors. |