wallet::DatabaseBatch::Read

Reads the value stored under a key.

Synopsis

Declared in <wallet/db.h>

template<
    typename K,
    typename T>
bool
Read(
    K const& key,
    T& value);

Return Value

true if the record was found and read.

Parameters

NameDescription
keyThe key to look up.
valueReceives the deserialized value on success.