Book a free call

How to Develop a Web3 Wallet, Step by Step

A Web3 wallet stores keys, signs transactions and connects to apps. This guide covers wallet types, build steps, security decisions and launch tests.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How to Develop a Web3 Wallet, Step by Step
On this page

Short answer

A Web3 wallet is software that creates and stores cryptographic keys, signs transactions and messages, and connects to decentralised applications. To develop one, you choose the wallet type, build key management and signing, add network and token support, and test recovery and security before launch.

What is a Web3 wallet?

A Web3 wallet is software that holds the private keys used to control digital assets and sign actions on a blockchain. The wallet itself does not store coins or tokens; those live on the blockchain, and the wallet proves ownership by signing with the matching key.

Most wallets also show balances, transaction history and token details, and they connect to decentralised applications so a user can approve a swap, a transfer or a contract call. The wallet asks the user to confirm each action, and the user can refuse.

The key idea is that the private key is the asset. Whoever holds it can move the funds, and there is no password reset if it is lost. That is why key management and recovery matter more in a wallet than in almost any other kind of app.

Which types of Web3 wallet can you build?

There are four main wallet types, and the choice shapes the whole build. Custodial wallets hold keys for the user, non-custodial wallets leave keys with the user, and the other two types sit between those positions.

Wallet typeWho holds the keysBest suited to
Non-custodial (self-custody)The userUsers who want full control of their assets
CustodialThe providerBeginners and products that need account recovery
Multi-party computation (MPC)Split between partiesInstitutions that need shared signing control
Smart contract walletA contract on-chainProgrammable rules such as spending limits

Non-custodial wallets are the most common starting point for a new product, because they need no custody licence or key storage infrastructure. Custodial wallets are simpler for users but carry far more regulatory and security responsibility.

Multi-party computation splits a key into shares held by different parties, so no single party can sign alone. Smart contract wallets add programmable rules, such as daily limits or recovery by trusted contacts, at the cost of more complex on-chain logic.

How do you develop a Web3 wallet?

You develop a Web3 wallet by building key management first, then signing, then the connection to networks and apps. The user interface comes after the security model is settled, not before.

  1. Define the wallet type and chains. Decide custodial or non-custodial, and which blockchains the first version will support.
  2. Build key generation and storage. Generate keys with an audited library, store them encrypted on the device, and never send a private key to a server.
  3. Add recovery. Provide a seed phrase or a social recovery path, and test that a user can restore the wallet on a new device.
  4. Build signing. Sign transactions and messages locally, show the user exactly what they are signing, and keep the signing code isolated from the rest of the app.
  5. Add networks and tokens. Connect to chain nodes or a node provider, fetch balances and prices, and support the token standards your users need.
  6. Add dApp connections. Support the standard connection protocol for your target chains, and show the app, the network and the requested permissions before connecting.
  7. Build the interface. Cover sending, receiving, swapping and history, with clear warnings for unusual amounts, new addresses and changed networks.

Each step needs its own tests. Key generation, recovery and signing are the parts where a bug costs users real money, so they deserve the most review time. For the wallet types that split keys between parties, MPC wallet development is a separate discipline with its own signing protocol.

What security decisions matter most?

The security decisions that matter most are where keys live, how signing is isolated, and what the user sees before approving an action. Most wallet losses come from a leaked key, a misleading approval screen, or a malicious connected app.

  • Keys never leave the device. In a non-custodial wallet, private keys and seed phrases must never be sent to a server, logged, or included in crash reports.
  • Show what is being signed. A user should see the recipient, the amount, the network and the contract being called, in plain language, before they approve.
  • Warn about risky approvals. Unlimited token approvals and first-time contract interactions deserve an explicit warning, not a quiet default.
  • Protect the seed phrase. The phrase should be shown once, never stored in plain text, and the user should be asked to confirm they have written it down.
  • Plan for a compromised device. Assume the phone can be lost or stolen. A lock, a wipe path and a tested recovery flow are part of the product, not extras.

An independent security review of the signing and key code is standard practice before launch. The review should cover the code that handles keys, the approval screens, and the way the wallet talks to node providers and connected apps.

Teams building for a regulated market should also check the custody and licensing rules that apply in each country they serve, since those rules decide whether a custodial or non-custodial design is even an option.

Example: scoping a first wallet version

