Skip to article
Degrees of SatoshiFollow the connections.
Degrees of Satoshi/ Encyclopedia

Encyclopedia Bitcoin basics · Entry 193

Bitcoin wallet gap limits: why an address can be missed during recovery

Theme
Bitcoin basics
Sources
3 cited records
Reading time
About 3 minutes
Automated verification
Substantive update
In this article

At a glance

Key facts

Key facts for Bitcoin wallet gap limits: why an address can be missed during recovery
FactDetailSource
PurposeBound the search through derived addresses[1]
BIP-44 rule20 consecutive unused external addresses[1]
LimitA discovery stop is not a consensus spending rule[3][1]
01

Count consecutive unused addresses

A discovery algorithm derives addresses along the relevant branch and checks their history. Under the cited BIP-44 rule, finding used addresses restarts the unused-gap count. The rule concerns transaction history, not merely whether an address has a nonzero balance today.

Account discovery and address discovery also have different steps. The correct seed is only one part of locating the intended account hierarchy and address type.

02

A payment after the gap can be invisible initially

Suppose external address index 0 was used, indices 1 through 20 were never used, and index 21 later received a payment. A search that stops after 20 consecutive unused addresses can end at index 20 before discovering index 21.

The example assumes that exact derivation branch and gap rule. It does not mean every wallet searches only 20 addresses in total or uses the same limit for change addresses.

03

Use known public evidence to narrow the search

Record known receiving addresses, account type and wallet version. Electrum’s documentation warns that addresses generated beyond its normal gap may require a larger search or explicit address generation during recovery. Use the product’s supported procedure, recognizing that historical defaults are version-specific.

A broader search can cost time and reveal more address information to a queried server. Do not publish a seed or extended private key merely to ask whether an address has transaction history.

Direct answers

Questions people ask

Does the gap limit restrict how many Bitcoin addresses a wallet can have?

No. It limits a discovery search under a wallet policy, not the number of derivable addresses or a Bitcoin consensus rule. A wallet can derive beyond the normal search window, which is why recovery settings matter.

Does an emptied address count as unused?

Under BIP-44 account discovery, use is based on transaction history rather than current balance. An address that received and later spent funds has history even if it now holds no unspent output.

Inspect the evidence

The answer and key facts have stable claim links. These records retain the scope and qualification when reused.

A wallet gap limit tells address discovery when to stop after consecutive unused derived addresses. It prevents an endless search, but a used address beyond a large unused gap can be missed. BIP-44 specifies a 20-address external-chain discovery gap; other wallets and policies can differ. The funds are not deleted when discovery stops—the wallet has not found that part of its address sequence.

Educational explanation. Product-specific behavior is scoped to the cited documentation, checked 2026-10-02.

Scope: Bitcoin · data through 2026-10-02. Verification: verified · 2026-10-02T19:29:20.637Z.

Link to this claim
Purpose: Bound the search through derived addresses

Scope: Bitcoin · data through 2026-10-02. Verification: verified · 2026-10-02T19:29:20.637Z.

Link to this claim
BIP-44 rule: 20 consecutive unused external addresses

Scope: Bitcoin · data through 2026-10-02. Verification: verified · 2026-10-02T19:29:20.637Z.

Link to this claim
Limit: A discovery stop is not a consensus spending rule

Scope: Bitcoin · data through 2026-10-02. Verification: verified · 2026-10-02T19:29:20.637Z.

Link to this claim
Revision history
  1. — First publication after primary-source research and separate automated verification.

Source register

Sources and references

Retrieval dates and locators are recorded individually.
  1. Multi-Account Hierarchy for Deterministic WalletsBitcoin Improvement Proposals

    Hardened account paths and external-chain discovery gap rule.

    Locator: Path levels; Account discovery; Address gap limit · Version / scope: Pinned BIPs revision · Retrieved: 2026-10-02T18:53:54.097ZOpen source
  2. Frequently Asked QuestionsElectrum

    Electrum-specific sweep/import distinctions, seed recovery scope and address discovery.

    Locator: Does Electrum trust servers?; Can I import private keys from other Bitcoin clients?; Can I sweep private keys from other Bitcoin clients?; What is the gap limit?; How do I upgrade Electrum? · Retrieved: 2026-10-02T18:53:56.378ZOpen source
  3. Hierarchical Deterministic WalletsBitcoin Improvement Proposals

    Deterministic key derivation, backup scope and public/private child derivation.

    Locator: Motivation; Extended keys; Security · Version / scope: Pinned BIPs revision · Retrieved: 2026-10-02T18:53:54.013ZOpen source
How this article was made

Research and drafting use AI assistance. A separate automated review checks claims against primary sources; no external expert or named human review is implied. Publication, substantive editing, source retrieval and verification are recorded separately. This version was independently checked by an automated reviewer on 2 October 2026.

Editorial method and corrections

Degrees of Satoshi editorial project. “Bitcoin wallet gap limits: why an address can be missed during recovery.” Published 2026-10-02; updated 2026-10-02. https://degreesofsatoshi.com/encyclopedia/bitcoin-wallet-gap-limit/