Does anyone know how I can call an account balance in PHP?
I need something like...
$TokenResponse = json_decode(file_get_contents("http://localhost:7874/nxt?requestType=decodeToken&website=" . $rand . "&token=" . $token"));
$balance = json_decode(file_get_contents("http://localhost:7874/nxt?requestType=getBalance&account=". $TokenResponse[account]"));
pass account ID not token.
http://localhost:7874/nxt?requestType=getBalance&account=6669070404060812420
remember results are "multiplied by 100"
also, you'll probably be interested more in guaranted balance:
http://localhost:7874/nxt?requestType=getGuaranteedBalance&account=6669070404060812420&numberOfConfirmations=10