signTransaction method
Signs an unsigned transaction by sending a request to the wallet. Returns the signed transaction bytes. Throws WalletConnectException if unable to sign the transaction.
Implementation
Future<List<Uint8List>> signTransaction(
Uint8List transaction, {
Map<String, dynamic> params = const {},
}) async {
final txToSign = {
'txn': base64Encode(transaction),
...params,
};
return _signTransactions(requestParams: [txToSign]);
}