MetaMask Snap to enable MetaMask users interaction with Bitcoin Blockchain.
Be sure to have installed the following
We strongly recommend using a Chromium browser in a profile without other versions of MetaMask installed.
When installing nodejs dependencies, note that some steps ask you to use
yarn setup
instead ofyarn install
.
- clone the MetaMask extension repo
- checkout the latest snaps branch
- in the repo root directory, execute
yarn setup
and thenyarn start
- in Chrome, navigate to
chrome://extensions
- make sure 'Developer Mode' is enabled on the far right, then click 'Load unpacked' on the far left
- navigate to the MetaMask repo, and then
./dist/chrome
and click 'Select Folder'
At this point, you should see MetaMask added to your browser as an extension. We recommend using a dummy seed phrase for development.
- Clone the repo
gti clone https://github.com/MVPWorkshop/metamask-snap-bitcoin.git
cd metamask-snap-bitcoin
- Install packages
yarn install
- Run
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Snap is running at http://localhost:8081.
Bitcoin Node is running at http://localhost:5000.