sendTransaction method

Future<String> sendTransaction(
  1. List<Credentials> cred,
  2. TransactionReceipt transaction,
  3. Uint8List messageToSign
)

Signs the given transaction using the keys supplied in the cred object to upload it to the client so that it can be forged into a block.

Returns a hash of the messageToSign of the transaction which, after the transaction has been included in a mined block, can be used to obtain detailed information about the transaction.

Implementation

Future<String> sendTransaction(List<Credentials> cred,
    TransactionReceipt transaction, Uint8List messageToSign) async {
  final signed = await signTransaction(cred, transaction, messageToSign);
  return sendSignedTransaction(signed);
}