{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/5"}],"enrichment":{"capability":"Implements the x402 payment protocol with transport-agnostic client, server, and facilitator components supporting EVM, Solana, and TON blockchains via both async and sync APIs.","skillfed_tags":["blockchain-payments","http-402-protocol","async-sync-dual"],"use_cases":["Protect API endpoints with blockchain-backed micropayments (e.g., charge per API call in USDC on Base).","Build a content delivery service that requires payment in Solana before serving resources.","Implement a facilitator node that verifies and settles x402 payments across multiple blockchains.","Add pay-per-use billing to a FastAPI service with EVM wallet signatures.","Create a cross-chain payment gateway supporting EVM, Solana, and TON in a single codebase."],"what_it_does":"x402 is a Python SDK implementing the x402 payment protocol, a standard for HTTP 402 (Payment Required) responses that bridges web services with blockchain payments. It provides three main roles\u2014client (initiates payments), resource server (enforces payment requirements), and facilitator (settles transactions)\u2014each with async and sync variants. The protocol is transport-agnostic and supports multiple blockchains: EVM networks (Ethereum, Base, etc.), Solana, and TON/TVM.\n\nYou use it to add cryptographic payment verification to web services without building blockchain integration from scratch. Register payment schemes for your target networks, define payment requirements (amount, recipient, network), and the SDK handles signature generation, verification, and settlement. It integrates with FastAPI and Flask via middleware, works with httpx or requests for HTTP clients, and auto-detects async vs. sync contexts. The library is young (first release February 2025) but actively maintained and designed for declarative configuration via policies and lifecycle hooks.","worth_installing":"Yes, if you are building a service that needs HTTP 402 payment protocol support with blockchain settlement. The SDK is actively maintained, has low install friction, and covers the major blockchains. However, the Alpha status and recent first release (February 2025) mean the protocol and API may still evolve\u2014use in production only after reviewing the security model and testing thoroughly with your blockchain of choice."},"id":"x402","links":{"html":"https://skillfed.io/packages/x402","md":"https://skillfed.io/packages/x402.md","pypi":"https://pypi.org/project/x402/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-11","license_spdx":null,"license_treatment":"permissive","name":"x402","python_support":"supports_current","summary":"x402 Payment Protocol SDK for Python"},"popularity":{"monthly_downloads":180138,"position":10153,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.19.0"}
