executeBatch method

Future<IUserOperationBuilder> executeBatch(
  1. List<Call> calls
)

Executes a batch transaction on the network.

Implementation

Future<IUserOperationBuilder> executeBatch(
  List<Call> calls,
) async {
  return setCallData(
    bytesToHex(
      proxy.self.function('executeBatch').encodeCall(
        [
          calls.map((e) => e.to).toList(),
          calls.map((e) => e.value).toList(),
          calls.map((e) => e.data).toList(),
        ],
      ),
      include0x: true,
    ),
  );
}