[#wallet-CWallet-CanGetAddresses]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::CanGetAddresses
:relfileprefix: ../../
:mrdocs:

Returns true if the wallet can give out new addresses&period; This means it has keys in the keypool or can generate new keys

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
CanGetAddresses(bool internal = false) const;
----

== Return Value

true if the wallet can hand out new addresses&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *internal*
| Whether to check the internal (change) keypool&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
