Bitcoin wallet for iOS & Android. Built with React Native
Thin Bitcoin Wallet. Built with React Native and Electrum.
Website: bluewallet.io
Community: telegram group
Please refer to the engines field in package.json for the minimum required versions of Node and npm. BlueWallet uses npm 12.2.2. It is preferred that you use an even-numbered version of Node as these are LTS versions.
To view the version of Node and npm in your environment, run the following in your console:
node --version && npm --version
git clone https://github.com/BlueWallet/BlueWallet.git
cd BlueWallet
npm install
Please make sure that your console is running the most stable versions of npm and node (even-numbered versions).
You will now need to either connect an Android device to your computer or run an emulated Android device using AVD Manager which comes shipped with Android Studio. To run an emulator using AVD Manager:
build.gradle file under BlueWallet/android/ folderTools -> AVD Manager.
Play button under Actions columnOnce you connected an Android device or launched an emulator, run this:
npx react-native run-android
The above command will build the app and install it. Once you launch the app it will take some time for all of the dependencies to load. Once everything loads up, you should have the built app running.
npx pod-install
npm start
In another terminal window within the BlueWallet folder:
npx react-native run-ios
**To debug BlueWallet on the iOS Simulator, you must choose a Rosetta-compatible iOS Simulator. This can be done by navigating to the Product menu in Xcode, selecting Destination Architectures, and then opting for "Show Both." This action will reveal the simulators that support Rosetta. **
npx pod-install
npm start
Open ios/BlueWallet.xcworkspace. Once the project loads, select the scheme/target BlueWallet. Click Run.
npm run test
Lint, unit and integration tests. End-to-end tests: Detox for iOS and Android in tests/e2e, Appium for Mac Catalyst in tests/e2e-appium (see its README).
MIT
Grab an issue from the backlog, try to start or submit a PR, any doubts we will try to guide you. Contributors have a private telegram group, request access by email bluewallet@bluewallet.io
We accept translations via Transifex
To participate you need to:
Please note the values in curly braces should not be translated. These are the names of the variables that will be inserted into the translated string. For example, the original string "{number} of {total}" in Russian will be "{number} из {total}".
Transifex automatically creates Pull Request when language reaches 100% translation. We also trigger this by hand before each release, so don't worry if you can't translate everything, every word counts.
loc/vocabulary.md + the per-language files under loc/vocabulary/ are the canonical glossary of Bitcoin/Lightning terms (Wallet, Vault, Seed, Mnemonic, Passphrase, Multisig, Payment Code, Coin Control, …) and their chosen rendering in each locale, with the reasoning behind each choice and ⚠️ anti-meaning callouts (e.g. Passcode ≠ Password, Change-output ≠ verb "to change"). Use them as ground truth when translating by hand or when feeding loc/<lang>.json to an LLM — terminology consistency across screens is the difference between "looks translated" and "is correct for a Bitcoin wallet". When you change a shipped string, update the matching row in the same PR.
Builds automated and tested with BrowserStack
Bugs reported via BugSnag
Android: set a per-release Bugsnag BUILD_UUID so the APK is reproducible
https://github.com/BlueWallet/BlueWallet/issues/9160
Labels: None
All commits should have one of the following prefixes: REL, FIX, ADD, REF, TST, OPS, DOC. For example "ADD: new feature".
Adding new feature is ADD, fixing a bug is FIX, something related to infrastructure is OPS etc. REL is for releases, REF is for
refactoring, DOC is for changing documentation (like this file).
Commits should be atomic: one commit - one feature, one commit - one bugfix etc.
When you tag a new release, use the following example:
git tag -m "REL v1.4.0: 157c9c2" v1.4.0 -s
You may get the commit hash from git log. Don't forget to push tags git push origin --tags
Alternative way to tag: git tag -a v6.0.0 2e1a00609d5a0dbc91bcda2421df0f61bdfc6b10 -m "v6.0.0" -s
When tagging a new release, make sure to increment version in package.json and other files (we have a script for that: ./scripts/edit-version-number.sh)
In the commit where you up version you can have the commit message as
"REL vX.X.X: Summary message".
Do not add new dependencies. Bonus points if you manage to actually remove a dependency.
Bumped production dependencies must be pinned.
All new files must be in typescript. Bonus points if you convert some of the existing files to typescript.
New components must go in components/. Bonus points if you refactor some of old components in BlueComponents.js to separate files.
Add tests if it makes sense. Bonus points for e2e tests.
Added / modified texts should be only in loc/en.json - there should be no inline texts in UI code. Dont touch other localization json files - those are modified outside by Transifex.
Make sure the code is not overengineered and not bloated.
Aim for the absolute minimal change that does the job while still being readable.
If you added / altered tests, make sure they are not bullshit: dont just test mocks, or that data youve put into mocks is there; tests should check happy paths as well as edge cases and NOT be bloated / overengineered.
Dont touch lines that are not relevant to the change - they show up in the diff and distract, plus hijack line ownership in git blame.
Before creating a PR, make sure unit/integration/lint tests pass. You might not have all env variables but thats ok - some tests will be skipped.
PRs must have short description of why (it was implemented) and how (it works under the hood).
When submitting PR with a UI (or visual) change it must include screenshot (from the emulator or the device) how the proposed change looks, even better - a video.