darkfi_sdk::wasm::db

Function db_get

Source
pub fn db_get(db_handle: DbHandle, key: &[u8]) -> GenericResult<Option<Vec<u8>>>
Expand description

Everyone can call this. Will read a key from the key-value store.

value = db_get(db_handle, key);