getDictionaryItem method

Future<GetDictionaryItemResult> getDictionaryItem(
  1. String dictionaryItemKey, [
  2. String? stateRootHash
])

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));
}