IsValidDestinationString

IsValidDestinationString overloads

Synopses

Declared in <key_io.h>

Check whether a string is a valid address for the current chain.

bool
IsValidDestinationString(std::string const& str);
» more...

Check whether a string is a valid address for the given chain parameters.

bool
IsValidDestinationString(
    std::string const& str,
    CChainParams const& params);
» more...

Return Value

True if the string is a valid destination.

Parameters

NameDescription
strThe address string to validate.
paramsThe chain parameters to validate against.