Post
Topic
Board Announcements (Altcoins)
Migrate from jsbgl to Bitgesell + BitcoinJS
by
epexa
on 14/05/2025, 16:20:00 UTC
Hello, this is the BGLWallet team!

We are introducing a new library for Bitgesell app developers! Smiley

"Bitgesell + BitcoinJS"
https://www.npmjs.com/package/bitgesell-bitcoinjs

This is a helper library that provides BitcoinJS for the Bitgesell blockchain. BitcoinJS is the most popular JavaScript library for Node.js and browser!

In the README and examples, you will find various use cases: creating a wallet, importing an address, validating an address, and most importantly – signing a transaction!



Our wallets for support: bgl1qz7eh5tjs9ac52l3ntz0rhpdz688cx5c5chtr2s, 0x9d8b13c6c7997f7f53b7a82506a7b1ad53cf3223 (polygon, optimism, arbitrum one, ethereum)


If you have used the "jsbgl" library, we (the BGLWallet team) recommend stop using it and migrate to the "Bitgesell + BitcoinJS" library.

Here are a few main reasons why you should avoid using "jsbgl":

  • No longer maintained, the last update was 5 years ago (Nov 7, 2020);
  • Heavy: jsbgl.web.min.js is 407 KB and includes additional components that are not always needed;
  • Uses WASM, which can cause issues with mobile applications and browser extensions;
  • jsbgl.web.min.js contains eval, which is considered a bad practice.

At the same time, BitcoinJS does not have any of the above-mentioned problems and also has additional advantages:

This makes it one of the most popular libraries!

Bitgesell Wallet has already been rewritten — here is a real commit where the migration from "jsbgl" to "Bitgesell + BitcoinJS" was made:
https://github.com/epexa/bitgesell-wallet/commit/67b1074291a8fccd11e541922e66715819f66cb5


Our wallets for support: bgl1qz7eh5tjs9ac52l3ntz0rhpdz688cx5c5chtr2s, 0x9d8b13c6c7997f7f53b7a82506a7b1ad53cf3223 (polygon, optimism, arbitrum one, ethereum)