Difficulty: Advanced (senior · 7/10). ~12–18h. Node/TypeScript CLI, Stellar keypair handling, x402.
Context
packages/cli is currently minimal. Developers want to (a) pay an x402-protected endpoint straight from the terminal and (b) spin up a protected endpoint to test against — without writing code. Both belong in the existing nirium CLI.
Goal
Two new commands in the existing nirium CLI, fully typed and tested.
Scope / Deliverables
nirium pay <url> [--amount] [--network] — reads the 402 payment requirements, signs the Stellar auth entry from a configured secret, performs the pay→retry, and prints the response plus a tx reference.
nirium serve --price --pay-to [--port] — starts a local x402-protected demo endpoint (reuse the SDK server helper) so a developer can test pay against it.
- Config & safety: secret via env or a
nirium config store; the secret is never printed; actionable errors on misconfig.
--help for both commands with examples; clean, scriptable output.
- Tests: argument parsing + the full 402 flow with the network mocked.
- Update the CLI
README.
Acceptance criteria
nirium pay works end-to-end on testnet against a real facilitator (include a tx hash that resolves on stellar.expert in the PR).
- No secret leakage in logs or output; typed public surface; lint/CI pass.
Pointers
- Extend
packages/cli; reuse the SDK's x402 client; keep @x402/* versions aligned with the SDK.
Reward
Eligibility is subject to GrantFox review after the campaign (Official Campaign | FWC26). Rewards are decided by GrantFox based on quality and available budget and are not guaranteed.
Difficulty: Advanced (senior · 7/10). ~12–18h. Node/TypeScript CLI, Stellar keypair handling, x402.
Context
packages/cliis currently minimal. Developers want to (a) pay an x402-protected endpoint straight from the terminal and (b) spin up a protected endpoint to test against — without writing code. Both belong in the existingniriumCLI.Goal
Two new commands in the existing
niriumCLI, fully typed and tested.Scope / Deliverables
nirium pay <url> [--amount] [--network]— reads the402payment requirements, signs the Stellar auth entry from a configured secret, performs the pay→retry, and prints the response plus a tx reference.nirium serve --price --pay-to [--port]— starts a local x402-protected demo endpoint (reuse the SDK server helper) so a developer can testpayagainst it.nirium configstore; the secret is never printed; actionable errors on misconfig.--helpfor both commands with examples; clean, scriptable output.README.Acceptance criteria
nirium payworks end-to-end on testnet against a real facilitator (include a tx hash that resolves on stellar.expert in the PR).Pointers
packages/cli; reuse the SDK's x402 client; keep@x402/*versions aligned with the SDK.Reward
Eligibility is subject to GrantFox review after the campaign (Official Campaign | FWC26). Rewards are decided by GrantFox based on quality and available budget and are not guaranteed.