1

I am new to the Bitcoin world. I have installed Bitcoin Core on a Windows machine and am running the full node. I want to develop a nodejs app that would be running on the same machine interacting with the Bitcoin node for 'balance/transfer funds/create wallet/etc'. I will really appreciate any pointers or sample code to achieve that.

closed as too broad by Pieter Wuille, Raghav Sood, MCCCS, dark knight, Andrew Chow Oct 3 '18 at 17:41

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Searching for "Bitcoin RPC protocol" might help you a lot. – MCCCS Sep 24 '18 at 13:39
1

I highly recommend looking at Bcoin. It is a full node implementation used by Purse.io but also includes a rich API for interacting with the Node and wallets. All of it running in NodeJS. Documentation is sparse but getting better.

http://bcoin.io/

Otherwise, bitcoinjs https://github.com/bitcoinjs/bitcoinjs-lib is a Javascript library that lets you parse, create, and sign transactions. But it doesn't handle the hard part of querying the network, caching information about transactions and wallets, or picking inputs and calculating fees when you want to spend.

  • For bitcoinjs-lib, Can I can configure it to connect to my local running bitcoin core full node ? – user3885282 Sep 25 '18 at 13:26
  • BitcoinJs does not handle th networking for you. You’d have to do the calls to the Core node yourself and use bitcoinjs to parse the data. I know, not friendly. Hence why I recommend bcoin instead. – Paul Puey Sep 25 '18 at 17:10
  • My company also builds a mobile wallet Edge. It is built as a JavaScript SDK for React Native and the web, but in theory it runs fine on NodeJS as that’s how we test it. It CAN connect to your node if you run ElectrumX on top of your node. It can fully handle the networking between wallet and node and can even connect to multiple nodes concurrently. Sending and receiving is abstracted out to just a couple JavaScript calls. It may be worth trying out. GitHub.com/EdgeApp/edge-core-js – Paul Puey Sep 25 '18 at 17:11
  • Can you suggest me how I get started with bcoin. I want to run a full node and then write nodejs code to get balance/transfer funds. Any sample code will be really helpful. – user3885282 Sep 26 '18 at 1:46
  • Sorry. I can only recommend heading to bcoin.io and looking at the docs. They also have a Slack channel where you can ask questions. – Paul Puey Sep 26 '18 at 5:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.