queryStorageAt method
Query storage entries (by key) starting at block hash given as the second parameter.
Implementation
Future<List<StorageChangeSet>> queryStorageAt(List<StorageKey> keys,
{BlockHash? at}) async {
final List<dynamic> params = [
keys.map((key) => '0x${hex.encode(key)}').toList()
];
if (at != null) {
params.add('0x${hex.encode(at)}');
}
final response = await _provider.send('state_queryStorageAt', params);
return (response.result as List)
.cast<Map<String, dynamic>>()
.map((changeSet) => StorageChangeSet.fromJson(changeSet))
.toList();
}