[#wallet-DatabaseBatch-Write] = xref:wallet.adoc[wallet]::xref:wallet/DatabaseBatch.adoc[DatabaseBatch]::Write :relfileprefix: ../../ :mrdocs: Writes a value under a key. == Synopsis Declared in `<wallet/db.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename T> bool Write( K const& key, T const& value, bool fOverwrite = true); ---- == Return Value true if the record was written. == Parameters [cols="1,4"] |=== | Name| Description | *key* | The key to write. | *value* | The value to store. | *fOverwrite* | Whether to overwrite an existing record. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#