tuweni / org.apache.tuweni.trie / MerkleTrie / get

get

abstract suspend fun get(key: K): 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.

Exceptions

MerkleStorageException - If there is an error while accessing or decoding data from storage.

Return
The value that corresponds to the specified key, or {@code null} if no such value exists.