It is possible to run Bitcoin Core as a Tor onion service, and connect to such services.
It is possible to run Bitcoin Core as a Tor onion service, and connect to such services.
The following directions assume you have a Tor proxy running on port 9050. Many distributions default to having a SOCKS proxy listening on port 9050, but others may not. In particular, the Tor Browser Bundle defaults to listening on port 9150. See [Tor Project FAQ:TBBSocksPort](https://www.torproject.org/docs/faq.html.en#TBBSocksPort) for how to properly
The following directions assume you have a Tor proxy running on port 9050. Many distributions default to having a SOCKS proxy listening on port 9050, but others may not. In particular, the Tor Browser Bundle defaults to listening on port 9150.
configure Tor.
## Compatibility
## Compatibility
- Starting with version 22.0, Bitcoin Core only supports Tor version 3 hidden
- Starting with version 22.0, Bitcoin Core only supports Tor version 3 hidden
@ -27,8 +25,7 @@ CLI `-addrinfo` returns the number of addresses known to your node per
network. This can be useful to see how many onion peers your node knows,
network. This can be useful to see how many onion peers your node knows,
e.g. for `-onlynet=onion`.
e.g. for `-onlynet=onion`.
To fetch a number of onion addresses that your node knows, for example seven
You can use the `getnodeaddresses` RPC to fetch a number of onion peers known to your node; run `bitcoin-cli help getnodeaddresses` for details.
addresses, use the `getnodeaddresses 7 onion` RPC.