Author

Topic: Help to find bitcoin lib for nodejs (Read 180 times)

hero member
Activity: 1232
Merit: 503
April 04, 2019, 10:15:56 AM
#9
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.
copper member
Activity: 10
Merit: 0
April 02, 2019, 04:34:17 PM
#8
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 ))
legendary
Activity: 1878
Merit: 1038
Telegram: https://t.me/eckmar
April 02, 2019, 01:49:08 PM
#7
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.
hero member
Activity: 1232
Merit: 503
April 02, 2019, 01:36:14 PM
#6
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.
legendary
Activity: 2982
Merit: 2681
Top Crypto Casino
April 02, 2019, 11:33:31 AM
#5
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.
copper member
Activity: 10
Merit: 0
April 02, 2019, 08:15:30 AM
#4
Hello, please contact me by PM if you are still interested ))
hero member
Activity: 1232
Merit: 503
April 02, 2019, 05:25:05 AM
#3
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.
legendary
Activity: 1878
Merit: 1038
Telegram: https://t.me/eckmar
April 02, 2019, 04:58:31 AM
#2
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)
hero member
Activity: 1232
Merit: 503
April 02, 2019, 04:49:16 AM
#1
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.
Jump to: