Cover photo

How a Local Wallet made me develop 10x faster

As a mobile developer, I'm always on the lookout for tools and techniques that can streamline my development process and enhance productivity. Recently, I've discovered an incredibly useful approach for developing decentralized applications (DApps) – using a local crypto wallet.

The Issue with Physical Device Reliance

In the initial stages of my journey into DApp development, I realized that I couldn’t rely on mobile emulators since to do almost anything in crypto you need to be connected to a wallet. This meant that I needed to run my DApps on physical devices to be able to scan a QR code or connect directly to a wallet app on my phone.

Despite React Native doing a good job at rapid prototyping with hot reloading, the reliance on physical devices poses a hurdle since devices get disconnected, locked, screens go dark, etc.

Using my personal phone for development also gets me distracted with new notifications coming in from the 101 apps I have installed. All this without talking about battery degradation from having your phone connected all day.

The Power of Local Wallets

This is where local crypto wallets come to the rescue. A local crypto wallet, runs on your local app. It allows you to perform any action you would execute with a regular wallet: connect, approve transactions, switch chains.

At thirdweb we came up with the idea of Guest Mode, a way for users to explore DApps without the hassle of creating or connecting their wallets. The DApp will just create a Local Wallet for them and give them the option to back it up at the end of their session.

CatAttack development using Guest Mode (Local Wallet)
CatAttack development using Guest Mode (Local Wallet)

When I was implementing this feature I suddenly realized I didn’t need to use my physical device anymore!

The ability to pair a local crypto wallet with an emulator has been the game-changer. Now, I no longer need a physical device every time I want to test a feature that involves a blockchain transaction. This transformation has streamlined my workflow, greatly enhancing my development speed.

Conclusion

Adopting a local crypto wallet for DApp development in React Native has been a revelation. It has alleviated the need for WalletConnect during testing, eliminating the reliance on physical devices and, in turn, accelerating my development speed. If you are a DApp developer grappling with similar challenges, a local crypto wallet could be the answer to your woes. It has been an absolute boon for me, and I am confident that it can do the same for you. By the way, thirdweb’s Local Wallet works everywhere! Web, mobile and backends.

If you are curious on how we implemented it you can checkout our GitHub or head to our documentation to see how to use it in your DApp today. Happy coding!