sendBatchedTransaction method

  1. @override
Future<UserOperationResponse> sendBatchedTransaction(
  1. List<EthereumAddress> recipients,
  2. List<Uint8List> calls,
  3. {List<EtherAmount>? amounts}
)
override

Sends a batched transaction to the wallet.

  • recipients: The addresses of the recipients.
  • calls: The calldata to send.
  • amounts: The amounts to send (optional).

Returns the UserOperationResponse of the transaction.

Implementation

@override
Future<UserOperationResponse> sendBatchedTransaction(
    List<EthereumAddress> recipients, List<Uint8List> calls,
    {List<EtherAmount>? amounts}) async {
  require(_walletAddress != null, 'Wallet not deployed');
  return sendUserOperation(buildUserOperation(
      callData: Contract.executeBatch(
          walletAddress: _walletAddress!,
          recipients: recipients,
          amounts: amounts,
          innerCalls: calls)));
}