getPendingTransactions method
Returns all transactions that are not yet completed.
Implementation
Future<List<FCXTransaction>> getPendingTransactions() async {
try {
String method = 'getPendingTransactions';
var data = await _methodChannel.invokeListMethod<Map>(
'$_PROVIDER.$method',
);
_FCXLog._i(runtimeType, method);
if (data == null) {
_FCXLog._w(runtimeType, 'Empty data received, processing skipped');
return [];
} else {
return data.map((f) => FCXTransaction._fromMap(f)).toList();
}
} on PlatformException catch (e) {
var exception = FCXException(e.code, e.message);
_FCXLog._e(runtimeType, exception);
throw exception;
}
}