<p>There's <a href="https://github.com/btcsuite/btcd" rel="nofollow noreferrer">BTCD</a>, a famous BTC library in Golang, which can be used with <a href="https://github.com/cpacia/bchutil" rel="nofollow noreferrer">bchutil</a> to code for BCH.</p>

<p>You just use BTCD as you would normally, and use bchutil for TX signing, CashAddr, etc.</p>

<p>Here's an <a href="https://github.com/decred/atomicswap/blob/78a2e23/cmd/bchatomicswap/main.go#L901" rel="nofollow noreferrer">example</a></p>

<p>EDIt: this answer is now outdated. Instead, use <a href="https://github.com/gcash/bchd" rel="nofollow noreferrer">https://github.com/gcash/bchd</a> BCHD as a drop-in replacement to btcd. You can just search for btcd tutorials and apply the same steps using the bchd library.</p>

CC BY-SA 4.0
2018-03-25T06:15:41.920Z
2018-12-07T04:17:45.267Z
2018-12-07T04:17:45.267Z
MCCCS
<p><em>I'm a completely newbie to crypto so sorry in advance for stupid question.</em>
How can I send BCH to desired address using existing wallet?</p>

<p>I found few services with quite nice rest API or even ready libraries for few different languages but all of them require creating new wallet in their platform.</p>

<p>Assuming I have my own wallet and private key for it, is there any way I can transfer BCH to other specified by me wallet <strong>programmatically</strong>? It can be literally anything - rest api, node/python/php library, etc.</p>

<p>Monitoring transactions seems to by quite popular thing and no problem here but I found barely no information regarding sending BCH (especially from existing wallet) on the internet.</p>

<api><bitcoin-cash><sending><cash>
How to send BCH programmatically using existing wallet
Kamil
# How to send BCH programmatically using existing wallet

(Asked by: username_0 on 2018-03-24)

*I'm a completely newbie to crypto so sorry in advance for stupid question.*
How can I send BCH to desired address using existing wallet?

I found few services with quite nice rest API or even ready libraries for few different languages but all of them require creating new wallet in their platform.

Assuming I have my own wallet and private key for it, is there any way I can transfer BCH to other specified by me wallet **programmatically**? It can be literally anything - rest api, node/python/php library, etc.

Monitoring transactions seems to by quite popular thing and no problem here but I found barely no information regarding sending BCH (especially from existing wallet) on the internet.

**Tags:** api, bitcoin-cash, sending, cash


---

## 1 answers

### Answer by username_1 on 2018-03-25. Score: 0

There's [BTCD](https://github.com/btcsuite/btcd), a famous BTC library in Golang, which can be used with [bchutil](https://github.com/cpacia/bchutil) to code for BCH.

You just use BTCD as you would normally, and use bchutil for TX signing, CashAddr, etc.

Here's an [example](https://github.com/decred/atomicswap/blob/78a2e23/cmd/bchatomicswap/main.go#L901)

EDIt: this answer is now outdated. Instead, use <https://github.com/gcash/bchd> BCHD as a drop-in replacement to btcd. You can just search for btcd tutorials and apply the same steps using the bchd library.


---

