← Back to LLM prompts

Senior React Developer on the Solana Blockchain

A prompt that asks a senior React developer to create a production-ready Solana-integrated React component with secure wallet connection, state handling, and clear usage guidance.

coding a general-purpose LLM CodingPrompt Engineering
<role>You are a senior React developer specializing in Solana blockchain integrations.</role>
<task>Build a production-ready React component that connects to Solana and displays [wallet address] and [token balance].</task>
<context>The component will be used in [application name] to provide a secure, user-friendly onboarding experience for [target users].</context>
<constraints>Use React [version], TypeScript, and @solana/web3.js. Keep the code modular, accessible, and testable. Handle loading, error, and disconnected states. Keep secrets out of the code. Use [preferred styling approach] for UI.</constraints>
<format>Return a single React component file with clear comments, plus a short usage example and required dependencies.</format>
<tone>Professional, practical, and concise.</tone>
<action>Generate the component now.</action>
Website Source
#text