<p>I m using bitcore for stand alone rpc because it has many new indexes and new methods.</p>

<p>See this link <a href="https://bitcore.io/guides/bitcoin" rel="nofollow noreferrer">https://bitcore.io/guides/bitcoin</a> </p>

CC BY-SA 3.0
2017-09-06T18:21:50.163Z
2017-09-06T18:21:50.163Z
Alex Ishida
<p>First and foremost, install bitcoin-core. I recommend compiling it yourself but there are binaries available for download. You'll want to perform all the steps in this tutorial - follow all steps for the <em>daemon</em>. Do not do the <em>graphical user interface</em> steps. <a href="https://bitcoin.org/en/full-node#ubuntu-1610" rel="nofollow noreferrer">https://bitcoin.org/en/full-node#ubuntu-1610</a> </p>

<p>Run the daemon and use bitcoin-cli to familiarize yourself with the Bitcoin RPC API. <a href="https://bitcoin.org/en/full-node#other-linux-distributions" rel="nofollow noreferrer">https://bitcoin.org/en/full-node#other-linux-distributions</a></p>

<p>Start the daemon, such that it creates the right folders.
<code>bitcoind -daemon</code>
Stop it after a few seconds.
<code>bitcoin-cli stop</code></p>

<p>You should see a new folder <code>.bitcoind</code> in your HOME directory. (Or AppData if you're on Windows). You'll need to add this file into it as 'bitcoin.conf':</p>

<blockquote>
  <p>rpcuser=YOURUSERNAME</p>
  
  <p>rpcpassword=YOURPASSWORD</p>
</blockquote>

<p>Replace YOURUSERNAME with a username of your choice, same for the password. Remember these as you'll need it for configuring your NodeJS app.</p>

<p><code>bitcoind -daemon</code></p>

<p>Get the balance:
<code>bitcoin-cli -rpcuser=YOURUSERNAME -rpcpassword=YOURPASSWORD getbalance</code></p>

<p>Pick a nice Bitcoin Core JSON-RPC Node module, like this one:
<a href="https://www.npmjs.com/package/node-bitcoin-rpc" rel="nofollow noreferrer">https://www.npmjs.com/package/node-bitcoin-rpc</a>
^Also has the get balance example.</p>

<p>They use the same commands that you enter in the bitcoin-cli.</p>

CC BY-SA 3.0
2017-09-05T12:15:55.040Z
2017-09-05T12:15:55.040Z
Penquin
<p>Yet another way to proceed is to make your own client.</p>
<p>Here is mine on PHP. Even if you do not know PHP, you can see how easy is to create one from scratch:</p>
<p>JSONRPC:<br />
<a href="https://github.com/nmmmnu/BlockchainWalker/blob/master/jsonrpc.php" rel="nofollow noreferrer">https://github.com/nmmmnu/BlockchainWalker/blob/master/jsonrpc.php</a></p>
<p>Selected Bitcoind commands I need:<br />
<a href="https://github.com/nmmmnu/BlockchainWalker/blob/master/bitcoindrpc.php" rel="nofollow noreferrer">https://github.com/nmmmnu/BlockchainWalker/blob/master/bitcoindrpc.php</a></p>
<h2>update:</h2>
<p>In case you do own client, make sure you handle first transaction</p>
<p>&quot;<strong>4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b</strong>&quot;</p>
<p>in special code, because bitcoind can not handle it.</p>

CC BY-SA 3.0
2017-09-11T17:32:35.383Z
2017-09-11T17:32:35.383Z
2020-06-16T11:10:03.350Z
Nick
<p>I have to to use bitcoin api using nodejs. but I cannot understand from where I have to start.Search some node module like bitcoin-core and bitcoin.</p>

<p>Can anyone describe the step how can I set up bitcoin in our system and use using nodejs.
Also refer some link where use of bitcoin api request and response parameter are describe in nodejs. </p>

<p>I have to use bitcoin json-rpc api's with node.js but dont know from where i can start?</p>

CC BY-SA 3.0
2017-08-31T19:06:24.487Z
As it is written, this question doesn't make a lot of sense.  You seem to need to do something with Bitcion, but haven't specified what that is.  Without that information, nobody can help you.
Jestin
<blockchain><bitcoind><bitcoin-core-development><node.js>
bitcoin setup using nodejs
user58914
# bitcoin setup using nodejs

(Asked by: username_0 on 2017-08-31)

I have to to use bitcoin api using nodejs. but I cannot understand from where I have to start.Search some node module like bitcoin-core and bitcoin.

Can anyone describe the step how can I set up bitcoin in our system and use using nodejs.
Also refer some link where use of bitcoin api request and response parameter are describe in nodejs.

I have to use bitcoin json-rpc api's with node.js but dont know from where i can start?

**Tags:** blockchain, bitcoind, bitcoin-core-development, node.js

> **Comments:**
> **username_1**: As it is written, this question doesn't make a lot of sense.  You seem to need to do something with Bitcion, but haven't specified what that is.  Without that information, nobody can help you.  

---

## 3 answers

### Answer by username_2 on 2017-09-06. Score: 2

I m using bitcore for stand alone rpc because it has many new indexes and new methods.

See this link <https://bitcore.io/guides/bitcoin>


---

### Answer by username_3 on 2017-09-05. Score: 1

First and foremost, install bitcoin-core. I recommend compiling it yourself but there are binaries available for download. You'll want to perform all the steps in this tutorial - follow all steps for the *daemon*. Do not do the *graphical user interface* steps. <https://bitcoin.org/en/full-node#ubuntu-1610>

Run the daemon and use bitcoin-cli to familiarize yourself with the Bitcoin RPC API. <https://bitcoin.org/en/full-node#other-linux-distributions>

Start the daemon, such that it creates the right folders.
`bitcoind -daemon`
Stop it after a few seconds.
`bitcoin-cli stop`

You should see a new folder `.bitcoind` in your HOME directory. (Or AppData if you're on Windows). You'll need to add this file into it as 'bitcoin.conf':

> rpcuser=YOURUSERNAME
>
> rpcpassword=YOURPASSWORD

Replace YOURUSERNAME with a username of your choice, same for the password. Remember these as you'll need it for configuring your NodeJS app.

`bitcoind -daemon`

Get the balance:
`bitcoin-cli -rpcuser=YOURUSERNAME -rpcpassword=YOURPASSWORD getbalance`

Pick a nice Bitcoin Core JSON-RPC Node module, like this one:
<https://www.npmjs.com/package/node-bitcoin-rpc>
^Also has the get balance example.

They use the same commands that you enter in the bitcoin-cli.


---

### Answer by username_4 on 2017-09-11. Score: 0

Yet another way to proceed is to make your own client.

Here is mine on PHP. Even if you do not know PHP, you can see how easy is to create one from scratch:

JSONRPC:  
<https://github.com/nmmmnu/BlockchainWalker/blob/master/jsonrpc.php>

Selected Bitcoind commands I need:  
<https://github.com/nmmmnu/BlockchainWalker/blob/master/bitcoindrpc.php>

## update:

In case you do own client, make sure you handle first transaction

"**4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b**"

in special code, because bitcoind can not handle it.


---

