merkle-trie / net.consensys.cava.trie.experimental / MerkleTrie / getAsync

getAsync

open fun getAsync(key: K): AsyncResult<Optional<V>> (source)

Returns the value that corresponds to the specified key, or an empty byte array if no such value exists.

Parameters

key - The key of the value to be returned.

Return
An Optional containing the value that corresponds to the specified key, or an empty Optional if no such value exists.