<p>This is possible with <a href="https://bcoin.io" rel="nofollow noreferrer">bcoin</a>, a NodeJS bitcoin library that supports mnemonics, private keys, tx construction, etc... but you will still need a full node (or blockexplorer API) to get the UTXO you can spend with your key. Also, keep in mind handling seed phrases or typing seed phrases into <em>anything</em> is fraught with risk and you should be very careful the tools you choose to do this.</p>
<p>Anyway, I have an applet called <a href="https://starservice.space/brainsweeper/" rel="nofollow noreferrer">brainsweeper</a> (source code <a href="https://github.com/pinheadmz/brainsweeper" rel="nofollow noreferrer">here</a>) that does the second part of your question, using bcoin: it uses the blockstream.info API to get UTXO associated with an address, constructs a transaction that sweeps all the UTXO to a new address, signs it and the uses the blockstream.info API again to broadcast the completed TX.</p>
<p>If you need help using bcoin there is a discussion channel on <a href="https://t.me/bcoinorg" rel="nofollow noreferrer">telegram</a></p>

CC BY-SA 4.0
2023-04-18T14:11:04.337Z
2023-04-18T14:11:04.337Z
pinhead
<p>I am working on a NodeJS script that allows you to enter your 12-words-long Bitcoin secret recovery phrase and automatically withdraw all of your coins to a defined wallet address.</p>
<p>The script is for people like me (with a hundred paper wallets) to withdraw their funds quickly to one wallet without restoring every wallet by hand.</p>
<p>How can I do this? I did some research myself, but it seems impossible.</p>

<wallet-recovery><mnemonic-seed><seed><javascript><nodejs>
How to send a Bitcoin transaction only using the seed phrase using NodeJS?
FledDev
# How to send a Bitcoin transaction only using the seed phrase using NodeJS?

(Asked by: username_0 on 2023-04-17)

I am working on a NodeJS script that allows you to enter your 12-words-long Bitcoin secret recovery phrase and automatically withdraw all of your coins to a defined wallet address.

The script is for people like me (with a hundred paper wallets) to withdraw their funds quickly to one wallet without restoring every wallet by hand.

How can I do this? I did some research myself, but it seems impossible.

**Tags:** wallet-recovery, mnemonic-seed, seed, javascript, nodejs


---

## 1 answers

### Answer by username_1 on 2023-04-18. Score: 1

This is possible with [bcoin](https://bcoin.io), a NodeJS bitcoin library that supports mnemonics, private keys, tx construction, etc... but you will still need a full node (or blockexplorer API) to get the UTXO you can spend with your key. Also, keep in mind handling seed phrases or typing seed phrases into *anything* is fraught with risk and you should be very careful the tools you choose to do this.

Anyway, I have an applet called [brainsweeper](https://starservice.space/brainsweeper/) (source code [here](https://github.com/pinheadmz/brainsweeper)) that does the second part of your question, using bcoin: it uses the blockstream.info API to get UTXO associated with an address, constructs a transaction that sweeps all the UTXO to a new address, signs it and the uses the blockstream.info API again to broadcast the completed TX.

If you need help using bcoin there is a discussion channel on [telegram](https://t.me/bcoinorg)


---

