Complete x402 Protocol Implementation for Solana
Project description
x402-solana: Complete x402 Protocol Implementation for Solana
Version 2.0.0
The x402-solana SDK provides a dominant, end-to-end implementation of the HTTP 402 Payment Required protocol, enabling seamless, autonomous, and instant payments on the Solana blockchain using USDC.
This library is designed for both clients (autonomous agents) that need to pay for resources and servers (APIs/services) that need to monetize their endpoints.
✨ Features and Hackathon Category Coverage
The SDK is structured to address all five hackathon categories:
| Category | Component | Description |
|---|---|---|
| 1. Agent Identity & Reputation | AgentRegistry, IdentityVerifier |
Decentralized identity and reputation scoring for agents using Solana wallet as the root of trust. |
| 2. Agent-to-Agent Marketplace | A2AMarketplace, ServiceOrchestrator |
Advanced P2P marketplace for agents to discover, request, and trade services with automatic payment handling. |
| 3. MCP Servers | MCPPaymentServer, AgentMCPServer |
Model Context Protocol integration, allowing AI models (e.g., GPT, Claude) to use paid tools and services autonomously. |
| 4. SDKs & Infrastructure | PaymentRouter, PaymentCache, BatchProcessor |
High-performance infrastructure components for routing, caching, and batching x402 payments. |
| 5. Practical AI Applications | AIToolkit, AIAssistant, AITrader |
Specialized AI agent frameworks built on the core protocol, demonstrating real-world payment use cases. |
🚀 Quick Installation
pip install x402-solana
# For optional multi-chain support via CDP (Coinbase Developer Platform)
pip install x402-solana[cdp]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file x402_solana-2.0.0-py3-none-any.whl.
File metadata
- Download URL: x402_solana-2.0.0-py3-none-any.whl
- Upload date:
- Size: 58.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2d9b3b6d181c54ffcc70236b43d5d2704fbc4c091eaac92e2b67ab18f18357c
|
|
| MD5 |
1c945baecdb4f0f4f6a84a975e5ab6fe
|
|
| BLAKE2b-256 |
581bf4535b2f9a53cce5cb417f2b87de6bd44e3aca5464b385ee3f6c5fa518c0
|