getAccountsByCodeHash method

  1. @override
Future<AccountsList> getAccountsByCodeHash({
  1. required String codeHash,
  2. required int limit,
  3. String? continuation,
})
override

Get list of accounts by code hash. Returns AccountsList or throw error

Implementation

@override
Future<AccountsList> getAccountsByCodeHash({
  required String codeHash,
  required int limit,
  String? continuation,
}) async {
  if (_disposed) throw TransportCallAfterDisposeError();

  final res = await transport.getAccountsByCodeHash(
    codeHash: codeHash,
    limit: limit,
    continuation: continuation,
  );
  return AccountsList.fromJson(jsonDecode(res));
}