- TypeScript 68%
- JavaScript 20.3%
- Swift 5.1%
- Kotlin 3.2%
- Ruby 2.1%
- Other 1.1%
* FIX: refund Lightning sends stranded by the Boltz shutdown Lightning sends still in flight when Boltz shut down keep the user's sats at their lockup address. The existing sweep only looked at swaps Boltz had marked failed or claimed, so a send stuck in a pending status, which Boltz can now never move, was never refunded. Once a lockup's refund locktime passes, its refundWithoutReceiver leaf needs only the sender's key and the Ark operator. The lockup parameters exist only in the stored BoltzSwap rows, so on each wallet init every send without a recorded payment is rebuilt from its row, checked against its stored lockup address and registered with the SDK as a vhtlc contract. The SDK's recoverVtxos() then settles the matured ones back to the wallet. Sends with a recorded payment (invoice.paid, transaction.claim.pending, transaction.claimed) are never refunded. Only @arkade-os/sdk is used, and the BoltzSwap schema is now app-owned (identical, so no migration), so the refund keeps working once @arkade-os/boltz-swap is removed. A lockup the operator has not swept yet waits until its batch expires before recoverVtxos() picks it up. * FIX: mark stranded sends refunded once their lockup is recovered The automatic refund left the BoltzSwap rows untouched, so a recovered failed send still offered its Refund button, and tapping it failed with "VHTLC is already spent". The rows were also registered again on every launch. Lockups that held an unspent coin before recoverVtxos() and none after are now marked refunded. Lockups that were already empty, such as one Boltz claimed, are left alone. * TST: cover a stranded send that fails to register * FIX: show stranded sends refunded without Boltz as refunded * REF: keep the BoltzSwap schema in its own module Opening the Arkade Realm no longer loads the stranded-send refund code. * FIX: mark a stranded send refunded on a later launch if this one cannot confirm it A lockup seen funded right before a recovery is recorded on its row, so one found empty on any later launch is marked refunded even when nothing is left to recover: the app was killed, a write threw, or the SDK read back stored vtxos while the indexer was unreachable. * FIX: show sends Boltz paid but never claimed as paid |
||
|---|---|---|
| .bundle | ||
| .github | ||
| .tx | ||
| __mocks__ | ||
| android | ||
| blue_modules | ||
| class | ||
| codegen | ||
| components | ||
| fastlane | ||
| helpers | ||
| hooks | ||
| img | ||
| ios | ||
| loc | ||
| models | ||
| navigation | ||
| patches | ||
| reproducible-builds | ||
| screen | ||
| scripts | ||
| tests | ||
| typings | ||
| util | ||
| .detoxrc.json | ||
| .dockerignore | ||
| .eslintrc | ||
| .gitignore | ||
| .npmrc | ||
| .ruby-version | ||
| .watchmanconfig | ||
| .xcode-env | ||
| _editorconfig | ||
| App.tsx | ||
| babel.config.js | ||
| bugsnag.js | ||
| CLAUDE.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| FAQ.md | ||
| Gemfile | ||
| Gemfile.lock | ||
| gesture-handler.js | ||
| gesture-handler.native.js | ||
| index.js | ||
| jest.config.js | ||
| LICENSE | ||
| metro.config.js | ||
| msbuild.binlog | ||
| NavigationService.ts | ||
| package-lock.json | ||
| package.json | ||
| react-native.config.js | ||
| README.md | ||
| RELEASE.md | ||
| renovate.json | ||
| SECURITY.md | ||
| shim.js | ||
| tsconfig.json | ||
BlueWallet - A Bitcoin & Lightning Wallet
Thin Bitcoin Wallet. Built with React Native and Electrum.
Website: bluewallet.io
Community: telegram group
- Private keys never leave your device
- Lightning Network supported
- SegWit-first. Replace-By-Fee support
- Encryption. Plausible deniability
- And many more features...
BUILD & RUN IT
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
- In your console:
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).
- To run on Android:
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:
- Download and run Android Studio
- Click on "Open an existing Android Studio Project"
- Open
build.gradlefile underBlueWallet/android/folder - Android Studio will take some time to set things up. Once everything is set up, go to
Tools->AVD Manager.- 📝 This option may take some time to appear in the menu if you're opening the project in a freshly-installed version of Android Studio.
- Click on "Create Virtual Device..." and go through the steps to create a virtual device
- Launch your newly created virtual device by clicking the
Playbutton underActionscolumn
Once 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.
- To run on iOS:
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. **
- To run on macOS using Mac Catalyst:
npx pod-install
npm start
Open ios/BlueWallet.xcworkspace. Once the project loads, select the scheme/target BlueWallet. Click Run.
TESTS
npm run test
LICENSE
MIT
WANT TO CONTRIBUTE?
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
Translations
We accept translations via Transifex
To participate you need to:
- Sign up to Transifex
- Find BlueWallet project
- Send join request
- After we accept your request you will be able to start translating! That's it!
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.
Vocabulary glossaries
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.
Q&A
Builds automated and tested with BrowserStack
Bugs reported via BugSnag
RESPONSIBLE DISCLOSURE
Found critical bugs/vulnerabilities? Please email them bluewallet@bluewallet.io Thanks!
