programonauta
New member
I just re-enabled addressindex on my Testnet node and started it with -reindex. It now returns balance info for a randomly selected Testnet address. I think you are almost there. I would definitely try Testnet though.
WOW! It worked fine. Thanks @thephez!
Just to documentation I'll show the commands and these outputs:
Code:
~$ ps -ef | grep dash
ricardo 213 1 76 22:46 ? 00:02:24 dashd -testnet -addressindex -reindex -daemon
ricardo 243 2 0 22:49 tty1 00:00:00 grep --color=auto dash
$ dash-cli -testnet getaddressbalance '{"addresses": ["ygPypJBcqBEp2aFd8g9AGypzjvPwNe7zb5"]}'
{
"balance": 8768362772354,
"received": 8968362772354
}
The balance is not exactly you'll see on testnet blockchain explorer because the local blockchain is not complete synchronized.