getMiningState API is working