An open-source library for AI-native x402 integrations in the Solana ecosystem.
Built for Python and Node.js, distributed via PyPI and npm, with server implementations for FastAPI and Express.js.
Accelerate.
Wrapped x402 is an open-source library that enables developers to integrate AI-native micro-payments and metering through the x402 protocol directly into Solana applications. It standardizes how AI agents, APIs, and decentralized servers interact using pay-per-use credits verified on-chain.
Wrapped x402 is built around four primary modules that make AI-native payments effortless — each designed to handle a specific layer of the x402 flow from SDK clients to verifiers and tooling.
Lightweight libraries for Python and Node.js providing unified methods to create, sign, and verify x402 receipts. Published on PyPI and npm for fast integration into AI workflows.
Reference implementations for FastAPI and Express to handle incoming x402 requests, validate payments, and unlock API routes based on usage credits and signatures.
Stateless verifiers that check transaction hashes, expiration (TTL), and anti-replay proofs to ensure trusted AI billing on Solana without centralized gateways.
Developer CLI and utility modules for debugging, monitoring, and managing x402 credits across multi-agent AI systems and serverless runtimes.
Wrapped x402 is built on a clear philosophy — make AI-native micropayments open, modular, and lightning-fast. These design principles ensure every line of code empowers developers, not complicates them.
Minimal methods, clear naming, predictable outputs. Developers should integrate x402 in minutes, not hours.
All verification logic is open-source and reproducible — no hidden middle layers, no centralized gateway.
No heavy dependencies or custom compilers. Runs cleanly on serverless, containers, or embedded AI nodes.
Every module is built with LLMs, inference endpoints, and agent systems in mind — from credit metering to trustless pay-per-use.
The Wrapped x402 flow enables AI Agents to pay for premium endpoints securely and automatically. Each transaction passes through six verifiable steps between the Agent, Server, and Blockchain.
Wrapped x402 implements a multi-layer verification model to ensure every transaction is trustless and verifiable — preventing replay attacks, enforcing expiration windows, and maintaining transparent on-chain auditability.
Each x402 receipt has a short-lived time-to-live (TTL) window, ensuring that payments cannot be reused after their expiration period.
Every proof includes a nonce and unique signature, blocking duplicated or forged payment attempts across sessions.
Credits are signed cryptographically by the server, allowing AI Agents to re-authenticate without storing private keys.
All transactions are verified directly on Solana within ~200 ms, ensuring that each payment is recorded and auditable.