[Solved] Feathercoin API - Issues with Get Feathercoin Address Balance
-
Hi Guys,
I have an issue with the [url=https://api.feathercoin.com/]https://api.feathercoin.com/[/url] api, (possibly user error :-[) when I submit the query to the api to get the balance of my wallet I get a different amount then what is shown in my Feathercoin QT client wallet. The value is out by quite a fair bit. Is anyone else seeing the same sort of thing?
I’m using the following query:
[code]https://api.feathercoin.com/?output=balance&address=&json=1[/code]
Cheers,
wolffhaven -
Perfectly normal.
Your wallet consists of multiple addresses. Your QT balance is the sum of all those addresses. Some of those addresses may not even show up in your list of receive addresses if they were change addresses that got used for a change spend.
The API can’t possibly know all the addresses your QT wallet knows of, so it’s only going to be able to tell you how much is at the one address.
Now, if you’re seeing an amount reported by the API that’s GREATER than your QT wallet, then that might be another issue. But I suspect that’s not the case.
-
Thanks for your reply Kevlar. That makes perfect sense. The api is showing less than what is in my QT client. I was a little worried I might an issue with my wallet.
Out of interest, to get around that could I simply send the balance of my QT client to one of my receive addresses and then query that receive address? Just to make sure that all the funds in my qt wallet are on that one receive address?
Cheers,
wolffhaven
-
Indeed, you can!
Just watch out for miner’s fees.
-
Thanks for your help that’s worked. :)