Using Blockchain Technology Without A Wallet
Tags: blockchain, webdev, web3, javascript
Published: 2023-04-25 15:11:50

Blockchains allow for lots of novel use cases that leverage their open and decentralized tech, but the industry is still nascent, with lots of hurdles for user adoption. Let’s discuss how we can minimize these hurdles to bring blockchain tech to the masses, without them even knowing about it.

## The Need for Wallets
Typically, using a blockchain requires using a piece of software called a “wallet” to store your private key. These wallets often take the form of extensions for popular web browsers (like Google Chrome). There are downsides to this, such as the fact that not all wallets support every blockchain, often resulting in users having to install multiple wallets.


![Modal asking user to save Private Key](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n756krhaas7o19snzh2q.png)

The main reason to use a wallet is to manage your private key, allowing you to repeatedly access the same account, which is important if you are storing valuable assets such as tokens or NFTs on that account. These tokens are needed to pay transaction fees on blockchains, allowing users to use the network.

But what if you could use a blockchain without a wallet?

## A Wallet-Free Experience
There are two methods of storing private keys locally (on a user’s computer), without using a wallet. The first is to use an Iframe app (like Login with Google), and the second is to simply store the private key in the local storage.


![Wallet Free Login Experience with a Simple Click](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zwph6l9gqmw9te9k27ne.png)

By using one of these methods, a user no longer needs a wallet. Applications can sign transactions on behalf of users. Obviously this can present security risks, but users can use this set up for things that are low stakes, such as liking a post on a social network. However, if this user needs tokens in order to interact with the network, they will likely still want to use a wallet, in order to better manage and secure their tokens.

It is worth noting that not all blockchain users necessarily need tokens. [Subsocial](https://bit.ly/Subsocial-website), a Web3 social platform, uses a system called Energy to enable dapp developers to easily cover the transaction fees of users. This can be done with just a [few lines](https://bit.ly/energy-docs) of code:

```
const burnAmount = 1 // 1 SUB
const parsedBurnAmount = burnAmount * 10 ** 10 //SUB token uses 10 decimals
const target = '3osmnRNnrcScHsgkTJH1xyBF5kGjpbWHsGrqM31BJpy4vwn8'
const tx = api.tx.energy.generateEnergy(target, parsedBurnAmount.toString())

```

Test it live on the [Subsocial Playground](https://bit.ly/energy-playground).

As a result of this, if a dapp supports the energy system, users of that dapp don’t even need to think about tokens — they can just use the application.

By combining these two points, users can sign into decentralized applications using their locally-stored private key, with their public key acting as their user ID, and they will not need tokens (thanks to Subsocial’s energy system). In this way, anyone can interact with a blockchain without installing and setting up a wallet. This is similar to the classic Web2 model where anyone can create an anonymous account on a forum and start using it right away to discuss any topic in the world.

A great example of this in Web3 is [Grill.chat](https://bit.ly/grill-chat), an anonymous and censorship-resistant chat application powered by Subsocial. However, unlike in Web2, users don’t even need to create an account to get started chatting on [Grill.chat](https://bit.ly/grill-chat), they just need to send a message, and an account will be generated for them, along with some energy. 


![Login Modal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ae0crj9qxzzs42jps40n.png)

Not all blockchain use cases require wallets and token ownership, and Subsocial’s Grill.chat is a great example of pioneering ways to onboard more users to Web3, without them even realizing it. We are moving towards a time where people will be using blockchain tech without knowing it, and solutions like this help move us toward that future.

Thanks a lot for reading!

## Resources
Wallet-free On-Chain Chat Experience: [https://grill.chat](https://bit.ly/grill-chat)

Subsocial Network: [https://subsocial.network](https://bit.ly/Subsocial-website)

Try Energy System on Subsocial Playground: [https://play.subsocial.network/energy/generate](https://bit.ly/energy-playground)

Subsocial Developer Chat: [Join Now](https://bit.ly/43XKGsU)