getDictionaryItemByAccount method

Future<GetDictionaryItemResult> getDictionaryItemByAccount(
  1. String accountKey,
  2. String dictionaryName,
  3. String dictionaryItemKey, [
  4. String? stateRootHash,
])

Queries a dictionary item from an account's named keys. accountKey is the formatted key of the account, whose named keys contain the queried dictionary item. dictionaryName is the named key under which the dictionary seed URef is stored. dictionaryItemKey is the key of the dictionary item to query. stateRootHash is the state root hash of the block.

Implementation

Future<GetDictionaryItemResult> getDictionaryItemByAccount(
    String accountKey, String dictionaryName, String dictionaryItemKey,
    [String? stateRootHash]) async {
  stateRootHash ??= (await getStateRootHash()).stateRootHash;
  return _nodeClient.getDictionaryItem(
      GetDictionaryItemParams.withAccountKey(accountKey, dictionaryName, dictionaryItemKey, stateRootHash));
}