Building on Solana requires iteration. A developer writing a smart contract, testing a dApp frontend, or debugging token mechanics cannot afford to use real SOL, pay mainnet fees, or risk transaction finality on untested code. The standard development workflow therefore involves deploying to Devnet or Testnet first—networks that mirror Mainnet’s mechanics but run independently, allow unlimited airdrops of test SOL, and reset periodically. The practical problem is that most wallet documentation assumes a user simply wants to hold and transfer tokens on Mainnet. For developers, the real work happens in environments where the wallet must be configured to point to a cluster that does not exist by default in a standard installation.

Solflare, the first wallet designed exclusively for the Solana blockchain, has simplified wallet interaction for staking and token swaps on Mainnet. But developers building dApps, testing SPL token contracts, or running custom cluster validators need to understand how to configure Solflare wallet to work with development networks. The distinction matters because wallet configuration and cluster selection are not intuitive in every mobile or extension environment, and incorrect setup can lead to wasted hours debugging application logic when the real issue is a network mismatch.

Solflare wallet interface showing network selection and cluster configuration options for development environments

Why Solflare wallet matters for Solana development

Before Solflare, Solana developers typically relied on command-line tools like Solana CLI or third-party wallets designed for multiple blockchains. These tools work, but they are not optimized for the Solana-specific workflow. Solflare changed that by building a wallet exclusively around Solana’s native features: SPL token standards, fast transactions, low fees, and integrated staking. For developers, this means the wallet understands Solana’s transaction model natively rather than forcing Solana into a generic web3 pattern.

The Solflare setup process begins with a seed phrase backup and account creation, but the real distinction for developers emerges when configuring the network environment. A standard Solflare wallet installation connects to Mainnet by default. Switching to Devnet or Testnet is necessary for development, but the process requires deliberate action. Unlike some wallets that auto-detect available networks, Solflare requires manual cluster configuration. This design choice reflects the reality that most retail users should never accidentally switch networks; developers, by contrast, must do so repeatedly and deliberately.

The web3 wallet space has evolved to support multiple chains and multiple networks within chains. Solflare’s specialization in Solana means it does not try to abstract away Solana’s specific mechanics. Developers who understand the difference between Solana’s Mainnet Beta, Testnet, Devnet, and custom clusters will find that Solflare respects those distinctions rather than hiding them behind generic terminology. This is a feature for experienced developers, though it requires knowing which cluster your local validator or development environment is actually running.

Configuring Solflare for Devnet and Testnet environments

The Solflare browser extension and mobile app both support network switching, but the interface differs slightly between platforms. In the browser extension, access the settings menu—usually a gear icon or account menu—and look for a “Network” or “Cluster” option. Most official Solana networks are available as preset options: Mainnet Beta, Testnet, and Devnet. Selecting Devnet will cause Solflare to redirect all transactions, account lookups, and program queries to the Devnet RPC endpoint.

Testnet is worth distinguishing from Devnet in practice, even though both are “development” environments. Testnet runs Solana software that is closer to the next release candidate, making it useful for testing upcoming protocol features. Devnet resets more frequently and is designed for active development. A developer should choose based on whether they are testing a new protocol feature (Testnet) or iterating on application code (Devnet). Solflare makes this choice explicit rather than combining them into a single “testnet” option, which reflects Solana’s actual validator topology.

Switching networks in the mobile app follows a similar pattern but may be accessed through a menu that varies by iOS or Android. The principle is identical: locate the network selector, choose Devnet or Testnet, and confirm. After switching, refresh any connected dApp or reload the page to ensure the frontend and wallet are communicating on the same network. Network mismatches are a common source of confusion; a dApp UI may show a balance of zero simply because it is querying Mainnet while the wallet is pointed at Devnet.

Adding custom clusters and local validators

Beyond the preset networks, developers often run their own local validators or private clusters. This is essential for testing features that interact with validator consensus, testing network splits, or running integration tests that require deterministic behavior. Solflare supports this through custom RPC endpoint configuration, though the exact location varies by platform and recent updates.

In the browser extension, the settings or advanced section typically includes an option to add a custom RPC URL. Enter the endpoint URL—for instance, `http://localhost:8899` for a local validator running on the default Solana port—and optionally name the cluster. Solflare should then treat this custom cluster as a valid network option. Important: a custom RPC must be accessible from the browser environment. If the wallet is running on a different machine than the local validator, the localhost address will not work; use the validator machine’s actual IP address or hostname instead. Firewall and CORS settings on the validator also matter. The default Solana validator does not enable browser-based CORS, so a custom validator intended for Solflare must be started with CORS headers enabled, typically using the `–rpc-http-enable-default-cors` flag or by configuring an intermediary proxy.

For mobile applications, custom RPC configuration may be less exposed in the UI, as mobile developers typically work with remote development clusters rather than local machines. However, Solflare’s architecture does allow configuration through in-app settings. The limitation is practical: a mobile phone cannot easily reach `localhost:8899` on a developer machine, so mobile development workflows typically use a remote development cluster with a publicly accessible RPC endpoint, or a proxy that bridges the mobile device to the local environment.

Airdropping test SOL on development networks

A critical difference between development networks and Mainnet is that Devnet, Testnet, and custom clusters allow unlimited test SOL airdrops. After switching your Solflare wallet to Devnet, you can request an airdrop to fund transactions without spending real money or waiting for someone to send you funds. The airdrop process requires the wallet’s public address, which Solflare displays in the receive section of the application.

