@chipi-stack/x402
v14.3.0
Published
x402 Payment Protocol for Starknet — AI agent payments, micropayments, and HTTP-native pay-per-use middleware
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/x402What 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
