deliveryState method

  1. @override
Future<DeliveryState?> deliveryState(
  1. String txidHex
)
override

The wallet's DELIVERY OBLIGATION for one transaction it created (stage S8 obligation) — the same reading a history row carries on TxSummary.delivery, for the txidHex a send result named. Read it after a send that was not all-success: only DeliveryState.retryPending licenses "saved — your wallet will send it on a later sync"; null (not the wallet's, expired, or no row) and every other state do not.

Implementation

@override
Future<DeliveryState?> deliveryState(String txidHex) async {
  deliveryStateCount++;
  if (deliveryStateThrows != null) throw deliveryStateThrows!;
  return deliveryStates.containsKey(txidHex)
      ? deliveryStates[txidHex]
      : DeliveryState.retryPending;
}