Repository navigation
v1.0.0
π First Public Release - v1.0.0
The first stable release of x402-solana-react - a React SDK for building Solana paywalls with the x402 payment protocol.
β¨ Features
- π Auto-Setup Wallet Providers - Zero configuration required
- π¨ 7 Built-in Themes - Light, Dark, Solana, Seeker, Terminal and more
- π Network Auto-Detection - Automatically configures mainnet/devnet
- π° Dynamic Balance Display - Shows real-time wallet USDC balance
- π Multi-Wallet Support - Works with Phantom, Solflare, and more
- π± Responsive Design - Beautiful UI across all devices
- π οΈ TypeScript Support - Full type safety and IntelliSense
- β‘ Custom RPC Support - Avoid rate limits with your own RPC endpoint
π¦ Installation
npm install @payai/x402-solana-reactπ Quick Start
import { X402Paywall } from '@payai/x402-solana-react';
import '@payai/x402-solana-react/styles';
import '@solana/wallet-adapter-react-ui/styles.css';
function App() {
return (
<X402Paywall
amount={0.02}
description="Premium Content"
network="solana"
onPaymentSuccess={(txId) => console.log('Paid!', txId)}
>
<YourPremiumContent />
</X402Paywall>
);
}π Documentation
See the README for full documentation.
π Links
- npm Package: https://www.npmjs.com/package/@payai/x402-solana-react
- GitHub Repo: https://github.com/PayAINetwork/x402-solana-react
- PayAI Network: https://payai.network
Built with β€οΈ for the Solana ecosystem