DecodeDestination

DecodeDestination overloads

Synopses

Declared in <key_io.h>

Decode an address string into a destination.

CTxDestination
DecodeDestination(std::string const& str);
» more...

Decode an address string into a destination, reporting parse errors.

CTxDestination
DecodeDestination(
    std::string const& str,
    std::string& error_msg,
    std::vector<int>* error_locations = nullptr);
» more...

Return Value

The decoded destination, or a no-address destination on failure.

Parameters

NameDescription
strThe address string to decode.
error_msgReceives a human-readable error message on failure.
error_locationsOptional; receives the character positions of parse errors.