[#wallet-DatabaseBatch-Read]
= xref:wallet.adoc[wallet]::xref:wallet/DatabaseBatch.adoc[DatabaseBatch]::Read
:relfileprefix: ../../
:mrdocs:

Reads the value stored under a key&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename K,
    typename T&gt;
bool
Read(
    K const& key,
    T& value);
----

== Return Value

true if the record was found and read&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| The key to look up&period;
| *value*
| Receives the deserialized value on success&period;
|===


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