<p>You can just do it yourself instead of having to send a 3rd party your private keys. <a href="https://github.com/coinables/sweepkey/blob/master/app.js" rel="nofollow noreferrer">Here's one that I wrote</a> using nodejs and bitcore-lib that takes a WIF and sends all funds to a different address. </p>

<p><a href="https://github.com/coinables/sweepkey/blob/master/app.js" rel="nofollow noreferrer">https://github.com/coinables/sweepkey/blob/master/app.js</a></p>

CC BY-SA 3.0
2017-03-22T04:12:35.480Z
Thanks for this. While looking around i discovered `bitcoinjs-lib`, which i will just be using to generate a transaction then use some api to broadcast that (don't want to have to sync blockchain for this).
markasoftware
CC BY-SA 3.0
2017-03-22T04:09:27.000Z
2017-03-22T04:09:27.000Z
m1xolyd1an
<p>I am making a program which will take a .wif private key, and send all funds from the wallet represented by the key to a certain address. I need this to be fully automated, but I can't seem to find any simple API which can send from a .wif. Thanks!</p>

<api><private-key><paper-wallet><coldstorage><wallet-import-format>
API to send bitcoins from paper/cold wallet?
markasoftware
# API to send bitcoins from paper/cold wallet?

(Asked by: username_0 on 2017-03-22)

I am making a program which will take a .wif private key, and send all funds from the wallet represented by the key to a certain address. I need this to be fully automated, but I can't seem to find any simple API which can send from a .wif. Thanks!

**Tags:** api, private-key, paper-wallet, coldstorage, wallet-import-format


---

## 1 answers

### Answer by username_1 on 2017-03-22. Score: 4 | Accepted answer

You can just do it yourself instead of having to send a 3rd party your private keys. [Here's one that I wrote](https://github.com/coinables/sweepkey/blob/master/app.js) using nodejs and bitcore-lib that takes a WIF and sends all funds to a different address.

<https://github.com/coinables/sweepkey/blob/master/app.js>

> **Comments:**
> **username_0**: Thanks for this. While looking around i discovered `bitcoinjs-lib`, which i will just be using to generate a transaction then use some api to broadcast that (don't want to have to sync blockchain for this).  

---

