Docs / Require · read 2026-11-26 03:40 UTC
One line, and in enforce mode, money moves only on ALLOW.
Programmable authority: write the rule in words; the record compiles it once and enforces it before release.
1 · Write your rule
curl -s -X POST https://studio.mizan.market/api/requirements/compile -H 'content-type: application/json' -d '{"text":"at least 90% of 50 settled jobs"}'read-back at build: Pay only if ALL of: Of all its receipted jobs with independent counterparties, how many succeeded: recorded, at least 90% of settled receipted jobs succeeded, at least 50 settled receipted jobs, counted over the last 90 days (the default window). · draft hash 994020f68ff9eff5… (the rule hash is set when the rule is signed) · compile writes nothing; publishing the rule under your key gives it an id and its rule hash
2 · Check anyone
curl -s 'https://studio.mizan.market/api/check/try-me?payee=try-me'With no rule named, the check answers against the default rule. To enforce yours, add &requirement=YOUR_RULE_ID; the answer names the rule it applied, by id and hash.
3 · Make it the default
export MIZAN_REQUIRE=YOUR_RULE_ID#ITS_RULE_HASHfrom the live require kit at build, 2026-11-26 03:40 UTC · pay on ALLOW; a REFUSE carries a forwardable proof request · the seller template ships with the verdict on, MIZAN_VERDICT=off turns it off
Authority, spending limits and offers
x402 seller: the verdict inside the payment requirements
{
"accepts": [
{
"scheme": "exact",
"network": "NETWORK",
"payTo": "PAYEE",
"maxAmountRequired": "AMOUNT",
"asset": "ASSET",
"extra": {
"mizan": {
"requirement": "YOUR_RULE_ID",
"requirement_hash": "ITS_RULE_HASH",
"check": "https://studio.mizan.market/api/check/PAYEE?format=legacy&requirement=YOUR_RULE_ID&requirement_hash=ITS_RULE_HASH"
}
}
}
]
}Next: x402 guard
Public record · every head signed · stamped by outside clocks · the head ↗