[#wallet-WalletBatch-WriteDescriptorLastHardenedCache] = xref:wallet.adoc[wallet]::xref:wallet/WalletBatch.adoc[WalletBatch]::WriteDescriptorLastHardenedCache :relfileprefix: ../../ :mrdocs: Writes the last hardened extended public key into a descriptor's cache. == Synopsis Declared in `<wallet/walletdb.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool WriteDescriptorLastHardenedCache( xref:CExtPubKey.adoc[CExtPubKey] const& xpub, xref:uint256.adoc[uint256] const& desc_id, uint32_t key_exp_index); ---- == Return Value true if the record was written. == Parameters [cols="1,4"] |=== | Name| Description | *xpub* | The extended public key to cache. | *desc_id* | The identifier of the descriptor. | *key_exp_index* | The key expression index within the descriptor. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#