multicall<T> method

Future<List<T>> multicall<T>(
  1. String method,
  2. List<List> args, [
  3. bool eagerError = false
])

Multicall read-only constant method on the Contract. May not be at the same block.

If eagerError is true, returns the error immediately on the first error found.

Implementation

Future<List<T>> multicall<T>(String method, List<List<dynamic>> args,
        [bool eagerError = false]) =>
    Future.wait(
        Iterable<int>.generate(args.length).map(
          (e) => _call<T>(method, args[e]),
        ),
        eagerError: eagerError);