Bitcoin Forum

Bitcoin => Project Development => Topic started by: rolik2001 on April 02, 2019, 08:49:16 AM



Title: Help to find bitcoin lib for nodejs
Post by: rolik2001 on April 02, 2019, 08:49:16 AM
I need to connect btc to my website with nodejs, so I'm looking for any way in which I can accept bitcoins. I have seen bitcoinjs lib, but this lib can't check explorer and push tx. Maybe you have some multiwallet which contains all popular coins and can be added from my own, because I'm planning to use this libs for others bitcoin forks.


Title: Re: Help to find bitcoin lib for nodejs
Post by: eckmar on April 02, 2019, 08:58:31 AM
You can generate address with bitcoinjs, and then use an API of some explorer to create and push tx but you will have to write that "middleware".
Other option (best one) is to connect to Bitcoin daemon directly with RPC and use it to do everything. This will work with all Bitcoin forks because they don't change RPC calls at all. Bad thing is, you need to run a full node.

You can also check bitcore (full node also required)


Title: Re: Help to find bitcoin lib for nodejs
Post by: rolik2001 on April 02, 2019, 09:25:05 AM
You can generate address with bitcoinjs, and then use an API of some explorer to create and push tx but you will have to write that "middleware".
Other option (best one) is to connect to Bitcoin daemon directly with RPC and use it to do everything. This will work with all Bitcoin forks because they don't change RPC calls at all. Bad thing is, you need to run a full node.

You can also check bitcore (full node also required)
Hmmm, okay thanks. I will try to connect forks to this libs. Right now, I try to rewrite this thing https://github.com/mmick66/jswallet But I still looking for light multiwallet.


Title: Re: Help to find bitcoin lib for nodejs
Post by: DeBugMe on April 02, 2019, 12:15:30 PM
Hello, please contact me by PM if you are still interested ))


Title: Re: Help to find bitcoin lib for nodejs
Post by: seoincorporation on April 02, 2019, 03:33:31 PM
I need to connect btc to my website with nodejs, so I'm looking for any way in which I can accept bitcoins. I have seen bitcoinjs lib, but this lib can't check explorer and push tx. Maybe you have some multiwallet which contains all popular coins and can be added from my own, because I'm planning to use this libs for others bitcoin forks.

What you are searching is a bitcoin wrapper:

http://lmgtfy.com/?q=nodejs+bitcoin+wrapper

But remember that you will need to install your node in the server and for that you need a robust server (with more than 250GB), other option is to install the core in a local computer, then turn down the firewall and make the connection direc from your server to the local machine. Is the complex way but with that you avoid the big server for node.


Title: Re: Help to find bitcoin lib for nodejs
Post by: rolik2001 on April 02, 2019, 05:36:14 PM
I need to connect btc to my website with nodejs, so I'm looking for any way in which I can accept bitcoins. I have seen bitcoinjs lib, but this lib can't check explorer and push tx. Maybe you have some multiwallet which contains all popular coins and can be added from my own, because I'm planning to use this libs for others bitcoin forks.

What you are searching is a bitcoin wrapper:

http://lmgtfy.com/?q=nodejs+bitcoin+wrapper

But remember that you will need to install your node in the server and for that you need a robust server (with more than 250GB), other option is to install the core in a local computer, then turn down the firewall and make the connection direc from your server to the local machine. Is the complex way but with that you avoid the big server for node.
Thanks for the help, but in fact, it is an analog of bitcoin-core lib. I have found one interesting Russian article where they show command which can change blockchain size from 250 to 2-3 gb.


Title: Re: Help to find bitcoin lib for nodejs
Post by: eckmar on April 02, 2019, 05:49:08 PM
I need to connect btc to my website with nodejs, so I'm looking for any way in which I can accept bitcoins. I have seen bitcoinjs lib, but this lib can't check explorer and push tx. Maybe you have some multiwallet which contains all popular coins and can be added from my own, because I'm planning to use this libs for others bitcoin forks.

What you are searching is a bitcoin wrapper:

http://lmgtfy.com/?q=nodejs+bitcoin+wrapper

But remember that you will need to install your node in the server and for that you need a robust server (with more than 250GB), other option is to install the core in a local computer, then turn down the firewall and make the connection direc from your server to the local machine. Is the complex way but with that you avoid the big server for node.
Thanks for the help, but in fact, it is an analog of bitcoin-core lib. I have found one interesting Russian article where they show command which can change blockchain size from 250 to 2-3 gb.

Its called pruned node. You can research it. Its useful as you won't store whole blockchain, but on the other hand if you need some explorer-like features, you won't be able you see older blocks, just the last few. Thats because, well you are not storing the other blocks, hence reduced size.


Title: Re: Help to find bitcoin lib for nodejs
Post by: DeBugMe on April 02, 2019, 08:34:17 PM
and how about writing a wrapper to support the available block explorers )
It would be very simple.
Then for forked coins, you would HAVE to use something like this : https://www.npmjs.com/package/bitcoin-core
And also think about this one : https://github.com/cryptocoinjs/cryptocoin
For ethereum, it should be easy to enable support using web3js and a provider ))


Title: Re: Help to find bitcoin lib for nodejs
Post by: rolik2001 on April 04, 2019, 02:15:56 PM
I need to connect btc to my website with nodejs, so I'm looking for any way in which I can accept bitcoins. I have seen bitcoinjs lib, but this lib can't check explorer and push tx. Maybe you have some multiwallet which contains all popular coins and can be added from my own, because I'm planning to use this libs for others bitcoin forks.

What you are searching is a bitcoin wrapper:

http://lmgtfy.com/?q=nodejs+bitcoin+wrapper

But remember that you will need to install your node in the server and for that you need a robust server (with more than 250GB), other option is to install the core in a local computer, then turn down the firewall and make the connection direc from your server to the local machine. Is the complex way but with that you avoid the big server for node.
Thanks for the help, but in fact, it is an analog of bitcoin-core lib. I have found one interesting Russian article where they show command which can change blockchain size from 250 to 2-3 gb.

Its called pruned node. You can research it. Its useful as you won't store whole blockchain, but on the other hand if you need some explorer-like features, you won't be able you see older blocks, just the last few. Thats because, well you are not storing the other blocks, hence reduced size.
Ok, thank you. Maybe I will be used as it is not important to save transactions in local.

Dear guys, thanks everybody for the response and help.