good first issuehelp wanted
Description
Feature request: add a "Mining Endpoint" to the Node API, that could be used to retrieve the stats currently available on the Mining tab of the TUI.
Would also be handy to get this into grin client.
Currently, when running grin in headless mode, there is no way to retrieve the mining statistics such as the connected workers.