Series: Solana For Js Devs
18 articles
- 11.
Interacting with Programs from Svelte
Build Svelte components that interact with Solana programs - token balances, transfers, and real-time updates.
- 12.
Error Handling and Transaction Confirmation
Handle Solana errors gracefully, implement proper confirmation patterns, and build resilient transaction flows.
- 13.
What is x402? The HTTP Status Code That Changes Everything
HTTP 402 'Payment Required' finally has a real implementation. Learn how x402 enables pay-per-request APIs and micropayments on the web.
- 14.
Your First x402 Server: Pay-Per-Request API
Build an Express API that requires Solana USDC payments. Return 402, verify payments, serve content.
- 15.
Building an x402 Client: Handling Payment Flows
Create a JavaScript client that automatically handles x402 payment flows - detecting 402s, making payments, and retrying requests.
- 16.
x402 with SvelteKit: Full-Stack Example
Build a complete SvelteKit application with x402 payments - wallet connection, protected routes, and automatic payment handling.
- 17.
Advanced x402: Pricing Strategies and Session Management
Implement dynamic pricing, session tokens for repeat access, and usage tracking for your x402 APIs.
- 18.
Deploying Your x402 App to Production
Deploy your SvelteKit frontend and Bun backend to production. Environment setup, mainnet configuration, and monitoring.