How do you get the balance of an address in your wallet using the rpc interface? The current rpc interface only allows you to see either
1. The balance of the entire wallet
2. How much was received by an address (which is okay... if you never spend)

Basically, I want to know how to get the balance of a specific address in my wallet. I've searched high and low and cannot find anything.
If you are only using Bitcoin through RPC commands, you might want to look into accounts. Using those you can just call getbalance and you will know how much Bitcoins are in each of the accounts.

If you are using only addresses, you can only see how many Bitcoins you received with it through listreceivedbyaddress, which can be not reliable if you spend any money from them.

All in all, you ought to just use accounts, as they can encompass many addresses and provide a lot of functionality for separating your coins into many parts in the same wallet.