FastAPI / Flask x402 decorator
Description
Implement a Python decorator @x402_required(price="0.02") using the official nirium Python SDK v0.7.0 (pip install nirium).
Acceptance Criteria
- Compatible with FastAPI & Flask.
- Inspects the
X-402-Signature header and validates settlement.
- Exposes clean
402 HTTP status codes.
Reward
Subject to GrantFox review after the campaign (Official Campaign | FWC26). Amounts are decided by GrantFox based on quality and available budget and are not guaranteed per issue.
FastAPI / Flask x402 decorator
Description
Implement a Python decorator
@x402_required(price="0.02")using the officialniriumPython SDK v0.7.0 (pip install nirium).Acceptance Criteria
X-402-Signatureheader and validates settlement.402HTTP status codes.Reward
Subject to GrantFox review after the campaign (Official Campaign | FWC26). Amounts are decided by GrantFox based on quality and available budget and are not guaranteed per issue.