Title: Bitcoin validation for Javascript Post by: pablocokeninja on December 11, 2023, 06:51:58 PM Hey,
I am wondering if there is a full bitcoin validation library or NPM package for that? That the build is actually up to date and maintained. If not, should i validate the bitcoin wallet using the RPC validateaddress() command through an API? Would love your feedback on this. Title: Re: Bitcoin validation for Javascript Post by: DifDrama on December 12, 2023, 02:55:01 AM BitcoinJS-lib is a JavaScript library for Bitcoin scripting and works both on Node.js and in web browsers. It allows you to create, manipulate, and interpret Bitcoin transactions. You can install it using npm with `npm install bitcoinjs-lib`. And here is the link: https://github.com/bitcoinjs/bitcoinjs-lib
Hope this is helpful. Title: Re: Bitcoin validation for Javascript Post by: seek3r on December 13, 2023, 10:37:05 AM As already mentioned, bitcoinjs-lib is the most common library that is used in the Bitcoin community coz it offers a huge range of functionalities.
You can also use bitcoin-address-validation library which might suit even better. It is specifically dsigned for validating Bitcoin addresses and support almost every address types aswell. This might be easier to use due the focus of validating Bitcoin addresses. I'm not saying that bitcoinjs-lib is a bad choice. Quite the opposite and as already mentioned: its a library that covers a broad spectrum of Bitcoin functionalities, making it suitable for complex applications that require extensive Bitcoin transaction handling, wallet management and a few more features. I just wanted to list an alternative. ;) Title: Re: Bitcoin validation for Javascript Post by: Lakai01 on December 15, 2023, 12:22:12 PM [...] Nowadays, searching for libraries on Github works very well (back then it was more of a gamble to find something you were actually looking for, kind of like using Microsoft's Bing ::)). Would love your feedback on this. Here is the result: https://github.com/search?q=bitcoin+javascript&type=repositories There would also be the library in the search result that I had already used myself: bitcoind-rpc However, the last commit was almost 2 years ago. |