Stacks Wallet is a browser extension for managing your digital assets and connecting to apps built with the Stacks blockchain.
Source code is available on GitHub at https://github.com/blockstack/stacks-wallet-web/tree/main
To use this extension with your own Stacks App, we recommend using Connect.
Table of Contents:
When working locally with stacks-wallet-web
, it can only be used as you'd use any extension. There is no ability to
run it as a standalone web application.
Clone this repository and install dependencies:
git clone https://github.com/blockstack/stacks-wallet-web
cd stacks-wallet-web
yarn
When working on the extension, you can run it in development
mode which will watch for any file changes and
use react-refresh
to update the extension as you work. This gives us near instant reloading of our changes, and
persists the state of the application between changes. To start development mode for the extension, run this command:
yarn dev
We bundle a test app to use along with the extension. It gives easy access to the various functions that the extension can do.
In a separate terminal, run:
yarn dev:test-app
After starting development mode, you'll have to add it to your browser of choice. Stacks Wallet for web currently only
supports chromium and firefox browsers. When you run yarn dev
, it will compile the application to the /dist
folder
within the project.
- Go to:
chrome://extensions
- Toggle: "developer mode" on
- Click on: "Load unpacked"
- Navigate to the
stacks-wallet-web
project directory - Select the
dist
directory to load the extension
- Go to:
about:debugging
- Click on "This Firefox"
- Click on: "Load Temporary Add-on…"
- Navigate to the
stacks-wallet-web
project directory - Select the
manifest.json
file.
From the root of this repository, in the command line, run:
sh build-ext.sh
The extension will be packaged as stacks-wallet-chromium.zip
inside this folder.
- Build the docker image locally:
docker build . -t stacks-wallet-web
- Copy the built extensions to your local machine:
docker run -d --name stacks-wallet-web stacks-wallet-web && docker cp stacks-wallet-web:stacks-wallet-chromium.zip . && docker rm -f stacks-wallet-web
First, unzip the stacks-wallet-chromium.zip
file that was generated in the previous step.
Use these steps when using a Chromium browser, like Chrome, Brave, and Edge.
- Go to:
chrome://extensions
- Toggle: "developer mode" on.
- Click on: "Load unpacked"
- Select the new directory that was unzipped from
stacks-wallet-chromium.zip
.
- Go to:
about:debugging
- Click on "This Firefox"
- Click on: "Load Temporary Add-on…"
- Navigate inside the new directory that was unzipped from
stacks-wallet-chromium.zip
- Select the
manifest.json
file.