0

I'd like to know about balance of Stellar address at some point in time.
However, it's not going very well. So, please give me some advices or comments about how to do that.

Now, I'm using horizon API (https://horizon.stellar.org), and collecting operations and transactions with an account address.
I calculate as follows.

  • Add value of "amount" from "payment" type operations, if "to" is target address
  • Add value of "starting_balance" from "create_account" type operations, if "account" is target address
  • Substract value of "fee_charged" from transactions, if "fee_account" is target address
  • Continue the above from the beginning to some point in the time

If there are somethings I’m missing or misunderstanding to achieve it, could you tell me that?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.