createTxAndSignTx method

Future<Tx> createTxAndSignTx(
  1. Fee fee,
  2. List messages, {
  3. String optionalNote = "",
})

Implementation

Future<PROTO.Tx> createTxAndSignTx(Fee fee, List<dynamic> messages,
    {String optionalNote = ""}) async {
  var tx = await createTx(fee, optionalNote: optionalNote);
  return (await key.signTx(tx.keys.first, tx.values.first, messages))
      .toProtoWithType(messages);
}