Push x402 SDK
A plug-and-play SDK for implementing the HTTP 402 Payment Required protocol on Push Chain. Accept crypto payments for API calls with just a few lines of code.
đ
Plug & Play
Drop-in replacement for axios. Just swap the import and you're ready to go.
đ
Multi-Chain
Pay from any chain - Ethereum, Base, Arbitrum, Solana via Universal Transaction.
đ
Secure
Built on Push Chain with on-chain verification. No centralized payment processors.
đ¤
Agent-Ready
Perfect for AI agents that need to make autonomous payments for API access.
How It Works
1
Request
Client requests protected resource
2
402 Response
Server returns payment requirements
3
Auto Payment
SDK processes payment on Push Chain
4
Access
Server verifies and returns data
âšī¸
Why HTTP 402?
The HTTP 402 status code was reserved for "Payment Required" since HTTP/1.1. Push x402 finally implements this vision - APIs that can monetize directly with crypto payments.