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.

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

1 Answer 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.


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 ? Sep 25, 2018 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, 2018 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, 2018 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. Sep 26, 2018 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, 2018 at 5:20

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