Skip to content

MetaMask/snap-bitcoin-wallet

Bitcoin Snap Monorepo

Bitcoin Logo

Getting Started

The Bitcoin Snap allows MetaMask and dapps to support all Bitcoin-related networks and address types.

Prerequisites

  • MetaMask Flask
  • Nodejs 20. We strongly recommend you install via NVM to avoid incompatibility issues between different node projects.
    • Once installed, you should also install Yarn with npm i -g yarn to make working with this repository easiest.

Installing

nvm use 20
yarn install

Configuration

please see ./src/packages/.env.example for reference

Running

Quick Start

yarn start

Snap

⚠️ When snap updates you will need to still reconnect from the dapp to see changes

# Running Snap via watch mode
yarn workspace @metamask/bitcoin-wallet-snap start

Alternatively you can build and serve the snap manually. This can sometimes be more stable than watch mode but requires a manual rebuild and serve anytime there is a change on the snap.

# Building and serving snap manually
yarn workspace @metamask/bitcoin-wallet-snap build
yarn workspace @metamask/bitcoin-wallet-snap serve

Example UI

# Running example UI
yarn workspace example start

About

Bitcoin Wallet Snap

Resources

License

Apache-2.0, MIT-0 licenses found

Licenses found

Apache-2.0
LICENSE.APACHE2
MIT-0
LICENSE.MIT0

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 11