Output amount range check. Verifies that the output value falls within a committed minimum and maximum range: min_sats ≤ output_amount ≤ max_sats. No witness data required — the output amount is read directly from the transaction context.
Covenant Invertible| Field | Data Type | Size | Side | Description |
|---|---|---|---|---|
| min_sats | NUMERIC | 1-4 B | Conditions | Minimum output amount in satoshis (inclusive). Must be ≥ 0. |
| max_sats | NUMERIC | 1-4 B | Conditions | Maximum output amount in satoshis (inclusive). Must be ≥ min_sats. |
No witness fields required — the output amount is read directly from the spending transaction context.
| Condition | Result |
|---|---|
| Fewer than 2 NUMERIC fields | ERROR |
| Negative values for min_sats or max_sats | ERROR |
| output_amount < min_sats | UNSATISFIED |
| output_amount > max_sats | UNSATISFIED |
| min_sats ≤ output_amount ≤ max_sats | SATISFIED |
{
"type": "AMOUNT_LOCK",
"inverted": false,
"fields": [
{ "type": "NUMERIC", "value": 10000 },
{ "type": "NUMERIC", "value": 1000000 }
]
}This constrains the output to carry between 10,000 and 1,000,000 satoshis. Outputs below the minimum (including dust) or above the maximum are rejected.
min_sats = 10,000, max_sats = 1,000,000