getDictionaryItem method
Queries a dictionary item and returns the stored value from the network
dictionaryItemKey
is the key of the dictionary item to query.
stateRootHash
is the state root hash of the block.
Implementation
Future<GetDictionaryItemResult> getDictionaryItem(String dictionaryItemKey, [String? stateRootHash]) async {
stateRootHash ??= (await getStateRootHash()).stateRootHash;
return _nodeClient
.getDictionaryItem(GetDictionaryItemParams.fromDictionaryItemKey(dictionaryItemKey, stateRootHash));
}