Skip to main content

evaluate_allowance

Function evaluate_allowance 

Source
pub fn evaluate_allowance(
    input: &AllowanceEvaluationInput<'_>,
) -> Result<AllowanceEvaluation, AllowanceEvaluationBlock>
Expand description

Check static matching, active time, watermark, and every amount/count limit.

The candidate consumes one count and its requested amount at trusted_time. The SDK must atomically recheck lifecycle/scope, payment dedupe, this result, and capacity before admitting payment, then durably advance the watermark. No clock is read, state changed, endpoint resolved, or payment authorized here.