<p>What you describe is what happens</p>
<p>If the wallet is not running 24/7 it will catch up by requesting missing blocks from peers.</p>
<p>See also SPV</p>

CC BY-SA 4.0
2024-08-26T11:58:24.463Z
2024-08-26T11:58:24.463Z
RedGrittyBrick
<p>How does my wallet know that someone sent me some money as soon as the block containing the transaction gets mined? Does my wallet check for new blocks on the blockchain continuously 24x7x365? And every time it sees a new block does it scan each transaction in that block &amp; check if any one of them have my public key in the <code>ScriptPubKey</code> part of the transaction?</p>

CC BY-SA 4.0
2024-08-26T14:01:27.153Z
From the comments on my answer, I got the impression that you may be asking about a specific wallet. Could you please clarify whether you are asking about a specific wallet software, one type of wallet, or wallets in general?
Murch
<transactions><wallet>
How does Bitcoin Wallet know someone has sent you some money? Does it keep scanning blockchain continuously for transactions having your Public Key?
user93353
# How does Bitcoin Wallet know someone has sent you some money? Does it keep scanning blockchain continuously for transactions having your Public Key?

(Asked by: username_0 on 2024-08-26)

How does my wallet know that someone sent me some money as soon as the block containing the transaction gets mined? Does my wallet check for new blocks on the blockchain continuously 24x7x365? And every time it sees a new block does it scan each transaction in that block & check if any one of them have my public key in the `ScriptPubKey` part of the transaction?

**Tags:** transactions, wallet

> **Comments:**
> **username_1**: From the comments on my answer, I got the impression that you may be asking about a specific wallet. Could you please clarify whether you are asking about a specific wallet software, one type of wallet, or wallets in general?  

---

## 1 answers

### Answer by username_2 on 2024-08-26. Score: 1 | Accepted answer

What you describe is what happens

If the wallet is not running 24/7 it will catch up by requesting missing blocks from peers.

See also SPV


---

