Open gertjaap opened 6 years ago
I can see why, it's adding to the unconfirmedBalance if the output isn't spent..
unconfirmedBalance would mean: Balance including unconfirmed received or spent amounts. Only the balance of unconfirmed transactions is worthless and could be negative. Makes no sense to me, so i think this is correct.
What I'm trying to say is that Balance
must include the total Balance for that address, Confirmed + Unconfirmed. I want to know what the unconfirmed amount is because that sum cannot be spent yet.
Currently my Vertcoin Desktop wallet shows the following:
But the API call I shared in my original post has this:
{
"balance": 891945724,
"txCount": 196,
"unconfirmedBalance": 891945724,
"unconfirmedTxCount": 0
}
balance
should not equal unconfirmedBalance
, this is very confusing, I was expecting something like this:
{
"balance": 891945724,
"txCount": 196,
"unconfirmedBalance": 19300529,
"unconfirmedTxCount": 0
}
I'm looking for an API to give me the same data the Vertcoin wallet does
I think the indexer doesn't yet support immature balance (mining outputs). Will have to look into that.
I have an issue with the new
addressBalance
details route:https://vtc.blkidx.org/addressBalance/Vg8APdm2BhFbaZuTsXnG8Ny66k1YfnvurQ?details=1
It gives me that all my VTCs are unconfirmed even though, just my last transaction of
2979020
is unconfirmed