send method
- EthereumAddress recipient,
- EtherAmount amount
override
Transfers native tokens to another recipient.
recipient
: The address of the recipient.amount
: The amount to send.
Returns the UserOperationResponse
of the transaction.
Implementation
@override
Future<UserOperationResponse> send(
EthereumAddress recipient, EtherAmount amount) async {
require(_walletAddress != null, 'Wallet not deployed');
return sendUserOperation(buildUserOperation(
callData:
Contract.execute(_walletAddress!, to: recipient, amount: amount)));
}