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]
Metadata
Release files for x402-solana 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| x402_solana-2.0.1.tar.gz | 49.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| x402_solana-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.2 kB
Release files / x402_solana-2.0.1.tar.gz
| Download URL | x402_solana-2.0.1.tar.gz |
|---|---|
| Size | 49.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c7e0673aee8041ea772ee749bed6cdd2c7d4a2483ec3d777743f2d6a61f9896
|
|
BLAKE2b-256 checksum How to use checksums |
bb276ff70f1041fa21eff2b3f91e58bef86cbf68c8123962fe03c8f55b1dd7d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / x402_solana-2.0.1-py3-none-any.whl
| Download URL | x402_solana-2.0.1-py3-none-any.whl |
|---|---|
| Size | 58.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
061524dcc08eec0801cfa68b887eb93fd14e370c55852314ee6dd62baabc854c
|
|
BLAKE2b-256 checksum How to use checksums |
40584d26705b835862342fcc1555e21e635d87503a8a3e0e99f009d52c7ac37a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for x402-solana 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.