sendRawTransaction method

Future<String> sendRawTransaction({
  1. required Uint8List data,
})

Creates new message call transaction or a contract creation for signed transactions. data - The signed transaction data.

Returns the transaction hash, or the zero hash if the transaction is not yet available.

Implementation

Future<String> sendRawTransaction({
  required Uint8List data,
}) async {
  final result = await connector.sendCustomRequest(
    method: 'eth_sendRawTransaction',
    params: ['${hex.encode(data.toList())}'],
  );

  return result;
}