# How to calculate balance of stellar address?

**URL:** <https://community.bitquery.io/t/how-to-calculate-balance-of-stellar-address/2039>\
**Category:** GraphQL API\
**Tags:** support, open\
**Created:** [August 22, 2024, 1:58am UTC](https://community.bitquery.io/t/how-to-calculate-balance-of-stellar-address/2039 "2024-08-22T01:58:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danglephuc](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@danglephuc](https://community.bitquery.io/u/danglephuc)\
**Post date:** [August 22, 2024, 1:58am UTC](https://community.bitquery.io/t/how-to-calculate-balance-of-stellar-address/2039/1 "2024-08-22T01:58:44Z")

</div>

I tried to calculate balance of stellar address by sum of amount in “balanceEffects” of address. But the result is different with the balance in “address.tokenBalances”. It’s always a little bit missing.

---

<div class="post-metadata">

**Author:** ![Divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Divya](https://community.bitquery.io/u/Divya)\
**Post date:** [August 22, 2024, 4:00pm UTC](https://community.bitquery.io/t/how-to-calculate-balance-of-stellar-address/2039/2 "2024-08-22T16:00:54Z")

</div>

Can you create a ticket with the details in discrepancy in the balance amounts at [support.bitquery.io](http://support.bitquery.io) ? If there’s an error we will fix it.

---

<div class="post-metadata">

**Author:** ![faelannm](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/faelannm/32/952_2.png) [@faelannm](https://community.bitquery.io/u/faelannm)\
**Post date:** [September 16, 2024, 9:46am UTC](https://community.bitquery.io/t/how-to-calculate-balance-of-stellar-address/2039/3 "2024-09-16T09:46:48Z")

</div>

According to me to calculate the balance of a Stellar address  
Use Stellar Horizon API  
Use a Blockchain Explorer
