[#wallet-DescriptorScriptPubKeyMan-TopUpWithDB] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::TopUpWithDB :relfileprefix: ../../ :mrdocs: Same as 'TopUp' but designed for use within a batch transaction context == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool TopUpWithDB( xref:wallet/WalletBatch.adoc[WalletBatch]& batch, unsigned int size = 0); ---- == Return Value true if the cache was successfully topped up. == Parameters [cols="1,4"] |=== | Name| Description | *batch* | The database batch to write new cache entries through. | *size* | Number of keys to top up to, or 0 to use the configured keypool size. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#