sendTransaction abstract method

Future<UserOperationResponse> sendTransaction(
  1. EthereumAddress to,
  2. Uint8List encodedFunctionData,
  3. {EtherAmount? amount}
)

Sends a transaction to the wallet contract.

  • to: The address of the recipient.
  • encodedFunctionData: The calldata to send.
  • amount: The amount to send (optional).

Returns the UserOperationResponse of the transaction.

Implementation

Future<UserOperationResponse> sendTransaction(
  EthereumAddress to,
  Uint8List encodedFunctionData, {
  EtherAmount? amount,
});