sendBatchedTransaction method
- List<
EthereumAddress> recipients, - List<
Uint8List> calls, - {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)));
}