JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 164
  • Score
    100M100P100Q85446F
  • License MIT

x402 Payment Protocol for Starknet — AI agent payments, micropayments, and HTTP-native pay-per-use middleware

Package Exports

  • @chipi-stack/x402

Readme

@chipi-stack/x402

x402 Payment Protocol for Starknet — AI agent payments, micropayments, and HTTP-native pay-per-use middleware.

Install

npm install @chipi-stack/x402

What it does

The x402 package implements the HTTP 402 Payment Required protocol for Starknet, enabling:

  • Facilitator — validates and settles payments on-chain
  • Middleware — Express/Next.js middleware that gates endpoints behind payments
  • Client — handles payment negotiation and token attachment

Payments are gasless (via paymaster), non-custodial, and settle in USDC on Starknet mainnet.

What you can ship

  • Paywalled APIs for AI agents — charge per-call with autonomous payment negotiation
  • Micropayments for content/data — gate articles, datasets, or media behind sub-dollar payments
  • Pay-per-call API monetization — monetize any HTTP endpoint without subscriptions
  • Machine-to-machine autonomous payments — let agents pay agents without human intervention

Have an idea? Tell us what you want to build

Documentation

Full docs and integration guide: docs.chipipay.com

License

MIT — Chipi Pay