Parse an address purpose from its serialized string form.

Synopsis

Declared in <wallet/wallet.h>

std::optional<AddressPurpose>
PurposeFromString(std::string_view s);

Return Value

The parsed purpose, or nullopt if unrecognized.

Parameters

Name

Description

s

The string name to parse.

Created with MrDocs