<p>The gap limit is the number of consecutive unused addresses after the highest used address. So if address 19 receives some Bitcoin, then, with a gap limit of 20, the next 20 addresses will become the lookahead. Since 35 will then be seen, the next 20 after address 35 become the lookahead.</p>

CC BY-SA 4.0
2019-06-03T12:11:10.197Z
OK, perfect, so a way to fix the gap limit is to pay for only the 20th gap address, not all the 20 unused addresses (this is what is doing Blockonomics I think: https://blog.blockonomics.co/bitcoin-what-is-this-gap-limit-4f098e52d7e1)
Enrique
CC BY-SA 4.0
2019-06-03T04:00:56.613Z
2019-06-03T04:00:56.613Z
Ava Chow
<p>Suppose we generated 35 address, 1 to 5 are paid, 6 to 34 not paid/used and 35 paid.<br>
Because of 20 gap limit we won't see 35 in our wallet, but what happen if we send some money to address 19 for example, will that fix the gap limit problem because even when are still having 28 not used address they are not in a row?   </p>

<bip32-hd-wallets><gap-limit>
is Gap Limit only for consecutive address?
Enrique
# is Gap Limit only for consecutive address?

(Asked by: username_0 on 2019-06-03)

Suppose we generated 35 address, 1 to 5 are paid, 6 to 34 not paid/used and 35 paid.  
Because of 20 gap limit we won't see 35 in our wallet, but what happen if we send some money to address 19 for example, will that fix the gap limit problem because even when are still having 28 not used address they are not in a row?

**Tags:** bip32-hd-wallets, gap-limit


---

## 1 answers

### Answer by username_1 on 2019-06-03. Score: 1

The gap limit is the number of consecutive unused addresses after the highest used address. So if address 19 receives some Bitcoin, then, with a gap limit of 20, the next 20 addresses will become the lookahead. Since 35 will then be seen, the next 20 after address 35 become the lookahead.

> **Comments:**
> **username_0**: OK, perfect, so a way to fix the gap limit is to pay for only the 20th gap address, not all the 20 unused addresses (this is what is doing Blockonomics I think: https://blog.blockonomics.co/bitcoin-what-is-this-gap-limit-4f098e52d7e1)  

---

