[#wallet-ScriptPubKeyMan-CanGetAddresses] = xref:wallet.adoc[wallet]::xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]::CanGetAddresses :relfileprefix: ../../ :mrdocs: Returns true if the wallet can give out new addresses. This means it has keys in the keypool or can generate new keys == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool CanGetAddresses(bool internal = false) const; ---- == Return Value true if new addresses can be handed out. == Parameters [cols="1,4"] |=== | Name| Description | *internal* | Whether to check the internal (change) chain. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#