signLogicSigTransaction method

  1. @override
Future<String> signLogicSigTransaction({
  1. required String logic,
  2. required String address,
})

Logic Signatures (or LogicSigs) authorize transactions associated with an Algorand Smart Contract. Logic signatures are added to transactions to authorize spends from a Contract Account or from a Delegated Account.

Implementation

@override
Future<String> signLogicSigTransaction({
  required String logic,
  required String address,
}) async {
  var c = Completer<String>();
  promiseToFuture(myAlgo.signLogicSig(logic, address))
      .then((value) => c.complete(base64Encode(value)))
      .onError((error, stackTrace) => c.completeError(_handleError(error)));

  return c.future;
}