[#wallet-SQLiteBatch-WriteKey]
= xref:wallet.adoc[wallet]::xref:wallet/SQLiteBatch.adoc[SQLiteBatch]::WriteKey
:relfileprefix: ../../
:mrdocs:

Write a value under a key&period;

== Synopsis

Declared in `&lt;wallet&sol;sqlite&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
WriteKey(
    xref:DataStream.adoc[DataStream]&& key,
    xref:DataStream.adoc[DataStream]&& value,
    bool overwrite = true) override;
----

== Return Value

True if the write succeeded, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| The key to write&period;
| *value*
| The value to store&period;
| *overwrite*
| Whether to overwrite an existing value for the key&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
