getConfirmationStatus method

Future<ConfirmationStatus> getConfirmationStatus(
  1. 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]!;
}