[#wallet-DescriptorScriptPubKeyMan-GetKeyPoolSize] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::GetKeyPoolSize :relfileprefix: ../../ :mrdocs: Returns the number of pre‐generated keys/scripts in the cache. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual unsigned int GetKeyPoolSize() const override; ---- == Return Value The keypool size. [.small]#Created with https://www.mrdocs.com[MrDocs]#