getConfirmationStatus method
- String hash
Implementation
Future<ConfirmationStatus> getConfirmationStatus(String hash) async {
if (txStatusCache[hash] == null ||
txStatusCache[hash] == ConfirmationStatus.pending) {
final json = await performTask(
(client) => client.getTransactionReceipt(hash),
);
txStatusCache[hash] = _confirmationStatusFromJson(json ?? {});
}
return txStatusCache[hash]!;
}