A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
bool GetNewDestination(const OutputType type, const std::string label, CTxDestination &dest, bilingual_str &error)
std::string EncodeDestination(const CTxDestination &dest)
std::variant< CNoDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, WitnessUnknown > CTxDestination
A txout script template with a specific destination.
bool error(const char *fmt, const Args &... args)
const std::string ADDRESS_BCRT1_UNSPENDABLE
std::string getnewaddress(CWallet &w)
Returns a new address from the wallet.