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.

ALLOW against the default rule run at build, 2026-11-26 03:40 UTC https://studio.mizan.market/api/check/try-me?payee=try-me

1 · Write your rule

bash
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

bash
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

bash
export MIZAN_REQUIRE=YOUR_RULE_ID#ITS_RULE_HASH

from 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

spending mandates
Limits per payment, in total, by payee and currency, signed by the principal; a payment outside them is refused with the reason. the program
offers
Offer, counter, accept: each signed by its sender; the terms pin one rule and its hash, and an acceptance creates the payment hold. the program
x402 seller: the verdict inside the payment requirements
json
{
 "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 ↗