<p>You should not use an online service for broadcasting transaction. This online-service would have full control (censor?) over your transaction. The service could analyze your data behavior and/or decide to not broadcast your transaction regarding some rules.</p>

<p>Wladimir van der Laan (current bitcoin-core project maintainer) has written a neat tool: <a href="https://github.com/laanwj/bitcoin-submittx" rel="nofollow">https://github.com/laanwj/bitcoin-submittx</a></p>

<p>Another option would be to install bitcoin-core, sync (takes serval hours and around 40GB traffic) and use RPC sendrawtransaction.</p>

CC BY-SA 4.0
2024-03-01T04:06:15.253Z
If they censor your tx, you'll notice it, so you can use another service to broadcast again. You can also use a new TOR connection for each broadcast, so it's harder to link to a real IP.
Sending a raw transactions from your local node reveals your IP address, so I'd say it's actually worse.
DaWe
CC BY-SA 3.0
2015-09-07T11:45:27.820Z
2015-09-07T11:45:27.820Z
Jonas Schnelli
<p>I found what I was looking for. Blockr.io has a good service for publishing transactions to the network. This is the url that you would send a post request to
<a href="http://btc.blockr.io/api/v1/tx/push" rel="nofollow">http://btc.blockr.io/api/v1/tx/push</a></p>

<p>Make sure to send it the transaction as a post request like this:</p>

<p>{"hex" : your transaction in hex} </p>

CC BY-SA 3.0
2015-06-08T22:58:55.783Z
2015-06-08T22:58:55.783Z
Andrew Malta
<p>What is the best way to broadcast a transaction to the network programatically? I know that blockchain.info has /pushtx but I'm pretty sure it rejects XHR requests from external sources because of CORS.</p>

<transactions><blockchain.info><bitcoinjs><broadcast>
How do you broadcast a transaction programatically?
Andrew Malta
# How do you broadcast a transaction programatically?

(Asked by: username_0 on 2015-06-08)

What is the best way to broadcast a transaction to the network programatically? I know that blockchain.info has /pushtx but I'm pretty sure it rejects XHR requests from external sources because of CORS.

**Tags:** transactions, blockchain.info, bitcoinjs, broadcast


---

## 2 answers

### Answer by username_1 on 2015-09-07. Score: 4

You should not use an online service for broadcasting transaction. This online-service would have full control (censor?) over your transaction. The service could analyze your data behavior and/or decide to not broadcast your transaction regarding some rules.

Wladimir van der Laan (current bitcoin-core project maintainer) has written a neat tool: <https://github.com/laanwj/bitcoin-submittx>

Another option would be to install bitcoin-core, sync (takes serval hours and around 40GB traffic) and use RPC sendrawtransaction.

> **Comments:**
> **username_2**: If they censor your tx, you'll notice it, so you can use another service to broadcast again. You can also use a new TOR connection for each broadcast, so it's harder to link to a real IP. Sending a raw transactions from your local node reveals your IP address, so I'd say it's actually worse.  

---

### Answer by username_0 on 2015-06-08. Score: 1

I found what I was looking for. Blockr.io has a good service for publishing transactions to the network. This is the url that you would send a post request to
<http://btc.blockr.io/api/v1/tx/push>

Make sure to send it the transaction as a post request like this:

{"hex" : your transaction in hex}


---

