<p>The process you describe is essentially correct. There is no way around that.</p>
<p>To improve efficiency, the results can be calculated in advance by processing the blockchain just once. Obviously this would result in an extremely large database of addresses and balances in order to provide faster lookup.</p>

CC BY-SA 4.0
2021-12-13T18:26:55.043Z
2021-12-13T18:26:55.043Z
RedGrittyBrick
<p>Using different blockchain explorers one can retrieve the wallet balance or transactions of address. My question is how does this query works do they search the whole blockchain for the related address transactions and calculate the wallet balance? If so isn't it time consuming to do it this way ?</p>

<bitcoin-core><blockchain>
How transactions or wallet balance are retrieved from bitcoin blockchain?
kks
# How transactions or wallet balance are retrieved from bitcoin blockchain?

(Asked by: username_0 on 2021-12-13)

Using different blockchain explorers one can retrieve the wallet balance or transactions of address. My question is how does this query works do they search the whole blockchain for the related address transactions and calculate the wallet balance? If so isn't it time consuming to do it this way ?

**Tags:** bitcoin-core, blockchain


---

## 1 answers

### Answer by username_1 on 2021-12-13. Score: 1

The process you describe is essentially correct. There is no way around that.

To improve efficiency, the results can be calculated in advance by processing the blockchain just once. Obviously this would result in an extremely large database of addresses and balances in order to provide faster lookup.


---

