rolik2001 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 18, 2017, 03:58:24 PM |
|
I write site on node.js and dont know how to accept bitcoin on node.js. I know about bitpay(problem what maximum is 500 dollars),blockchain.info(problem what i need api key and must wait 2 days for this key), block.io(problem what on free account only 100 address.
|
|
|
|
coinableS
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 20, 2017, 05:17:39 AM |
|
I've been working on this nodejs tutorial series for the last few months https://www.youtube.com/playlist?list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_Goes from the simple intro Hello World to Express, templating, using bitcore-lib, blocktrail API and deployment. You can generate addresses and accept bitcoin just using a library.
|
|
|
|
DannyHamilton
Legendary
Offline
Activity: 3472
Merit: 4790
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 20, 2017, 01:32:44 PM |
|
You just want to accept bitcoins? You don't need to send any bitcoins? If so, then it is easy. - Choose a wallet (examples: MultiBit, Electrum, Bitcoin Core, etc)
- Install that wallet on a secure computer (NOT on your web server)
- Generate lots of addresses with the wallet
- Add those addresses to a database that your webserver can access
- Create a secure backup of your wallet
- The webserver can now look up addresses in the database to use
Since you didn't store any private keys in the database, the webserver can only accept bitcoins, it can't send any. Since you didn't store any private keys in the database, nobody can steal your bitcoins unless they have access to your wallet. You can generate as many addresses as you like with the wallet, just add the list of generated addresses to your database as you generate them. When you want to use the bitcoins, you can just use your wallet to send them somewhere.
|
|
|
|
rolik2001 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 21, 2017, 11:30:57 PM |
|
thanks for this very good guide )))
|
|
|
|
rolik2001 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 21, 2017, 11:32:45 PM |
|
You just want to accept bitcoins? You don't need to send any bitcoins? If so, then it is easy. - Choose a wallet (examples: MultiBit, Electrum, Bitcoin Core, etc)
- Install that wallet on a secure computer (NOT on your web server)
- Generate lots of addresses with the wallet
- Add those addresses to a database that your webserver can access
- Create a secure backup of your wallet
- The webserver can now look up addresses in the database to use
Since you didn't store any private keys in the database, the webserver can only accept bitcoins, it can't send any. Since you didn't store any private keys in the database, nobody can steal your bitcoins unless they have access to your wallet. You can generate as many addresses as you like with the wallet, just add the list of generated addresses to your database as you generate them. When you want to use the bitcoins, you can just use your wallet to send them somewhere. yes i can generate in bitcoinjs but problem was in notification socket on blockchain.info is bad because very much transaction and i can lost transaction
|
|
|
|
cypherblock
Jr. Member
Offline
Activity: 43
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 26, 2017, 07:46:37 PM |
|
The proposed solution doesn't give the website any means to verify that coins were received before delivering the goods or services. So you would have to query your node for this.
|
|
|
|
rolik2001 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 28, 2017, 04:34:34 PM |
|
The proposed solution doesn't give the website any means to verify that coins were received before delivering the goods or services. So you would have to query your node for this.
no blocktrail have notification on domain
|
|
|
|
nemgun
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 28, 2017, 06:51:19 PM |
|
Have you checked bitcore ? it may be interesting as it is bitcoin core built on nodejs, then it is up to you to see what to do with it. This API can be what you are looking for : https://www.blockcypher.com/dev/bitcoin/?javascript#types-of-eventsyou can create a confirmed tx event using a websocket. It is the first time i check this API, it is a complete set of tools, take your time and read it carefully. Hope that helps.
|
|
|
|
rolik2001 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 28, 2017, 07:26:09 PM |
|
Have you checked bitcore ? it may be interesting as it is bitcoin core built on nodejs, then it is up to you to see what to do with it. This API can be what you are looking for : https://www.blockcypher.com/dev/bitcoin/?javascript#types-of-eventsyou can create a confirmed tx event using a websocket. It is the first time i check this API, it is a complete set of tools, take your time and read it carefully. Hope that helps. for start core i need start full node?? on block.io also can receive confirmed payment by websocket
|
|
|
|
nemgun
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 28, 2017, 07:33:46 PM |
|
Have you checked bitcore ? it may be interesting as it is bitcoin core built on nodejs, then it is up to you to see what to do with it. This API can be what you are looking for : https://www.blockcypher.com/dev/bitcoin/?javascript#types-of-eventsyou can create a confirmed tx event using a websocket. It is the first time i check this API, it is a complete set of tools, take your time and read it carefully. Hope that helps. for start core i need start full node?? on block.io also can receive confirmed payment by websocket I didn't extended on bitcore, i just know that it is made to be used with nodejs. For the API, many people there says that block.io is a bad API, and that blockcypher is a good one, personally i am ok with block.io but only in a development environment. It is up to you.
|
|
|
|
hinterlog
Newbie
Offline
Activity: 52
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 28, 2017, 10:56:42 PM |
|
Can you give me more information as to what you are trying to build?
|
|
|
|
Rude Boy
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 01, 2017, 06:19:21 PM |
|
Have you ever checked out bitcoinjs? Bitcoin core and js example tutorials and scripts might help you.
|
|
|
|
rolik2001 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 01, 2017, 08:04:06 PM |
|
Have you ever checked out bitcoinjs? Bitcoin core and js example tutorials and scripts might help you. i try to find web services and i konw about bitcoinjs and core
|
|
|
|
nemgun
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 02, 2017, 08:50:56 AM |
|
Maybe bitcoin-node or node-bitcoin is what you are looking for, as you can query a bitcoin daemon (ad even blockchain.info RPC api) and then send usual methods or even your own methods. It is compliant with SSL and part of bitcoinjs project i guess. If all these projects doesn't suits you, could you tell us exactly what you are looking for then ? because i think that we talked about the libraries.
|
|
|
|
asoltys
Newbie
Offline
Activity: 19
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 03, 2017, 07:50:31 PM |
|
You might want to check out https://github.com/bcoin-org/bcoin as well. You can run it in SPV mode if you don't want to run a full node.
|
|
|
|
skang
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 452
Merit: 252
from democracy to self-rule.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 04, 2017, 01:55:43 PM |
|
Do not use any APIs and use your local blockchain instead! Bitcore and bcoin both provide you a javascript layer on top of a local bitcoin blockchain running on your system ..
|
"India is the guru of the nations, the physician of the human soul in its profounder maladies; she is destined once more to remould the life of the world and restore the peace of the human spirit. But Swaraj is the necessary condition of her work and before she can do the work, she must fulfil the condition."
|
|
|
rolik2001 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 05, 2017, 05:14:06 PM |
|
Thanks for all your answer and understand what i can use bitcoinjs and bitcore or blockchain.info how explorer
|
|
|
|
|
|