sendTransaction method

  1. @override
Future<String> sendTransaction(
  1. Map<String, dynamic> txParams
)
override

Sign and send a transaction described by txParams (EIP-1193 eth_sendTransaction params: from, to, value, data, gas, ...).

Should return the transaction hash hex string.

Implementation

@override
Future<String> sendTransaction(Map<String, dynamic> txParams) {
  final handler = TransactionHandler(
    _getClient(),
    _credentials,
    _getChainId(),
  );
  return handler.handleTransaction(txParams);
}