I have set up a full node with bitcoin core running on the internet. I have also set up a wallet running on a private machine that communicates to the full node to broadcast new transactions.

To enhance privacy, I plan to enable Tor on the full node. However, it is not clear to me how to use Tor only for broadcasting new transactions from my wallet.

Many tutorials tell you how to use Tor exclusively for everything. That is not very good, because it wastes bandwidth, is slow and does not help bitcoin community.

Some other tutorials talk about using both Tor and IPv4/IPv6 at the same time. However, with this setting it is not clear whether new transactions from my wallet are sent out via IPv4/IPv6 or not. If they do, then you don't have much privacy after all.

Appreciate any pointers on this.

2 Answers 2


You cannot.

The node side of Bitcoin Core treats wallet transactions as any other transaction. They aren't treated any differently from transactions received over the network. So once the transaction is added to the node's mempool, it will be broadcast to connected nodes in the same way that any other transaction would be relayed.

All you can do is to temporarily run Tor only for transaction broadcast.

  • Thanks for quick confirmation, Andrew. Isn't this a glaring omission from bitcoin core? Was my expectation and the rationales behind it reasonable? I am happy to roll my sleeves and create a patch if the feature sounds desirable to wider audience. Commented Oct 12, 2020 at 19:12
  • An argument in sendrawtransaction that will broadcast the transaction using Tor will be helpful
    – user103136
    Commented Oct 13, 2020 at 22:33

After some digging, I find out more about the answer.

  1. In bitcoin core, it is possible to NOT broadcast your own transactions with "walletbroadcast=0" option
  2. See more details at https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-July/009422.html, https://en.bitcoin.it/wiki/Privacy ("Tor and tor broadcasting"), and https://github.com/bitcoin/bitcoin/pull/5951
  3. However, none of them provided a working script for doing so (I suspect it should be relatively simple, but did not dig in too much)
  4. I'm using Electrum Personal Server (EPS) for my electrum wallet. EPS happens to support tor broadcasting. So I'm happy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.