<p>Follow this example: <a href="https://github.com/OutCast3k/coinbin/" rel="nofollow noreferrer">https://github.com/OutCast3k/coinbin/</a><br>
This app does everything you need</p>

CC BY-SA 4.0
2019-05-29T09:08:08.477Z
2019-05-29T09:08:08.477Z
Owen Currie
<p>I have a:</p>
<ul>
<li>Wallet public/private key pair with X BTC</li>
<li>Wallet address I want to sent Y BTC to</li>
</ul>
<p>I'm developing an app in NodeJS and trying to initiate payments automatically. I'm very confused how I'm supposed to do this.</p>
<p>From my research, it seems like I have to generate some &quot;raw&quot; transaction hash, then encrypt that again with my private key, then I'm supposed to broadcast that encrypted data.</p>
<p>Is there some library/some simple API that can help me do this? I don't want to have to run a bitcoin server if I don't have to...</p>

<transactions><wallet><api><nodejs>
How can I automatically create and broadcast transactions using NodeJS?
K2xL
# How can I automatically create and broadcast transactions using NodeJS?

(Asked by: username_0 on 2014-01-03)

I have a:

* Wallet public/private key pair with X BTC
* Wallet address I want to sent Y BTC to

I'm developing an app in NodeJS and trying to initiate payments automatically. I'm very confused how I'm supposed to do this.

From my research, it seems like I have to generate some "raw" transaction hash, then encrypt that again with my private key, then I'm supposed to broadcast that encrypted data.

Is there some library/some simple API that can help me do this? I don't want to have to run a bitcoin server if I don't have to...

**Tags:** transactions, wallet, api, nodejs


---

## 1 answers

### Answer by username_1 on 2019-05-29. Score: 1

Follow this example: <https://github.com/OutCast3k/coinbin/>  
This app does everything you need


---