Some wallet interfaces include an airdrop button directly, while others require using the Solana CLI or a web-based faucet service. If Solflare does not have a built-in airdrop button, copy the wallet’s public key and use the command line: `solana airdrop 10 –url devnet`. This requests 10 SOL to the specified address on Devnet. After a few seconds, the balance should update in Solflare. If it does not, verify that your wallet is still pointing to Devnet by checking the network indicator.

Testnet airdrops work identically but are requested with `–url testnet`. Custom clusters may or may not have an airdrop system configured; if you are running a private cluster, you would typically mint tokens directly or use a custom faucet set up for that cluster. Some projects maintain their own faucet services, so check the documentation of whatever custom cluster you are joining.

Integrating Solflare with dApp development frameworks

When building a dApp frontend, the wallet connection flow matters as much as the wallet itself. Most Solana dApp frontends use a library like Wallet-Adapter or Solana Web3.js to communicate with Solflare. These libraries handle the connection handshake, transaction signing, and wallet detection. For development, ensure that the dApp is also configured to point to the same cluster as Solflare.

A common pattern is to set the RPC endpoint in your frontend environment variables or configuration file. If Solflare is set to Devnet, your dApp should also be initialized to Devnet. The integration point is usually something like: `const connection = new Connection(‘https://api.devnet.solana.com’);` or a custom endpoint if you are using a private cluster. After establishing the connection, the dApp requests the wallet to sign transactions. Solflare receives these signing requests and presents them to the user for approval.

Testing this integration locally requires that both the frontend and wallet can reach the specified RPC endpoint. For Devnet or Testnet, this is straightforward: use the public Solana Foundation RPC endpoints. For a local validator, ensure CORS is enabled and that the endpoint is accessible from where your dApp code is running, whether that is `localhost` or a remote development server. Many developers use a development proxy or reverse-proxy setup to handle CORS locally while testing, which is a simpler alternative to modifying the validator configuration.

Debugging common cluster configuration issues

Developers often encounter a handful of recurring problems when setting up Solflare for custom clusters or unfamiliar networks. The first is a network mismatch: the wallet is on Devnet while the dApp is querying Mainnet, or vice versa. The symptom is usually an account not found error or a zero balance despite an apparent airdrop. Always verify the network indicator in both the wallet and the dApp before assuming the transaction failed. The visual indicator in Solflare should show which network is active.

A second issue is an invalid or unreachable RPC endpoint. If you added a custom RPC and Solflare cannot query it, transactions will fail with vague error messages. Test the endpoint independently using curl or a tool like Postman to verify it is responding. For a local validator, ensure it is running, the port is correct, CORS is enabled, and the machine running the validator is reachable from where Solflare is running. If Solflare is a browser extension on your laptop and the validator is on a different machine, use the validator machine’s IP address, not `localhost`.

A third problem is an out-of-date local validator or incompatible versions. Solana software updates frequently, and a local validator running an older version may behave unexpectedly when Solflare sends newer transaction types or features. Keep your Solana software and local validator in sync with the Devnet version by running `solana-update` and restarting the validator. The error messages are not always clear about version mismatches, so version consistency should be a default assumption when debugging.

Best practices for development-to-mainnet workflows

Once development is complete, transitioning from Devnet to Mainnet requires discipline. The most important practice is to create a separate wallet or account specifically for mainnet use, never reusing development credentials. Developers often make mistakes like deploying test tokens with the wrong settings or leaving debugging features enabled; reusing a wallet across development and mainnet increases the risk of accidentally executing a development pattern on real assets.

Before switching to Mainnet, verify that your dApp is correctly configured for the mainnet RPC endpoint and that the contracts have been audited or tested thoroughly. Solflare wallet itself handles the switch cleanly—simply select Mainnet Beta from the network menu—but the decision to do so should be deliberate and supported by checklist items: is the contract deployed to Mainnet? Are the environment variables correct? Have you tested on Testnet first? Switching networks in Solflare is a one-click operation; the real safety measure is the process before that click.

Documentation for your dApp should also include setup instructions for developers testing it. Specify which cluster to use, how to configure Solflare for that cluster, and how to airdrop test SOL. Including these details saves developers time and reduces the likelihood that misconfiguration will be mistaken for a bug in your application. Some teams maintain a hosted testnet endpoint specifically for external developers, which simplifies onboarding compared to asking each developer to run a local validator. You can configure the solflare wallet to connect to such an endpoint by adding a custom RPC URL in the settings.

Frequently asked questions

How do I switch my Solflare wallet between Devnet and Mainnet?

In the Solflare browser extension or mobile app, access the settings or account menu and select the network option. Choose Devnet, Testnet, or Mainnet Beta from the list. After switching, refresh any connected dApp to ensure the frontend and wallet are communicating on the same network. The network indicator in Solflare should display which cluster is currently active.

Can I add a custom RPC endpoint to Solflare wallet?

Yes. In the advanced settings of the Solflare wallet extension, there is typically an option to add a custom RPC URL. Enter your endpoint—such as a local validator or private cluster—and name it. Ensure the endpoint is accessible from your browser, has CORS enabled if accessed from a browser environment, and is reachable at the specified address. For localhost endpoints, verify that the local validator is running on the port specified in the URL.

How do I get test SOL for development?

After switching Solflare to Devnet or Testnet, copy your wallet’s public address from the receive section. Use the Solana CLI command `solana airdrop 10 –url devnet` or `–url testnet`, or visit a web-based faucet for the cluster. The test SOL should arrive within seconds and appear in your Solflare wallet balance.