Skip to content

Mads/add x402 example#90

Draft
madeleine-c wants to merge 2 commits intomainfrom
mads/add-x402-example
Draft

Mads/add x402 example#90
madeleine-c wants to merge 2 commits intomainfrom
mads/add-x402-example

Conversation

@madeleine-c
Copy link
Contributor

No description provided.

madeleine-c and others added 2 commits October 9, 2025 18:38
- Updated Solana peer dependencies to compatible versions
- Fixed wallet-actions.tsx to use new Solana transaction serialization API
- Updated wallet-management.tsx to correctly identify Privy embedded Solana wallets
- Removed deprecated useStandardWallets import
- All transactions now serialize to Uint8Array before signing/sending
- Build passes successfully with no TypeScript errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Committed-By-Agent: claude
Add a complete example demonstrating x402 payment protocol integration with Privy.

This example shows how to:
- Use Privy's useX402Fetch hook for automatic payments
- Build x402-enabled API endpoints
- Verify and settle payments with Coinbase's facilitator
- Decode payment receipts and display transaction details

The example includes:
- Simple demo page with payment flow
- Weather API endpoint requiring 0.001 USDC payment
- Real Coinbase facilitator integration
- Onchain settlement on Base Sepolia
- Comprehensive README with setup instructions

Requires @privy-io/react-auth ^3.6.1 with x402 support.

GIT_VALID_PII_OVERRIDE

Committed-By-Agent: cursor
@vercel
Copy link

vercel bot commented Nov 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
privy-react-farcaster Error Error Nov 12, 2025 0:06am
privy-react-fiat-onramp Error Error Nov 12, 2025 0:06am
privy-react-funding Error Error Nov 12, 2025 0:06am
privy-react-permissionless Error Error Nov 12, 2025 0:06am
privy-react-smart-wallets Error Error Nov 12, 2025 0:06am
15 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
privy-next-cross-app-connect Ignored Ignored Nov 12, 2025 0:06am
privy-next-cross-app-provider Ignored Ignored Nov 12, 2025 0:06am
privy-next-farcaster Ignored Ignored Nov 12, 2025 0:06am
privy-next-farcaster-mini-app Ignored Ignored Nov 12, 2025 0:06am
privy-next-fiat-onramp Ignored Ignored Nov 12, 2025 0:06am
privy-next-funding Ignored Ignored Nov 12, 2025 0:06am
privy-next-permissionless Ignored Ignored Nov 12, 2025 0:06am
privy-next-session-keys Ignored Ignored Nov 12, 2025 0:06am
privy-next-smart-wallets Ignored Ignored Nov 12, 2025 0:06am
privy-next-solana Ignored Ignored Nov 12, 2025 0:06am
privy-next-starter Ignored Ignored Nov 12, 2025 0:06am
privy-next-wagmi Ignored Ignored Nov 12, 2025 0:06am
privy-react-pwa Ignored Ignored Nov 12, 2025 0:06am
privy-react-starter Ignored Ignored Nov 12, 2025 0:06am
privy-react-whitelabel-starter Ignored Ignored Nov 12, 2025 0:06am
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant