Function darkfi_sdk::wasm::db::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");
}