USDC cash out करने के लिए Base mini app बनाएं।
जब आपकी Base app को full wallet dashboard के बजाय focused cash-out surface चाहिए, तब इसका उपयोग करें। Template जानबूझकर छोटा है: एक form, एक wallet client, एक deposit result।
Starter इस्तेमाल करें
- 1ADWilkinson/usdctofiat-peerlytics-starters clone करें और templates/base-mini-app खोलें।
- 2Discovery surfaces test करने से पहले NEXT_PUBLIC_APP_URL को public HTTPS origin पर set करें।
- 3Form compact रखें: route, amount, payout handle, wallet connect और result।
- 4Deposits attribute हो सकें इसलिए integratorId और referralId के साथ offramp(walletClient, params) call करें।
Base-specific requirements
Next.js app
Official Base app quickstart से match करता है और deployment simple रखता है।
Base Account
@base-org/account के जरिए users को Base-native connection path देता है।
Viem WalletClient
Off-ramp SDK आपके दिए गए wallet client से sign करता है।
Builder Code
Base.dev पर app register होने के बाद onchain activity attribute करता है।
Real transaction test
Production build काफी नहीं है; एक छोटा Base deposit end to end verify करें।
Surface expand न करें
- Cash-out form से पहले marketing hero न जोड़ें।
- Payout route, amount या handle को onboarding copy के पीछे न छिपाएं।
- Guaranteed fill speed claim न करें; liquidity अभी भी buyer demand से control होती है।
- Real code मौजूद होने तक Builder Code wiring न जोड़ें।
Keep exploring
Common questions
Base mini app को पहले क्या करना चाहिए?
इसे connected Base Account wallet से real USDCtoFiat seller deposit बनाना चाहिए। कुछ और जोड़ने से पहले amount, route, payout handle और deposit result से शुरू करें।
क्या Base mini app को separate backend चाहिए?
Basic cash-out flow के लिए नहीं। Wallet client से sign करता है और @usdctofiat/offramp Base deposit बनाता है। Backend तभी जोड़ें जब account state, webhooks या अपना order database चाहिए।
Builder Code कब जोड़ना चाहिए?
Base.dev पर app register करने और real code मिलने के बाद। तब तक integration को attribution-ready रखें, लेकिन placeholder code को verified की तरह ship न करें।