canReserveUTXO method

bool canReserveUTXO(
  1. WalletState state,
  2. String utxoKey
)

Check if UTXO can be reserved (business rules)

Implementation

bool canReserveUTXO(WalletState state, String utxoKey) {
  final utxo = state.utxos[utxoKey];
  return utxo != null && utxo.status == UTXOStatus.available;
}