Skip to content

Express.js x402 micropayment middleware #9

Description

@Eras256

Express.js x402 micropayment middleware

Description

Build a clean Express.js middleware using the nirium SDK (v0.7.0) that lets any Express API monetize endpoints via x402 micropayments on Stellar (testnet/mainnet).

Acceptance Criteria

  1. Exposes a helper such as nirium.x402Serve({ price: "0.02", payTo: "STELLAR_ADDRESS" }).
  2. Returns HTTP 402 Payment Required when no valid payment is provided.
  3. Includes unit tests (Jest).

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