darkfi_sdk::wasm::db

Function db_contains_key

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

Everyone can call this. Checks if a key is contained in the key-value store.

if db_contains_key(db_handle, key) {
    println!("true");
}