Author

Topic: Bitcoin validation for Javascript (Read 114 times)

legendary
Activity: 2520
Merit: 3054
Enjoy 500% bonus + 70 FS
December 15, 2023, 07:22:12 AM
#4
[...]
Would love your feedback on this.
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  Roll Eyes).

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.
legendary
Activity: 1316
Merit: 2018
December 13, 2023, 05:37:05 AM
#3
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.  Wink
jr. member
Activity: 35
Merit: 33
December 11, 2023, 09:55:01 PM
#2
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.
jr. member
Activity: 47
Merit: 3
December 11, 2023, 01:51:58 PM
#1
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.

Jump to: