signAllTransactions static method

Future<List<String>> signAllTransactions(
  1. List<String> transactions
)

Sign all transactions

transactions transactions you want to sign, requires base58 string array.

Implementation

static Future<List<String>> signAllTransactions(List<String> transactions) async {
  final result = await _channel.invokeMethod(
      'solanaSignAllTransactions', jsonEncode(transactions));
  if (jsonDecode(result)["status"] == true ||
      jsonDecode(result)["status"] == 1) {
     var list = jsonDecode(result)["data"] as List<dynamic>;
    List<String> signatures = list.map((e) => e.toString()).toList();
    return signatures;
  } else {
    final error = RpcError.fromJson(jsonDecode(result)["data"]);
    return Future.error(error);
  }
}