tuweni / org.apache.tuweni.trie / StoredMerklePatriciaTrie / get

get

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