[#wallet-WalletBatch-WriteBestBlock] = xref:wallet.adoc[wallet]::xref:wallet/WalletBatch.adoc[WalletBatch]::WriteBestBlock :relfileprefix: ../../ :mrdocs: Writes the best block locator scanned by the wallet. == Synopsis Declared in `<wallet/walletdb.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool WriteBestBlock(xref:CBlockLocator.adoc[CBlockLocator] const& locator); ---- == Return Value true if the record was written. == Parameters [cols="1,4"] |=== | Name| Description | *locator* | The block locator to store. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#