I'm having a hard time figuring out how to compute the balance of a given bitcoin address using only the standard RPC API. I would like to extend this logic to bitcoin clones as well so the solution should use standard API calls only (e.g. only calls listed here <https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list> )

Can you think of a way of doing this?