Skip to content

v1.0.0

Choose a tag to compare

@postmanode postmanode released this 30 Oct 05:11
· 94 commits to main since this release

πŸŽ‰ 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


Built with ❀️ for the Solana ecosystem