Example (hypothetical): a team plans a non-custodial wallet for one chain, with sending, receiving, token balances and dApp connections. The team estimates the work in weeks for a small team of four.

The estimate is 4 weeks for key management and recovery, 3 weeks for signing and transaction building, 3 weeks for network and token support, 2 weeks for dApp connections, and 4 weeks for the interface, testing and fixes. That is 16 weeks in total.

At a hypothetical blended rate of 90 per hour, with a team of four working 35 hours a week, the weekly cost is 12,600. Over 16 weeks the build cost is 201,600. A security review is budgeted separately at a hypothetical flat 20,000, giving a total of 221,600.

These are hypothetical figures for planning, not market prices. Real costs vary with the number of chains, the wallet type and the team's location, and adding a second chain or MPC signing can add several weeks on its own.

What are the common mistakes?

The most common mistakes are showing users unclear approval screens, storing keys where they can leak, and launching without testing recovery on a real device.

  • Unclear signing screens. If a user cannot tell what they are approving, they will approve things they should refuse. Show the recipient, amount and contract in plain language.
  • Keys in the wrong place. Storing a private key or seed phrase in plain text, in a backup file, or in an analytics log is a serious defect, not a minor bug.
  • No recovery test. A recovery flow that has never been tested on a fresh device will fail at the worst moment, when the user has lost their phone.
  • Too many chains at launch. Each chain adds node, token and testing work. One chain done well is a better first version than three chains done badly.
  • Ignoring transaction fees. Users need to see the fee before they confirm, and the wallet needs a clear message when the fee is unusually high or the balance is too low.

How do you test and launch a Web3 wallet?

You test a Web3 wallet by checking key generation, signing, recovery and approval screens on real devices, then launching to a small group before opening it to everyone.

  1. Test key generation and recovery. Generate wallets, restore them on fresh devices, and confirm the same addresses appear.
  2. Test signing on test networks. Send, swap and connect to test apps, and check that failed transactions fail cleanly with a clear message.
  3. Test the approval screens. Show each screen to someone who has never used the wallet and ask them to explain what they are about to approve.
  4. Run a security review. Have an independent team review the key handling, signing and connection code, and fix the findings before launch.
  5. Launch in stages. Start with a small group, watch support requests and error logs, and fix the top issues before a wider release.

After launch, the work continues. Chains change, token standards evolve, and connected apps find new ways to ask for approvals. A wallet needs regular updates and a clear way for users to report a suspicious app or a lost device.

If you are scoping a wallet for a product rather than a standalone app, a partner for crypto wallet development can help choose the wallet type and the chain support for the first version.

Key takeaways

  • A Web3 wallet holds keys and signs actions; the assets themselves live on the blockchain
  • Non-custodial, custodial, MPC and smart contract wallets differ in who holds the keys
  • Build key management and signing first, and the interface after the security model is settled
  • Users must see the recipient, amount, network and contract before they approve anything
  • Test recovery on a fresh device and run a security review before launch

Frequently asked questions

Do I need a licence to build a non-custodial wallet?

In most markets, a non-custodial wallet that never holds user keys faces fewer licensing duties than a custodial service, but the rules differ by country and change often. Get legal advice for each market you plan to serve before choosing the wallet type.

What is a seed phrase?

A seed phrase is a list of words that can recreate a wallet's private keys. Anyone with the phrase can control the wallet, so it must be written down on paper and stored safely, and never shared with anyone or typed into a website.

Can a Web3 wallet support more than one blockchain?

Yes, most wallets support several chains, but each chain adds work for balances, token standards, fees and testing. It is better to support one chain well in the first version and add others after the core wallet is stable.

What is the difference between a hot wallet and a cold wallet?

A hot wallet is connected to the internet, usually as a phone or browser app, and is convenient for everyday use. A cold wallet keeps keys offline, usually on a hardware device, and is better for large balances that are rarely moved.

How do dApps connect to a wallet?

A dApp asks the wallet to connect, and the wallet shows the app name, the network and the permissions requested. The user can accept or refuse. Once connected, the app asks the wallet to sign each action, and the user approves each one separately.

What happens if a user loses their phone?

If the wallet is non-custodial and the user has their seed phrase or recovery path, they can restore the wallet on a new device. If they have neither, the funds cannot be recovered, which is why the recovery flow must be tested before launch.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a Web3 wallet for your product?

A senior engineer replies within one business day. Or see our Crypto Wallet service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call