Using Electrum without running your own full node keeps private keys on your device and lets you sign transactions locally. But to display balances and transaction history, the wallet must tell a server which blockchain data it wants to check. Those requests can reveal connections between addresses—even when the addresses have never been used together in a transaction.
What a ScriptHash reveals
Electrum servers index the blockchain and answer requests about transactions, balances, and unspent outputs. Traditionally, wallets identified the scripts they wanted to check using ScriptHash.
A ScriptHash is derived from a scriptPubKey, which defines the spending conditions for a transaction output. Electrum calculates SHA-256 over the script bytes, then reverses the resulting byte order for the protocol. The result is a 64-character hexadecimal string.
For example, the wallet can use blockchain.scripthash.subscribe to ask the server for updates. The server does not receive a Bitcoin address in its familiar form, but that does not make the request anonymous. If the script is already on the blockchain, the server can match its hash to that script.
For an unused address, the server cannot reverse SHA-256 to recover the script. It can, however, save the requested hash and recognize it later if the address appears on-chain.
The Electrum protocol specification version 1.7 replaces scripthash methods with scriptpubkey methods, which send the script itself. This changes the request format, but not the underlying issue: the server still sees which scripts the wallet is checking.
How addresses can be linked
Suppose a user has separate Bitcoin addresses for funds from a KYC exchange, P2P payments, and personal transfers. If all three addresses are checked by the same wallet during one session, the public server sees them together.
The operator can use this information to form a probable cluster of addresses associated with one wallet or user. Unlike the Common-Input Ownership Heuristic, this does not require the addresses’ UTXOs to be spent together. The link comes from the wallet’s requests, not from transaction patterns.
This does not prove that all the addresses belong to the same person; a client might manage multiple wallets or users. But for a personal Electrum wallet, the connection can be a reasonable inference. Users who keep funds separate on-chain may therefore reveal some of that separation to the server they use.
Unused addresses and connection history
HD wallets derive many addresses from a single root secret. To find incoming payments, a wallet checks both used addresses and a range of unused ones. This range is related to the wallet’s gap limit.
A public server may therefore receive ScriptHashes for addresses that have never received funds. If one of those addresses is used later, the server can match its on-chain script to a hash it saved earlier. It does not need the wallet’s seed phrase or xpub, and it cannot generate the wallet’s entire address sequence from the hashes alone. But it can monitor the identifiers it has already seen.
The server can also compare requests across connections. Repeated ScriptHashes may help it recognize the same wallet even if the user’s IP address changes. Changes in the set of hashes can reveal that the wallet is checking more addresses or has restored additional history. If the server also sees a transaction broadcast request, it may be able to associate the client’s activity with that transaction, though that alone does not prove which queried addresses belong to the sender.
What Tor and TLS do—and do not—protect
Tor can hide a user’s real IP address from the Electrum server, but it does not hide the requests’ contents from that server. The operator still sees the ScriptHashes and may link sessions when the same ones appear again.
TLS protects requests from observers between the client and server, such as an internet provider or someone on public Wi-Fi. The server itself must decrypt the requests to process them, so TLS does not hide the queried addresses from the operator.
Electrum may connect to multiple servers, but address queries are usually sent to one primary server; others are mainly used for block headers and related information. If the primary server changes, another operator may receive the address queries.
Reducing the exposure
The most direct way to avoid sharing address queries with a public operator is to use your own Bitcoin Core node with a personal Electrum server, such as Electrum Personal Server or electrs. Make sure the wallet is actually using your server and is not switching to public servers.
A rented VPS introduces its own risks, including access by the hosting provider, logs, backups, and possible operating-system compromise. Running your own server does not remove metadata; it shifts trust to infrastructure you control. Running Bitcoin Core alone is not enough if the wallet still retrieves address history from a public Electrum server.
The central point is that Bitcoin wallet privacy depends not only on transactions published to the blockchain, but also on the requests the wallet makes to display your balance. A public Electrum server can infer links between addresses before those links are visible on-chain. Private keys may remain safe, while information about the wallet’s structure and financial activity is exposed to the server processing its queries.
What a ScriptHash reveals
Electrum servers index the blockchain and answer requests about transactions, balances, and unspent outputs. Traditionally, wallets identified the scripts they wanted to check using ScriptHash.
A ScriptHash is derived from a scriptPubKey, which defines the spending conditions for a transaction output. Electrum calculates SHA-256 over the script bytes, then reverses the resulting byte order for the protocol. The result is a 64-character hexadecimal string.
For example, the wallet can use blockchain.scripthash.subscribe to ask the server for updates. The server does not receive a Bitcoin address in its familiar form, but that does not make the request anonymous. If the script is already on the blockchain, the server can match its hash to that script.
For an unused address, the server cannot reverse SHA-256 to recover the script. It can, however, save the requested hash and recognize it later if the address appears on-chain.
The Electrum protocol specification version 1.7 replaces scripthash methods with scriptpubkey methods, which send the script itself. This changes the request format, but not the underlying issue: the server still sees which scripts the wallet is checking.
How addresses can be linked
Suppose a user has separate Bitcoin addresses for funds from a KYC exchange, P2P payments, and personal transfers. If all three addresses are checked by the same wallet during one session, the public server sees them together.
The operator can use this information to form a probable cluster of addresses associated with one wallet or user. Unlike the Common-Input Ownership Heuristic, this does not require the addresses’ UTXOs to be spent together. The link comes from the wallet’s requests, not from transaction patterns.
This does not prove that all the addresses belong to the same person; a client might manage multiple wallets or users. But for a personal Electrum wallet, the connection can be a reasonable inference. Users who keep funds separate on-chain may therefore reveal some of that separation to the server they use.
Unused addresses and connection history
HD wallets derive many addresses from a single root secret. To find incoming payments, a wallet checks both used addresses and a range of unused ones. This range is related to the wallet’s gap limit.
A public server may therefore receive ScriptHashes for addresses that have never received funds. If one of those addresses is used later, the server can match its on-chain script to a hash it saved earlier. It does not need the wallet’s seed phrase or xpub, and it cannot generate the wallet’s entire address sequence from the hashes alone. But it can monitor the identifiers it has already seen.
The server can also compare requests across connections. Repeated ScriptHashes may help it recognize the same wallet even if the user’s IP address changes. Changes in the set of hashes can reveal that the wallet is checking more addresses or has restored additional history. If the server also sees a transaction broadcast request, it may be able to associate the client’s activity with that transaction, though that alone does not prove which queried addresses belong to the sender.
What Tor and TLS do—and do not—protect
Tor can hide a user’s real IP address from the Electrum server, but it does not hide the requests’ contents from that server. The operator still sees the ScriptHashes and may link sessions when the same ones appear again.
TLS protects requests from observers between the client and server, such as an internet provider or someone on public Wi-Fi. The server itself must decrypt the requests to process them, so TLS does not hide the queried addresses from the operator.
Electrum may connect to multiple servers, but address queries are usually sent to one primary server; others are mainly used for block headers and related information. If the primary server changes, another operator may receive the address queries.
Reducing the exposure
The most direct way to avoid sharing address queries with a public operator is to use your own Bitcoin Core node with a personal Electrum server, such as Electrum Personal Server or electrs. Make sure the wallet is actually using your server and is not switching to public servers.
A rented VPS introduces its own risks, including access by the hosting provider, logs, backups, and possible operating-system compromise. Running your own server does not remove metadata; it shifts trust to infrastructure you control. Running Bitcoin Core alone is not enough if the wallet still retrieves address history from a public Electrum server.
The central point is that Bitcoin wallet privacy depends not only on transactions published to the blockchain, but also on the requests the wallet makes to display your balance. A public Electrum server can infer links between addresses before those links are visible on-chain. Private keys may remain safe, while information about the wallet’s structure and financial activity is exposed to the server processing its queries.







