Skip to content

FastAPI / Flask x402 decorator #10

Description

@Eras256

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

  1. Compatible with FastAPI & Flask.
  2. Inspects the X-402-Signature header and validates settlement.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions