Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

x402_solana-2.0.1.tar.gz (49.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

x402_solana-2.0.1-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file x402_solana-2.0.1.tar.gz.

File metadata

  • Download URL: x402_solana-2.0.1.tar.gz
  • Upload date:
  • Size: 49.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for x402_solana-2.0.1.tar.gz
Algorithm Hash digest
SHA256 2c7e0673aee8041ea772ee749bed6cdd2c7d4a2483ec3d777743f2d6a61f9896
MD5 e1a4f7434552b5b73f31949be0e5535a
BLAKE2b-256 bb276ff70f1041fa21eff2b3f91e58bef86cbf68c8123962fe03c8f55b1dd7d6

See more details on using hashes here.

File details

Details for the file x402_solana-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: x402_solana-2.0.1-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

Hashes for x402_solana-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 061524dcc08eec0801cfa68b887eb93fd14e370c55852314ee6dd62baabc854c
MD5 d91ed883914780002dc97703a42aded4
BLAKE2b-256 40584d26705b835862342fcc1555e21e635d87503a8a3e0e99f009d52c7ac37a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page