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
- Exposes a helper such as
nirium.x402Serve({ price: "0.02", payTo: "STELLAR_ADDRESS" }).
- Returns HTTP
402 Payment Required when no valid payment is provided.
- 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.
Express.js x402 micropayment middleware
Description
Build a clean Express.js middleware using the
niriumSDK (v0.7.0) that lets any Express API monetize endpoints via x402 micropayments on Stellar (testnet/mainnet).Acceptance Criteria
nirium.x402Serve({ price: "0.02", payTo: "STELLAR_ADDRESS" }).402 Payment Requiredwhen no valid payment is provided.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.