<p>I want to calculate balances of my customers with a process ,
<code>total received(I get it via api provided by a Blockchain explorer)-total_sent(I store transactions my customers make)</code>
 but as you know, total received amounts are different in block explorers, so I wonder if I can calculate balances correctly.</p>

<p>So please let me know proper solutions.</p>

CC BY-SA 4.0
2018-10-07T11:00:02.250Z
`total received amounts are different in block explorers` They shouldn't be, total received is simply the sum of every utxo created for that address.
Raghav Sood
CC BY-SA 4.0
2018-10-07T11:17:29.637Z
Block explorers are well known to provide bad information.
Claris
CC BY-SA 4.0
2018-10-07T11:30:44.270Z
Oh really? As I guess, total recieved is the history of input amounts though
Ryu Nishida
<transactions><balance>
How can I calculate an address’s balance with “total recieved”?
Ryu Nishida
# How can I calculate an address’s balance with “total recieved”?

(Asked by: username_0 on 2018-10-07)

I want to calculate balances of my customers with a process ,
`total received(I get it via api provided by a Blockchain explorer)-total_sent(I store transactions my customers make)`
but as you know, total received amounts are different in block explorers, so I wonder if I can calculate balances correctly.

So please let me know proper solutions.

**Tags:** transactions, balance

> **Comments:**
> **username_1**: `total received amounts are different in block explorers` They shouldn't be, total received is simply the sum of every utxo created for that address.  
> **username_2**: Block explorers are well known to provide bad information.  
> **username_0**: Oh really? As I guess, total recieved is the history of input amounts though  

---

## 0 answers

